/* Totethorpe — a near-black ground (theme: dark — matches the mark's own black field), one warm-orange accent
   lifted from the eight-dot logo. The CA rides in a floating pill, fixed but detached from every edge (bar:
   mid) — the nav (wordmark + connect) sits in normal flow at the very top instead, since the pill itself carries
   no site identity beyond the address. The first big thing under the chrome is a terse display HEADLINE (hero:
   headline) — one line, then a pull-quote sub-line — kept deliberately short so nothing else on the page
   competes with it for the hero read; the fuller explanation lives in the board panel's byline and the rules
   sheet. Below it the board breaks out of the page's own measure and runs edge to edge with a continuous
   printing scroll of whoever is on it (page_shape: full-bleed-video). No header/footer strip carried over from
   any other build. */
:root {
  --bg: #150D07; --bg2: #1D130A; --ink: #FCEBD8; --accent: #FFA94D; --danger: #FFC98A;
  --line: rgba(252,235,216,.14); --muted: #C9AD8E; --panel: #241708; --panel2: #2D1B0B; --reel: #180F06;
  --disp: 'Unbounded', 'Arial Black', sans-serif; --body: 'Inter', -apple-system, sans-serif;
}
* { box-sizing: border-box; }
.visuallyhidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
button { font-family: var(--body); cursor: pointer; }

/* ---------- top identity strip: normal flow, NOT fixed, deliberately SLIM (< 56px tall) so it never enters the
   hero measurement's own candidate list — the bar (the floating pill below it) is what carries the CA. ---------- */
.topstrip { max-width: 1160px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--panel2); height: 42px; overflow: hidden; }
.topstrip-mark { display: flex; align-items: center; gap: 6px; font-family: var(--disp); font-weight: 700; font-size: 14px; white-space: nowrap; }
.topstrip-mark img { width: 18px; height: 18px; }
.topstrip-mark .topstrip-tick { font-family: var(--body); font-weight: 700; color: var(--accent); font-size: 10px; letter-spacing: .04em; }
.topstrip-tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--bg); background: var(--accent); padding: 3px 7px; font-weight: 700; white-space: nowrap; display: none; }
@media (min-width: 640px) { .topstrip-tag { display: inline-block; } }
@media (max-width: 400px) { .topstrip-mark .topstrip-tick { display: none; } }
.topstrip-connect { margin-left: auto; background: transparent; color: var(--ink); border: 1.5px solid var(--muted); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; }
.topstrip-connect.linked { border-color: var(--accent); color: var(--accent); }

/* ---------- CA pill: FLOATING, fixed, detached from every edge (bar: mid) — parked clear of the slim strip so
   it reads as its own object, not a header extension. site.buy_selector. ---------- */
.capill {
  position: fixed; left: 50%; top: 134px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 8px;
  background: var(--panel2); border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 8px 8px 8px 16px; width: calc(100% - 24px); max-width: 640px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.capill-label { font-family: var(--disp); font-weight: 700; font-size: 10px; letter-spacing: .08em; color: var(--accent); flex-shrink: 0; text-transform: uppercase; }
.capill code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 11.5px; user-select: all; scrollbar-width: none; }
.capill code::-webkit-scrollbar { display: none; }
.capill-copy { background: var(--accent); color: var(--bg); border: none; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 10.5px; text-transform: uppercase; flex-shrink: 0; }
.capill-copy.stamped { background: var(--ink); }
.capill-gmgn { flex-shrink: 0; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--muted); padding-right: 4px; display: none; }
@media (min-width: 560px) { .capill-gmgn { display: block; } }

/* ---------- layout ---------- */
main#view { display: block; max-width: 720px; margin: 0 auto; padding: 198px 18px 0; }
.dockwrap { max-width: 1160px; margin: 0 auto; padding: 0 18px 40px; }
.totegrid { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ---------- hero: HEADLINE — display type, the first big thing, kept terse on purpose ---------- */
.hero { margin: 0 0 8px; }
.heroeyebrow { font-family: var(--disp); font-weight: 600; font-size: 12.5px; color: var(--accent); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .1em; }
.herohead { font-family: var(--disp); font-weight: 800; font-size: clamp(38px, 9vw, 60px); line-height: 1.04; margin: 0 0 10px; letter-spacing: -.01em; }
.herosub { font-size: 15px; opacity: .82; margin: 0 0 14px; max-width: 44ch; }
.herolink { display: inline-block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px dashed var(--muted); text-decoration: none; }

/* ---------- the board: FULL-BLEED, edge to edge on every side (page_shape: full-bleed-video). A continuous
   printing reel of lines is the one thing on the page that moves on its own. ---------- */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); background: var(--panel); border-top: 2px solid var(--accent); border-bottom: 2px solid var(--panel2); padding: 26px 0 26px; margin-top: 22px; }
.bleedin { max-width: 1160px; margin: 0 auto; padding: 0 18px; }
.bleedby { font-size: 13px; opacity: .78; max-width: 62ch; margin: 0 0 18px; line-height: 1.6; }
.boardhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 14px; }
.boardtag { font-family: var(--disp); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: var(--bg); padding: 4px 10px; }
.boardstat { font-size: 12.5px; opacity: .85; }
.boardclock { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--accent); font-weight: 700; }
.reelwrap { background: var(--reel); border: 1px solid var(--line); height: 168px; overflow: hidden; position: relative; margin-bottom: 16px; }
.reelwrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--reel) 0%, transparent 18%, transparent 82%, var(--reel) 100%); }
.reeltrack { display: flex; flex-direction: column; }
.reeltrack[data-spin="1"] { animation: reelup 14s linear infinite; }
@keyframes reelup { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.printline { display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; border-bottom: 1px dashed var(--line); font-size: 12.5px; white-space: nowrap; }
.printline .pl-tag { font-family: var(--disp); font-weight: 700; color: var(--accent); flex-shrink: 0; }
.printline .pl-who a { color: var(--muted); }
.printline .pl-when { margin-left: auto; color: var(--muted); font-size: 11px; }
.printquiet { opacity: .65; justify-content: center; white-space: normal; }
.enterbtn {
  display: block; width: 100%; background: var(--accent); color: var(--bg); border: 2px solid var(--accent);
  padding: 16px 20px; font-family: var(--disp); font-weight: 700; font-size: 16px; letter-spacing: .01em;
  text-transform: uppercase;
}
.enterbtn:disabled { background: transparent; color: var(--muted); border-color: var(--muted); cursor: not-allowed; }

/* ---------- stats rail + ledger ---------- */
.toteside { display: grid; gap: 14px; }
.factcard { background: var(--panel2); border: 1px solid var(--line); padding: 16px; }
.factcard h3 { font-family: var(--disp); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; color: var(--accent); }
.statline { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.statline:last-child { border-bottom: none; }
.statline span { opacity: .72; }
.statline b { font-weight: 700; }
.factcard.quietnote { opacity: .7; }
.dockhead { font-family: var(--disp); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 10px; }
.logtable { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--panel); }
.logtable th { text-align: left; opacity: .68; font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: .06em; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.logtable td { padding: 9px 10px; border-bottom: 1px dashed var(--line); }
.quietnote { opacity: .65; text-align: center; padding: 20px !important; }
.ledgerhead { margin-bottom: 14px; }
.ledgernum { font-family: var(--disp); font-weight: 800; font-size: clamp(36px, 8vw, 56px); margin: 0; }
.addrline { font-family: ui-monospace, monospace; font-size: 13px; opacity: .85; word-break: break-all; }

/* ---------- how / almanac ---------- */
.almanac { max-width: 680px; margin: 0 auto; padding: 28px 4px 40px; }
.almanac blockquote { font-family: var(--disp); font-weight: 700; font-size: 22px; border-left: 4px solid var(--accent); padding-left: 16px; margin: 20px 0; }
.almanac h3 { font-family: var(--disp); font-weight: 700; font-size: 14px; text-transform: uppercase; margin: 24px 0 8px; color: var(--accent); }
.almanac p { opacity: .85; line-height: 1.7; }
.almanac code { opacity: 1; }

/* ---------- sheet (rules / enter confirm) ---------- */
#sheet[hidden] { display: none !important; }
#sheet { position: fixed; inset: 0; background: rgba(10,6,2,.8); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheetcard { background: var(--panel2); border-top: 3px solid var(--accent); width: 100%; max-width: 480px; padding: 20px; }
.sheethead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheethead span { font-family: var(--disp); font-weight: 700; text-transform: uppercase; font-size: 15px; }
.sheethead button { background: none; border: none; color: var(--ink); font-size: 22px; }
.walletpicks { display: grid; gap: 8px; }
.walletpicks button { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); padding: 12px; width: 100%; text-align: left; }
.walletpicks img { width: 22px; height: 22px; }
.rulelist { margin: 0; padding-left: 0; list-style: none; font-size: 13px; line-height: 1.75; }
.rulelist li { border-bottom: 1px dashed var(--line); padding: 9px 0; }
.ordersheet .enterhint { font-size: 13px; opacity: .85; margin-bottom: 14px; line-height: 1.6; }
.ordersheet .enterhint b { color: var(--accent); opacity: 1; }
.ordersheet .actionrow button { width: 100%; }
.enterflag { color: var(--danger); font-size: 12px; margin-top: 10px; font-weight: 700; }

/* ---------- footer ---------- */
.tfoot { max-width: 1160px; margin: 0 auto; padding: 24px 18px 40px; border-top: 2px solid var(--line); font-size: 12px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; opacity: .88; }
.tfoot-mark { display: flex; align-items: center; gap: 8px; font-family: var(--disp); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.tfoot-mark img { width: 18px; height: 18px; }
.tfoot-nav { display: flex; gap: 12px; }
.tfoot-nav a { text-decoration: none; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; color: var(--ink); }
.tfoot-kv code { opacity: 1; }
.tfoot-soc { display: flex; gap: 10px; }
.tfoot-soc a { text-decoration: none; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.tfoot-tag { width: 100%; margin-top: 6px; letter-spacing: .03em; opacity: .85; }

/* ---------- toast ---------- */
.toteToast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--bg); padding: 10px 16px; font-size: 13px; font-weight: 700; z-index: 80; text-transform: uppercase; letter-spacing: .03em; }

/* ================= breakpoints ================= */
/* ≤ 520: single column, topstrip → CA pill → headline → full-bleed board → dock stacked, no horizontal scroll. */

/* ~720–1000: wider measure, larger type. */
@media (min-width: 720px) {
  .topstrip { padding: 8px 24px; }
  .capill { top: 128px; }
  main#view { padding-top: 200px; }
}

/* ≥ 1000: the page recomposes — the ledger/aside column sits beside the primary column; the full-bleed board
   stays edge to edge regardless (that's what full-bleed means), but its inner measure widens. */
@media (min-width: 1000px) {
  .totegrid { grid-template-columns: 1.6fr 1fr; align-items: start; gap: 26px; }
  main#view { max-width: 780px; padding-top: 208px; }
  .bleedin { padding: 0 32px; }
  .enterbtn { width: auto; min-width: 320px; }
  .reelwrap { height: 230px; }
  .toteside { position: sticky; top: 90px; }
}
