/* Layout: a slim command bar with a live status line; a hero split between the issue title (decrypts on load) and a live terminal
   readers can type into; the issue as a long-form article with a sticky contents rail; then the signed log, the hall pass,
   the rewind knob for past issues, and subscribe. Light and dark, reader's choice. */
:root {
  --bg: #f4f5f7; --bg-2: #eceef1; --surface: #ffffff; --surface-2: #f8f9fa;
  --line: rgba(14, 16, 24, .09); --line-2: rgba(14, 16, 24, .16);
  --text: #0e1018; --text-2: #3b404d; --muted: #646a79;
  --signal: #d02a1e; --signal-soft: rgba(208, 42, 30, .09); --on-signal: #ffffff;
  --ok: #0e9a62; --grid: rgba(14, 16, 24, .10); --glow: rgba(208, 42, 30, .10);
  --term-bg: #0c0e13; --term-line: rgba(255, 255, 255, .08); --term-text: #dfe2ea; --term-muted: #8b91a2;
  --shadow: 0 1px 0 rgba(14, 16, 24, .04), 0 18px 40px -22px rgba(14, 16, 24, .28);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090c; --bg-2: #0d0f14; --surface: #101218; --surface-2: #151821;
    --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
    --text: #eceef3; --text-2: #b6bbc8; --muted: #828899;
    --signal: #ff4b3e; --signal-soft: rgba(255, 75, 62, .11); --on-signal: #ffffff;
    --ok: #3ddc97; --grid: rgba(255, 255, 255, .07); --glow: rgba(255, 75, 62, .16);
    --term-bg: #06070a; --term-line: rgba(255, 255, 255, .07);
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 24px 60px -28px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090c; --bg-2: #0d0f14; --surface: #101218; --surface-2: #151821;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
  --text: #eceef3; --text-2: #b6bbc8; --muted: #828899;
  --signal: #ff4b3e; --signal-soft: rgba(255, 75, 62, .11); --on-signal: #ffffff;
  --ok: #3ddc97; --grid: rgba(255, 255, 255, .07); --glow: rgba(255, 75, 62, .16);
  --term-bg: #06070a; --term-line: rgba(255, 255, 255, .07);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 24px 60px -28px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; font-feature-settings: "ss01", "cv11"; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.label { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .02em; }
.label b { color: var(--signal); font-weight: 500; }

/* ---------- reading progress ---------- */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: var(--signal); }

/* ---------- command bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 49; background: var(--bg); }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.bar-in { height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.logo { display: block; height: 40px; width: auto; border-radius: 6px; }
.wordmark .w1 { font: 700 15px/1 var(--sans); letter-spacing: -.02em; }
.wordmark .w2 { margin-top: 3px; padding: 1px 6px 2px; border: 2px solid var(--signal); color: var(--signal); font: 700 12px/1 var(--sans); letter-spacing: .14em; transform: rotate(-3deg); border-radius: 2px; }
.brand .domain { font: 500 13px/1 var(--mono); color: var(--muted); }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--muted); font: 500 14px/1 var(--sans); padding: 9px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a[aria-current] { color: var(--text); }
.theme { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.theme button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; background: transparent; color: var(--muted); border-radius: 7px; cursor: pointer; transition: color .15s, background .15s; }
.theme button:hover { color: var(--text); }
.theme button[aria-pressed="true"] { background: var(--bg-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.theme svg { width: 15px; height: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; font: 500 15px/1 var(--sans); letter-spacing: -.005em; transition: transform .15s ease, background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--signal); color: var(--on-signal); }
.btn-ghost { color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; background: transparent; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-signal { background: var(--signal); color: var(--on-signal); }
.btn-signal:hover { filter: brightness(1.08); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn kbd { font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 5px; background: color-mix(in srgb, currentColor 14%, transparent); }

.status { border-top: 1px solid var(--line); }
.status-in { height: 34px; display: flex; align-items: center; gap: 18px; font: 400 12.5px/1 var(--mono); color: var(--muted); overflow: hidden; white-space: nowrap; }
.status .live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
.status .sep { width: 1px; height: 12px; background: var(--line-2); }
#ticker { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
#ticker::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--signal); }
.status .clock { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .field { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--grid) 1px, transparent 1.4px); background-size: 22px 22px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(70% 90% at 30% 40%, #000 40%, transparent 100%); mask-image: radial-gradient(70% 90% at 30% 40%, #000 40%, transparent 100%); }
.hero .spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%); }
.hero:hover .spot { opacity: 1; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding-block: 72px 80px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 26px; font: 500 13px/1 var(--mono); color: var(--muted); }
.kicker .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--signal-soft); color: var(--signal); }
.kicker .tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.kicker .slash { color: var(--line-2); }
.hero h1 { margin: 0 0 22px; font: 500 clamp(44px, 6.6vw, 88px)/.96 var(--mono); letter-spacing: -.055em; text-wrap: balance; }
.hero h1 .scr { color: var(--signal); }
.dek { margin: 0 0 34px; max-width: 34ch; font: 400 clamp(18px, 1.6vw, 21px)/1.5 var(--sans); color: var(--text-2); letter-spacing: -.01em; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 36px 0 0; padding: 0; list-style: none; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.meta-row b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* the terminal */
.term { position: relative; border-radius: 14px; background: var(--term-bg); color: var(--term-text); box-shadow: 0 0 0 1px var(--term-line), 0 30px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .2); overflow: hidden; }
.term::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%); }
.term-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--term-line); font: 400 12px/1 var(--mono); color: var(--term-muted); }
.lights { display: flex; gap: 7px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d36; }
.lights i:first-child { background: #ff5f57; }
.term-bar .path { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-bar .rec { display: inline-flex; align-items: center; gap: 7px; color: #3ddc97; }
.term-bar .rec i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; }
.term-body { height: 300px; overflow-y: auto; padding: 16px 18px 6px; font: 400 13.5px/1.75 var(--mono); scrollbar-width: thin; scrollbar-color: #2a2d36 transparent; }
.term-body p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.t-dim { color: var(--term-muted); }
.t-sig { color: #ff6a5e; }
.t-ok { color: #3ddc97; }
.t-hi { color: #ffffff; }
.t-amb { color: #f2c46d; }
.term-input { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--term-line); }
.term-input label { flex: 0 0 auto; font: 500 13.5px/1 var(--mono); color: #3ddc97; }
.term-input input { flex: 1; min-width: 0; height: 30px; border: 0; outline: 0; background: transparent; color: #fff; font: 400 13.5px/1 var(--mono); caret-color: #ff6a5e; }
.term-input input::placeholder { color: #5d6373; }
.term-hint { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 16px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--term-line); background: rgba(255,255,255,.03); color: var(--term-muted); font: 400 12px/1 var(--mono); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }

/* ---------- the issue ---------- */
.issue { padding-block: 96px 40px; }
.issue-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: 124px; }
.toc ol { list-style: none; margin: 16px 0 28px; padding: 0; border-left: 1px solid var(--line); }
.toc a { position: relative; display: flex; gap: 10px; padding: 7px 0 7px 16px; text-decoration: none; color: var(--muted); font: 450 14px/1.35 var(--sans); transition: color .15s; }
.toc a span { font: 400 12px/1.6 var(--mono); color: var(--line-2); transition: color .15s; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); }
.toc a.on span { color: var(--signal); }
.toc a.on::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--signal); border-radius: 2px; }
.toc .tools { display: grid; gap: 8px; }
.article { max-width: 720px; }
.art-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-bottom: 22px; margin-bottom: 44px; border-bottom: 1px solid var(--line); font: 400 13px/1.5 var(--mono); color: var(--muted); }
.art-head b { color: var(--text); font-weight: 500; }
.stamp { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1.5px solid var(--signal); color: var(--signal); border-radius: 6px; font: 600 12px/1 var(--mono); letter-spacing: .08em; transform: rotate(-2deg); }
.sec { padding-top: 8px; }
.sec + .sec { margin-top: 56px; }
.sec .label { display: block; margin-bottom: 14px; }
.article h2 { margin: 0 0 20px; font: 600 clamp(28px, 3.2vw, 36px)/1.12 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.prose p { margin: 0 0 1.15em; font: 400 18.5px/1.72 var(--sans); color: var(--text-2); letter-spacing: -.008em; text-wrap: pretty; max-width: 66ch; }
.prose p:first-of-type::first-line { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose a:hover { color: var(--signal); }
.quote { margin: 48px 0; padding: 0; }
.quote p { margin: 0; font: 500 clamp(26px, 3.4vw, 38px)/1.18 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.quote p::before { content: "\201C"; display: block; font: 600 54px/.6 var(--mono); color: var(--signal); margin-bottom: 14px; }
.quote footer { margin-top: 16px; font: 400 13px/1 var(--mono); color: var(--muted); }

/* spotlight dossier */
.dossier { margin: 8px 0 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.dossier-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); font: 400 12px/1 var(--mono); color: var(--muted); }
.dossier-top .ok { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.dossier-top .ok i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dossier-in { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 28px; padding: 26px; }
.portrait { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--bg-2), var(--surface-2)); box-shadow: 0 0 0 1px var(--line) inset; display: grid; place-items: center; }
.portrait b { font: 600 46px/1 var(--mono); letter-spacing: -.06em; color: var(--text); }
.portrait::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, var(--grid) 3px 4px); mix-blend-mode: multiply; }
.portrait .scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, var(--glow), transparent); }
.dossier h3 { margin: 0 0 4px; font: 600 26px/1.15 var(--sans); letter-spacing: -.03em; }
.dossier .role { margin: 0 0 14px; font: 400 13px/1.4 var(--mono); color: var(--signal); }
.dossier p.body { margin: 0 0 18px; font: 400 17px/1.65 var(--sans); color: var(--text-2); }

/* forum threads */
.threads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.threads li { border-bottom: 1px solid var(--line); }
.threads a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 18px; padding: 16px 4px; text-decoration: none; transition: background .15s; border-radius: 8px; }
.threads a:hover { background: var(--bg-2); }
.threads strong { font: 500 17px/1.35 var(--sans); letter-spacing: -.015em; }
.threads small { grid-column: 1; font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.threads .n { grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--text-2); font-variant-numeric: tabular-nums; }
.threads .n svg { width: 14px; height: 14px; color: var(--muted); transition: transform .15s, color .15s; }
.threads a:hover .n svg { transform: translate(2px, -2px); color: var(--signal); }
.sign { margin: 52px 0 0; font: 500 15px/1.6 var(--mono); color: var(--muted); }
.sign b { display: block; margin-top: 6px; color: var(--text); font: 600 22px/1 var(--sans); letter-spacing: -.03em; }

.discuss { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.discuss .who { display: flex; align-items: center; gap: 14px; font: 500 16px/1.4 var(--sans); letter-spacing: -.01em; }
.faces { display: flex; }
.faces i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; display: grid; place-items: center; font: 600 11px/1 var(--mono); font-style: normal; color: #fff; }
.faces i:first-child { margin-left: 0; }
.discuss .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- section heads ---------- */
.block { padding-block: 104px 0; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 40px; }
.block-head h2 { margin: 10px 0 0; font: 600 clamp(32px, 4vw, 48px)/1.05 var(--sans); letter-spacing: -.045em; text-wrap: balance; }
.block-head p { margin: 0; max-width: 42ch; color: var(--muted); font-size: 16.5px; line-height: 1.55; }

/* ---------- the log + hall pass ---------- */
.marks { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 28px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); font: 400 12.5px/1 var(--mono); color: var(--muted); background: var(--surface-2); }
.log { list-style: none; margin: 0; padding: 6px 0; max-height: 432px; overflow-y: auto; }
.log li { display: grid; grid-template-columns: 10px 70px minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log .ink { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.log .hash { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.log .msg { font: 450 16px/1.45 var(--sans); letter-spacing: -.01em; min-width: 0; overflow-wrap: anywhere; }
.log .msg em { display: block; font: 400 12.5px/1.6 var(--mono); font-style: normal; color: var(--muted); }
.log time { font: 400 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.log li.fresh { background: linear-gradient(90deg, var(--signal-soft), transparent 70%); }
.sign-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 170px); gap: 10px; padding: 16px 18px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.field-in { display: grid; gap: 6px; font: 400 12px/1 var(--mono); color: var(--muted); }
.field-in input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 400 15px/1 var(--sans); transition: border-color .15s, box-shadow .15s; }
.field-in input:focus { outline: 0; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.sign-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.inks { display: flex; gap: 8px; border: 0; padding: 0; margin: 0; align-items: center; }
.inks legend { float: left; margin-right: 6px; font: 400 12px/28px var(--mono); color: var(--muted); }
.inks label { position: relative; width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; }
.inks input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.inks span { width: 16px; height: 16px; border-radius: 50%; transition: box-shadow .15s, transform .15s; }
.inks input:checked + span { box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 5px currentColor; }
.inks input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 5px; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font: 400 12.5px/1.4 var(--mono); color: var(--muted); }

/* hall pass */
.pass-col { display: grid; gap: 16px; }
.pass { position: relative; aspect-ratio: 5 / 7.4; max-width: 100%; border-radius: 18px; padding: 22px; color: #f2f3f7; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 0% 0%, #2a1416 0%, transparent 55%), linear-gradient(160deg, #15161c, #0b0c10 60%); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 30px 60px -30px rgba(0,0,0,.7);
  display: flex; flex-direction: column; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out; }
.pass::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; mix-blend-mode: screen; background: conic-gradient(from var(--ang, 120deg) at var(--px, 50%) var(--py, 30%), transparent 0deg, rgba(255, 75, 62, .25) 40deg, rgba(120, 180, 255, .18) 90deg, rgba(61, 220, 151, .16) 140deg, transparent 200deg); filter: blur(18px); }
.pass::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.3px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.pass .slot { align-self: center; width: 46px; height: 7px; border-radius: 4px; background: #000; box-shadow: 0 1px 0 rgba(255,255,255,.08); margin-bottom: 22px; }
.pass .row { display: flex; justify-content: space-between; align-items: center; font: 400 11.5px/1 var(--mono); color: #9aa0b1; }
.pass .big { margin: 18px 0 4px; font: 600 34px/.95 var(--mono); letter-spacing: -.06em; }
.pass .big b { color: #ff4b3e; font-weight: 600; }
.pass dl { margin: auto 0 0; display: grid; gap: 12px; }
.pass dt { font: 400 11px/1 var(--mono); color: #8b91a2; margin-bottom: 5px; }
.pass dd { margin: 0; font: 500 14.5px/1.35 var(--sans); letter-spacing: -.01em; }
.pass dd.reason { min-height: 3.9em; }
.barcode { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin-top: 16px; }
.barcode i { display: block; height: 100%; background: #e9ebf1; border-radius: 1px; }
.pass.printing { animation: none; }

/* ---------- rewind ---------- */
.rewind { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.deck { display: grid; place-items: center; padding: 40px 24px 30px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(80% 70% at 50% 40%, var(--surface), var(--surface-2)); box-shadow: var(--shadow); }
.knob-wrap { position: relative; width: min(100%, 300px); aspect-ratio: 1; }
#knob { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#knob:active { cursor: grabbing; }
#knob:focus-visible { outline: none; }
#knob:focus-visible .ring { stroke: var(--signal); }
.knob-hint { margin: 18px 0 0; font: 400 12.5px/1.5 var(--mono); color: var(--muted); text-align: center; }
.readout { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--term-bg); color: var(--term-text); box-shadow: 0 0 0 1px var(--term-line), 0 30px 70px -36px rgba(0,0,0,.7); }
.readout .term-bar { justify-content: space-between; }
.readout-in { flex: 1; display: flex; flex-direction: column; padding: 28px 28px 26px; }
.ro-meta { display: flex; justify-content: space-between; gap: 12px; font: 400 12.5px/1 var(--mono); color: var(--term-muted); font-variant-numeric: tabular-nums; }
.ro-no { margin: 26px 0 10px; font: 600 clamp(64px, 9vw, 112px)/.85 var(--mono); letter-spacing: -.07em; color: #fff; font-variant-numeric: tabular-nums; }
.ro-no span { color: #ff4b3e; }
.ro-title { margin: 0 0 10px; font: 600 26px/1.15 var(--sans); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.ro-sum { margin: 0 0 24px; font: 400 16px/1.55 var(--sans); color: var(--term-muted); max-width: 46ch; }
.ro-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ro-foot .btn-primary { background: #fff; color: #0c0e13; box-shadow: none; }
.ro-foot .btn-primary:hover { background: #ff4b3e; color: #fff; }
.ro-foot .served { font: 400 12.5px/1.4 var(--mono); color: var(--term-muted); }
.ro-bars { display: flex; gap: 4px; margin: 0 0 22px; }
.ro-bars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); transition: background .2s; }
.ro-bars i.on { background: #ff4b3e; }

/* ---------- subscribe ---------- */
.sub { margin-top: 104px; border-radius: 22px; overflow: hidden; position: relative; isolation: isolate; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.sub::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--grid) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 120% at 85% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 120% at 85% 50%, #000, transparent 75%); }
.sub-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; padding: 56px; }
.sub h2 { margin: 12px 0 12px; font: 600 clamp(30px, 3.6vw, 44px)/1.06 var(--sans); letter-spacing: -.045em; text-wrap: balance; }
.sub p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; max-width: 42ch; }
.sub-form { display: grid; gap: 10px; }
.sub-cmd { font: 400 13px/1 var(--mono); color: var(--muted); }
.sub-cmd b { color: var(--signal); font-weight: 500; }
.sub-row { display: flex; gap: 10px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.sub-row:focus-within { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.sub-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; font: 400 16px/1 var(--sans); color: var(--text); }
.sub-row input::placeholder { color: var(--muted); }
.sub-note { font: 400 12.5px/1.5 var(--mono); color: var(--muted); min-height: 1.5em; margin: 0; }

/* ---------- footer ---------- */
footer.foot { margin-top: 104px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-block: 36px 48px; font: 400 13px/1.6 var(--mono); color: var(--muted); }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-in a { text-decoration: none; color: var(--muted); }
.foot-in a:hover { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font: 500 13.5px/1 var(--mono); box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2.2s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
  #ticker::after, .caret { animation: blink 1.05s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .portrait .scan { animation: scan 3.6s cubic-bezier(.6, 0, .4, 1) infinite; }
  @keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }
  .log li.fresh { animation: slide .45s cubic-bezier(.2, .8, .2, 1); }
  @keyframes slide { from { transform: translateY(-8px); opacity: 0; } }
  .toast { animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
  @keyframes rise { from { transform: translate(-50%, 10px); opacity: 0; } }
  .pass.printing { animation: print .6s cubic-bezier(.2, .8, .2, 1); }
  @keyframes print { 0% { clip-path: inset(0 0 100% 0); } 100% { clip-path: inset(0 0 0 0); } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 56px 64px; }
  .issue-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .article { max-width: none; }
  .marks, .rewind, .sub-in { grid-template-columns: minmax(0, 1fr); }
  .pass-col { max-width: 360px; width: 100%; justify-self: center; }
  .nav { display: none; }
  .bar-in { gap: 14px; }
  .brand { margin-right: auto; }
}
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .brand .domain { display: none; }
  .bar .btn-sm { padding: 0 12px; }
  .bar-in { gap: 10px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .logo { height: 32px; max-width: 100%; }
  .status .clock, .status .sep.s2 { display: none; }
  .hero-in { padding-block: 40px 48px; }
  .term-body { height: 240px; font-size: 12.5px; }
  .term-input label { font-size: 12.5px; }
  .term-input input { font-size: 13px; }
  .issue { padding-block: 64px 24px; }
  .dossier-in { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .portrait { width: 112px; }
  .log li { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .log .hash { display: none; }
  .sign-form { grid-template-columns: minmax(0, 1fr); }
  .sub-in { padding: 32px 22px; }
  .sub-row { flex-direction: column; background: transparent; border: 0; padding: 0; }
  .sub-row:focus-within { box-shadow: none; }
  .sub-row input { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
  .sub-row input:focus { border-color: var(--signal); }
  .block { padding-top: 80px; }
  .discuss { padding: 18px; }
}

/* ======================================================================
   Live site additions
   ====================================================================== */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 90; }
.skip:focus { left: 16px; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.from-email { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font: 400 13px/1.5 var(--mono); color: var(--text-2); }

/* section headings inside the issue: same rhythm as the mockup */
.sec-head { padding-top: 8px; margin-top: 56px; }
.article > .sec-head:first-of-type, .plain-in > .sec-head:first-child { margin-top: 0; }
.sec-head .label { display: block; margin-bottom: 14px; }
.sec-head h2 { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.25em; font: 400 18.5px/1.72 var(--sans); color: var(--text-2); max-width: 66ch; }
.prose li { margin-bottom: .35em; }
.prose h3 { margin: 1.6em 0 .5em; font: 600 22px/1.25 var(--sans); letter-spacing: -.025em; color: var(--text); }
.prose h4 { margin: 1.4em 0 .4em; font: 500 13px/1.3 var(--mono); color: var(--signal); }
.prose blockquote { margin: 0 0 1.15em; padding-left: 18px; border-left: 2px solid var(--signal); color: var(--text); }
.prose blockquote p { color: var(--text); }
.prose.small p { font-size: 17px; line-height: 1.65; }
.prose.small p:first-of-type::first-line { color: inherit; font-weight: inherit; }
.dossier, .fig, .vid, .quote, .list-block, .cta-line, .signoff, .raw { margin-top: 40px; }
.dossier + .prose, .fig + .prose, .vid + .prose, .quote + .prose, .list-block + .prose { margin-top: 32px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.15) contrast(1.05); }
.dossier .prose { margin-bottom: 18px; }
.dossier .prose p { max-width: none; }
.fig { margin-left: 0; margin-right: 0; }
.fig img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.fig figcaption, .vid figcaption { margin-top: 12px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
.rule { border: 0; height: 1px; margin: 48px 0; background: var(--line); }
.cta-line { margin-bottom: 0; }
.list-block .label { display: block; margin-bottom: 14px; }
.list-block h2 { margin: 0 0 20px; }
.threads .row { display: grid; gap: 4px; padding: 16px 4px; }
.threads .n { grid-row: 1 / span 2; }
.threads a > strong:only-of-type + .n { grid-row: 1; }
.raw { margin-left: 0; margin-right: 0; }
.rawframe { display: block; width: 100%; min-height: 420px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* video */
.vid { margin-left: 0; margin-right: 0; }
.vid-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; text-decoration: none;
  background: var(--term-bg); color: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.vid.vertical .vid-frame { aspect-ratio: 9 / 16; max-width: 360px; }
.vid-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; filter: saturate(.95) brightness(.82); }
.vid-frame:hover img { transform: scale(1.03); filter: saturate(1) brightness(.72); }
.vid-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px); background-size: 20px 20px; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset; transition: transform .2s, background .2s; }
.vid-play svg { width: 26px; height: 26px; margin-left: 4px; }
.vid-frame:hover .vid-play { transform: scale(1.07); background: #ff4b3e; }
.vid-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 40px 20px 18px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.vid-src { font: 500 11.5px/1 var(--mono); color: rgba(255,255,255,.7); }
.vid-title { font: 600 18px/1.25 var(--sans); letter-spacing: -.02em; }
.vid-link .vid-title { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.vid-frame iframe, .vid-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* sign-off */
.signoff { padding-top: 36px; border-top: 1px solid var(--line); }
.signoff-line { margin: 0 0 22px; font: 500 20px/1.5 var(--sans); letter-spacing: -.02em; color: var(--text); }
.sig-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.sig-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--signal); flex: 0 0 auto; }
.sig-photo.ini { display: grid; place-items: center; background: var(--surface-2); font: 600 18px/1 var(--mono); color: var(--text); }
.sig-who { display: grid; gap: 4px; margin-right: auto; }
.sig-who b { font: 600 19px/1.1 var(--sans); letter-spacing: -.025em; }
.sig-who span { font: 400 12.5px/1.3 var(--mono); color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--text-2); box-shadow: 0 0 0 1px var(--line-2) inset; transition: color .15s, background .15s, transform .15s; }
.socials a:hover { color: var(--on-signal); background: var(--signal); box-shadow: none; transform: translateY(-1px); }
.socials svg { width: 18px; height: 18px; }
.ps { list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 12px; }
.ps li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 12px; font: 400 16.5px/1.6 var(--sans); color: var(--text-2); }
.ps-tag { font: 600 12.5px/1.95 var(--mono); color: var(--signal); }
.foot-brand { display: grid; gap: 14px; }
.foot-socials a { width: 34px; height: 34px; border-radius: 9px; }
.foot-socials svg { width: 16px; height: 16px; }

/* prize page */
.prize { margin-bottom: 8px; }
.prize-label { display: flex; justify-content: space-between; margin-bottom: 12px; }
.prize-frame { display: block; width: 100%; height: 80vh; min-height: 540px; border: 0; border-radius: 18px; background: var(--term-bg); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.plain { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plain > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; font: 500 14px/1 var(--sans); color: var(--text-2); }
.plain > summary::-webkit-details-marker { display: none; }
.plain > summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 500 15px/1 var(--mono); color: var(--signal); box-shadow: 0 0 0 1px var(--line-2) inset; }
.plain[open] > summary::before { content: "\2212"; }
.plain-in { padding: 8px 22px 30px; }

/* the log: empty state + times */
.log li.empty { display: block; padding: 28px 18px; color: var(--muted); }
.log li.empty .msg { font: 400 14px/1.5 var(--mono); color: var(--muted); }

/* the archive page */
.arch { padding-block: 72px 0; }
.arch-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 30px; }
.arch-head h1 { margin: 10px 0 0; font: 500 clamp(44px, 6vw, 80px)/.95 var(--mono); letter-spacing: -.055em; }
.arch-head p { margin: 0; max-width: 40ch; color: var(--muted); font-size: 16.5px; }
.search { display: flex; gap: 10px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); max-width: 560px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; font: 400 16px/1 var(--sans); color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 40px; }
.tagl { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; text-decoration: none; font: 400 12.5px/1 var(--mono); color: var(--muted); box-shadow: 0 0 0 1px var(--line-2) inset; transition: color .15s, background .15s; }
.tagl:hover { color: var(--text); background: var(--bg-2); }
.tagl.on { color: var(--on-signal); background: var(--signal); box-shadow: none; }
.year { display: flex; align-items: center; gap: 14px; margin: 44px 0 18px; font: 500 13px/1 var(--mono); color: var(--muted); }
.year::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card-issue { position: relative; display: flex; flex-direction: column; min-height: 220px; padding: 22px; border-radius: 16px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, border-color .18s; }
.card-issue:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card-issue img { display: block; width: calc(100% + 44px); max-width: none; margin: -22px -22px 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.ci-top { display: flex; justify-content: space-between; font: 400 12.5px/1 var(--mono); color: var(--muted); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.ci-no { color: var(--signal); font-weight: 500; }
.card-issue strong { font: 600 21px/1.2 var(--sans); letter-spacing: -.03em; margin-bottom: 10px; text-wrap: balance; }
.ci-sum { font: 400 15px/1.55 var(--sans); color: var(--muted); }
.ci-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.ci-drop { font: 400 12px/1 var(--mono); color: var(--signal); }
.ci-go svg { width: 16px; height: 16px; color: var(--muted); transition: transform .15s, color .15s; }
.card-issue:hover .ci-go svg { transform: translate(2px, -2px); color: var(--signal); }
.empty-state { padding: 80px 0 20px; text-align: center; }
.empty-state h1, .empty-state h2 { margin: 0 0 12px; font: 500 clamp(36px, 5vw, 60px)/1 var(--mono); letter-spacing: -.05em; }
.empty-state p { margin: 0 auto 24px; max-width: 46ch; color: var(--muted); }

@media (max-width: 600px) {
  .logo { height: 34px; }
  .arch { padding-top: 48px; }
  .search { flex-direction: column; background: transparent; border: 0; padding: 0; }
  .search:focus-within { box-shadow: none; }
  .search input { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
  .ps li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sig-who { margin-right: 0; }
  .prize-frame { min-height: 460px; }
  .plain-in { padding: 4px 16px 24px; }
}

/* member card numbers on a spotlight picked from the forum */
.dossier-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dossier-stats > div { flex: 1 1 auto; min-width: 0; padding: 10px 14px; border-right: 1px solid var(--line); }
.dossier-stats > div:last-child { border-right: 0; }
.dossier-stats dt { font: 400 11px/1.2 var(--mono); color: var(--muted); text-transform: lowercase; margin: 0 0 4px; }
.dossier-stats dd { margin: 0; font: 600 15px/1.2 var(--sans); color: var(--text); letter-spacing: -.01em; overflow-wrap: anywhere; }
.dossier-stats .src dd { font: 500 13px/1.2 var(--mono); color: var(--ok); }
@media (max-width: 600px) { .dossier-stats > div { flex: 1 1 40%; border-bottom: 1px solid var(--line); } }
