:root {
  --bg: #f6f1e9;
  --surface: #fffaf3;
  --ink: #23201c;
  --muted: #6f675d;
  --line: #e4dbcd;
  --accent: #b5562f;
  --accent-soft: #f1dfd3;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1916;
    --surface: #24211d;
    --ink: #eee7dc;
    --muted: #a69c8f;
    --line: #38332c;
    --accent: #e08a5f;
    --accent-soft: #3b2a21;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; padding: 6px 12px; background: var(--surface); }
.skip:focus { left: 16px; }

.site-header, main, .site-footer { width: min(720px, 100% - 32px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1.5px solid var(--ink); border-radius: 50%;
  color: var(--ink); font: 600 14px/1 var(--serif); letter-spacing: .04em; text-decoration: none;
}
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
nav a:hover { color: var(--ink); }

.hero { padding: clamp(40px, 9vw, 96px) 0 clamp(36px, 6vw, 64px); }
.kicker { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
h1 { margin: 0; font-size: clamp(44px, 9vw, 72px); line-height: 1.02; letter-spacing: -.02em; }
.lede { max-width: 34em; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 2.4vw, 21px); line-height: 1.55; }

.facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 34px 0 0; }
.facts dt { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.events { margin: 0; padding: 0; list-style: none; }
.events li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.events li:last-child { border-bottom: 0; }
.badge { display: inline-block; margin: 0 0 5px; padding: 1px 9px; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 600; }
.events time { color: var(--accent); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.section h3.cv-group { margin-top: 26px; }
.section { padding: 40px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -.01em; }
.section > p { max-width: 36em; margin: 0 0 14px; }

.feature { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.feature h3 { margin: 0; font-size: 24px; }
.feature-lede { margin: 10px 0 22px; font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin-bottom: 20px; }
.feature h4 { margin: 0 0 8px; color: var(--muted); font: 600 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0 0 9px 20px; font-size: 15px; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.project-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.status { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 13px; }

.cv-group { margin: 0 0 10px; color: var(--muted); font: 600 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.when { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.what { margin: 0; font-weight: 600; }
.where { margin: 0; color: var(--muted); }
.detail { margin: 6px 0 0; font-size: 15px; }
.timeline + .cv-group { margin-top: 28px; }

.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  nav { gap: 16px; }
  .timeline li, .events li { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
