:root {
  color-scheme: light;
  --paper: #EFE6D6; --paper-2: #E2D7C3; --ink: #17140F; --muted: #625B50; --line: #B8AE9E;
  --lilac: #8E6BD6; --lilac-deep: #654798; --orange: #FF5A1F; --marker: #FFD43B;
  --blue: #3467BA; --moss: #A0B37C;
  --flap: #292723; --flap-ink: #FFF5E4;
  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --voice: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --body: 'Inter Tight', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--marker); color: var(--ink); }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
img, canvas, svg { display: block; }

.wrap { width: min(1180px, 100% - 32px); margin-left: auto; margin-right: auto; }
.mono { font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.voice { font: italic 400 30px/1.1 var(--voice); text-transform: lowercase; }
.small { font-size: 14px; line-height: 1.45; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--ink); color: var(--paper); padding: 12px; }
.skip:focus { top: 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; }

/* masthead */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.brand { font: 900 28px/.9 var(--display); letter-spacing: -.02em; }
.brand span { color: var(--lilac); }
.edition { display: none; }
.link-btn { background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0 4px; }
.link-btn:hover { color: var(--lilac-deep); }

/* hero */
.hero { display: grid; gap: 16px; padding-top: 32px; padding-bottom: 24px; }
.eyebrow { color: var(--lilac-deep); margin-bottom: 14px; }
.hero h1 { font-size: clamp(64px, 11vw, 132px); letter-spacing: -.035em; line-height: .86; }
.hero h1 em { font-style: normal; position: relative; isolation: isolate; white-space: nowrap; }
.hero h1 em::before { content: ''; position: absolute; z-index: -1; inset: 58% -4px 4%; background: var(--marker); }
.hero .voice { margin-top: 0; }
.lede { margin-top: 18px; max-width: 520px; }


/* main layout */
.layout { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.sections { display: grid; gap: 44px; min-width: 0; }

.sec-head { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-items: start; padding-top: 16px; border-top: 3px solid var(--ink); }
.shirt { width: 56px; height: 56px; image-rendering: pixelated; }
.sec-head .mono { color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.sec-sum { color: var(--ink); font-weight: 700; }
.sec-head h2 { font-size: clamp(36px, 6vw, 52px); margin-top: 2px; }
.blurb { grid-column: 1 / -1; max-width: 640px; margin-top: 6px; color: var(--muted); }
.sec-figure { grid-column: 1 / -1; margin: 10px 0 0; }
.sec-figure img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); }
.sec-figure figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; }

.items { margin-top: 14px; }
.item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0 18px; border-top: 1px solid var(--line); transition: opacity 120ms linear; }
.item:first-child { border-top: 0; }
.item > input { position: absolute; z-index: 1; left: 0; top: 20px; opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.box { cursor: pointer; width: 28px; height: 28px; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; margin-top: 2px; }
.box::after { content: ''; width: 12px; height: 7px; border-left: 3px solid var(--paper); border-bottom: 3px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.item.is-on .box { background: var(--ink); }
.item.is-on .box::after { opacity: 1; }
.item > input:focus-visible + .box { outline: 3px solid var(--blue); outline-offset: 3px; }
.item-main { min-width: 0; }
.item-top { display: flex; align-items: baseline; gap: 10px; cursor: pointer; }
.code { flex: none; font: 700 11px var(--mono); color: var(--lilac-deep); }
.name { font-weight: 700; font-size: 19px; line-height: 1.25; }
.leader { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--line); transform: translateY(-5px); }
.price { flex: none; font: 900 26px/1 var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.price.later { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: right; max-width: 90px; }
.price.free { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 7px; background: var(--moss); border: 1px solid var(--ink); }
.item:not(.is-on) .price.free, .choice:not(.is-on) .price.free { text-decoration: none; }
.detail { margin-top: 4px; max-width: 620px; }
.includes { margin-top: 10px; display: grid; gap: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.includes li { position: relative; padding-left: 16px; }
.includes li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--lilac); }
.item:not(.is-on) .item-main, .item:not(.is-on) .box { opacity: .55; }
.item:not(.is-on) .price:not(.later) { text-decoration: line-through; text-decoration-thickness: 2px; }

/* the either/or display cards */
.choices { display: grid; gap: 12px; margin-top: 16px; }
.choice { position: relative; display: grid; grid-template-rows: auto 1fr; border: 2px solid var(--line); background: transparent; padding: 0; cursor: pointer; text-align: left; }
.choice.is-on { border-color: var(--ink); background: var(--paper-2); box-shadow: 5px 5px 0 var(--ink); }
.choice > input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice > input:focus-visible ~ .choice-body { outline: 3px solid var(--blue); outline-offset: -6px; }
.choice-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.choice-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.choice .name { font-size: 18px; }
.choice .code { margin-right: 4px; vertical-align: 2px; }
.choice .tag { font: 700 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 6px; background: var(--marker); }
.choice .tag.alt { background: var(--paper); border: 1px solid var(--line); }
.choice .includes { margin-top: 4px; }
.choice:not(.is-on) .choice-body, .choice:not(.is-on) .preview { opacity: .6; }
.choice:not(.is-on) .price { text-decoration: line-through; text-decoration-thickness: 2px; }
.choice-note { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 10px; }

.preview { display: grid; place-items: center; height: 104px; background: var(--paper); border-bottom: 2px solid var(--line); overflow: hidden; }
.choice.is-on .preview { border-color: var(--ink); }
.preview .flaps { width: 92%; }
.preview .tile { height: 34px; }
.preview .char { font-size: 18px; line-height: 34px; }
.led { display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: #15120E; border: 2px solid var(--ink); }
.seg { position: relative; width: 22px; height: 40px; }
.seg i { position: absolute; background: #3a1a10; border-radius: 2px; }
.seg i.on { background: var(--orange); box-shadow: 0 0 6px #ff5a1f99; }
.seg .a, .seg .d, .seg .g { left: 4px; right: 4px; height: 4px; }
.seg .a { top: 0; } .seg .g { top: 18px; } .seg .d { bottom: 0; }
.seg .b, .seg .c, .seg .e, .seg .f { width: 4px; height: 15px; }
.seg .f { left: 0; top: 3px; } .seg .b { right: 0; top: 3px; }
.seg .e { left: 0; bottom: 3px; } .seg .c { right: 0; bottom: 3px; }
.colon { display: grid; gap: 10px; padding: 0 1px; }
.colon i { width: 4px; height: 4px; background: var(--orange); box-shadow: 0 0 6px #ff5a1f99; }

/* split flaps, after the photo booth board */
.flaps { display: flex; gap: 4px; background: var(--ink); padding: 5px; border: 2px solid var(--ink); box-shadow: inset 0 3px 6px #000; }
.tile { position: relative; flex: 1; min-width: 0; height: 64px; border-radius: 3px; background: var(--flap); color: var(--flap-ink); text-align: center; overflow: hidden; }
.tile::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #090908; box-shadow: 0 1px #ffffff14; pointer-events: none; }
.char { display: block; font: 500 40px/64px var(--mono); }
.char.flip { animation: flip 90ms linear; }
@keyframes flip { 0% { transform: scaleY(1); } 50% { transform: scaleY(.1); } 100% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .char.flip { animation: none; } }

/* scoreboard */
.board-col { min-width: 0; }
.scoreboard { padding: 16px; background: var(--paper-2); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--lilac); }
.sb-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sb-note { margin-top: 10px; color: var(--muted); font-size: 11px; }
.breakdown { margin-top: 16px; display: grid; gap: 0; font-size: 15px; }
.breakdown li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.breakdown li:first-child { border-top: 0; }
.breakdown .code { width: 14px; flex: none; }
.breakdown strong { margin-left: auto; font: 900 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.breakdown li.none { color: var(--muted); }
.breakdown li.none strong { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.sb-actions { display: grid; gap: 8px; margin-top: 18px; }
.solid, .ghost { min-height: 46px; padding: 10px 14px; border: 2px solid var(--ink); font-weight: 700; }
.solid { background: var(--ink); color: var(--paper); }
.solid:hover { background: var(--lilac-deep); border-color: var(--lilac-deep); }
.ghost { background: transparent; }
.ghost:hover { background: var(--paper); }
.sb-status { min-height: 20px; margin-top: 8px; color: var(--lilac-deep); font-size: 11px; }

.mobile-total { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); transform: translateY(110%); transition: transform 160ms ease; }
.mobile-total.is-visible { transform: none; }
.mobile-total strong { font: 900 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.mobile-total a { margin-left: auto; text-decoration: none; padding: 8px 0; }
@media (prefers-reduced-motion: reduce) { .mobile-total { transition: none; } }

/* lower blocks */
.block { padding-top: 40px; padding-bottom: 8px; }
.block-head { padding-top: 16px; border-top: 3px solid var(--ink); margin-bottom: 20px; }
.block-head .eyebrow { margin-bottom: 8px; }
.block h2 { font-size: clamp(36px, 6vw, 56px); }
.cards { display: grid; gap: 0 28px; }
.card { padding: 16px 0; border-top: 1px solid var(--line); }
.card h3 { font-size: 26px; margin-bottom: 6px; }
.card p { font-size: 15px; line-height: 1.5; }

.timeline { display: grid; gap: 0; counter-reset: step; }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 2px 14px; padding: 14px 0; border-top: 1px solid var(--line); align-content: start; }
.timeline .mono { grid-row: span 2; font-weight: 700; color: var(--lilac-deep); padding-top: 4px; }
.timeline strong { font: 900 24px/1 var(--display); text-transform: uppercase; }
.timeline p { font-size: 15px; color: var(--muted); }
.timeline .finish strong { position: relative; isolation: isolate; justify-self: start; }
.timeline .finish strong::before { content: ''; position: absolute; z-index: -1; inset: 55% -4px 0; background: var(--marker); }

.two { display: grid; gap: 8px 40px; }
.ticks { display: grid; gap: 10px; margin-bottom: 14px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; background: var(--moss); border: 1px solid var(--ink); }
.crosses li::before { background: none; border: 0; content: '×'; top: -.1em; font: 700 20px/1 var(--mono); color: var(--orange); width: auto; height: auto; }

.finish-line { padding-top: 48px; padding-bottom: 96px; }
.tape { height: 20px; border: 2px solid var(--ink); background: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%) 0 0 / 20px 20px; }
.finish-row { display: flex; align-items: center; gap: 18px; padding-top: 18px; }
#finisher { width: 100px; height: 80px; flex: none; image-rendering: pixelated; }
.finish-row .voice { font-size: 28px; }
.finish-row .mono { margin-top: 8px; color: var(--muted); }
.noscript { padding: 20px; background: var(--marker); }

/* wider screens */
@media (min-width: 720px) {
  .edition { display: block; }
  .choices { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
    .two { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline .mono { grid-row: auto; }
}
@media (min-width: 980px) {
  body { font-size: 18px; }
  .wrap { width: min(1180px, 100% - 64px); }
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: end; padding-top: 48px; }
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .board-col { position: sticky; top: 20px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(5, 1fr); }
  .mobile-total { display: none; }
  .finish-line { padding-bottom: 56px; }
}

@media print {
  @page { margin: 12mm 14mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html { scroll-behavior: auto; }
  body { font-size: 11px; line-height: 1.4; background: #fff; }
  .wrap { width: 100%; }
  .skip, .link-btn, .sb-actions, .sb-status, .mobile-total,   .masthead { padding-top: 0; }
  .hero { grid-template-columns: 1fr 1fr; gap: 24px; padding: 12px 0 0; }
  .hero h1 { font-size: 54px; }
  .hero .voice { font-size: 20px; margin-top: 8px; }
  .layout { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .board-col { position: static; order: -1; }
  .scoreboard { display: grid; grid-template-columns: 280px 1fr; gap: 0 24px; align-items: center; padding: 10px 14px; box-shadow: none; }
  .sb-head { grid-column: 1 / -1; margin-bottom: 6px; }
  .breakdown { margin-top: 0; font-size: 11px; }
  .breakdown li { padding: 3px 0; }
  .breakdown strong { font-size: 14px; }
  .tile { height: 44px; } .char { font-size: 28px; line-height: 44px; }
  .sections { gap: 14px; }
  .sec.is-empty, .item:not(.is-on), .choice:not(.is-on) { display: none; }
  .sec-head { grid-template-columns: 32px 1fr; gap: 2px 10px; padding-top: 8px; border-top-width: 2px; }
  .shirt { width: 32px; height: 32px; }
  .sec-head h2, .block h2 { font-size: 24px; }
  .blurb { font-size: 11px; margin-top: 2px; }
  .items, .choices { margin-top: 4px; }
  .choices { display: block; }
  .choice.is-on { border: 0; border-top: 1px solid var(--line); background: none; box-shadow: none; }
  .choice-body { padding: 8px 0 8px 42px; gap: 2px; }
  .choice .tag { display: none; }
  .item { grid-template-columns: 18px 1fr; gap: 10px; padding: 7px 0; break-inside: avoid; }
  .box { width: 18px; height: 18px; border-width: 1.5px; }
  .box::after { width: 8px; height: 5px; border-width: 2px; }
  .name, .choice .name { font-size: 13px; }
  .price { font-size: 17px; }
  .detail { margin-top: 1px; font-size: 11px; }
  .includes { display: block; margin-top: 2px; font-size: 10px; }
  .includes li { display: inline; padding: 0; }
  .includes li::before { display: none; }
  .includes li + li::before { display: inline; content: ' · '; position: static; background: none; width: auto; height: auto; }
  .block { padding-top: 14px; break-inside: avoid; }
  .block-head { padding-top: 8px; margin-bottom: 8px; border-top-width: 2px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 8px 0; } .card h3 { font-size: 16px; } .card p { font-size: 10px; }
  .timeline { grid-template-columns: repeat(5, 1fr); column-gap: 12px; }
  .timeline li { grid-template-columns: 1fr; padding: 8px 0; } .timeline strong { font-size: 15px; } .timeline p { font-size: 10px; }
  .two { grid-template-columns: 1fr 1fr; }
    .finish-line { padding: 16px 0 0; } .finish-row .voice { font-size: 18px; }
}
.ghost:disabled { opacity: .45; cursor: default; background: transparent; }

/* admin price editor (local only) */
.admin-bar { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--paper); border-bottom: 3px solid var(--marker); }
.admin-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 0; }
.admin-inner strong { color: var(--marker); }
.admin-status { flex: 1; min-width: 200px; color: #d8cfbf; text-transform: none; letter-spacing: 0; }
.admin-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.admin-check input { width: 18px; height: 18px; accent-color: var(--marker); }
.admin-bar .solid { background: var(--marker); color: var(--ink); border-color: var(--marker); }
.admin-bar .ghost { color: var(--paper); border-color: var(--paper); }
.admin-bar .ghost:hover { background: #ffffff1a; }
.price-edit { position: relative; z-index: 2; flex: none; display: inline-flex; align-items: baseline; gap: 3px; font: 900 26px/1 var(--display); }
.price-edit input { width: 4.4em; padding: 2px 6px; border: 2px dashed var(--lilac); background: var(--paper); font: inherit; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.price-edit input::-webkit-inner-spin-button, .price-edit input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.price-edit input::placeholder { font: 500 12px var(--mono); text-transform: uppercase; color: var(--muted); }
.price-edit input:focus { border-style: solid; border-color: var(--ink); outline: none; background: #fff; }
.is-admin .board-col { top: 84px; }
html:has(body.is-admin) { scroll-padding-top: 96px; }
