/* ============================================================
   press · pressgoesbrr.online
   Register: press-room instrumentation. Mono throughout, hairline
   rules, tabular ledger blocks, off-white ink on near-black.
   ============================================================ */

@font-face {
  font-family: "GeistMono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:   #08080a;
  --panel:   #0d0d10;
  --panel-2: #111116;
  --ink:     #edeae3;
  --ink-2:   #b6b3ab;
  --dim:     #8a8881;
  --dimmer:  #7a7871;
  --rule:    #1e1e23;
  --rule-2:  #2c2c33;
  --accent:  #ff4d17;
  --accent-2:#ff8452;
  --accent-w:rgba(255, 77, 23, 0.14);
  --brass:   #d3a63c;

  --mono: "GeistMono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gut: clamp(16px, 3.4vw, 40px);
  --max: 1240px;
  --bar: 46px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  background:
    linear-gradient(180deg, #0b0b0e 0%, var(--paper) 260px),
    var(--paper);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0b; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #0a0a0b;
  padding: 8px 14px; z-index: 200; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* ── shell ────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* ── top bar ──────────────────────────────────────────────── */

.bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .bar__in { flex-wrap: wrap; gap: 0 12px; padding-block: 9px; }
  .bar .chip { order: 2; margin-left: auto; }
  .nav {
    order: 3; width: 100%; margin-left: 0; margin-top: 9px;
    border-top: 1px solid var(--rule); padding-top: 8px;
  }
  .nav a { padding: 5px 9px 5px 0; }
  .nav a[aria-current="page"] { background: none; border-color: transparent; color: var(--accent); }
}
.bar__in {
  min-height: var(--bar);
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--ink); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 12px; white-space: nowrap;
}
.brand svg { display: block; }
.brand:hover { color: var(--ink); }
.brand:hover .mk { stroke: var(--accent); }

.nav {
  display: flex; gap: 2px; margin-left: auto;
}
.nav a {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); padding: 6px 10px;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--rule-2);
  background: var(--panel);
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--rule-2);
  padding: 5px 9px;
  white-space: nowrap;
}
.chip::before {
  content: ""; width: 5px; height: 5px; background: var(--brass);
  display: block;
}
.bar .chip { margin-left: 6px; }

/* ── section furniture ────────────────────────────────────── */

.sec { border-top: 1px solid var(--rule); }
.sec--flush { border-top: 0; }

.eyebrow {
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--dim); font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}
.eyebrow b { color: var(--accent); font-weight: 500; }

h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; }

.display {
  font-size: clamp(2.35rem, 8.2vw, 5.1rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 650;
  margin: 0;
}
.display em {
  font-style: normal;
  color: var(--accent);
}

h1.head, h2.head, .head {
  font-size: clamp(1.35rem, 3.4vw, 2.05rem);
  line-height: 1.06; letter-spacing: -0.035em; font-weight: 600;
}
h3.sub, .sub {
  font-size: 0.95rem; letter-spacing: -0.01em; font-weight: 600;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(0.98rem, 1.7vw, 1.16rem); color: var(--ink-2); line-height: 1.5; }
.note { font-size: 12px; color: var(--dim); line-height: 1.5; }
.note--tight { line-height: 1.45; }

code, .mono { font-family: var(--mono); }
code {
  color: var(--ink); background: var(--panel-2);
  border: 1px solid var(--rule); padding: 0 4px;
  font-size: 0.9em;
}
.hl { color: var(--ink); }
.acc { color: var(--accent); }

/* ── hero ─────────────────────────────────────────────────── */

.hero { padding: clamp(44px, 8vw, 96px) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: end; }
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 26px;
}
.hero__meta span { white-space: nowrap; }
.hero p.lede { margin-top: 24px; max-width: 46ch; }

.plate {
  border: 1px solid var(--rule-2);
  background: var(--panel);
}
.plate__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim);
}
.plate__hd b { color: var(--ink); font-weight: 500; }
.plate__hd .sp { margin-left: auto; }

/* ── the machine viewport ─────────────────────────────────── */

.machine { margin-top: clamp(40px, 6vw, 70px); }
.machine__frame {
  border: 1px solid var(--rule-2);
  background: #060608;
  position: relative;
}
.machine__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  overflow: hidden;
}
@media (max-width: 620px) { .machine__stage { aspect-ratio: 5 / 4; } }
@media (max-width: 460px) { .machine__stage { aspect-ratio: 1 / 1; } }
@media (max-width: 560px) { .plate__hd .sp { display: none; } }
.machine__stage canvas { display: block; width: 100%; height: 100%; }
.machine__fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center; padding: 18px;
}
.machine__fallback svg { width: 100%; height: auto; max-width: 780px; }
.machine__stage[data-webgl="ok"] .machine__fallback { display: none; }

.stamp {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--rule-2);
  background: rgba(6, 6, 8, 0.8);
  padding: 4px 8px;
  pointer-events: none;
}

.readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) { .readout { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.readout > div {
  padding: 12px 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.readout > div:last-child { border-right: 0; }
@media (min-width: 720px) { .readout > div { border-bottom: 0; } }
@media (max-width: 719px) {
  .readout > div:nth-child(2n) { border-right: 0; }
  .readout > div:nth-child(n+3) { border-bottom: 0; }
}
.readout dt {
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 5px;
}
.readout dd {
  margin: 0; font-size: clamp(1rem, 2.4vw, 1.32rem);
  color: var(--ink); font-weight: 500; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.readout dd small { font-size: 0.62em; color: var(--dim); letter-spacing: 0.06em; margin-left: 4px; }
.readout dd.is-live { color: var(--accent); }

.machine__foot {
  border-top: 1px solid var(--rule);
  padding: 10px 14px;
  font-size: 11px; color: var(--dim);
}

/* ── steps (three-step explanation) ───────────────────────── */

.steps {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px clamp(16px, 2.4vw, 26px) 26px;
  min-width: 0;
}
.step__n {
  font-size: 10px; letter-spacing: 0.24em; color: var(--accent);
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.02rem; letter-spacing: -0.02em; margin-bottom: 10px;
  font-weight: 600;
}
.step p { font-size: 13.5px; line-height: 1.55; }

/* ── ledger ───────────────────────────────────────────────── */

.ledger { border-top: 1px solid var(--rule); }
.ledger dl { margin: 0; }
.lrow {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  flex-wrap: wrap;
}
.lrow dt { color: var(--dim); white-space: nowrap; }
.lrow .lead {
  flex: 1 1 24px; height: 1px; min-width: 12px;
  border-bottom: 1px dotted var(--rule-2);
  transform: translateY(-3px);
}
.lrow dd {
  margin: 0; color: var(--ink);
  min-width: 0; text-align: right; overflow-wrap: anywhere;
}
.lrow dd .src { color: var(--dimmer); font-size: 11px; margin-left: 8px; white-space: nowrap; }
@media (max-width: 560px) {
  .lrow dd .src { display: block; margin-left: 0; }
}

/* ── two-column prose grid ────────────────────────────────── */

.cols {
  display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 54px);
}
/* grid items default to min-width:auto, which lets a `white-space: pre`
   code block or a wide table push the whole column past the viewport. */
.cols > *, .hero__grid > *, .steps > *, .readout > * { min-width: 0; }
@media (min-width: 860px) {
  .cols { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .cols--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pad { padding: clamp(40px, 6.5vw, 80px) 0; }
.pad-s { padding: clamp(28px, 4vw, 46px) 0; }

/* ── flow diagram (SVG) ───────────────────────────────────── */

.flow { border: 1px solid var(--rule-2); background: var(--panel); padding: 18px; }
.flow svg { width: 100%; height: auto; display: block; }

/* ── callout ──────────────────────────────────────────────── */

.callout {
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-w), transparent 55%);
  padding: 14px 18px;
  font-size: 13.5px; color: var(--ink-2);
}
.callout b { color: var(--ink); font-weight: 600; }

/* ── status block ─────────────────────────────────────────── */

.status {
  border: 1px solid var(--rule-2);
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(255,77,23,0.045) 9px 18px),
    var(--panel);
  padding: clamp(20px, 3.6vw, 34px);
}
.status h2 { font-size: clamp(1.15rem, 3vw, 1.6rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.status p { font-size: 13.5px; max-width: 58ch; }

/* ── code block ───────────────────────────────────────────── */

.pre {
  border: 1px solid var(--rule);
  background: var(--panel-2);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.pre .c { color: var(--dimmer); }
.pre .k { color: var(--accent); }

/* ── table ────────────────────────────────────────────────── */

.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; min-width: 520px; }
th, td { text-align: left; padding: 9px 13px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); font-weight: 500; background: var(--panel);
  border-bottom-color: var(--rule-2);
}
td { color: var(--ink-2); }
td:first-child { color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ── faq ──────────────────────────────────────────────────── */

.qa { border-top: 1px solid var(--rule); padding: 18px 0; }
.qa h3 { font-size: 0.95rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.qa p { font-size: 13.5px; }

/* ── footer ───────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--rule);
  padding: 26px 0 44px;
  font-size: 11.5px; color: var(--dim);
}
.foot__grid {
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: baseline;
}
.foot__grid nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--accent); }
.foot .sp { margin-left: auto; }

/* ── utility ──────────────────────────────────────────────── */

.stack > * + * { margin-top: 14px; }
.stack-l > * + * { margin-top: clamp(22px, 3vw, 34px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
