/* Omegi. The design direction of 2026-10-17 (the "Omegi site: imprint and lab" canvas): paper, ink and one oxblood
   accent for the imprint; the same type with mono and status colour for the Lab. Spectral for reading, IBM Plex Sans
   for interface, IBM Plex Mono for ids, numbers and labels. Every colour is a token, defined for light and dark. */

:root {
  --bg: #F4F0E6; --surface: #FBF8F1; --lab: #ECE8DE; --ink: #1B1A17; --ink2: #45413A; --muted: #6B655A;
  --rule: #D9D2C3; --accent: #8A2E2A; --on-accent: #FFFFFF; --hl: #EED9C4; --ins: #F1DEDA;
  --reg: #2F5DA8; --run: #9A5600; --pass: #2E7D4F; --fail: #B3261E; --null: #5E5A70; --inc: #6E601C; --plan: #6B655A;
  --t1: #2F5DA8; --t2: #9A5600; --t3: #6B4FA0; --t4: #2E7D4F; --t5: #B3446C;
  --cover: #3B1F1C; --cover-ink: #F4E9DA; --cover-sub: #D9C3AE;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: 1200px; --gutter: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #14130F; --surface: #1C1B16; --lab: #1A1914; --ink: #EDE8DC; --ink2: #CFC8B9; --muted: #A39C8D;
  --rule: #36332B; --accent: #E39185; --on-accent: #14130F; --hl: #4A3420; --ins: #3A2522;
  --reg: #93B2F0; --run: #F0B460; --pass: #86CFA0; --fail: #F29387; --null: #BDB6D3; --inc: #D9C774; --plan: #A39C8D;
  --t1: #93B2F0; --t2: #F0B460; --t3: #BBA6EC; --t4: #86CFA0; --t5: #EE9BBB;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #14130F; --surface: #1C1B16; --lab: #1A1914; --ink: #EDE8DC; --ink2: #CFC8B9; --muted: #A39C8D;
  --rule: #36332B; --accent: #E39185; --on-accent: #14130F; --hl: #4A3420; --ins: #3A2522;
  --reg: #93B2F0; --run: #F0B460; --pass: #86CFA0; --fail: #F29387; --null: #BDB6D3; --inc: #D9C774; --plan: #A39C8D;
  --t1: #93B2F0; --t2: #F0B460; --t3: #BBA6EC; --t4: #86CFA0; --t5: #EE9BBB;
  color-scheme: dark; }

/* Base: undo the framework underneath, then set our own. */
html, body { background: var(--bg) !important; color: var(--ink) !important; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body #quarto-content, body #quarto-content > main, body .page-columns, body main.content {
  display: block !important; max-width: none !important; margin: 0 !important; padding: 0 !important; grid-template-columns: none !important; }
#quarto-header, #quarto-margin-sidebar, #quarto-sidebar, .quarto-title-block, header#title-block-header, nav#TOC, .nav-footer, footer.footer { display: none !important; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3 { border-bottom: 0 !important; padding-bottom: 0; font-family: var(--serif); font-weight: 500; text-wrap: balance; color: var(--ink); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--hl); }
img { max-width: 100%; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); box-sizing: border-box; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.rule-top { border-top: 1px solid var(--rule); }
.ink-top { border-top: 1px solid var(--ink); }
.btn { display: inline-flex; align-items: center; min-height: 48px; box-sizing: border-box; padding: 0 24px; border-radius: 4px; font: 500 16px var(--sans); text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }

/* Header */
.om-header { background: var(--bg); border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.om-header .bar { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; padding-block: 12px; }
.om-mark { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); padding: 4px 0; }
.om-mark:hover { color: var(--ink); }
.om-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: 15px; }
.om-nav a { text-decoration: none; padding: 12px 0; color: var(--ink); }
.om-nav a[aria-current="page"] { color: var(--accent); }
.om-nav .sep { width: 1px; height: 20px; background: var(--rule); }
.om-nav .lab-link { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
body.om-lab .om-nav .lab-link { color: var(--accent); }
.theme-toggle { font: 13px var(--mono); color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 32px; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.om-subnav { display: none; border-top: 1px solid var(--rule); background: var(--lab); }
body.om-lab .om-subnav { display: block; }
.om-subnav nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-family: var(--mono); font-size: 13px; }
.om-subnav a { text-decoration: none; padding: 13px 0; color: var(--muted); border-bottom: 2px solid transparent; }
.om-subnav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

/* Footer */
.om-footer { border-top: 1px solid var(--ink); color: var(--muted); margin-top: 0; }
.om-footer .cols { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; padding-block: 48px 56px; }
.om-footer .col { display: flex; flex-direction: column; gap: 10px; flex: 1 1 260px; font-size: 14px; line-height: 1.6; }
.om-footer .name { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); }
.om-footer a { color: var(--ink); padding: 6px 0; }

/* Sections */
.hero { padding-block: 88px 56px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-weight: 400; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.02em; max-width: 1000px; }
.hero .lede { font-family: var(--serif); font-size: 22px; line-height: 1.55; color: var(--ink2); max-width: 680px; }
.section { padding-block: 64px 88px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 48px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 44px); }
.band { background: var(--surface); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.band-lab { background: var(--lab); }

/* Doors on the home page */
.doors { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 88px; }
.door { flex: 1 1 420px; min-width: 0; display: flex; gap: 24px; padding: 24px; border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; background: var(--surface); color: var(--ink); }
.door:hover { color: var(--ink); background: var(--bg); }
.door .txt { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.door .big { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.1; }
.door .small { font-size: 15px; color: var(--ink2); }
.doors.three .door { flex: 1 1 300px; gap: 18px; padding: 20px; }
.doors.three .door .big { font-size: 24px; }
.doors.three .mini-cover, .doors.three .mini-map { flex-basis: 84px; }
.doors.pilots { padding-bottom: 0; }
.door.pilot { border-color: var(--rule); }
.door.pilot:hover { background: var(--surface); }
.door.pilot .mini-cover { color: var(--cover-sub); }
.mini-cover { flex: 0 0 120px; aspect-ratio: 2/3; background: var(--cover); color: var(--cover-ink); padding: 12px; box-sizing: border-box; display: flex; align-items: flex-end; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.05; }
.mini-map { flex: 0 0 120px; display: flex; flex-direction: column; gap: 6px; padding: 12px; box-sizing: border-box; border: 1px solid var(--rule); background: var(--bg); }
.mini-map span { height: 6px; background: var(--rule); display: block; }
.mini-map .hl { background: var(--hl); }

/* Covers and the featured story */
.cover { position: relative; overflow: hidden; aspect-ratio: 2/3; background: var(--cover); color: var(--cover-ink); padding: 34px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; box-shadow: 0 24px 48px -24px rgba(40,20,10,0.45); }
.cover:hover { color: var(--cover-ink); }
.cover svg { position: absolute; left: 0; top: 46%; width: 100%; height: 200px; }
.cover .kicker { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cover-sub); }
.cover .title { position: relative; font-family: var(--serif); font-style: italic; font-size: clamp(40px, 4.4vw, 56px); line-height: 0.98; }
.cover .genre { position: relative; font-family: var(--serif); font-size: 15px; color: var(--cover-sub); }
.feature { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.feature .cover { flex: 1 1 300px; max-width: 380px; }
.feature .about { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.feature h3 { font-size: clamp(36px, 4.2vw, 54px); line-height: 1.04; }
.hook { font-family: var(--serif); font-size: 21px; line-height: 1.6; color: var(--ink2); max-width: 580px; }
.meta { font-size: 15px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.shelf { display: flex; flex-wrap: wrap; gap: 32px; border-top: 1px solid var(--rule); padding-top: 40px; }
.slot { flex: 1 1 300px; max-width: 380px; display: flex; gap: 18px; align-items: center; }
.slot .blank { flex: 0 0 104px; aspect-ratio: 3/4; border: 1px dashed var(--rule); box-sizing: border-box; }
.slot .t { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-family: var(--mono); font-size: 12px; line-height: 1.4; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.chip.registered { color: var(--reg); } .chip.running, .chip.coming { color: var(--run); } .chip.live, .chip.passed, .chip.folded { color: var(--pass); }
.chip.failed { color: var(--fail); } .chip.null { color: var(--null); } .chip.inconclusive { color: var(--inc); }
.chip.planned, .chip.dropped { color: var(--plan); border-style: dashed; }
.chip.dropped { text-decoration: line-through; }
.chip.passed.solid, .chip.failed.solid, .chip.null.solid, .chip.inconclusive.solid { background: currentColor; }
.chip.solid > span { color: var(--bg); }

/* The atlas specimen */
.atlas-fig { margin: 0; display: flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); }
.atlas-fig .text { flex: 999 1 520px; min-width: 0; padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.atlas-fig .text p { font-family: var(--serif); font-size: 21px; line-height: 1.75; max-width: 640px; }
.atlas-fig mark { background: var(--hl); color: inherit; padding: 0 2px; }
.atlas-fig figcaption { flex: 1 1 300px; min-width: 0; border-left: 1px solid var(--rule); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.atlas-fig .q { font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.atlas-fig ul { margin: 0; padding-left: 18px; font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink2); display: flex; flex-direction: column; gap: 6px; }
.books { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.book { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.book .t { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.1; }
.book .go { font-size: 15px; color: var(--accent); padding-top: 6px; }
.panels { display: flex; flex-direction: column; border-left: 1px solid var(--rule); flex: 1 1 320px; min-width: 0; }
.panels .p { display: flex; flex-direction: column; gap: 6px; padding: 16px 22px; border-top: 1px solid var(--rule); }
.panels .p:first-child { border-top: 0; background: var(--bg); }
.panels .p .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.panels .p:first-child .n { color: var(--accent); }
.panels .p .b { font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.ticks { display: grid; grid-template-columns: repeat(17, 1fr); gap: 3px; padding: 0 0 12px; }
.ticks span { height: 10px; background: var(--rule); } .ticks span:first-child { background: var(--accent); }
.checks { display: grid; gap: 18px; margin: 0; }
.checks dt { font-family: var(--mono); font-size: 28px; font-weight: 500; }
.checks dd { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink2); }

/* Story page */
.story-top { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-block: 64px 80px; }
.story-top .cover { flex: 1 1 300px; max-width: 440px; padding: 40px; }
.story-top .cover .title { font-size: clamp(44px, 4.8vw, 60px); }
.cover .title.long, .story-top .cover .title.long { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.02; }
.story-top .about { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.story-top h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.015em; }
.blurb { display: flex; flex-direction: column; gap: 16px; font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--ink2); max-width: 640px; border-top: 1px solid var(--rule); padding-top: 22px; }
.homes { display: flex; flex-wrap: wrap; gap: 16px; }
.home { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border-radius: 4px; text-decoration: none; }
.home.primary { background: var(--accent); color: var(--on-accent); }
.home.primary:hover { color: var(--on-accent); }
.home.off { border: 1px dashed var(--rule); color: var(--muted); }
.home .n { font-size: 20px; font-weight: 600; }
details.made { border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); }
details.made summary { cursor: pointer; padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; list-style: none; }
details.made summary::-webkit-details-marker { display: none; }
details.made .body { padding: 20px 26px 28px; display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--rule); }
.dash { padding: 10px 14px; border: 1px dashed var(--rule); color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* Lab: machine map */
.lab-hero { padding-block: 64px 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-end; }
.lab-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.lab-hero p { font-family: var(--serif); font-size: 20px; line-height: 1.6; color: var(--ink2); max-width: 640px; margin-top: 14px; }
.entry-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; font-family: var(--serif); font-size: 20px; }
.entry-link .eyebrow { font-size: 11px; }
.map { border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 28px; overflow-x: auto; }
.nodes { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 32px; min-width: 860px; }
.node { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--ink); border-radius: 4px; background: var(--bg); text-decoration: none; color: var(--ink); }
.node:hover { color: var(--ink); border-color: var(--accent); }
.node .h { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.node .h span:last-child { color: var(--muted); font-weight: 400; font-size: 12px; }
.node .job { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--ink2); }
.node .def { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.node .counts { display: flex; flex-wrap: wrap; gap: 6px; }
.node .arrow { position: absolute; right: -24px; top: 18px; font-family: var(--mono); color: var(--muted); }
.node:last-child .arrow { display: none; }
.threads { display: flex; flex-direction: column; gap: 14px; min-width: 860px; }
.thread { position: relative; height: 18px; }
.thread .line { position: absolute; top: 50%; height: 2px; margin-top: -1px; }
.thread .lbl { position: absolute; top: -2px; font-family: var(--mono); font-size: 11px; white-space: nowrap; background: var(--surface); padding: 0 6px; }

/* Lab: scrubber and specimens */
.scrub { display: flex; flex-wrap: wrap; gap: 32px; }
.scrub .page { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--rule); padding-top: 22px; }
.scrub .prose { font-family: var(--serif); font-size: 24px; line-height: 1.7; max-width: 760px; }
.scrub .side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 22px; }
.del { text-decoration: line-through; color: var(--muted); }
.ins { background: var(--ins); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
input[type=range] { accent-color: var(--accent); width: 100%; }
.empty { border: 1px dashed var(--rule); border-radius: 4px; padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; background: transparent; }
.empty .t { font-family: var(--serif); font-size: 22px; }
.empty p { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink2); max-width: 680px; }

/* Lab: cards, board, table */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--ink); color: var(--ink); }
.card .top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card .h { font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.card .foot { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.now-grid h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.now-grid .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.now-grid .col p { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink2); }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--ink); }
.numbers div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--rule); }
.numbers dt { font-size: 13px; color: var(--muted); }
.numbers dd { margin: 4px 0 0; font-family: var(--mono); font-size: 34px; font-weight: 500; }
.scope { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; }
.seg button { font: 14px var(--sans); padding: 11px 16px; min-height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.field select { font: 13px var(--mono); padding: 11px 12px; min-height: 44px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 24px; overflow-x: auto; }
.board .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.board .col h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid currentColor; }
.board .col.planned h2 { color: var(--plan); } .board .col.registered h2 { color: var(--reg); } .board .col.running h2 { color: var(--run); } .board .col.result h2 { color: var(--pass); }
.board .col p { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--muted); }
.tbl { overflow-x: auto; }
table.om { border-collapse: collapse; width: 100%; font-size: 15px; }
table.om th { text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--ink); }
table.om td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.om td.h { font-family: var(--serif); font-size: 17px; }

/* Registration page: a timeline down the page */
.reg-head { padding-block: 48px 40px; display: flex; flex-direction: column; gap: 16px; }
.reg-head h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; max-width: 980px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--rule); display: flex; flex-direction: column; gap: 48px; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 16px; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 8px; width: 14px; height: 14px; border-radius: 999px; box-sizing: border-box; border: 2px solid var(--rule); background: var(--bg); }
.timeline li.done::before { background: var(--reg); border-color: var(--reg); }
.timeline h2 { font-size: 26px; }
.sealed { border: 1px solid var(--ink); border-radius: 4px; background: var(--surface); }
.sealed .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sealed dl { display: grid; grid-template-columns: 180px 1fr; gap: 0; margin: 0; }
.sealed dt, .sealed dd { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.sealed dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sealed dd { font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.verdict { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: baseline; }
.verdict .v { font-family: var(--serif); font-size: 64px; line-height: 1; }

/* Long-form: entries, about, methods, findings */
.article-head { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.article-head h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.015em; }
.article-head .sub { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink2); }
.prose { font-family: var(--serif); font-size: 20px; line-height: 1.7; color: var(--ink); max-width: 700px; padding-bottom: 88px; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 34px; margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent); }
.prose table { font-family: var(--sans); font-size: 15px; border-collapse: collapse; width: 100%; margin: 0 0 1.4em; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom-color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 0.82em; background: var(--surface); padding: 1px 5px; border-radius: 3px; color: var(--ink); }
.prose blockquote { margin: 0 0 1.1em; padding-left: 18px; border-left: 2px solid var(--rule); color: var(--ink2); }
.prose .column-margin, .prose .om-mark-note { font-family: var(--sans); font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 8px; margin: 0 0 1.4em; }
.prose .om-scope { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: -0.6em 0 1.4em; }
.prose .om-specimen { font-size: 22px; border-left: 2px solid var(--accent); padding-left: 18px; margin: 0 0 1.4em; }
.changed { border: 1px solid var(--ink); border-radius: 4px; padding: 22px 26px; font-family: var(--sans); font-size: 16px; }
.changed h2 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.entries a { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); align-items: baseline; }
.entries .n { font-family: var(--mono); color: var(--muted); }
.entries .t { font-family: var(--serif); font-size: 26px; }
.entries .s { grid-column: 2; font-family: var(--serif); font-size: 17px; color: var(--ink2); }
.entries .d { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* System pages */
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.steps .s.planned { border-left: 3px dashed var(--plan); padding-left: 14px; background: var(--surface); }
.steps .s.changed { border-left: 3px solid var(--reg); padding-left: 14px; background: var(--surface); }
.steps .s.off, .steps .s.opt { opacity: 0.72; }
.steps .s .nm .chip { margin-left: 8px; vertical-align: 2px; }
.steps .s { display: grid; grid-template-columns: 90px 1fr; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.steps .id { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.steps .nm { font-family: var(--serif); font-size: 20px; }
.steps .what { grid-column: 2; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink2); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink2); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: currentColor; }
.kind-rule { color: var(--t4); } .kind-classify { color: var(--t1); } .kind-model { color: var(--t3); }

@media (max-width: 720px) {
  .hero { padding-block: 56px 40px; }
  .section { padding-block: 48px 64px; }
  .door { flex-direction: column; } .mini-cover, .mini-map { flex-basis: auto; width: 96px; }
  .atlas-fig figcaption, .panels { border-left: 0; border-top: 1px solid var(--rule); }
  .sealed dl { grid-template-columns: 1fr; } .sealed dt { border-bottom: 0; padding-bottom: 0; }
  .entries a { grid-template-columns: 40px 1fr; } .entries .d { grid-column: 2; }
  .steps .s { grid-template-columns: 1fr; } .steps .what { grid-column: 1; }
  .om-nav { gap: 0 18px; }
}
@media (prefers-reduced-motion: no-preference) { .door, .node, .card { transition: border-color .15s, background .15s; } }
