/* ============================================================
   Gabriella Beaumont-Smith — shared stylesheet
   Edit colors, fonts, and spacing here to change every page.
   ============================================================ */

/* ---- Design tokens (light theme) ---- */
:root {
  --paper:       #FAF6EF;   /* page background (soft off-white beige) */
  --surface:     #FFFFFF;   /* cards / raised areas        */
  --ink:         #2C2A33;   /* main text                   */
  --muted:       #6E6B77;   /* secondary text              */
  --line:        #EBE4D8;   /* hairline borders (soft beige) */
  --accent:      #2E73C0;   /* blue (links, buttons)       */
  --accent-soft: #3E86D6;
  --pink:        #E5679E;   /* pink (labels / eyebrows)    */
  --orange:      #EF8A3C;   /* orange (tags / highlights)  */
  --brass:       var(--orange); /* kept for backwards compatibility */

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
                "Book Antiqua", Georgia, serif;
  --font-sans:  system-ui, -apple-system, "Segoe UI", Roboto,
                Helvetica, Arial, sans-serif;

  --measure: 68ch;          /* comfortable reading width */
  --radius: 6px;
}

/* ---- Single, universal light theme ----
   This site intentionally looks the same for everyone, regardless of whether
   the visitor's device is set to light or dark mode. To re-enable an automatic
   dark version later, add an @media (prefers-color-scheme: dark) block here
   that redefines the tokens above. ---- */

/* ---- Base ---- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;   /* keep browser UI (scrollbars, form fields) light too */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Orange → pink → blue accent stripe across the very top */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--accent));
  z-index: 20;
}

.wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header / navigation ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(6px);
}
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 1.15rem 0 1rem;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--accent); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---- Main layout ---- */
main { padding: 3rem 0 4rem; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pink);
  margin: 0 0 0.9rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; margin: 2.6rem 0 0.9rem; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 0.4rem; }

p { max-width: var(--measure); margin: 0 0 1.1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-soft); }

.lead {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: var(--measure);
}

/* ---- Hero (home) ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 720px) {
  .hero { grid-template-columns: 1fr 300px; gap: 2rem; }
}
/* On phones (stacked layout), show the photo above her name */
@media (max-width: 719px) {
  .hero .portrait { order: -1; }
}
.portrait {
  width: 100%;
  max-width: 300px;
  height: auto;          /* show the whole photo at its true shape — never cropped */
  border-radius: var(--radius);
  justify-self: start;
}
.role {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.4rem;
}
.role strong { color: var(--ink); font-weight: 600; }

/* ---- Buttons / links row ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.btn {
  display: inline-block;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-soft); color: var(--paper); }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---- Research / publication list ---- */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub {
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.pub:first-child { border-top: none; }
.pub-title { font-family: var(--font-serif); font-size: 1.12rem; margin: 0 0 0.25rem; }
.pub-title a { color: var(--ink); text-decoration: none; }
.pub-title a:hover { color: var(--accent); }
.pub-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.5rem; font-style: italic; }
.pub-note { margin: 0; max-width: var(--measure); }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid color-mix(in srgb, var(--brass) 40%, var(--line));
  border-radius: 100px;
  padding: 0.1rem 0.6rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---- CV blocks ---- */
.cv-section { margin-bottom: 2.2rem; }
.cv-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 620px) {
  .cv-row { grid-template-columns: 8rem 1fr; }
}
.cv-year { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.cv-detail strong { font-weight: 600; }
.cv-detail span { color: var(--muted); display: block; font-size: 0.95rem; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 560px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--surface);
}
.contact-card .label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
}
.contact-card a, .contact-card p { margin: 0; word-break: break-word; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 2rem 0 3rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---- Accessibility ---- */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Editable placeholder highlight — remove the .todo class once filled in */
.todo {
  background: color-mix(in srgb, var(--brass) 16%, transparent);
  border-bottom: 1px dashed var(--brass);
  padding: 0 2px;
}
