:root {
  color-scheme: dark;
  --background: #111813;
  --panel: #171f19;
  --line: #344238;
  --text: #e8eee4;
  --muted: #9fae9f;
  --green: #a6da8b;
  --bright: #d0f6ad;
  --gold: #e6c982;
  --display: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --body: Inter, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 5%, rgba(166,218,139,.09), transparent 30rem),
    var(--background);
  color: var(--text);
  font: 15px/1.72 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.page-shell { width: min(1080px, calc(100% - 44px)); margin: 0 auto; }
.site-head, .site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 700 11px/1.5 var(--display);
  letter-spacing: .04em;
}
.brand { color: var(--text); text-decoration: none; letter-spacing: .1em; white-space: nowrap; }
.brand-mark { color: var(--gold); font-size: 17px; }
.brand-slash { color: var(--green); }
.site-head nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.site-head nav a, .site-foot a { text-decoration: none; }
.site-head nav a:hover, .site-foot a:hover { color: var(--bright); }
.intro { max-width: 900px; padding: clamp(58px, 11vw, 118px) 0 60px; }
.eyebrow, .entry-meta { margin: 0 0 14px; color: var(--green); font: 10px/1.6 var(--mono); letter-spacing: .12em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 26px; font: 850 clamp(48px, 9vw, 96px)/.88 var(--display); letter-spacing: -.065em; text-wrap: balance; }
h1 span { color: var(--green); }
.dek { max-width: 780px; margin-bottom: 24px; color: #e1e8dc; font: 520 clamp(20px, 3vw, 28px)/1.34 var(--display); letter-spacing: -.025em; }
.intro-note { max-width: 620px; margin-bottom: 0; color: var(--muted); font: 12px/1.8 var(--mono); }
.status-line { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-line span { padding: 17px 14px; border-right: 1px solid var(--line); color: var(--muted); font: 10px/1.5 var(--mono); text-transform: uppercase; }
.status-line span:first-child { padding-left: 0; }
.status-line span:last-child { border: 0; }
.status-line b { display: block; margin-bottom: 6px; color: var(--gold); font-size: 18px; }
.log { position: relative; padding: 18px 0 4px; counter-reset: milestone; }
.entry { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 52px 0 56px; border-bottom: 1px solid var(--line); }
.entry::before { content: ""; position: absolute; left: 46px; top: 82px; bottom: -1px; width: 1px; background: linear-gradient(var(--line), transparent); }
.entry:last-child::before { display: none; }
.entry-index { position: relative; z-index: 1; display: grid; place-items: center; align-self: start; width: 48px; height: 48px; border: 1px solid #526756; border-radius: 50%; background: var(--background); color: var(--gold); font: 700 12px/1 var(--display); }
.entry-body { max-width: 760px; }
.entry-meta { margin-bottom: 9px; font-size: 9px; }
.entry h2, .next-note h2 { margin-bottom: 14px; color: var(--text); font: 760 clamp(25px, 3.8vw, 38px)/1.08 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.entry-body p:not(.entry-meta), .next-note p:not(.eyebrow) { max-width: 720px; margin-bottom: 14px; color: #c3cec1; font-size: 16px; line-height: 1.72; }
.entry-details { margin: 10px 0; color: #c3cec1; }
.entry-details summary { width: fit-content; color: var(--gold); cursor: pointer; font: 700 11px/1.6 var(--display); letter-spacing: .035em; }
.entry-details p { white-space: pre-line; margin: 8px 0; }
.commit-link { display: inline-block; margin: 5px 14px 0 0; color: var(--bright); font: 10px/1.5 var(--mono); text-decoration: none; border-bottom: 1px solid #506b51; }
.commit-link:hover { color: #f1ffdc; border-color: var(--bright); }
.commit-link.secondary { color: var(--muted); }
.next-note { margin: 46px 0 70px; padding: 25px 28px 20px; border-left: 2px solid var(--gold); background: var(--panel); }
.next-note .eyebrow { margin-bottom: 9px; color: var(--gold); }
.next-note h2 { font-size: clamp(23px, 3.5vw, 32px); }
.next-note p:last-child { margin-bottom: 0; }
.ecosystem-note { margin: 46px 0 70px; padding: 25px 28px 22px; border:1px solid var(--line); background:#141c16; }
.ecosystem-note h2 { margin-bottom:13px; color:var(--text); font:760 clamp(23px,3.5vw,32px)/1.1 var(--display); letter-spacing:-.04em; }
.ecosystem-note>p:not(.eyebrow) { max-width:720px; color:#c3cec1; }
.ecosystem-note__links { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:18px; font:10px/1.5 var(--mono); }
.ecosystem-note__links a { color:var(--bright); border-bottom:1px solid #506b51; text-decoration:none; }
.ecosystem-note__links a:hover { color:#f1ffdc; border-color:var(--bright); }
.site-foot { margin-top: 0; border-top: 1px solid var(--line); border-bottom: 0; }
@media (max-width: 700px) {
  .page-shell { width: min(100% - 30px, 620px); }
  .site-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .site-head nav { justify-content: flex-start; gap: 14px; }
  .status-line { grid-template-columns: repeat(2, 1fr); }
  .status-line span:nth-child(2) { border-right: 0; }
  .status-line span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .status-line span:nth-child(3) { padding-left: 0; }
  h1 { font-size: clamp(42px, 15vw, 68px); }
  .entry { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 38px 0 42px; }
  .entry::before { left: 19px; top: 67px; }
  .entry-index { width: 40px; height: 40px; font-size: 11px; }
  .entry-body p:not(.entry-meta), .next-note p:not(.eyebrow) { font-size: 14px; }
  .next-note { margin: 35px 0 48px; padding: 20px 18px; }
  .ecosystem-note { margin:35px 0 48px; padding:20px 18px; }
  .site-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
