/*
  Layout: Narrow editorial column, two-column prose + margin citations on bio
  Color: Warm vellum — not cream-terracotta cliché; ink navy accent, stone gray muted
  Type: Cormorant Garamond display, Lora body, DM Sans utility
*/
:root {
  /* Palladian cream · Space Cadet ink · Caput Mortuum accent · Slate muted */
  --bg:       #EEE9DF;
  --fg:       #25344F;
  --muted:    #617891;
  --accent:   #632024;
  --subtle:   #D5CFC4;
  --paper:    #E4DDD2;
  --accent-lt:#8B2D32;

  --wrap: 1020px;
  --f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body:    'Lora', Georgia, serif;
  --f-ui:      'DM Sans', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:       #EEE9DF;
    --fg:       #25344F;
    --muted:    #617891;
    --accent:   #632024;
    --subtle:   #D5CFC4;
    --paper:    #E4DDD2;
    --accent-lt:#8B2D32;
  }
}
:root[data-theme="dark"] {
  --bg:       #EEE9DF;
  --fg:       #25344F;
  --muted:    #617891;
  --accent:   #632024;
  --subtle:   #D5CFC4;
  --paper:    #E4DDD2;
  --accent-lt:#8B2D32;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.75;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}

/* ─── NAV ─────────────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--subtle);
  /* break out of body side padding to span full width */
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 1.1rem;
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--fg); outline: none; }

/* ─── SHARED LAYOUT ───────────────────────────────────── */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-block: 4.5rem;
  border-bottom: 1px solid var(--subtle);
}
.section:last-child { border-bottom: none; padding-bottom: 6rem; }

.section-eyebrow {
  font-family: var(--f-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.75rem;
}

/* ─── HERO ────────────────────────────────────────────── */
.hero { border-bottom: 1px solid var(--subtle); }

.hero-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-block: 4.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3.5rem;
  align-items: end;
}

.hero-chips { display: flex; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-chip {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-chip + .hero-chip::before { content: ' · '; margin: 0 0.4em; }

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 0.4rem;
  text-wrap: balance;
}

.hero-cred {
  font-family: var(--f-ui);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-roles {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--subtle);
}
.hero-role {
  font-family: var(--f-ui);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--fg);
}
.hero-role em {
  font-style: normal;
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.hero-cta { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.25rem; }
.cta-link {
  font-family: var(--f-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
}
.cta-link::after { content: ' →'; }
.cta-link:hover { color: var(--accent-lt); }

/* Portrait panel */
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid var(--subtle);
  overflow: hidden;
}
.hero-portrait img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 128%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

/* ─── BIO — two column prose + margin ────────────────── */
.bio-cols {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3.5rem;
  align-items: start;
}

.bio-prose p {
  font-family: var(--f-body);
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--fg);
  margin-bottom: 1.75rem;
  min-width: 0;
}
.bio-prose p:last-child { margin-bottom: 0; }

.bio-lead {
  font-family: var(--f-display);
  font-size: 1.5rem !important;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55 !important;
  color: var(--fg);
  margin-bottom: 2rem !important;
}

.bio-margin {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.cite-card {
  padding: 1rem 1.1rem;
  background: var(--paper);
  border-left: 2px solid var(--subtle);
}

.cite-venue {
  font-family: var(--f-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.cite-title {
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--accent);
  text-decoration: none;
  display: block;
}
.cite-title:hover { color: var(--accent-lt); text-decoration: underline; }

.cite-authors {
  font-family: var(--f-ui);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.cite-illus {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
  overflow: visible;
}

/* ─── RESEARCH ────────────────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--subtle);
}

.research-card {
  background: var(--bg);
  padding: 2rem 2rem 2.25rem;
}

.research-tag {
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.research-card h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.8rem;
  text-wrap: balance;
  line-height: 1.25;
}

.research-card h3 a { color: inherit; text-decoration: none; }
.research-card h3 a:hover { color: var(--accent); }

.research-card p {
  font-family: var(--f-ui);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  min-width: 0;
}

/* ─── PUBLICATIONS ────────────────────────────────────── */
.pub-list { display: flex; flex-direction: column; }

.pub-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--subtle);
}
.pub-row:last-child { border-bottom: none; }

.pub-year {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}

.pub-title {
  font-family: var(--f-body);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 0.4rem;
}
.pub-title a { color: inherit; text-decoration: none; }
.pub-title a:hover { color: var(--accent); }

.pub-cite {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 0;
}

.pub-venue {
  font-weight: 500;
  color: var(--accent);
}

/* ─── HONORS ──────────────────────────────────────────── */
.honors-list { display: flex; flex-direction: column; gap: 1.4rem; }

.honor-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.honor-year {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.1rem;
}

.honor-name {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 0.15rem;
}

.honor-org {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ─── NEWS ────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; }

.news-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--subtle);
}
.news-row:last-child { border-bottom: none; }

.news-title {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.55;
  min-width: 0;
}
.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: var(--accent); }

.news-link {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.news-link:hover { color: var(--accent-lt); }

/* ─── CONTACT ─────────────────────────────────────────── */
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 55ch;
}

.contact-body p {
  font-family: var(--f-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg);
}

.contact-location {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 3rem 3rem;
  }
  .hero-portrait { order: -1; max-width: 300px; width: 100%; }

  .bio-cols {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .bio-margin {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cite-card { flex: 1 1 160px; }

  .research-grid { grid-template-columns: 1fr; }

  .pub-row,
  .honor-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .pub-year,
  .honor-year { color: var(--accent); }

  .nav-links { gap: 1.4rem; }

  .news-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ─── SEARCH ──────────────────────────────────────────── */
.nav-inner { gap: 1.5rem; }
.nav-links { margin-left: auto; }






.pub-row, .research-card, .news-row, .honor-row { scroll-margin-top: 7rem; }
.search-hit { animation: search-flash 1.8s ease-out; }
@keyframes search-flash { 0%, 40% { background: var(--paper); } 100% { background: transparent; } }

@media (max-width: 700px) {
  .nav-inner { gap: 1rem; }
  .nav-logo { font-size: 0.85rem; }
  .nav-links { gap: 0.9rem; margin-left: auto; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.05em; }
}
@media (prefers-reduced-motion: reduce) { .search-hit { animation: none; } }

.load-error { font-family: var(--f-ui); font-size: 0.85rem; color: var(--muted); padding: 1rem 0; }

/* ─── MOBILE NAV + SEARCH OVERLAY ─────────────────────── */
.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0.6rem;
  margin: -0.6rem;
}
.menu-btn:hover, .menu-btn:focus-visible { color: var(--fg); }

@media (max-width: 700px) {
  .nav-wrap { padding-block: 0.9rem; }
  .nav-inner { flex-wrap: wrap; row-gap: 0; }
  .nav-logo { margin-right: auto; }
  .menu-btn { display: inline-flex; margin-left: 0; order: 2; }
  .nav-links {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0.8rem 0 0;
    border-top: 1px solid var(--subtle);
  }
  .nav-wrap.menu-open .nav-links { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.95rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--subtle);
  }

  .pub-row, .research-card, .news-row, .honor-row { scroll-margin-top: 5rem; }
  .research-card { padding: 1.5rem 1.25rem 1.75rem; }
  .news-link { justify-self: start; }
}
@media (max-width: 700px) {
  .hero-chips { gap: 0.3rem 1.1rem; }
  .hero-chip + .hero-chip::before { content: none; }
  .hero-portrait { max-width: 260px; }
}

/* ─── PUBLICATIONS PAGE ───────────────────────────────── */
.nav-links a[aria-current="page"] { color: var(--accent); }
.section-more { margin-top: 2rem; }

.page-head { max-width: var(--wrap); margin: 0 auto; padding-block: 4.5rem 2.5rem; text-align: center; }
.page-head h1 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.orn { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 1.1rem 0 1.5rem; }
.orn span { width: 3.5rem; height: 1px; background: var(--muted); opacity: 0.6; }
.orn i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.page-note { font-family: var(--f-ui); font-size: 0.85rem; color: var(--muted); max-width: 52ch; margin: 0 auto; }
.page-note a { color: var(--accent); }

.pub-feature-list { max-width: var(--wrap); margin: 0 auto; padding-bottom: 6rem; }

.pub-feature {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-areas: "ill head" "ill body";
  column-gap: 2.5rem;
  padding-block: 2.75rem;
  border-top: 1px solid var(--subtle);
}
.pub-feature:first-child { border-top: 2px solid var(--fg); }
.pub-ill-wrap { grid-area: ill; width: 150px; height: 150px; }
.pub-ill { width: 100%; height: 100%; display: block; overflow: visible; }
.pub-feature-head { grid-area: head; }
.pub-feature-body { grid-area: body; }

.pub-feature h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--fg);
  text-wrap: balance;
}
.pub-feature h2 a { color: inherit; text-decoration: none; }
.pub-feature h2 a:hover { color: var(--accent); }

.pub-feature-meta {
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 0.7rem;
}
.pub-feature-meta em { color: var(--fg); }

.pub-feature-body p {
  font-family: var(--f-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg);
  margin-top: 1rem;
}
.pub-feature-body .cta-link { display: inline-block; margin-top: 1rem; }

@media (max-width: 700px) {
  .page-head { padding-block: 3rem 1.5rem; }
  .pub-feature {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas: "ill head" "body body";
    column-gap: 1.1rem;
    padding-block: 2rem;
  }
  .pub-ill-wrap { width: 76px; height: 76px; }
  .pub-feature h2 { font-size: 1.3rem; }
  .pub-feature-meta { font-size: 0.85rem; margin-top: 0.5rem; }
}

/* ─── PAGES: ENTRIES, DIRECTORY, MORE PUBS ────────────── */
.page-head + .section, .page-head ~ .entry-list, .entry-index, .pub-more { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.page-head + .section { border-top: 2px solid var(--fg); }
.page-head + .section .bio-cols { margin-top: 0; }

.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--subtle); border: 1px solid var(--subtle); }
.dir-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.6rem 1.5rem 1.75rem; background: var(--bg); text-decoration: none; color: var(--fg); min-height: 8.5rem; }
.dir-card:hover, .dir-card:focus-visible { background: var(--paper); outline: none; }
.dir-name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.dir-name::after { content: ' \2192'; color: var(--accent); font-family: var(--f-ui); font-size: 0.9rem; }
.dir-desc { font-family: var(--f-ui); font-size: 0.82rem; line-height: 1.55; color: var(--muted); }

.entry-index { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-bottom: 2rem; font-family: var(--f-ui); font-size: 0.78rem; }
.entry-index a { color: var(--accent); text-decoration: none; }
.entry-index a:hover { text-decoration: underline; }

.entry-list { padding-bottom: 6rem; border-top: 2px solid var(--fg); }
.entry { padding-block: 2.75rem; border-bottom: 1px solid var(--subtle); scroll-margin-top: 7rem; }
.entry:last-child { border-bottom: 0; }
.entry-tag { font-family: var(--f-ui); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.entry h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 500; line-height: 1.2; text-wrap: balance; color: var(--fg); }
.entry h2 a { color: inherit; text-decoration: none; }
.entry h2 a:hover { color: var(--accent); }
.entry-body { margin-top: 1.25rem; max-width: 68ch; }
.entry-body p, .entry-body li { font-family: var(--f-body); font-size: 1.02rem; line-height: 1.8; color: var(--fg); }
.entry-body p + p, .entry-body ul { margin-top: 1.1rem; }
.entry-body ul { padding-left: 1.2rem; }
.entry-body li + li { margin-top: 0.6rem; }
.entry-note { font-style: italic; color: var(--muted) !important; font-size: 0.95rem !important; }
.entry-related h3 { margin-top: 1.6rem; font-family: var(--f-ui); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.entry-related ul { list-style: none; padding: 0; margin-top: 0.5rem; }
.entry-related li { font-size: 0.95rem; }
.entry-related a { color: var(--accent); text-decoration: none; }
.entry-related a:hover { text-decoration: underline; }

.team-entry { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.75rem; }
.team-mark { width: 72px; height: 72px; border: 1px solid var(--subtle); background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 1.6rem; color: var(--muted); }
.team-entry .entry-tag { margin: 0.5rem 0 0; color: var(--muted); }

.news-entry .cta-link { display: inline-block; margin-top: 0.9rem; }
.news-excerpt { font-family: var(--f-body); font-size: 1rem; line-height: 1.7; color: var(--fg); margin-top: 0.9rem; max-width: 68ch; }
.news-entry h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }

.pub-more { padding-bottom: 6rem; }
.more-title { font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 500; padding-top: 3rem; border-top: 2px solid var(--fg); }
.more-group { margin-top: 2.25rem; }
.more-group h3 { font-family: var(--f-ui); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-bottom: 0.6rem; border-bottom: 1px solid var(--subtle); }
.more-group ul { list-style: none; }
.more-group li { font-family: var(--f-body); font-size: 0.95rem; line-height: 1.65; color: var(--muted); padding-block: 0.9rem; border-bottom: 1px solid var(--subtle); scroll-margin-top: 7rem; }
.more-authors { color: var(--muted); }
.more-group li a { color: var(--fg); text-decoration: none; }
.more-group li a:hover { color: var(--accent); }
.more-group li em { color: var(--muted); }

.page-head + .section .bio-cols { padding-top: 0.5rem; }
#honors { max-width: var(--wrap); margin: 0 auto; }

@media (max-width: 700px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-card { min-height: 0; }
  .team-entry { grid-template-columns: 1fr; gap: 1rem; }
  .team-mark { width: 56px; height: 56px; font-size: 1.3rem; }
  .entry { padding-block: 2rem; }
}

.team-photo { width: 120px; height: 150px; object-fit: cover; object-position: center top; border: 1px solid var(--subtle); background: var(--paper); display: block; }
.team-entry { grid-template-columns: 120px minmax(0, 1fr); }
@media (max-width: 700px) {
  .team-entry { grid-template-columns: 1fr; }
  .team-photo { width: 96px; height: 120px; }
}

.entry.has-ill {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-areas: "ill head" "ill body";
  column-gap: 2.5rem;
}
.entry.has-ill .pub-ill-wrap { grid-area: ill; }
.entry.has-ill .entry-head { grid-area: head; }
.entry.has-ill .entry-body { grid-area: body; }
@media (max-width: 700px) {
  .entry.has-ill {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas: "ill head" "body body";
    column-gap: 1.1rem;
  }
  .entry.has-ill h2 { font-size: 1.3rem; }
}


/* ─── LAB-FIRST HERO + LED BY ─────────────────────────── */
.hero-eyebrow { font-family: var(--f-ui); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.hero-tagline { font-family: var(--f-display); font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-style: italic; line-height: 1.4; color: var(--fg); margin-top: 1.4rem; max-width: 30ch; text-wrap: balance; }
.hero-cta { margin-top: 2.25rem; }
.hero-art-panel { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.hero-art-panel::before { content: none; }
.hero-art { width: 100%; height: 100%; }
.hero-art .pub-ill { width: 100%; height: 100%; }

.lead { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; align-items: center; }
.lead-portrait { width: 100%; }
.lead-portrait img { position: absolute; left: 50%; bottom: 0; width: 128%; max-width: none; height: auto; transform: translateX(-50%); }
.lead-text h2 { font-family: var(--f-display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 500; line-height: 1.15; color: var(--fg); }
.lead-text .section-eyebrow { margin-bottom: 0.9rem; }
.lead-text .hero-roles { margin-top: 1.5rem; padding-top: 1.25rem; }
@media (max-width: 700px) {
  .lead { grid-template-columns: 1fr; gap: 1.75rem; }
  .lead-portrait { max-width: 240px; }
  .hero-art-panel { max-width: 220px; padding: 1rem; order: 0; }
  .hero-tagline { max-width: none; }
}

/* ─── CONTACT FORM ────────────────────────────────────── */
.contact-body { max-width: 62ch; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field label { font-family: var(--f-ui); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--f-body); font-size: 1rem; line-height: 1.5; color: var(--fg);
  background: var(--paper); border: 1px solid var(--subtle); border-radius: 0; padding: 0.75rem 0.85rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-btn {
  align-self: flex-start; font-family: var(--f-ui); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bg); background: var(--fg); border: 0; padding: 0.95rem 1.8rem; cursor: pointer; min-height: 44px;
}
.form-btn:hover, .form-btn:focus-visible { background: var(--accent); outline: none; }
.form-btn:disabled { opacity: 0.55; cursor: default; }
.form-status { font-family: var(--f-ui); font-size: 0.85rem; min-height: 1.3em; }
.form-status.ok { color: var(--fg); }
.form-status.err { color: var(--accent); }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } .form-btn { width: 100%; } .field input, .field textarea { font-size: 16px; } }
.contact-body { max-width: none; }
.contact-body > p { max-width: 62ch; }
.contact-form { width: 100%; }

/* ─── FULL-WIDTH LAYOUT: keep running text readable ───── */
.bio-prose p { max-width: 70ch; }
.pub-feature-body p { max-width: 70ch; }
.pub-feature-meta { max-width: 80ch; }
.more-group li { max-width: 110ch; }
.news-excerpt, .entry-body { max-width: 70ch; }
.page-note { max-width: 60ch; }
.bio-cols { grid-template-columns: minmax(0, 1fr) 260px; }
.pub-feature { grid-template-columns: 170px minmax(0, 1fr); }
.pub-ill-wrap { width: 170px; height: 170px; }
.entry.has-ill { grid-template-columns: 170px minmax(0, 1fr); }
@media (max-width: 700px) {
  .pub-feature { grid-template-columns: 76px minmax(0, 1fr); }
  .pub-ill-wrap { width: 76px; height: 76px; }
  .entry.has-ill { grid-template-columns: 76px minmax(0, 1fr); }
  .bio-cols { grid-template-columns: 1fr; }
}

/* ─── MOBILE MENU: full-screen, easy to read ──────────── */
html.menu-lock { overflow: hidden; }
@media (max-width: 700px) {
  .nav-wrap.menu-open .nav-links {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: var(--nav-bottom, 3.5rem);
    margin: 0;
    padding: 1rem max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 2rem) max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg);
    border-top: 1px solid var(--fg);
    overflow-y: auto;
    z-index: 150;
  }
  .nav-wrap.menu-open .nav-links a {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--fg);
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-wrap.menu-open .nav-links a::after { content: '\2192'; font-family: var(--f-ui); font-size: 1rem; color: var(--muted); }
  .nav-wrap.menu-open .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-wrap.menu-open .nav-links a[aria-current="page"]::after { color: var(--accent); }
  .menu-btn { color: var(--fg); }
}

/* ─── SEARCH FIELD (always visible) ───────────────────── */
.search-field {
  display: flex; align-items: center; gap: 0.5rem;
  width: 13rem; flex-shrink: 0;
  border-bottom: 1px solid var(--muted);
  padding: 0.3rem 0.15rem; color: var(--muted);
  transition: width 0.2s ease, border-color 0.2s ease;
}
.search-field:focus-within { width: 18rem; border-bottom-color: var(--fg); color: var(--fg); }
.search-field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font-family: var(--f-ui); font-size: 0.85rem; color: var(--fg); padding: 0.2rem 0;
}
.search-field input::placeholder { color: var(--muted); opacity: 0.9; }
.search-field input::-webkit-search-cancel-button { display: none; }

.nav-wrap { --nav-pad: max(16px, env(safe-area-inset-left, 0px)); }

@media (max-width: 700px) {
  .nav-inner { flex-wrap: nowrap; gap: 0.75rem; }
  .nav-logo { margin-right: 0; font-size: 0.8rem; white-space: nowrap; }
  .search-field, .search-field:focus-within { width: auto; flex: 1; min-width: 0; margin-left: 0.25rem; }
  .search-field input { font-size: 16px; }
  .menu-btn { order: 3; margin-left: 0; }
  .nav-links { order: 4; }
}
@media (max-width: 700px) {
}

/* ─── SEARCH RESULTS PAGE ─────────────────────────────── */
.sr-wrap { border-top: 2px solid var(--fg); padding-bottom: 6rem; }
.sr-count { font-family: var(--f-ui); font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.sr-list { list-style: none; max-width: 76ch; }
.sr-list li { border-bottom: 1px solid var(--subtle); }
.sr-list a { display: block; padding: 1.4rem 0.25rem; text-decoration: none; color: var(--fg); }
.sr-list a:hover, .sr-list a:focus-visible { background: var(--paper); outline: none; }
.r-meta { display: block; font-family: var(--f-ui); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.r-title { display: block; font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; line-height: 1.25; }
.r-snippet { display: block; margin-top: 0.5rem; font-family: var(--f-body); font-size: 0.95rem; line-height: 1.65; color: var(--muted); }
.sr-list mark { background: none; color: var(--accent); font-weight: 600; }
@media (max-width: 700px) { .sr-list a { padding: 1.1rem 0; } .r-title { font-size: 1.2rem; } }
@media (max-width: 700px) {
  .hero-portrait, .hero-art-panel, .lead-portrait { margin-left: auto; margin-right: auto; }
  .hero-art-panel { max-width: 240px; }
  .lead-portrait { max-width: 240px; }
}
