:root {
  --paper: #f3efe6;
  --paper-2: #faf7f0;
  --ink: #1a1612;
  --muted: #5c564c;
  --rule: #d4cdc0;
  --navy: #1e3a4c;
  --navy-2: #16303f;
  --gold: #9a7b32;
  --gold-soft: rgba(154, 123, 50, 0.18);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 42rem;
  --wide: 52rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--navy);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.wordmark {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--navy);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.84rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.cv-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-2);
  background: var(--navy);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--navy);
}

.cv-link:hover {
  background: var(--navy-2);
  color: var(--paper-2);
}

.hero {
  padding: 3.4rem 0 2.6rem;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 4.5rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 3.7rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.role {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: 1.18rem;
  color: var(--muted);
}

.meta-row {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.meta-row a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.meta-row a:hover {
  border-bottom-color: var(--gold);
}

section {
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 4.5rem;
}

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede,
.about p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.about p:last-child {
  margin-bottom: 0;
}

.research-list {
  display: grid;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-list li {
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  padding: 1.05rem 1.15rem 1.1rem;
}

.research-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 650;
}

.research-list p {
  margin: 0;
  color: var(--muted);
}

.pub-list,
.talk-list,
.award-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0.85rem 1.1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--rule);
}

.pub:last-child,
.talk-list li:last-child,
.award-list li:last-child {
  padding-bottom: 0;
}

.year {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.22rem;
}

.cite {
  margin: 0;
}

.cite cite {
  font-style: italic;
}

.venue {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}

.talk-list li,
.award-list li {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0.85rem 1.1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}

.contact-block {
  display: grid;
  gap: 0.45rem;
  font-size: 1.1rem;
}

.contact-block a {
  text-decoration: none;
}

.footnote {
  margin: 1.1rem 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer {
  padding: 1.6rem 0 2.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--wide), calc(100% - 1.6rem));
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 0.65rem 0.95rem;
    padding-top: 0.15rem;
  }

  .cv-link {
    margin-left: auto;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .pub,
  .talk-list li,
  .award-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

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

@media print {
  .site-header,
  .cv-link,
  .skip {
    display: none;
  }

  body {
    background: white;
    font-size: 11pt;
  }

  section,
  .hero {
    border: 0;
    padding: 0.8rem 0;
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #444;
  }
}
