:root {
  color-scheme: dark;
  --ink: #f1f0e8;
  --muted: #aaa99f;
  --line: #31312d;
  --paper: #111210;
  --panel: #181916;
  --signal: #b8e36e;
}

* { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }

.masthead {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 5vw, 5rem);
}

.brand { font-size: .94rem; font-weight: 760; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.brand span { color: var(--muted); font-weight: 450; }
nav { display: flex; gap: 1.5rem; }
nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--signal); }

main { margin: 0 auto; max-width: 1280px; padding: clamp(4rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5rem); }
.hero { max-width: 900px; }
.eyebrow { color: var(--signal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 8vw, 7.4rem); font-weight: 520; letter-spacing: -.065em; line-height: .92; margin: 1.2rem 0 2rem; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.6; max-width: 680px; }

.grid { border-top: 1px solid var(--line); display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); margin-top: clamp(4rem, 10vw, 8rem); }
.grid article { border-right: 1px solid var(--line); padding: 2rem 2rem 2rem 0; }
.grid article + article { padding-left: 2rem; }
.grid article:last-child { border-right: 0; }
.number { color: var(--signal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
h2 { font-size: 1.35rem; margin: 2.8rem 0 .8rem; }
.grid article p:last-child, .article p { color: var(--muted); line-height: 1.7; }

.article { max-width: 820px; }
.article h1, .missing h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.article p { font-size: 1.08rem; max-width: 680px; }
.back { color: var(--signal); display: inline-block; margin-top: 2rem; text-underline-offset: .25em; }
.missing { max-width: 900px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; padding: 1.5rem clamp(1.25rem, 5vw, 5rem); }

@media (max-width: 760px) {
  .brand span { display: none; }
  .grid { grid-template-columns: 1fr; }
  .grid article, .grid article + article { border-bottom: 1px solid var(--line); border-right: 0; padding: 1.5rem 0; }
  h2 { margin-top: 1rem; }
}
