:root {
  --paper: #ebe4d6;
  --paper-2: #f6f1e6;
  --ink: #1a1714;
  --muted: #5e564c;
  --line: #c9bfb0;
  --black: #141210;
  --tape: #e2f04a;
  --rust: #9a3412;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Public Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --rail: 232px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--tape);
  color: var(--black);
  padding: 0.55rem 0.8rem;
  z-index: 30;
  font-weight: 700;
}

.skip:focus {
  top: 0.6rem;
}

.shell {
  min-height: 100vh;
}

.spine {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.4rem 1.2rem 1.2rem;
  background: var(--black);
  color: var(--paper-2);
  border-right: 8px solid var(--tape);
  z-index: 20;
}

.mark {
  text-decoration: none;
  color: var(--paper-2);
}

.mark strong {
  display: block;
  font-family: var(--display);
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.8;
  text-transform: uppercase;
}

.mark span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tape);
}

.spine nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spine nav a {
  text-decoration: none;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(246, 241, 230, 0.16);
  font-size: 0.98rem;
}

.spine nav a:hover {
  color: var(--tape);
}

.spine-phone {
  margin-top: auto;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--tape);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--paper-2);
  border: 1px solid rgba(246, 241, 230, 0.35);
  padding: 0.4rem 0.7rem;
  font: inherit;
}

.canvas {
  min-width: 0;
  margin-left: var(--rail);
}

.mast {
  padding: 2.2rem 4vw 0;
}

.mast-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.4rem, 8vw, 7.6rem);
  line-height: 0.84;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.mast-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 700;
  background: var(--black);
  color: var(--paper-2);
}

.btn:hover {
  background: var(--rust);
  color: #fff;
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.live {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 1.2fr;
  gap: 1rem;
  margin: 2rem 4vw 0;
  padding: 1rem 1.1rem;
  background: var(--tape);
  color: var(--black);
}

.live p {
  margin: 0;
}

.live-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-label,
.live-fee {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-top: 0.25rem !important;
}

.live-detail,
.live-clock,
.live-note {
  margin-top: 0.35rem !important;
  max-width: 36rem;
}

.live-note {
  grid-column: 1 / -1;
  font-size: 0.88rem;
}

.meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1.6rem 4vw 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.meter div {
  padding: 0.9rem 1rem 0.9rem 0;
}

.meter div + div {
  border-left: 1px solid var(--ink);
  padding-left: 1rem;
}

.meter dt {
  font-size: 0.92rem;
  color: var(--muted);
}

.meter dd {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.9;
}

.block {
  padding: 3.5rem 4vw 0;
}

.block-head h2 {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.block-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

.block-head p:last-child,
.fine {
  max-width: 44rem;
  color: var(--muted);
}

.catalog {
  margin: 1.4rem 0 0;
  border-top: 2px solid var(--ink);
}

.row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.row-price {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.row h3,
.chip h3,
.step h3,
.card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.row p,
.chip p,
.step p,
.card p,
.plain p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.rack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.chip {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 0 0 0.9rem;
}

.swatch {
  height: 92px;
  border-bottom: 1px solid var(--ink);
}

.chip:nth-child(1) .swatch { background: #d5d7dc; }
.chip:nth-child(2) .swatch { background: #2f5d8c; }
.chip:nth-child(3) .swatch { background: #1a1714; }
.chip:nth-child(4) .swatch { background: #f7f7f4; }
.chip:nth-child(5) .swatch { background: #3e6b4f; }
.chip:nth-child(6) .swatch { background: #8d3b24; }
.chip:nth-child(7) .swatch { background: #b9c7d6; }
.chip:nth-child(8) .swatch { background: #6b4a32; }
.chip:nth-child(9) .swatch { background: #2c2c2c; }
.chip:nth-child(10) .swatch { background: var(--tape); }
.chip:nth-child(11) .swatch { background: #efe6d2; }
.chip:nth-child(12) .swatch {
  background: linear-gradient(135deg, #f3f4f6, #c9a0dc 45%, #8fd3c4);
}

.chip h3,
.chip p {
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.chip h3 {
  margin-top: 0.75rem;
}

.chip .row-price {
  margin-top: auto;
  padding: 0.7rem 0.8rem 0;
}

.samples {
  margin-top: 1.6rem;
  border-top: 2px solid var(--ink);
}

.samples h3 {
  margin: 0.8rem 0 0;
}

.samples ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.samples li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.samples strong {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}

.samples li.total {
  color: var(--ink);
  font-weight: 700;
}

.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 1.4rem;
  border-top: 8px solid var(--tape);
}

.step {
  padding: 1rem 1rem 0.2rem 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step span {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.6rem;
}

.plain h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}

.plain ul {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.plain li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.plain li strong {
  display: block;
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.card {
  background: var(--paper-2);
  border-top: 4px solid var(--ink);
  padding: 0.9rem 1rem 1rem;
}

.card .num {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--rust);
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.45rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.week li {
  min-height: 140px;
  padding: 0.7rem 0.55rem;
  background: var(--black);
  color: var(--paper-2);
  display: flex;
  flex-direction: column;
}

.week span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tape);
}

.week strong {
  margin-top: 0.45rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.week em {
  margin-top: auto;
  font-style: normal;
  font-size: 0.85rem;
  color: #cfc6b8;
}

.week li.shut {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.week li.shut span,
.week li.shut em {
  color: var(--muted);
}

.week li.half {
  background: #3a342c;
}

.closer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-top: 1.4rem;
  padding: 1.4rem 4vw 1.6rem;
  background: var(--black);
  color: var(--paper-2);
}

.closer h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 0.86;
  text-transform: uppercase;
}

.closer h2 a,
.giant {
  text-decoration: none;
}

.closer p {
  margin: 0.45rem 0 0;
  max-width: 36rem;
  color: #d9d0c3;
}

.giant {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 0.85;
  color: var(--tape);
  text-align: right;
}

.site-foot {
  padding: 1rem 4vw 5.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-foot p {
  margin: 0.25rem 0;
}

.dock {
  display: none;
}

@media (max-width: 980px) {
  section[id] {
    scroll-margin-top: 4.5rem;
  }

  .spine {
    position: sticky;
    top: 0;
    left: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    border-right: 0;
    border-bottom: 8px solid var(--tape);
    padding: 0.75rem 4vw;
  }

  .canvas {
    margin-left: 0;
  }

  .mark strong {
    font-size: 2rem;
  }

  .mark span {
    display: inline;
    margin: 0 0 0 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .spine nav {
    display: none;
    width: 100%;
    order: 5;
  }

  .spine nav[data-open="true"] {
    display: flex;
  }

  .spine-phone {
    display: none;
  }

  .live,
  .rack,
  .track,
  .split,
  .rules,
  .week {
    grid-template-columns: 1fr 1fr;
  }

  .track .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0.4rem;
  }

  .meter {
    grid-template-columns: 1fr 1fr;
  }

  .meter div + div {
    border-left: 0;
    padding-left: 0;
  }

  .meter div:nth-child(odd) {
    border-right: 1px solid var(--ink);
    padding-right: 1rem;
  }

  .meter div:nth-child(n + 3) {
    border-top: 1px solid var(--ink);
  }

  .closer {
    grid-template-columns: 1fr;
  }

  .giant {
    text-align: left;
  }

  .dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    background: var(--tape);
    color: var(--black);
    text-decoration: none;
    font-weight: 800;
    z-index: 25;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 3.5rem;
    max-width: none;
  }

  .live,
  .rack,
  .track,
  .split,
  .rules,
  .week,
  .row,
  .meter {
    grid-template-columns: 1fr;
  }

  .meter div:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  .meter div + div {
    border-top: 1px solid var(--ink);
  }

  .week {
    grid-template-columns: 1fr 1fr;
  }

  .week li {
    min-height: 110px;
  }

  .samples li {
    flex-direction: column;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .spine,
  .dock,
  .mast-links,
  .nav-toggle {
    display: none !important;
  }

  .canvas {
    margin-left: 0;
  }

  body,
  .chip,
  .week li,
  .closer,
  .live {
    background: #fff !important;
    color: #111 !important;
  }
}
