:root {
  --ink: #16202a;
  --ink-2: #44515e;
  --muted: #6b7783;
  --line: #e3e6ea;
  --bg: #fbfaf7;
  --card: #ffffff;
  --accent: #1f6f78;
  --accent-soft: #e6f1f2;
  --gold: #b8892c;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 .35rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(251,250,247,.92); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--ink); display: grid; place-items: center; }
.brand .short { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 38px; height: 34px; padding: 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }
.brand-mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink-2); padding: 6px 10px; border-radius: 6px; font-size: .92rem; white-space: nowrap; }
.brand { white-space: nowrap; }
.nav a:hover { background: var(--accent-soft); text-decoration: none; }
.nav a.active { color: var(--ink); font-weight: 600; background: var(--accent-soft); }

/* Hero */
.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--gold); font-weight: 600; margin: 0 0 .75rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 1rem; max-width: 18ch; }
.hero .lead-line { margin: 1.25rem 0 0; font-size: .95rem; color: var(--muted); }
.hero .lead-line a { font-weight: 600; }
.hero .tagline { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; margin: 0; }

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: 2.3rem; margin: 0 0 .5rem; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 60ch; }
.page-head .eyebrow { color: var(--gold); }
.page-head .lede { margin: 0; }

/* Home layout */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; }
.prose p { margin: 0 0 1rem; color: var(--ink-2); }
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.theme { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.theme:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 2px 10px rgba(22,32,42,.06); }
.theme .more { display: inline-block; margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--accent); }
.themes.three { grid-template-columns: repeat(3, 1fr); }
.page-head .eyebrow a { color: var(--gold); }
.theme p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.theme h3 { color: var(--accent); }

.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.updates li:last-child { border-bottom: 0; }
.updates time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; padding-top: 2px; }
.updates-more { margin-top: 12px; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font: inherit; font-size: .9rem; color: var(--accent); cursor: pointer; }

.stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 24px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.stat span { color: var(--muted); font-size: .85rem; }

/* Research */
.area-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.area-nav a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.area { scroll-margin-top: 72px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.sub { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 0 0 .75rem; }
.hl { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .95rem; }
.hl li { margin-bottom: .8rem; }
.hl .who { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.hl .who a { color: var(--accent); }
.cites { list-style: none; padding: 0; margin: 0; columns: 1; }
.cites li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.cites li:last-child { border-bottom: 0; }
.cites a { color: var(--ink); font-weight: 600; }
.cites .muted { color: var(--muted); }
.area .split + .sub { margin-top: 2rem; }

.note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; color: var(--ink-2); font-size: .92rem; margin: 0 0 16px; max-width: 75ch; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.person { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.person.lead { grid-column: 1 / -1; padding: 24px; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; object-fit: cover; }
.person.lead .avatar { width: 112px; height: 112px; font-size: 2rem; }
.person .role { color: var(--gold); font-size: .85rem; font-weight: 600; margin: 0 0 .4rem; }
.person p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.person .links { margin-top: .5rem; display: flex; gap: 12px; font-size: .9rem; }
.group-title { font-size: 1.25rem; margin: 40px 0 16px; }
.list-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.list-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.list-table td:first-child { font-weight: 600; width: 32%; }
.list-table .muted { color: var(--muted); }
.collab { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .9rem; }
.chip span { color: var(--muted); }

/* Publications */
.pub-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 8px; }
.pub-tools input[type=search] { flex: 1 1 260px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); }
.pub-tools select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: none; padding: 8px 12px; font: inherit; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--ink); color: #fff; }
.pub-count { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.year-h { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); margin: 32px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pubs { list-style: none; padding: 0; margin: 0; }
.pub { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.pub:last-child { border-bottom: 0; }
.pub-title { font-weight: 600; color: var(--ink); }
.pub-authors { color: var(--ink-2); font-size: .95rem; }
.pub-authors .me { color: var(--ink); font-weight: 600; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: .78rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.badge.journal { background: #f3ecdc; color: #8a6418; }
.badge.preprint, .badge.edited { background: #eef0f2; color: var(--ink-2); }
.pub-meta a { font-weight: 600; }
.bib-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; font-weight: 600; }

/* Join / footer */
.callout { background: var(--ink); color: #e9eef2; border-radius: 12px; padding: 28px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.callout h2 { color: #fff; margin: 0 0 .4rem; font-size: 1.35rem; }
.callout p { margin: 0; max-width: 60ch; color: #c7d0d8; }
.btn { display: inline-block; background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--accent-soft); }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .88rem; margin-top: 24px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 12px; box-shadow: 0 8px 20px rgba(22,32,42,.06); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
}
@media (max-width: 820px) {
  .brand .short { display: inline; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .themes, .themes.three { grid-template-columns: 1fr; }
  .person.lead { flex-direction: column; }
  .brand .full { display: none; }
}
