:root {
  --bg: #f6f3ee;
  --bg-elevated: #fffdf9;
  --ink: #1c1f26;
  --ink-muted: #4a5160;
  --accent: #1a5f4a;
  --accent-soft: #d8ebe4;
  --border: #ddd6cb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --page: min(94vw, 72rem);
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, #ebe4d8 0%, transparent 50%);
  min-height: 100vh;
}

.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  letter-spacing: 0.02em;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
  border-radius: 4px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

/* Main layout */

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.section {
  padding: 3.5rem 0 0;
  width: 100%;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* Hero */

.hero {
  padding: 1rem 0 2rem;
  max-width: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero-content {
  grid-column: 1;
  min-width: 0;
}

.hero-photo {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: 11.5rem;
  height: 11.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: 0 12px 32px rgb(28 31 38 / 10%);
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #134a3a;
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
  background: var(--bg-elevated);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem 2rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-meta dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0 0 0.2rem;
}

.hero-meta dd {
  margin: 0;
  font-weight: 500;
}

/* Prose */

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

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

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 2rem;
  border-left: 2px solid var(--accent-soft);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-bottom: 0.25rem;
}

.timeline-head h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.timeline-head time {
  font-size: 0.88rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.timeline-role {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline-detail {
  margin: 0;
  color: var(--ink-muted);
}

.bullet-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
}

.bullet-list li {
  margin-bottom: 0.35rem;
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

/* Publications */

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-card {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pub-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.pub-venue {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.pub-authors {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* Awards */

.award-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.award-grid li {
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.award-grid h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.award-grid p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Contact */

.section-contact {
  max-width: none;
}

.contact-lead {
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.contact-list a {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Footer */

.site-footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.site-footer p {
  margin: 0;
}

/* Mobile nav */

@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem 1.5rem;
    align-items: start;
  }

  .hero-photo {
    width: 7.5rem;
    height: 7.5rem;
    justify-self: end;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgb(28 31 38 / 6%);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav {
    position: relative;
  }
}

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