/* =========================================================================
   Iliana Samara — site styles
   Warm, human, editorial academic site.
   ========================================================================= */

/* Fonts are self-hosted (see assets/fonts/fonts.css), loaded via <link> in each
   page <head> for privacy (no third-party Google request) and faster first paint. */

/* ---------------------------------------------------------------- tokens */
:root {
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* light theme (default) */
  --paper: #faf6ef;
  --surface: #ffffff;
  --surface-soft: #f4eee4;
  --ink: #2a2320;
  --ink-soft: #4a423c;
  --muted: #756a61;
  --line: #e7ddcf;
  --line-strong: #d8ccba;
  --accent: oklch(0.62 0.122 38);
  --accent-press: oklch(0.55 0.122 38);
  --accent-tint: oklch(0.62 0.122 38 / 0.10);
  --accent-tint-strong: oklch(0.62 0.122 38 / 0.16);
  --support: oklch(0.58 0.03 250);
  --on-accent: #fffaf4;
  --shadow-sm: 0 1px 2px rgba(42, 35, 32, 0.04), 0 2px 8px rgba(42, 35, 32, 0.05);
  --shadow-md: 0 8px 24px rgba(42, 35, 32, 0.08), 0 2px 8px rgba(42, 35, 32, 0.05);
  --shadow-lg: 0 18px 48px rgba(42, 35, 32, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #181311;
  --surface: #211b18;
  --surface-soft: #261f1b;
  --ink: #f2eadf;
  --ink-soft: #d8cdc1;
  --muted: #a2978c;
  --line: #342b25;
  --line-strong: #423630;
  --accent: oklch(0.72 0.13 42);
  --accent-press: oklch(0.78 0.13 42);
  --accent-tint: oklch(0.72 0.13 42 / 0.14);
  --accent-tint-strong: oklch(0.72 0.13 42 / 0.22);
  --support: oklch(0.7 0.04 250);
  --on-accent: #1a1310;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent-tint-strong); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-press); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-link {
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent-tint-strong);
  transition: border-color 0.15s ease;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* small eyebrow label */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand .mark svg { width: 100%; height: 100%; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a {
  position: relative;
  padding: 0.5rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--accent-tint); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.12rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* header actions: profile rail + theme + menu */
.header-actions { display: flex; align-items: center; gap: 0.45rem; }
.profile-rail { display: flex; align-items: center; gap: 0.3rem; margin-right: 0.15rem; }
.profile-rail a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.profile-rail a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }

/* mobile nav toggle */
.nav-toggle { display: none; }

/* --------------------------------------------------------------- footer */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-brand .name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a, .footer-col span { color: var(--ink-soft); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
}
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.3rem;
  padding-bottom: 1.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  color: var(--on-accent);
  background: var(--accent-press);
  border-color: var(--accent-press);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn.secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}
.btn.secondary:hover {
  background: var(--accent-tint);
  color: var(--accent-press);
  transform: translateY(-1px);
  box-shadow: none;
}
.btn.ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* --------------------------------------------------------------- page head */
.page-main { padding-top: 3.5rem; }

.page-head { max-width: 50rem; margin-bottom: 2.8rem; }
.page-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 500;
}
.page-intro {
  margin-top: 1.3rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46rem;
}

/* section title with hairline */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 3.2rem 0 1.4rem;
}
.section-title h2 {
  font-size: 1.75rem;
  white-space: nowrap;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-0.35rem);
}
.section-title .count {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-copy .role {
  margin: 1.1rem 0 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-copy .affil {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.hero-copy .lede {
  margin-top: 1.6rem;
  font-size: 1.18rem;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 38rem;
}
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 1.4rem;
  font-size: 0.92rem;
}
.hero-contact a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.hero-contact a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* hero figure / SDT motif */
.hero-figure {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.8rem 1.4rem;
  box-shadow: var(--shadow-md);
}
.hero-figure svg { width: 100%; height: auto; display: block; }
.figure-caption {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.figure-caption strong { color: var(--ink-soft); font-weight: 600; }

/* --------------------------------------------------------------- cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.55rem;
}
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

/* feature card with left accent + numbered theme cards */
.theme-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.theme-card .num {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.theme-card h3 { font-size: 1.32rem; margin-bottom: 0.6rem; }
.theme-card p { color: var(--ink-soft); }

/* --------------------------------------------------------------- chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.chip {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------- publications */
.year-group { margin-bottom: 2.6rem; }
.pub-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.pub {
  position: relative;
  padding: 1.2rem 1.4rem 1.2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
  transition: border-left-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.pub:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}
.pub .authors { color: var(--ink-soft); }
.pub strong { color: var(--ink); font-weight: 700; }
.pub em { color: var(--ink-soft); }
.pub a { font-weight: 500; }
.pub .venue { font-style: italic; }
.pub-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.18rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pub-resources { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.pub-resource {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.pub-resource:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}
.pub-resource svg { flex: none; }

/* --------------------------------------------------------------- home: recent / news */
.news-list { margin-top: 1.2rem; }
.news {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.4rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.news:last-child { border-bottom: 1px solid var(--line); }
.news-when { font-family: var(--font-sans); font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.news-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.news-body p:last-child { color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------------- contact: bio cards */
.bio-block { margin-top: 3.4rem; }
.bio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}
.bio-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.bio-len {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.bio-copy {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.bio-copy:hover { border-color: var(--accent); color: var(--accent); }
.bio-card p { color: var(--ink-soft); max-width: 46rem; margin: 0; }

/* --------------------------------------------------------------- media list */
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.media-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.media-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.media-item .type {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.media-item .headline { font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.25; margin-bottom: 0.5rem; }
.media-item .headline a { color: var(--ink); }
.media-item .headline a:hover { color: var(--accent); }
.media-item .outlet { color: var(--muted); font-size: 0.92rem; }

/* --------------------------------------------------------------- callout / quote */
.statement {
  margin: 2.6rem 0;
  padding: 2rem 2.2rem;
  border-radius: var(--radius);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-strong);
}

/* quiet literary epigraph */
.epigraph {
  margin: 2.4rem 0 0;
  padding: 0.2rem 0 0.2rem 1.6rem;
  border-left: 2px solid var(--support);
  max-width: 40ch;
}
.epigraph p {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.epigraph cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.epigraph cite b { font-weight: 600; color: var(--support); }
.statement p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  max-width: 32ch;
}

.callout-band {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.callout-band .inner { max-width: 44rem; }
.callout-band h2 { font-size: 1.9rem; margin-bottom: 0.9rem; }
.callout-band p { color: var(--ink-soft); font-size: 1.1rem; }


/* contact specifics */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.profile-links { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.4rem; }
.profile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.profile-links a:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.profile-links a .arrow { color: var(--muted); transition: transform 0.15s ease, color 0.15s ease; }
.profile-links a:hover .arrow { color: var(--accent); transform: translateX(3px); }

.affil-block { margin-top: 1.6rem; color: var(--ink-soft); line-height: 1.7; }
.affil-block strong { color: var(--ink); }

/* simple definition rows (cv) */
.facts { display: flex; flex-direction: column; gap: 0; margin-top: 1rem; }
.fact {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.fact:first-child { border-top: 1px solid var(--line); }
.fact dt { font-family: var(--font-sans); font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.fact dd { margin: 0; color: var(--ink); }

.lead-list { margin: 1rem 0 0; padding-left: 1.2rem; }
.lead-list li { margin-bottom: 0.6rem; color: var(--ink-soft); }
.lead-list li::marker { color: var(--accent); }

/* --------------------------------------------------------------- CV page */
.cv-masthead {
  padding-bottom: 1.8rem;
  margin-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
}
.cv-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0;
}
.cv-title {
  margin: 0.7rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.cv-affil { margin: 0.3rem 0 0; color: var(--ink-soft); }
.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.cv-contact a { color: var(--ink-soft); }
.cv-contact a:hover { color: var(--accent); }
.cv-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.cv-section { margin-top: 2.6rem; }
.cv-section > h2 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-strong);
}
.cv-section > h2 .sub {
  float: right;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}
.cv-lead { max-width: 52rem; color: var(--ink-soft); }
.cv-lead + .cv-lead { margin-top: 0.8rem; }
.cv-lead strong { color: var(--ink); }

.cv-entry { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.cv-entry:last-child { border-bottom: none; }
.cv-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.cv-role { font-weight: 600; color: var(--ink); }
.cv-role .muted { font-weight: 400; color: var(--muted); }
.cv-date {
  flex: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cv-org { color: var(--muted); font-size: 0.95rem; margin-top: 0.1rem; }
.cv-note { color: var(--ink-soft); font-style: italic; font-size: 0.92rem; margin-top: 0.25rem; }

.cv-pub-group + .cv-pub-group { margin-top: 1.6rem; }
.cv-subhead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.cv-pub-list { list-style: none; margin: 0; padding: 0; }
.cv-pub {
  padding: 0.6rem 0 0.6rem 1.4rem;
  text-indent: -1.4rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.cv-pub:last-child { border-bottom: none; }
.cv-pub strong { color: var(--ink); font-weight: 700; }
.cv-pub em { color: var(--ink-soft); }
.cv-pub .status {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.cv-pub a { word-break: break-word; }

.cv-skill { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.cv-skill:last-child { border-bottom: none; }
.cv-skill b { color: var(--ink); }
.cv-skill span { color: var(--ink-soft); }

.cv-lang { display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem; }
.cv-lang div { color: var(--ink-soft); }
.cv-lang b { color: var(--ink); }

/* =========================================================================
   v2 — researcher identity: portrait, credibility strip, dual colour system
   noise = slate (--support) → method / data    ·    signal = terracotta (--accent) → human / attraction
   ========================================================================= */

/* ---- hero portrait ---- */
.hero-portrait {
  position: relative;
  align-self: stretch;
}
.portrait-frame {
  position: relative;
  max-width: 380px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.portrait-frame .portrait-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* gentle, even retouch: soften skin texture without going plasticky */
  filter: saturate(1.02) contrast(0.99) brightness(1.015);
}
/* striped placeholder shown until a real portrait is dropped in */
.portrait-ph {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, var(--surface-soft) 0 12px, var(--surface) 12px 24px);
  color: var(--muted);
}
.portrait-ph span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* caption strip under portrait carries the SDT signature mark */
.portrait-cap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface));
}
.portrait-cap svg { width: 34px; height: 24px; flex: none; display: block; }
.portrait-cap p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* ---- credibility strip (no funding figures, by request) ---- */
.cred-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin: 0;
}
.cred {
  padding: 1.5rem 1.6rem;
  border-left: 1px solid var(--line);
}
.cred:first-child { border-left: none; padding-left: 0; }
.cred .k {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--support);
  margin-bottom: 0.5rem;
}
.cred .v {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  line-height: 1.2;
  color: var(--ink);
}
.cred .v b {
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---- numbered research figure (relocated SDT motif) ---- */
.figure-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem;
  align-items: center;
  margin-top: 1.4rem;
}
.fig {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.fig svg { width: 100%; height: auto; display: block; }
.fig figcaption {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.fig figcaption .fnum {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--support);
  margin-right: 0.45rem;
}
.fig figcaption strong { color: var(--ink-soft); font-weight: 600; }

/* ---- dual colour system: methods read slate (the "data" side) ---- */
.chip-list.methods .chip {
  border-color: color-mix(in srgb, var(--support) 38%, var(--line-strong));
}
.chip-list.methods .chip::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--support);
  vertical-align: middle;
}
.chip-list.methods .chip:hover {
  background: color-mix(in srgb, var(--support) 12%, transparent);
  color: var(--support);
  border-color: var(--support);
}

/* ---- media: outlet credibility treatment ---- */
.media-item { position: relative; }
.media-item .type { color: var(--support); }
.media-item .headline a { transition: color 0.15s ease; }
.media-grid.logos .media-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.outlet-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.outlet-strip .wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

/* ---- contact: compact portrait ---- */
.contact-portrait {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.contact-portrait .pimg {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  filter: saturate(1.02) brightness(1.015);
  flex: none;
}
.contact-portrait .pph {
  width: 84px; height: 84px; border-radius: 50%; flex: none;
  background: repeating-linear-gradient(135deg, var(--surface-soft) 0 8px, var(--surface) 8px 16px);
  border: 1px solid var(--line-strong);
}
.contact-portrait .pmeta .nm { font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink); }
.contact-portrait .pmeta .rl { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 900px) {
  .figure-block { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-portrait { max-width: 360px; }
}
@media (max-width: 620px) {
  .cred-strip { grid-template-columns: 1fr; }
  .cred { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .cred:first-child { border-top: none; padding-top: 0; }
}

/* ----- print: clean PDF when saved from the browser ----- */
@media print {
  :root { --paper: #fff; --surface: #fff; --ink: #111; --ink-soft: #222; --muted: #555; --line: #ddd; --line-strong: #999; --accent: #8a3a26; }
  .site-header, .site-footer, .theme-toggle, .nav-toggle, .cv-actions, .callout-band { display: none !important; }
  body { background: #fff; font-size: 10.5pt; }
  .page-main { padding-top: 0; }
  .wrap { max-width: 100%; padding: 0; }
  .cv-section { margin-top: 1.3rem; break-inside: avoid-page; }
  .cv-section > h2 { break-after: avoid; }
  .cv-entry, .cv-pub, .cv-skill { break-inside: avoid; }
  a { color: #8a3a26; text-decoration: none; }
  @page { margin: 1.6cm 1.7cm; }
}

/* reveal on scroll (supports JS stagger via --reveal-delay) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--reveal-delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ----- keyboard focus: tasteful ring, only for keyboard users ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}
:focus:not(:focus-visible) { outline: none; }

/* ----- hero entrance: gentle staggered fade-up on first load ----- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-portrait {
    opacity: 0;
    animation: heroUp 0.72s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  }
  .hero-copy > h1        { animation-delay: 0.04s; }
  .hero-copy > .role     { animation-delay: 0.11s; }
  .hero-copy > .affil    { animation-delay: 0.16s; }
  .hero-copy > .lede     { animation-delay: 0.22s; }
  .hero-copy > .hero-contact { animation-delay: 0.29s; }
  .hero-copy > .btn-row  { animation-delay: 0.36s; }
  .hero-portrait         { animation-delay: 0.20s; }
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .hero-portrait { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    padding: 0.8rem 1.3rem 1.2rem; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 0.7rem 0.6rem; font-size: 1rem; }
  .nav.open a.active::after { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink-soft); cursor: pointer; }
  .nav-toggle svg { width: 18px; height: 18px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.4rem; padding: 3rem 0 2.5rem; }
  .hero-figure { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 1.3rem; }
  .grid-2, .grid-3, .media-grid { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 0.2rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-bottom .wrap { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .cv-entry-head { flex-direction: column; gap: 0.1rem; }
  .cv-date { order: -1; }
  .cv-section > h2 .sub { float: none; display: block; margin-top: 0.25rem; }
}

@media (max-width: 520px) {
  .header-actions { gap: 0.3rem; }
  .profile-rail a.pr-extra { display: none; }
  .profile-rail a { padding: 0 0.5rem; font-size: 0.7rem; }
  .brand > span:last-child { display: none; }
}
