/* ===== Tokens ===== */
:root {
  --ink: #14213d;          /* deep ink blue — primary text & headings */
  --ink-soft: #3a4256;     /* secondary text */
  --paper: #faf9f6;        /* warm paper background */
  --paper-card: #ffffff;
  --rule: #e2ddd2;         /* hairline dividers */
  --accent: #9a3b2e;       /* muted oxblood — links & marks */
  --accent-soft: #c06a5d;
  --max: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Layout ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Header / Nav ===== */
header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
nav.tabs { display: flex; gap: 22px; flex-wrap: wrap; }
nav.tabs a {
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
}
nav.tabs a:hover { color: var(--accent); text-decoration: none; }
nav.tabs a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

/* ===== Main ===== */
main { padding: 56px 0 72px; }

.page-title {
  font-size: 2rem;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 28px;
}

/* ===== Home hero ===== */
.hero { display: flex; gap: 36px; align-items: flex-start; flex-wrap: wrap; }
.hero-photo {
  width: 240px; height: auto; flex: none;
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.hero-body { flex: 1; min-width: 260px; }
.hero-body h1 { font-size: 2.2rem; margin: 0 0 4px; letter-spacing: -0.02em; }
.hero-role { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 16px; }

.links-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.links-row a {
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--ink-soft);
  background: var(--paper-card);
  transition: border-color .15s, color .15s;
}
.links-row a:hover { border-color: var(--accent-soft); color: var(--accent); text-decoration: none; }

section.block { margin-top: 44px; }
section.block h2 {
  font-size: 1.18rem;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
section.block p { margin: 0 0 14px; color: var(--ink-soft); }
section.block p strong, section.block p a { color: var(--ink); }
section.block p a { color: var(--accent); }

ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean.interests li {
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}
ul.clean.interests li:last-child { border-bottom: none; }
ul.clean.interests li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent-soft);
}

/* ===== Publications ===== */
ol.pubs { list-style: none; padding: 0; margin: 0; counter-reset: pub; }
ol.pubs li {
  position: relative;
  padding: 20px 0 20px 46px;
  border-bottom: 1px solid var(--rule);
  counter-increment: pub;
}
ol.pubs li:last-child { border-bottom: none; }
ol.pubs li::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute; left: 0; top: 22px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.82rem;
  color: var(--accent-soft);
  font-weight: 600;
}
.pub-title { color: var(--ink); font-weight: 500; }
.pub-meta { color: var(--ink-soft); font-style: italic; }
.pub-venue { color: var(--ink); font-weight: 500; font-style: normal; }
.pub-tags { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.pub-tags a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2px 9px;
}
.pub-tags a:hover { border-color: var(--accent-soft); text-decoration: none; }

/* ===== CV / Teaching lists ===== */
.entry { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.entry:last-child { border-bottom: none; }
.entry .primary { color: var(--ink); font-weight: 500; }
.entry .secondary { color: var(--ink-soft); font-size: 0.95rem; }

.subhead {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 26px 0 6px;
}

/* ===== Footer ===== */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ===== Responsive ===== */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-photo { width: 180px; }
  .hero-body h1 { font-size: 1.8rem; }
  .page-title { font-size: 1.7rem; }
  main { padding: 36px 0 52px; }
}

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