:root {
  --bg: #fafaf7;
  --ink: #1f1f1c;
  --ink-2: #4d4d48;
  --muted: #8a8983;
  --line: #e7e6e0;
  --accent: #2f6b45;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121211;
  --ink: #e8e7e2;
  --ink-2: #b4b3ac;
  --muted: #7e7d77;
  --line: #262624;
  --accent: #84b592;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211;
    --ink: #e8e7e2;
    --ink-2: #b4b3ac;
    --muted: #7e7d77;
    --line: #262624;
    --accent: #84b592;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 15px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 600px; margin: 0 auto; padding: 56px 16px 64px; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
strong { color: var(--ink); font-weight: 500; }
p { margin: 0 0 14px; }
::selection { background: var(--accent); color: var(--bg); }

/* header */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.top .name { color: var(--ink); font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.top .name::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 9px; vertical-align: 1px; }
.top nav { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.theme { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.theme:hover { color: var(--ink); }

/* sections */
section { margin-top: 44px; }
h1 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
h2 { font-size: 13px; font-weight: 500; color: var(--accent); margin: 0 0 14px; letter-spacing: 0.01em; }
.muted { color: var(--muted); }

ul.dash { list-style: none; padding: 0; margin: 0 0 14px; }
ul.dash li { position: relative; padding-left: 16px; margin-bottom: 4px; }
ul.dash li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .k { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* entries */
.entry { margin-bottom: 26px; }
.entry:last-child { margin-bottom: 0; }
.entry .head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.entry .head b { color: var(--ink); font-weight: 600; }
.entry .head .when { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry .role { color: var(--muted); margin: 0 0 6px; }

/* key/value lines */
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 4px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

footer { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }

@media (max-width: 480px) {
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .entry .head { flex-direction: column; gap: 0; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
}

/* story */
.story { font-size: 16px; line-height: 1.75; }
.story h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 44px 0 12px; letter-spacing: 0; }
.story h2 .n { color: var(--accent); font-weight: 500; margin-right: 8px; font-variant-numeric: tabular-nums; }
.story ul { padding-left: 18px; margin: 0 0 14px; }
.story li { margin-bottom: 8px; }
.story li::marker { color: var(--muted); }
.chapters { color: var(--muted); }

/* press */
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-bottom: 22px; }
.switch button { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.bio { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 2px; margin-bottom: 14px; }
.bio .bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.copy { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.copy:hover { color: var(--ink); text-decoration-color: var(--accent); }
.p1 { display: none; }
body.first .p1 { display: block; }
body.first .p3 { display: none; }

/* home */
.home .page { max-width: 680px; }
.home .top { border-bottom: 0; margin-bottom: 28px; padding-bottom: 0; }
.hero { margin-top: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; margin: 0 0 16px; }
.hero .smile { color: var(--accent); letter-spacing: 0; }
.hero .lede { font-size: 17px; color: var(--ink-2); margin: 0; max-width: 34em; }
.home h2 { font-size: 15px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; border-left: 3px solid var(--accent); padding-left: 12px; margin: 0 0 20px; }
.home section { margin-top: 52px; }
.home .hero { margin-top: 0; }
.home .lore { margin-top: 36px; }
.home .lore .timeline { border-left: 1px solid var(--line); margin-left: 1px; }
.home .lore .timeline li { position: relative; display: block; border-top: 0; padding: 0 0 20px 22px; }
.home .lore .timeline li:last-child { padding-bottom: 0; }
.home .lore .timeline li::before { content: ""; position: absolute; left: -4px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.home .lore .timeline .k { display: block; color: var(--accent); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
