:root {
  --bg: #f8f5f0;
  --surface: #ffffff;
  --text: #1f2421;
  --muted: #6b6f6a;
  --rule: #e2ddd4;
  --accent: #1f5c4a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141715;
    --surface: #1b1f1d;
    --text: #ece8e1;
    --muted: #9a9e98;
    --rule: #2c312e;
    --accent: #7fc0a8;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}

/* Hero */
.hero { text-align: center; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }

.headshot {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  box-shadow: 0 0 0 1px var(--rule), 0 0 0 6px var(--bg), 0 0 0 7px var(--accent);
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 60px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.role { margin: 0; font-size: 17px; }
.place { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.links { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.links a:hover, .links a:focus-visible { background: var(--accent); color: var(--bg); }

/* Sections */
section { padding: 48px 0 8px; }

h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}

.bio p { font-family: var(--serif); font-size: 22px; line-height: 1.5; margin: 0 0 18px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.timeline li:first-child { border-top: 0; padding-top: 0; }

.when { color: var(--muted); font-size: 14px; padding-top: 3px; font-variant-numeric: tabular-nums; }

h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.25; margin: 0; }
.what p { margin: 6px 0 0; }
.what .org { margin-top: 2px; font-weight: 500; }
.what .where { margin-top: 0; color: var(--muted); font-size: 14px; }
.what .where + p, .what .org + p { margin-top: 10px; }

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 560px) {
  .page { padding: 48px 16px 32px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .bio p { font-size: 20px; }
}
