/* The Deluxxe, B3 "Diner Radio". Colors, sizes and copy follow docs/deluxxe-build-brief.md
   and the boards in reference/. Mobile first: the phone board is the base, the desktop board
   starts at 960px (the radio is 880px wide), and the content sections widen at 720px. */

:root {
  --wall: #211E19;
  --ink: #1A1712;
  --cream: #EFE4CC;
  --cream-body: #D9CFB8;
  --muted: #B3A88F;
  --red-chile: #A33A1F;
  --red-chile-dark: #7E2C17;
  --green-chile: #56642A;
  --counter: #E4D8BD;
  --chrome: #C9C4B8;
  --chrome-dark: #8E8A80;
  --key: #D9D2C3;
  --menu-text: #4A4337;
  --menu-rule: #CFC3A8;
  --link: #E0A58F;
  --board-groove: #2C2821;
  --skeleton-cream: #DDD1B6;
  --skeleton-dark: #3A392F;
  --nav-border: #6E6556;
  --check-paper: #F2EBDA;
  --check-rule: #A9B08C;

  --script: 'Yellowtail', cursive;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Chivo Mono', ui-monospace, Menlo, monospace;

  /* Stage geometry. --vis is the height that is always visible (small viewport on phones),
     --stage-h fills the large viewport so the counter runs under a collapsing toolbar.
     --minv is the shortest stage that still shows the whole radio plus a strip of counter. */
  --vis: 100vh;
  --stage-h: max(100vh, var(--minv));
  --minv: 672px;
  --off: max(0px, (var(--vis) - 844px) / 2);
  --dist: 480px;
}

@supports (height: 100svh) {
  :root {
    --vis: 100svh;
    --stage-h: max(100lvh, var(--minv));
  }
}

@media (min-width: 960px) {
  :root {
    --minv: 730px;
    --off: max(0px, (var(--vis) - 900px) / 2);
    --dist: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dist: 0px; }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--cream);
  font-family: var(--body);
  overflow-x: hidden;
}

a { color: var(--link); }
a:hover { color: var(--cream); }

button {
  font: inherit;
  border-radius: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.menu-card :focus-visible { outline-color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.only-wide { display: none; }
@media (min-width: 720px) {
  .only-wide { display: inline; }
  .only-narrow { display: none; }
}

.chile-bars { display: flex; gap: 5px; }
.chile-bars span { width: 44px; height: 5px; background: var(--red-chile); }
.chile-bars span + span { background: var(--green-chile); }

/* ---------- Scroll stage ---------- */

.track {
  position: relative;
  height: calc(var(--stage-h) + var(--dist));
}

.stage {
  position: sticky;
  top: min(0px, var(--vis) - var(--minv));
  height: var(--stage-h);
  overflow: hidden;
  overflow: clip;
}

.site-header {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  z-index: 4;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
}
.header-link:hover { color: var(--link); }
.site-nav .header-link:last-child { text-decoration: underline; }

.site-nav { display: none; gap: 32px; }

.nav-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--nav-border);
  background: transparent;
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}

.nav-panel {
  position: absolute;
  right: 16px;
  top: 56px;
  min-width: 200px;
  background: var(--ink);
  border: 1px solid var(--nav-border);
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.nav-panel[hidden] { display: none; }
.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--cream);
  text-decoration: none;
}
.nav-panel a:hover { color: var(--link); }

/* Letter board */
.board {
  background: var(--ink);
  border: 5px solid var(--chrome);
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cream);
  text-align: center;
}

.board-stage {
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  top: calc(var(--off) + 76px);
  width: min(358px, 100% - 32px);
  height: 108px;
  z-index: 3;
  opacity: 0;
}

/* The stage board hangs from the ceiling on two wires. */
.board-wire {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 40%;
  width: 2px;
  height: 400px;
  background: var(--chrome);
}
.board-wire + .board-wire { left: auto; right: 40%; }

/* Hand-set letters never sit perfectly level. */
.board-line .ch { display: inline-block; }

.groove {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--board-groove);
}
.groove:nth-child(1) { top: 24px; }
.groove:nth-child(2) { top: 49px; }
.groove:nth-child(3) { top: 74px; }
.groove:nth-child(4) { display: none; }

.board-text {
  position: relative;
  height: 100%;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.board-small { font-size: 10px; letter-spacing: 0.22em; }
.board-sub { color: var(--chrome); }
.board-line {
  max-width: 100%;
  font-size: 14px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intro {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--off) + 244px);
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-box {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--off) + 284px);
  height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

.logo {
  position: relative;
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: min(96px, 26vw);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: var(--cream);
}
.logo-l1, .logo-l2 { display: block; }
.logo-ink {
  position: absolute;
  inset: 0;
  color: var(--ink);
  opacity: 0;
}

.tagline {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--off) + 500px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--vis) - 32px);
  transform: translateY(-100%);
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* Counter */
.counter {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--off) + 640px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 0;
  will-change: transform;
}
/* Ridged aluminum trim along the counter's front edge. */
.counter-edge {
  position: relative;
  height: 10px;
  flex-shrink: 0;
  background: var(--chrome);
  border-bottom: 3px solid var(--chrome-dark);
}
.counter-edge::before,
.counter-edge::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 3px;
  height: 1px;
  background: var(--chrome-dark);
}
.counter-edge::after { top: 6px; }
.counter-top {
  position: relative;
  flex-grow: 1;
  background: var(--counter);
}
.boomerang { position: absolute; left: 0; top: 0; display: block; }
.boomerang-desktop { display: none; }
.mug, .napkins { display: none; }

/* Radio */
.radio {
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  top: calc(var(--off) + 200px);
  width: min(358px, 100% - 32px);
  height: 440px;
  background: var(--red-chile);
  border: 3px solid var(--ink);
  z-index: 1;
  will-change: transform;
}

.js:not(.stage-ready) .radio,
.js:not(.stage-ready) .counter { visibility: hidden; }

/* The molded rim line that runs around a Bakelite cabinet's face. */
.radio::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid var(--red-chile-dark);
  pointer-events: none;
}

.foot {
  position: absolute;
  bottom: -11px;
  width: 44px;
  height: 8px;
  background: var(--ink);
}
.foot-left { left: 12%; }
.foot-right { right: 12%; }

.nameplate {
  position: absolute;
  left: 50px; right: 50px;
  top: 14px;
  height: 70px;
  background: var(--cream);
  border: 2px solid var(--ink);
}
/* An engraved border just inside the plate's edge. */
.nameplate::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--ink);
}

.screw {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chrome);
  border: 1px solid var(--ink);
}
.screw::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 2.5px;
  height: 1px;
  background: var(--ink);
  transform: rotate(35deg);
}
.screw:nth-child(1) { left: 7px; top: 7px; }
.screw:nth-child(2) { right: 7px; top: 7px; }
.screw:nth-child(2)::after { transform: rotate(-20deg); }
.screw:nth-child(3) { left: 7px; bottom: 7px; }
.screw:nth-child(3)::after { transform: rotate(80deg); }
.screw:nth-child(4) { right: 7px; bottom: 7px; }
.screw:nth-child(4)::after { transform: rotate(10deg); }

/* Pilot lamp: dark when the set is quiet, lit while a song plays. */
.pilot {
  position: absolute;
  right: 19px;
  top: 42px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red-chile-dark);
  border: 2px solid var(--ink);
}
.pilot::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: var(--link);
  opacity: 0;
  transition: opacity 0.2s;
}
.radio[data-playing="true"] .pilot::after { opacity: 1; }

.grille {
  position: absolute;
  left: 16px;
  right: 208px;
  top: 100px;
  height: 176px;
  padding: 5px;
  background: var(--chrome);
  border: 2px solid var(--ink);
}
.grille-inner {
  height: 100%;
  padding: 8px 10px;
  background: var(--counter);
  border: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
}
.grille-inner span { width: 6px; background: var(--ink); }
.grille-inner span:nth-child(n+8) { display: none; }

.dial {
  position: absolute;
  right: 16px;
  top: 96px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
}
.dial-face { display: block; width: 100%; height: 100%; }
.dial-numbers text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
}
.dial-band {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
}
.needle {
  position: absolute;
  left: calc(50% - 2px);
  bottom: 50%;
  width: 4px;
  height: 40.4%;
  background: var(--red-chile);
  transform-origin: 50% 100%;
  transform: rotate(-43deg);
  will-change: transform;
}
/* Counterweight tail behind the pivot. */
.needle::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 100%;
  width: 6px;
  height: 18%;
  background: var(--ink);
}
.dial-cap {
  position: absolute;
  left: 45%; top: 45%;
  width: 10%; height: 10%;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--chrome);
  outline: 1px solid var(--ink);
}

.readout {
  position: absolute;
  left: 16px; right: 16px;
  top: 292px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cream);
}
.readout { gap: 12px; }
.readout-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.readout-keys { display: flex; gap: 8px; flex-shrink: 0; }
.readout-freq {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.readout-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.play-btn {
  width: 96px;
  height: 52px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
/* A thick bottom edge is the key's front face; pressing sinks the key and hides most of it. */
.play-btn { border-bottom-width: 6px; }
.play-btn:active { transform: translateY(3px); border-bottom-width: 3px; }

/* The next-song key sits beside play, shaped like a preset key. */
.next-btn {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid var(--ink);
  border-bottom-width: 6px;
  background: var(--key);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.next-btn:active { transform: translateY(3px); border-bottom-width: 3px; }
.play-btn .icon-pause { display: none; }
.play-btn[data-playing="true"] .icon-play { display: none; }
.play-btn[data-playing="true"] .icon-pause { display: block; }

.presets {
  position: absolute;
  left: 16px; right: 16px;
  top: 366px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.preset {
  width: 100%;
  height: 48px;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--key);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.preset { border-bottom-width: 6px; }
.preset[aria-pressed="true"],
.preset:active { transform: translateY(3px); border-bottom-width: 3px; }
.preset[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* Desktop stage */
@media (min-width: 960px) {
  .site-header { height: 80px; padding: 0 64px; }
  .site-nav { display: flex; }
  .nav-toggle, .nav-panel { display: none; }
  .nav-panel[hidden] { display: none; }

  .board { border-width: 6px; }
  .board-wire { bottom: calc(100% + 6px); left: 30%; }
  .board-wire + .board-wire { left: auto; right: 30%; }
  .board-stage { top: calc(var(--off) + 100px); width: 640px; height: 150px; }
  .groove:nth-child(1) { top: 23px; }
  .groove:nth-child(2) { top: 50px; }
  .groove:nth-child(3) { top: 77px; }
  .groove:nth-child(4) { display: block; top: 104px; }
  .board-text { gap: 8px; padding: 0 24px; }
  .board-small { font-size: 13px; letter-spacing: 0.24em; }
  .board-line { font-size: 24px; letter-spacing: 0.1em; }

  .intro { top: calc(var(--off) + 236px); font-size: 13px; }
  .logo-box { top: calc(var(--off) + 290px); height: 220px; }
  .logo { font-size: 200px; line-height: 1.1; }
  .logo-l1, .logo-l2 { display: inline; }
  .tagline { top: calc(var(--off) + 540px); gap: 14px; font-size: 13px; }
  .tagline .chile-bars { gap: 6px; }
  .tagline .chile-bars span { width: 56px; height: 6px; }
  .scroll-hint { top: calc(var(--vis) - 40px); font-size: 13px; }

  .counter { top: calc(var(--off) + 690px); }
  .counter-edge { height: 12px; }
  .counter-edge::after { top: 7px; }
  .boomerang-desktop { display: block; }
  .boomerang-phone { display: none; }

  .radio { top: calc(var(--off) + 290px); width: 880px; height: 400px; }
  .nameplate { left: 218px; right: 218px; top: 22px; height: 76px; }
  .radio::before { inset: 4px; }
  .pilot { right: 190px; top: 52px; width: 14px; height: 14px; }
  .grille { left: 36px; right: auto; top: 124px; width: 300px; height: 200px; padding: 6px; }
  .grille-inner { padding: 9px 15px; }
  .grille-inner span { width: 7px; }
  .grille-inner span:nth-child(n+8) { display: block; }
  .dial { left: 372px; right: auto; top: 120px; width: 208px; height: 208px; }
  .readout {
    left: 612px; right: auto;
    top: 124px;
    width: 230px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .readout-text { gap: 14px; }
  .readout-freq { font-size: 72px; }
  .readout-label { font-size: 12px; letter-spacing: 0.08em; }
  .play-btn { width: 110px; height: 56px; }
  .next-btn { width: 56px; height: 56px; }
  .presets { left: 36px; right: 36px; top: 342px; display: flex; gap: 8px; }
  .preset { flex: 1 1 0; height: 44px; font-size: 11px; }
}

@media (min-width: 1200px) {
  .mug, .napkins {
    display: block;
    position: absolute;
    bottom: 100%;
  }
  .mug { left: calc(50% + 482px); }
  .napkins { right: calc(50% + 500px); }
}

/* ---------- Page ---------- */

.counter-front {
  height: 32px;
  background: var(--red-chile-dark);
  border-bottom: 3px solid var(--chrome);
}

.why {
  padding: 112px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.why h2 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.1;
}
.why p {
  margin: 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream-body);
}

/* Menu */
.menu-section { padding: 128px 16px 0; }
.menu-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
}
.menu-head {
  background: var(--red-chile);
  color: var(--cream);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 3px solid var(--ink);
}
.menu-head h2 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
}
.menu-head-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
}

/* A printed rule just inside the card's edge, like a real menu. */
.menu-body { position: relative; padding-bottom: 8px; }
.menu-body::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.menu-list { list-style: none; margin: 0; padding: 12px 20px 4px; }
.menu-note { margin: 0; padding: 0 20px 20px; font-size: 15px; color: var(--menu-text); }

.menu-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--menu-rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 5px;
  align-items: center;
}
.menu-row:last-child { border-bottom: 0; }

.menu-line {
  grid-column: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
.menu-name, .menu-freq {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}
.menu-freq { color: var(--red-chile); flex-shrink: 0; }
.leader {
  flex-grow: 1;
  min-width: 12px;
  border-bottom: 2px dotted var(--ink);
  margin-bottom: 4px;
}
.griddle {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  background: var(--red-chile);
  color: var(--cream);
  padding: 2px 6px;
  white-space: nowrap;
}
.griddle-inline { display: none; }
.griddle-below { grid-column: 1; justify-self: start; }
.menu-row:not(.is-on) .griddle { display: none; }

.tune-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom-width: 4px;
}
.tune-btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.menu-desc { display: none; }

.menu-saved-note {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--menu-text);
}

.skeleton { display: block; background: var(--skeleton-cream); }
.menu-row-skeleton { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.skeleton-name { width: 62%; height: 22px; }
.skeleton-desc { display: none; width: 48%; height: 12px; }
.skeleton-saved { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; }
.skeleton-saved .skeleton { width: 180px; height: 10px; }
.skeleton-saved span:last-child { display: none; }

@media (min-width: 720px) {
  .counter-front { height: 44px; }

  .why { padding-top: 160px; gap: 24px; }
  .why .chile-bars { gap: 6px; }
  .why .chile-bars span { width: 56px; height: 6px; }
  .why h2 { font-size: 64px; }
  .why p { font-size: 21px; }

  .menu-section { padding: 200px 32px 0; }
  .menu-head { padding: 28px 48px; }
  .menu-head h2 { font-size: 56px; }
  .menu-head-note { font-size: 12px; letter-spacing: 0.14em; }
  .menu-body { padding-bottom: 12px; }
  .menu-body::before { inset: 10px; }
  .menu-list { padding: 32px 48px 8px; }
  .menu-note { padding: 0 48px 32px; font-size: 16px; }

  .menu-row {
    padding: 18px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 6px;
    align-items: end;
  }
  .menu-line { gap: 14px; }
  .menu-name, .menu-freq { font-size: 30px; }
  .leader { border-bottom-width: 3px; margin-bottom: 6px; }
  .griddle { font-size: 11px; padding: 3px 8px; align-self: center; }
  .griddle-inline { display: inline; }
  .griddle-below { display: none !important; }
  .tune-btn { grid-row: 1; }
  .menu-desc {
    display: block;
    grid-column: 1 / -1;
    margin: 0;
    font-size: 16px;
    font-style: italic;
    color: var(--menu-text);
  }
  .menu-saved-note { font-size: 11px; }
  .skeleton-name { width: 48%; height: 30px; }
  .skeleton-desc { display: block; }
  .skeleton-saved .skeleton { width: 260px; height: 12px; }
  .skeleton-saved span:last-child { display: inline; font-family: var(--mono); font-size: 11px; color: var(--menu-text); }
}

/* ---------- Make a tape ---------- */

.order {
  padding: 144px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.order-head h2 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: 46px;
  line-height: 1;
}
.order-head p {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-body);
}
.order-body { display: flex; flex-direction: column; gap: 36px; }

/* Guest check */
.check {
  background: var(--check-paper);
  color: var(--ink);
  border: 2px solid var(--green-chile);
  transform: rotate(-1deg);
}
.check-head {
  padding: 12px 16px;
  border-bottom: 2px solid var(--green-chile);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--green-chile);
}
.check-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.check-no { font-family: var(--mono); font-size: 11px; }

.check-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--green-chile);
}
.check-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 2px solid var(--green-chile);
}
.check-field { padding: 6px 10px; border-right: 1px solid var(--green-chile); min-width: 0; }
.check-field:last-child { border-right: 0; }
.check-value { display: block; font-family: var(--mono); font-size: 13px; line-height: 28px; }
.check-name { padding: 6px 10px; border-bottom: 2px solid var(--green-chile); }

/* Inputs are 16px so phones do not zoom in when they are focused. */
.check-input {
  display: block;
  width: 100%;
  height: 32px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--check-rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
}
.check-input::placeholder { color: var(--menu-text); opacity: 1; }
.check :focus-visible { outline-color: var(--ink); outline-offset: 1px; }

.check-lines { list-style: none; margin: 0; padding: 0; }
.check-line {
  display: flex;
  align-items: stretch;
  min-height: 44px;
  border-bottom: 1px solid var(--check-rule);
  font-family: var(--mono);
  font-size: 12px;
}
.line-no {
  width: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-chile);
  border-right: 1px solid var(--check-rule);
}
/* Long titles wrap onto a second line rather than being cut off. */
.line-title {
  flex-grow: 1;
  min-width: 0;
  padding: 4px 10px;
  align-self: center;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.line-side, .line-btn {
  width: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--check-rule);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
}
.line-side { color: var(--red-chile); }
.line-btn { color: var(--green-chile); }
.line-btn:disabled { color: var(--check-rule); cursor: default; }
.check-line-blank:nth-child(n+9) { display: none; }

.check-total {
  padding: 10px 16px 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
}
.check-total .check-label { font-size: 12px; }
.check-time {
  margin: 0;
  padding: 0 16px 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--menu-text);
}

/* J-card preview */
.jcard {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--cream);
}
.jcard-front {
  min-height: 150px;
  padding: 16px;
  background: var(--cream);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.jcard-title {
  font-family: var(--script);
  font-size: 42px;
  line-height: 1;
  overflow-wrap: anywhere;
}
.jcard-title[data-length="mid"] { font-size: 34px; }
.jcard-title[data-length="long"] { font-size: 28px; }
.jcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.jcard-foot .chile-bars { display: none; gap: 4px; }
.jcard-foot .chile-bars span { width: 28px; height: 5px; }
.jcard-spine {
  height: 30px;
  padding: 0 12px;
  background: var(--red-chile);
  color: var(--cream);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
}
.jcard-spine span:first-child { overflow: hidden; text-overflow: ellipsis; }
.jcard-flap {
  padding: 14px;
  display: flex;
  gap: 14px;
  background: var(--green-chile);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.75;
}
.jcard-lists { flex-grow: 1; min-width: 0; }
.jcard-lists div { overflow-wrap: anywhere; }
.jcard-side { text-transform: uppercase; color: var(--counter); }
.jcard-side ~ .jcard-side { margin-top: 6px; }
.jcard-empty { color: var(--counter); }
.jcard-qr {
  flex-shrink: 0;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
}
.jcard-qr-patch { width: 112px; height: 112px; background: var(--cream); padding: 6px; }
.jcard-qr-patch .qr { display: block; width: 100%; height: 100%; }
.jcard-qr-patch:has(.qr) { padding: 0; }
.jcard-qr-skeleton { display: block; width: 100%; height: 100%; }

/* Buttons */
.order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.btn {
  min-height: 52px;
  padding: 0 12px;
  border: 0;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}
.btn-red { background: var(--red-chile); color: var(--cream); }
.btn-line { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.order-status {
  margin: 16px 0 0;
  min-height: 1.6em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-body);
  overflow-wrap: anywhere;
}
.order-legal {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 960px) {
  .order { padding: 240px 0 0; align-items: center; gap: 56px; }
  .order-head {
    width: 880px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
  }
  .order-head h2 { font-size: 64px; }
  .order-head p { margin: 0; max-width: 400px; font-size: 18px; }
  .order-body { width: 880px; flex-direction: row; align-items: flex-start; gap: 56px; }

  .check { width: 380px; flex-shrink: 0; transform: rotate(-1.5deg); }
  .check-head { padding: 16px 20px; }
  .check-head h3 { font-size: 26px; }
  .check-no { font-size: 12px; }
  .check-line { font-size: 13px; }
  .line-no { width: 34px; }
  .check-line-blank:nth-child(n+9) { display: flex; }
  .check-total { padding: 12px 20px 4px; font-size: 13px; }
  .check-total .check-label { font-size: 13px; }
  .check-time { padding: 0 20px 12px; font-size: 12px; }

  .order-side { flex-grow: 1; min-width: 0; }
  .jcard-front { min-height: 190px; padding: 20px 24px; }
  .jcard-title { font-size: 50px; }
  .jcard-title[data-length="mid"] { font-size: 40px; }
  .jcard-title[data-length="long"] { font-size: 32px; }
  .jcard-foot { font-size: 11px; }
  .jcard-foot .chile-bars { display: flex; }
  .jcard-spine { height: 34px; padding: 0 16px; font-size: 16px; }
  .jcard-flap { padding: 16px 20px; gap: 20px; font-size: 12px; }
  .jcard-qr { font-size: 11px; }
  .jcard-qr-patch { width: 139px; height: 139px; padding: 7px; }
  .btn { font-size: 13px; }
}

/* ---------- Christmas style ---------- */

.xmas { margin: 8px 20px 20px; border: 3px solid var(--ink); }
.xmas-bars { display: flex; height: 16px; border-bottom: 3px solid var(--ink); }
.xmas-bars span { flex-grow: 1; background: var(--red-chile); }
.xmas-bars span + span { background: var(--green-chile); }
.xmas-main { padding: 16px; }
.xmas-row { display: flex; flex-direction: column; gap: 10px; }
.xmas-text { display: flex; flex-direction: column; gap: 10px; }
.xmas-title {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}
.xmas-text p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--menu-text); }
.xmas-order, .xmas-serve {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.xmas-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--menu-rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.xmas-form[hidden] { display: none; }
.xmas-field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--menu-text);
}
.xmas-field:first-child label { color: var(--red-chile); }
.xmas-field:nth-child(2) label { color: var(--green-chile); }
/* A drawn chevron replaces the browser's own select arrow. */
.xmas-field select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--check-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A1712' stroke-width='2.6'%3E%3Cpolyline points='5,9 12,16 19,9'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.xmas-status { margin: 0; min-height: 1.5em; font-size: 15px; line-height: 1.5; color: var(--ink); }

@media (min-width: 720px) {
  .xmas { margin: 16px 48px 48px; display: flex; }
  .xmas-bars { flex-direction: row; width: 120px; height: auto; flex-shrink: 0; border-bottom: 0; border-right: 3px solid var(--ink); }
  .xmas-bars span { width: 60px; flex-grow: 0; }
  .xmas-main { flex-grow: 1; padding: 22px 28px; }
  .xmas-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
  .xmas-text { gap: 6px; }
  .xmas-title { font-size: 34px; }
  .xmas-text p { font-size: 16px; }
  .xmas-order { min-height: 52px; }
  .xmas-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
  .xmas-serve { min-height: 48px; }
  .xmas-status { grid-column: 1 / -1; }
}

/* ---------- Tell the cook and Today's special ---------- */

.extras { padding: 144px 16px 128px; display: flex; flex-direction: column; gap: 96px; }
.cook, .special { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cook h2 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
}
.cook-row { display: flex; align-items: center; gap: 18px; }
.cook-help { margin: 0; font-size: 16px; line-height: 1.55; color: var(--cream-body); }

/* REC is a round button, like the one on a tape deck. */
.rec {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: var(--red-chile);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.rec[data-state="recording"] { background: var(--cream); color: var(--red-chile); border-color: var(--red-chile); }
.rec[data-state="asking"], .rec[data-state="stopping"] { opacity: 0.7; }
.rec:disabled { opacity: 0.45; cursor: not-allowed; }
.cook-timer { margin: 0; min-height: 1.5em; font-family: var(--mono); font-size: 13px; color: var(--cream); }
.cook-timer:empty { display: none; }

.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.field-input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 2px solid var(--cream);
  border-radius: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
}
.field-input::placeholder { color: var(--muted); opacity: 1; }
.cook-send { display: flex; flex-direction: column; gap: 10px; }
.cook-send[hidden] { display: none; }
.cook-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.cook-status, .signup-status {
  margin: 0;
  min-height: 1.6em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-body);
}
.cook-status:empty, .signup-status:empty { min-height: 0; }
.legal-line {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.board-special {
  border-width: 5px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.special-title {
  display: block;
  width: 100%;
  font-size: 20px;
  letter-spacing: 0.1em;
  line-height: 1.3;
}
.special-title .skeleton { display: block; width: 70%; height: 20px; margin: 0 auto; }
.skeleton-dark { background: var(--skeleton-dark); }
.special-play { width: 100%; }
.special-status { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--cream-body); }
.special-status:empty { display: none; }
.signup { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.signup-row { display: flex; flex-direction: column; gap: 12px; }
.btn-green { background: var(--green-chile); color: var(--cream); min-height: 52px; font-size: 13px; }

@media (min-width: 960px) {
  .extras {
    width: 880px;
    margin: 0 auto;
    padding: 240px 0 200px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 80px;
  }
  .cook { gap: 20px; }
  .cook h2 { font-size: 48px; }
  .cook-row { gap: 22px; }
  .rec { width: 84px; height: 84px; font-size: 13px; }
  .cook-help { font-size: 17px; line-height: 1.6; }
  .field-label { font-size: 12px; }
  .legal-line { font-size: 12px; }
  .special { gap: 14px; }
  .board-special { border-width: 6px; padding: 22px; gap: 8px; }
  .board-special .board-small { font-size: 12px; letter-spacing: 0.24em; }
  .special-title { font-size: 26px; letter-spacing: 0.12em; }
  .signup-row { flex-direction: row; gap: 8px; }
  .signup-row .field-input { flex-grow: 1; }
  .signup-row .btn-green { min-height: 56px; padding: 0 20px; flex-shrink: 0; }
}

/* Song picker */
.picker {
  width: min(640px, calc(100% - 16px));
  max-width: none;
  height: min(760px, calc(100vh - 16px));
  height: min(760px, calc(100dvh - 16px));
  max-height: none;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
}
.picker[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.picker::backdrop { background: rgba(26, 23, 18, 0.85); }
.picker :focus-visible { outline-color: var(--ink); }
.picker-head {
  background: var(--red-chile);
  color: var(--cream);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--ink);
}
.picker-head h2 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
}
.picker-head :focus-visible { outline-color: var(--cream); }
.picker-done {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}
.picker-tools { padding: 14px 20px; border-bottom: 1px solid var(--menu-rule); }
.picker-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--menu-text);
}
.picker-search {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--check-paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.picker-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.picker-time {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--menu-text);
}
.picker-list { overflow-y: auto; padding: 4px 20px 16px; overscroll-behavior: contain; }
.pick-group h3 {
  margin: 20px 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
}
.pick-group ul { list-style: none; margin: 0; padding: 0; }
.pick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 0;
  border-bottom: 1px solid var(--menu-rule);
}
.pick-row[hidden] { display: none; }
.pick-title { flex-grow: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.pick-time { font-family: var(--mono); font-size: 12px; color: var(--menu-text); }
.pick-on {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--red-chile);
  white-space: nowrap;
}
.pick-actions { display: flex; gap: 6px; }
.pick-add, .pick-remove {
  height: 44px;
  border: 2px solid var(--ink);
  border-bottom-width: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}
.pick-add { width: 44px; padding: 0; }
.pick-remove { display: none; padding: 0 10px; font-size: 11px; }
.pick-add:active, .pick-remove:active { transform: translateY(2px); border-bottom-width: 2px; }
.pick-row.is-on .pick-actions { display: none; }
.pick-row.is-on .pick-on, .pick-row.is-on .pick-remove { display: inline-block; }
.pick-none { margin: 20px 0; font-size: 15px; color: var(--menu-text); }
.picker-status {
  margin: 0;
  min-height: 44px;
  padding: 12px 20px;
  border-top: 1px solid var(--menu-rule);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- Now serving bar ---------- */

.nowbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: var(--ink);
  border-top: 4px solid var(--chrome);
  color: var(--cream);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
}
.nowbar.is-shown {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s;
}
.nowbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nowbar-text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
}
.nowbar-label, .nowbar-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--chrome);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nowbar-title {
  font-size: 15px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nowbar-keys { display: flex; gap: 8px; flex-shrink: 0; }
.nowbar-play, .nowbar-next {
  height: 48px;
  padding: 0;
  border: 2px solid var(--ink);
  border-bottom-width: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nowbar-play { width: 60px; background: var(--cream); color: var(--ink); }
.nowbar-next { width: 48px; background: var(--key); color: var(--ink); }
.nowbar-play:active, .nowbar-next:active { transform: translateY(2px); border-bottom-width: 3px; }
.nowbar-play .icon-pause { display: none; }
.nowbar-play[data-playing="true"] .icon-play { display: none; }
.nowbar-play[data-playing="true"] .icon-pause { display: block; }
.nowbar :focus-visible { outline-color: var(--cream); outline-offset: 2px; }

@media (min-width: 720px) {
  .nowbar-inner { padding: 10px 32px; gap: 20px; }
  .nowbar-label, .nowbar-sub { font-size: 11px; letter-spacing: 0.24em; }
  .nowbar-title { font-size: 18px; letter-spacing: 0.1em; }
  .nowbar-play { width: 72px; height: 52px; }
  .nowbar-next { width: 52px; height: 52px; }
}
@media (min-width: 944px) {
  .nowbar-inner { padding-left: 0; padding-right: 0; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  border-top: 5px solid var(--red-chile);
  padding: 40px 16px calc(48px + 76px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--cream-body);
}
.footer-id { display: flex; flex-direction: column; align-items: flex-start; }
.footer-name {
  font-family: var(--script);
  font-size: 30px;
  line-height: 1.2;
  color: var(--cream);
}
.site-footer nav { display: flex; flex-wrap: wrap; column-gap: 20px; align-items: center; }
/* Phone footer links get a 44px touch target; desktop keeps the board's line rhythm. */
.site-footer a { display: inline-block; padding: 10px 0; margin: -10px 0; }

@media (min-width: 720px) {
  .site-footer {
    border-top-width: 6px;
    padding: 56px max(32px, (100% - 880px) / 2) calc(56px + 80px);
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
  }
  .footer-name { font-size: 34px; }
  .site-footer nav { flex-direction: column; align-items: flex-start; }
  .site-footer a { padding: 0; margin: 0; }
}

/* ---------- Terms of use and Privacy policy ---------- */

.doc-header {
  max-width: 712px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
}
.doc { max-width: 712px; margin: 0 auto; padding: 56px 16px 96px; }
.doc .chile-bars { margin-bottom: 20px; }
.doc h1 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.1;
}
.doc-date { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.doc h2 {
  margin: 40px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: var(--cream-body); }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc-footer {
  border-top: 5px solid var(--red-chile);
  background: var(--ink);
  padding: 32px max(16px, (100% - 680px) / 2) 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cream-body);
}
.doc-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 720px) {
  .doc-header { padding: 18px 16px; }
  .doc { padding-top: 80px; }
  .doc h1 { font-size: 64px; }
  .doc .chile-bars span { width: 56px; height: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
