@font-face {
  font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk.woff") format("woff");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "DM Mono"; src: url("fonts/DMMono.woff") format("woff");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Newsreader"; src: url("fonts/Newsreader.woff") format("woff");
  font-style: normal; font-weight: 700; font-display: swap;
}

/* tokens:start — Direction C · Full stop */
:root {
  --paper: #fbfbf8;
  --wash: #f1f1ec;
  --ink: #161616;
  --muted: #62625e;
  --line: #d6d6ce;
  --control: #85857f;
  --accent: #2b4a9c;
  --syntax-sentence: #31583f; --syntax-keyword: #613f86; --syntax-string: #854715;
  --syntax-number: #76521b; --syntax-comment: #62625e; --syntax-label: #2b4a9c;
  --syntax-standing: #31583f; --syntax-refusal: #854052;
  --tombstone: .15em;
  --f-prose: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-mark: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121214; --wash: #1c1c20; --ink: #ecebe6;
    --muted: #aaa9a3; --line: #3a3a40; --control: #797980; --accent: #93aaf0;
    --syntax-sentence: #a8c9ad; --syntax-keyword: #c0aff0; --syntax-string: #dfb68c;
    --syntax-number: #e2c48b; --syntax-comment: #aaa9a3; --syntax-label: #93aaf0;
    --syntax-standing: #a8c9ad; --syntax-refusal: #efa7b9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121214; --wash: #1c1c20; --ink: #ecebe6;
  --muted: #aaa9a3; --line: #3a3a40; --control: #797980; --accent: #93aaf0;
  --syntax-sentence: #a8c9ad; --syntax-keyword: #c0aff0; --syntax-string: #dfb68c;
  --syntax-number: #e2c48b; --syntax-comment: #aaa9a3; --syntax-label: #93aaf0;
  --syntax-standing: #a8c9ad; --syntax-refusal: #efa7b9;
  color-scheme: dark;
}
/* tokens:end */

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--f-prose); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip { position: absolute; top: -100px; left: 16px; padding: 8px 16px; background: var(--paper); z-index: 2; }
.skip:focus { top: 16px; }
h1, h2, h3, p, pre, ol { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
main, section, div { min-width: 0; }
.shell { max-width: 1408px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 64px); }
.topbar { min-height: 112px; display: flex; justify-content: space-between; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.wordmark { font: 700 43px/1 var(--f-mark); letter-spacing: -.025em; text-decoration: none; color: var(--ink); white-space: nowrap; padding-block: 12px; }
.wordmark .stop { display: inline-block; width: var(--tombstone); height: calc(var(--tombstone) * 1.4); margin-left: .055em; background: currentColor; vertical-align: baseline; }
.topbar nav { display: flex; gap: 32px; font-size: 14px; }
.topbar nav a { display: inline-block; padding-block: 12px; text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 64px 72px; }
h1 { max-width: 17ch; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.06; letter-spacing: -.045em; }
.period { color: var(--accent); }
.intro { max-width: 42ch; margin-top: 28px; font-size: 18px; line-height: 1.6; }
.primary-action { display: inline-flex; gap: 32px; align-items: center; margin-top: 28px; padding: 12px 20px; border: 1px solid var(--accent); text-decoration: none; }
.primary-action:hover { text-decoration: underline; }
.access-note, .data-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.hero-mark { display: block; width: 100%; height: auto; fill: none; stroke: var(--ink); stroke-width: 2; }
.extended-reading, .receipt-tick { stroke: var(--accent); stroke-width: 3; }
.diagram-label { fill: var(--ink); stroke: none; font: 20px/1 var(--f-mono); }
.eyebrow { font: 12px/1.6 var(--f-mono); color: var(--muted); }
.section-heading { padding-block: 24px 32px; border-top: 1px solid var(--ink); }
h2 { margin-top: 12px; font-size: 32px; line-height: 1.2; letter-spacing: -.03em; }
.table-and-answers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 40px; align-items: start; }
.panel-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; font: 12px/1.6 var(--f-mono); }
.panel-label h3 { font: inherit; }
.panel-label > span { color: var(--muted); }
.data { padding-top: 24px; border-top: 1px solid var(--line); }
table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 20px; font: 13px/1.7 var(--f-mono); }
th, td { padding: 12px 4px; text-align: center; font-weight: 400; border-bottom: 1px solid var(--line); }
th:first-child { width: 19%; padding-left: 0; text-align: left; }
thead { color: var(--muted); }
input[type="checkbox"] { appearance: none; position: relative; width: 20px; height: 20px; margin: 0; border: 1px solid var(--control); border-radius: 0; background: var(--paper); cursor: pointer; }
input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 4px; top: 4px; width: 9px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.fact { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 52px; cursor: pointer; font: 12px/1.6 var(--f-prose); }
.unknown { color: var(--muted); font: 12px/1.6 var(--f-prose); }
input:disabled { opacity: 1; cursor: default; }
.result { padding: 24px 28px 12px; background: var(--wash); border-left: 3px solid var(--accent); }
.result + .result { margin-top: 20px; }
.standing { color: var(--muted); }
.standing strong { margin-left: 8px; color: var(--ink); font-weight: 400; }
.result-text { max-width: 65ch; margin-top: 20px; font-size: 18px; line-height: 1.65; }
.receipt { margin-block: 16px; font: 12px/1.8 var(--f-mono); overflow-wrap: anywhere; }
details { border-top: 1px solid var(--line); margin-top: 24px; }
summary { width: fit-content; padding-block: 14px; cursor: pointer; font: 12px/1.8 var(--f-mono); color: var(--accent); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; padding-block: 20px; font: 12px/1.8 var(--f-mono); }
code { font: inherit; }
.comparison { margin-block: 64px; }
.four-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.comparison-code { white-space: pre; overflow-wrap: normal; overflow-x: auto; max-width: 100%; }
.four-ways > section { border-top: 1px solid var(--line); padding-top: 20px; }
.four-ways .panel-label { display: block; }
.four-ways .panel-label h3 { font: 18px/1.6 var(--f-prose); margin-bottom: 4px; }
.four-ways .lause-way { border-top: 2px solid var(--accent); }
.sentences { padding: 0; margin-top: 20px; list-style: none; counter-reset: sentence; }
.sentences li { counter-increment: sentence; padding-left: 28px; position: relative; font-size: 17px; line-height: 1.6; }
.sentences li + li { margin-top: 20px; }
.sentences li::before { content: counter(sentence); position: absolute; left: 0; top: .35em; font: 12px/1.6 var(--f-mono); color: var(--muted); }
.access { border-top: 1px solid var(--ink); padding-block: 48px 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.access h2 { font-size: clamp(36px, 4vw, 48px); margin-top: 20px; }
.access-copy > p { max-width: 34ch; font-size: 20px; }
.invite { display: block; margin-top: 32px; padding-block: 16px; border-top: 1px solid var(--control); text-decoration: none; font-size: 20px; }
.invite > span:first-child { float: right; }
.invite:hover { text-decoration: underline; }
.address { display: block; margin-top: 8px; font: 13px/1.8 var(--f-mono); }
footer { border-top: 1px solid var(--line); padding-block: 24px 32px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font: 12px/1.6 var(--f-mono); }
footer a { padding-block: 10px; margin-top: -10px; }
@media (max-width: 1000px) {
  .hero { gap: 24px; }
  .table-and-answers { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
}
@media (max-width: 600px) {
  .shell { padding-inline: 16px; }
  .topbar { min-height: 88px; gap: 16px; }
  .wordmark { font-size: 36px; }
  .topbar nav { gap: 16px; font-size: 12px; }
  .topbar nav a:first-child { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px; }
  h1 { font-size: clamp(40px, 10vw, 56px); }
  .intro { font-size: 16px; margin-top: 24px; }
  .hero-mark { width: 100%; max-width: 360px; justify-self: center; margin-top: 12px; }
  .section-heading { padding-block: 20px 24px; }
  h2 { font-size: 28px; }
  .table-and-answers, .four-ways, .access { grid-template-columns: minmax(0, 1fr); }
  .result { padding: 20px 16px 8px; }
  .result-text { font-size: 17px; }
  .comparison { margin-block: 48px; }
  .four-ways { gap: 24px; }
  .access { padding-block: 32px 40px; gap: 28px; }
  .access-copy > p { font-size: 18px; }
  footer { flex-wrap: wrap; }
}
