/* about_me.css — standalone styling for About Me page */

/* ===== THEME VARIABLES ===== */

/* DARK (default) */
/* ===== LIGHT (default) ===== */
:root{
  --bg: #e7d6b6;
  --panel: #f2e7d2;
  --ink: #111;
  --muted: #333;
  --rule: #111;

  --link: #111;
  --link-hover-bg: #111;
  --link-hover-ink: #e7d6b6;
}

/* ===== DARK ===== */
:root.dark,
body.dark{
  --bg: #0e0e0e;
  --panel: #141414;
  --ink: #e6e6e6;
  --muted: #b8b8b8;
  --rule: #2a2a2a;

  --link: #e6e6e6;
  --link-hover-bg: #e6e6e6;
  --link-hover-ink: #0e0e0e;
}



/* ===== BASE ===== */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  padding: 48px 18px;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

/* kill purple visited */
a, a:visited{ color: var(--link); }

/* ===== TOGGLES (matching your other pages) ===== */
#toggles{
  display: inline-flex;
  gap: 10px;
  margin-bottom: 16px;
}

#toggles button{
  all: unset;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1.2;
}

#toggles button:hover,
#toggles button:focus-visible{
  background: var(--ink);
  color: var(--bg);
  outline: none;
}

/* ===== LEFT COLUMN LAYOUT ===== */
.center{
  max-width: 620px;
  margin-left: 16%;
  margin-right: auto;
  text-align: left;
}

/* mobile */
@media (max-width: 700px){
  .center{
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== ABOUT LAYOUT (text + photo) ===== */
.about-wrap{
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  align-items: start;
}

.about-photo img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}

/* Optional: slightly “print” feel */
.about-photo{
  position: relative;
}

/* Mobile: stack nicely */
@media (max-width: 700px){
  .about-wrap{
    grid-template-columns: 1fr;
  }

  .about-photo{
    order: -1; /* image on top */
    max-width: 420px;
  }
}

/* ===== HEADERS + RULES ===== */
h2{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

hr{
  border: 0;
  border-top: 1px solid var(--rule);
  width: 100%;
  margin: 14px 0;
}

/* ===== PARAGRAPHS ===== */
p{
  margin: 0 0 14px;
  max-width: 68ch;
}

/* link behavior (email link) */
a{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* inline embedded internal link */
a.embed,
a.embed:visited{
  color: var(--muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

a.embed:hover,
a.embed:focus-visible{
  color: var(--ink);
  background: transparent;
  text-decoration-style: solid;
  outline: none;
}

a:hover,
a:focus-visible{
  background: var(--link-hover-bg);
  color: var(--link-hover-ink);
  text-decoration: none;
  outline: none;
}

/* ===== BACK BUTTON (Bookshelf standard) ===== */
a.back,
a.back:visited{
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 2px 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

a.back:hover,
a.back:focus-visible{
  background: var(--ink);
  color: var(--bg);
  outline: none;
}

/* ===== MONOSPACE MODE ===== */
:root.mono body{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.45;
}
