/* ==========================================================================
   Some Guy's House — shared stylesheet
   "Some guy made this website" direction: clean rounded body text (Quicksand),
   blue underlined links, raised grey buttons, MS Paint logo, sticky notes,
   a scrolling ticker and construction tape. Tokens are at the top.
   ========================================================================== */

:root {
  /* Colors (pulled from the hand-drawn logo) */
  --color-bg: #ffffff; /* stark white — Craigslist/old-web, not a warm off-white */
  --color-text: #111111;
  --color-text-muted: #444444;
  --color-border: #111111;
  --color-blue: #1010e0; /* headings, dividers, dialog title bar */
  --color-red: #a8291a; /* price, button, scribbles — deep brick red, not alarm red */
  --color-orange: #ee8a4e; /* ticker, selected slot */
  --color-yellow: #ffd400; /* sticker, construction tape */
  --color-sticky: #fff27a; /* yellow sticky note */
  --color-green: #7bf09a; /* green sticky note */
  --color-link: #0000ee; /* old-school browser link blue */
  --color-link-visited: #551a8b;
  --color-button: #dcdcdc; /* raised grey button face */
  --color-button-light: #f4f4f4;
  --color-focus: #1d4ed8;
  --color-error-bg: #fff4f2;
  --color-error-text: #991b1b;
  --color-success-bg: #ecfdf3;
  --color-success-text: #14532d;

  /* Fonts: Courier is built into every device; Quicksand and Gaegu are loaded.
     Quicksand (clean rounded sans) is the content/UI font; Gaegu (hand-drawn)
     is the voice/accent font — same two-font split as e.g. HEYTEA's site,
     rather than pairing a hand-drawn font against a formal serif. */
  --font-body: "Quicksand", "Comic Sans MS", sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --font-hand: "Gaegu", "Comic Sans MS", cursive;

  /* Type scale (fluid) */
  --text-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --text-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.5rem);
  --text-display: clamp(2.5rem, 1.5rem + 5.5vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(2rem, 1rem + 4vw, 3.5rem);

  /* Layout */
  --max-width: 67.5rem;

  /* The jank: slight tilts. Set these to 0deg to straighten everything. */
  --tilt-a: -2deg;
  --tilt-b: 1.5deg;
  --tilt-c: -0.6deg;
}

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400 700; /* variable font: covers regular through bold in one file */
  font-display: swap;
  src: url("assets/fonts/quicksand-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Gaegu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/gaegu-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Gaegu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/gaegu-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 700 900; /* variable font: the dish title uses the black (900) end */
  font-display: swap;
  src: url("assets/fonts/bitter-latin.woff2") format("woff2");
}

/* ---------- Reset / base ---------- */

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

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

/* The header is now sticky (see .site-header) — without this, jumping to
   #how-it-works etc. lands the section flush under the viewport top, which
   is hidden behind the header. Matches the header's own measured height
   (~86px) as closely as possible — any extra here shows as a sliver of
   whatever tinted section sits just before the target (e.g. #dates lands
   just past #how-it-works' mint background) peeking out above it. */
section[id] {
  scroll-margin-top: 5.4rem;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  overflow-wrap: break-word;
  overflow-x: hidden; /* the tilted ticker pokes past the edges on purpose */
}

/* Custom hand-drawn cursor everywhere, overriding every element's own cursor
   (links, buttons, disabled states, text inputs, etc. all default otherwise). */
*,
*::before,
*::after {
  cursor:
    url("assets/cursor.png") 2 2,
    auto !important;
}

/* Keep [hidden] winning over display rules (e.g. the video toggle, which script.js unhides). */
[hidden] {
  display: none !important;
}

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

/* Headings are declarative/display, not data — Gaegu here, Times New Roman
   stays for everything that's actually read line by line underneath. */
h1,
h2,
h3 {
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
}

h2 {
  /* Bigger than --text-2xl: with only 3 real sections (feature, how it
     works, reserve), each section title should read as a strong landmark,
     not just slightly-larger body text. Black, not blue: blue reads as
     "clickable" (it's the link color everywhere else), and headings aren't
     links — the Gaegu/Quicksand typeface contrast alone is enough to mark
     this as a heading, no color needed (same logic Oatly and most
     neobrutalist sites use: typography signals hierarchy, not hue). */
  font-size: clamp(2.25rem, 1.65rem + 2.5vw, 3.25rem);
  color: var(--color-text);
}

/* More room than the generic h2 bottom margin: on desktop this section has
   a full viewport to work with, and the title sat too close to the first
   date card given all that available space. */
#how-title {
  margin-bottom: var(--space-3);
}

#faq-title {
  margin-bottom: var(--space-1);
}

/* #dates-title is followed by .dates-hint, not content directly, so it
   only needs a small gap to its hint line — the bulk of the breathing
   room (matching #how-title/#faq-title) moves to .dates-hint's own
   bottom margin instead, so the hint reads as its own chunk rather than
   getting squeezed into the title's padding. */
#dates-title {
  margin-bottom: var(--space-2);
}

.manage-title {
  color: var(--color-text);
}

h3 {
  font-size: var(--text-lg);
}

.h2-aside {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:visited {
  color: var(--color-link-visited);
}
/* Craigslist-style hover: underline appears, color doesn't change. Applies
   to visited links too — no purple shift on hover here either. */
a:hover {
  text-decoration: underline;
}

/* Same-page anchor links ("below" in how-it-works, etc.) aren't really
   "visited" in the browsing-history sense — they're just this page's own
   sections. Without this, clicking one once turns it purple forever. */
a[href^="#"]:visited {
  color: var(--color-link);
}

/* Nav links: black, not blue — blue is reserved for in-content links
   (Venmo, Zelle, "below") where "this is clickable" is useful information;
   nav position already signals "this is navigation," so it doesn't need
   the link color too. Never show visited state either, hash or not
   ("location" is a real external link and does get visited by the
   browser) — a purple link sitting next to the others just looks broken. */
.site-nav a,
.site-nav a:visited {
  color: var(--color-text);
}

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

/* A button that looks like an inline link (e.g. "Zelle", which copies a number). */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--color-link);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.link-button:hover {
  color: #00009a;
}

/* "Copied to clipboard" message (script.js → showToast). */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border: 3px solid var(--color-border);
  background: var(--color-sticky);
  color: var(--color-text);
  font-family: var(--font-hand);
  font-size: var(--text-lg);
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, var(--space-4)) rotate(var(--tilt-c));
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) rotate(var(--tilt-c));
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.skip-link:focus {
  top: var(--space-4);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: 45rem;
}

/* ---------- Shared bits: buttons, sticky notes, scribbles, dividers ---------- */

/* Solid red button, used for every button on the site. Black border ties it
   to the same "authority" motif as the reserve-a-plate box's border. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--color-border);
  /* Blue, not red: blue is the site's "pay attention / interactive" color
     (links, headings, dividers) — buttons are the main interactive thing on
     the page, so they get it too. Red stays reserved for price/accent. */
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.button:visited,
.button:hover {
  color: #fff;
}
.button:hover {
  background: #0c0cae;
}
.button:active {
  transform: scale(0.96);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button--small {
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
}
.button--large {
  padding: var(--space-3) var(--space-7);
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
}

/* Raised grey Windows-95 button face, for secondary actions next to a blue primary CTA. */
.button--secondary {
  background: var(--color-button);
  color: var(--color-text);
}

.button--secondary:visited {
  color: var(--color-text);
}
.button--secondary:hover {
  background: var(--color-button-light);
  color: var(--color-text);
}

/* No-fill "Reserve" CTAs (navbar, hero): black, not blue — blue is already
   doing nav-link duty right above/below these, so a blue button wouldn't
   read as distinct from that. Black border/text is enough weight on its own. */
.button--ghost {
  background: none;
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Specificity bump (not just source order): browsers' :visited privacy
   sandbox doesn't reliably let a later same-specificity rule win the actual
   paint over .button:visited, even though it reports correctly to JS. */
a.button--ghost:visited {
  color: var(--color-text);
}
/* Underline only for now, no fill — a stronger hover treatment (color
   change) is still being decided on separately. Explicitly resets
   background: the base .button:hover rule fills solid blue and was never
   actually overridden here before — only color/text-decoration were. */
.button--ghost:hover {
  background: none;
  color: var(--color-text);
  text-decoration: underline;
}

/* Red accent outline for the site's primary reservation CTAs (nav Reserve,
   hero Reserve) — draws the eye without going as loud as
   a filled button. Border only; text stays black like the rest of
   .button--ghost. Not applied to every .button--ghost (e.g. the order
   dialog's own Reserve submit keeps the plain black outline) — this is a
   deliberate highlight for these specific CTAs, not a new default. */
.button--ghost-accent {
  border-color: var(--color-red);
}

.sticky-note {
  display: inline-block;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-hand);
  font-size: var(--text-lg);
  line-height: 1.2;
  color: var(--color-text);
}

.sticky-note--yellow {
  background: var(--color-sticky);
  transform: rotate(var(--tilt-b));
}
.sticky-note--green {
  background: var(--color-green);
  transform: rotate(var(--tilt-a));
}

.scribble {
  font-family: var(--font-hand);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* Dashed blue rule between sections, same motif as the FAQ item underlines,
   alternating sides so they look hand-placed. */
.divider {
  width: 70%;
  max-width: calc(var(--max-width) * 0.7);
  height: 0;
  margin: var(--space-8) auto var(--space-8)
    max(var(--space-4), (100% - var(--max-width)) / 2 + var(--space-4));
  border: 0;
  border-top: 2px dashed var(--color-blue);
}

.divider--right {
  width: 60%;
  margin-left: auto;
  margin-right: max(
    var(--space-4),
    (100% - var(--max-width)) / 2 + var(--space-4)
  );
}

.divider--wide {
  width: 80%;
  max-width: calc(var(--max-width) * 0.8);
}

/* Yellow/black construction tape: stripes crawl continuously, opposite
   direction from the ticker above (that one scrolls left, this scrolls right). */
.tape {
  height: 1.625rem;
  border-block: 3px solid var(--color-border);
  background: repeating-linear-gradient(
    -45deg,
    var(--color-yellow) 0 18px,
    var(--color-border) 18px 36px
  );
  background-size: 50.9117px 50.9117px; /* 36px / sin(45deg), so one tile = one full stripe cycle */
  animation: tape-crawl 2.4s linear infinite;
}

.tape--reverse {
  background: repeating-linear-gradient(
    45deg,
    var(--color-yellow) 0 18px,
    var(--color-border) 18px 36px
  );
  background-size: 50.9117px 50.9117px;
  animation: tape-crawl-reverse 2.4s linear infinite;
}

@keyframes tape-crawl {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 50.9117px 0;
  }
}

@keyframes tape-crawl-reverse {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -50.9117px 0;
  }
}

.blink {
  color: var(--color-red);
  font-weight: 700;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Header: standard navbar — logo left, links centered, Reserve right ---------- */

/* Sticky so "Reserve a plate" is always reachable without scrolling back
   up. Flush/borderless at rest (like HEYTEA's); script.js adds .is-scrolled
   once the page scrolls, which fades in a soft bottom border — avoids a
   hard line sitting under the header on every page load. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  /* A soft shadow, not a hard 1px border: a solid black line felt too harsh
     once scrolled. box-shadow transitions its own alpha smoothly, so this
     genuinely fades in rather than snapping — unlike border-color, it
     doesn't hide/show the header's own content along the way. */
  box-shadow: 0 1px 6px rgba(17, 17, 17, 0);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 6px rgba(17, 17, 17, 0.12);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
}

.logo {
  display: block;
  flex: none;
}

.logo-mark {
  width: 100%;
  max-width: 4.5rem;
  height: auto;
  transform: rotate(var(--tilt-a));
}

/* Centered nav on wide screens, sitting between logo and button via the
   auto-margin below. On narrow screens it becomes a hamburger-triggered
   slide-in panel instead (see .nav-toggle / .nav-scrim) — HEYTEA-style. */
.site-nav {
  order: 3;
}

@media (min-width: 48em) {
  .site-nav {
    order: initial;
    margin-inline: auto;
  }

  /* "home" only makes sense in the mobile hamburger panel — on desktop the
     logo itself is already the clickable "go home" target right next to it. */
  .nav-home-item {
    display: none;
  }
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  /* Gaegu, not Quicksand: nav labels are short words, not data to read
     precisely (unlike the footer's phone number/address, which stays in
     Quicksand) — the hand-drawn voice font fits fine here. */
  font-family: var(--font-hand);
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  font-weight: 700;
}

.site-nav a {
  display: inline-block;
  padding-block: var(--space-1);
  white-space: nowrap;
}

.header-cta {
  flex: none;
  font-weight: 700;
}

/* ---------- Mobile nav: hamburger + slide-in panel ---------- */

.nav-toggle {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
}

.nav-close {
  display: none;
}

.nav-scrim {
  display: none;
}

@media (max-width: 47.9375em) {
  .nav-toggle {
    display: flex;
  }

  /* Reserve + hamburger as one right-aligned cluster, not spread across
     the row by space-between (which left Reserve stranded in the visual
     middle instead of grouped with the menu control next to it). */
  .header-cta {
    margin-left: auto;
  }

  /* Off-canvas panel sliding in from the right, same idea as HEYTEA's
     mobile menu: full-height, white, nav links stacked and left-aligned.
     No transition here — only on .is-opening/.is-closing (set briefly by
     script.js) — otherwise simply entering this breakpoint (e.g. resizing
     the window narrower) animates from "no transform" to translateX(100%)
     as if the panel were sliding shut, even though it was never open. */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    width: min(20rem, 50vw);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-5) var(--space-5) var(--space-6);
    background: var(--color-bg);
    box-shadow: -4px 0 24px rgba(17, 17, 17, 0.15);
    transform: translateX(100%);
  }

  .site-nav.is-animating {
    transition: transform 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    font-size: var(--text-xl);
  }

  .nav-close {
    display: block;
    align-self: flex-end;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
  }

  .nav-scrim {
    /* Overrides the base .nav-scrim { display: none } (desktop default) —
       without this, the scrim never actually showed even after JS removed
       the [hidden] attribute, which is also why clicking outside the panel
       didn't close it: there was nothing there to catch the click.
       Always rendered (not toggled by [hidden]/display) so opacity can
       actually transition — display:none can't animate, it just snaps. */
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(17, 17, 17, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .nav-scrim.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Opening statement: the first real content a visitor sees after the navbar,
   and the clear first focal point of the page — bigger and bolder than a
   plain intro blurb so the eye lands here first, not on the dish title
   below (which has no food image in view yet at this scroll position).
   Background is a soft tint pulled from the logo's orange, not a flat
   neutral grey — ties the section to the hand-drawn brand instead of
   reading as generic "card" chrome. */
/* Each major section fills at least one full screen (min-height, not a
   fixed height — content taller than the viewport, like a long date list,
   still grows past it rather than getting clipped) and centers its content
   vertically within that space. "One thing at a time" as you scroll,
   rather than a long undifferentiated flow. Accounts for the sticky
   header's height so a section doesn't start partway offscreen.
   FAQ is deliberately NOT in this list: it's no longer in the nav (it's
   reference material under Dates, not its own landmark), so it doesn't get
   the "one full screen" treatment — it's sized to its content instead, like
   the footer. */
.intro,
.hero,
#how-it-works,
#dates {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 5.5rem);
  min-height: calc(100dvh - 5.5rem);
}

.intro {
  background: #fef5f0;
  /* Driven by svh, not vw: on short phones (e.g. iPhone 16e) this needs to
     shrink toward the floor, which a vw-only clamp never does since width
     and height aren't correlated. */
  padding-block: clamp(1.5rem, 9svh, 7rem);
  text-align: center;
}

.intro-title {
  margin: 0 0 var(--space-5);
}

.intro-title-eyebrow {
  display: block;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.875rem);
}

.intro-title-name {
  display: block;
  font-size: clamp(3.5rem, 2.25rem + 6vw, 6.5rem);
}

.intro-line {
  max-width: 40rem;
  margin: 0 auto;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Grand-opening badge: deliberately janky stop-motion pulse — script.js
   toggles .is-big every 700ms, same frame-swap technique as the logo's
   tilt animation, just applied to size instead of rotation. Scales via
   transform, not width: changing the image's actual layout box (even with
   height:auto) resized .intro's whole centered flex stack along with it,
   visibly shifting the title/description up and down every pulse.
   Replaces the earlier soft-launch RSVP badge (same technique, reused). */
.grand-opening-badge {
  display: inline-block;
  width: min(28rem, 100% - 2 * var(--space-4));
  margin-top: var(--space-7);
}

.grand-opening-badge img {
  width: 100%;
  height: auto;
  transform: scale(0.88);
  transition: none; /* snap, not tween — the jank is the point */
}

.grand-opening-badge.is-big img {
  transform: scale(1);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(1.25rem, 0.75rem + 2vw, 2.25rem);
}

/* Alternating tinted zones (a la Craigslist's section bars): the page was
   one undifferentiated white field with blue links/accents scattered
   through it and nothing neutral to ground them against. A tinted band
   under a section both chunks the page into readable zones and gives
   blue/red a buffer between them and stark white. Tints are pulled from the
   logo's own colors (same approach as the intro section's warm orange),
   not a flat neutral grey, so each zone still feels like this brand. */
#how-it-works {
  background: #ebfef4; /* soft mint, from the logo's green */
}

#faq {
  /* Tinted straight from the logo's actual blue (#1B06F5) at ~30% strength —
     previous attempts (R/G forced equal at a lighter tint) still read as
     grey-lavender; this one is unambiguously blue while staying pastel. */
  background: #c5dffc;
  /* No longer full-viewport (see above), so simple symmetric padding —
     the asymmetric "less on top" version only made sense when content was
     vertically centered in a tall band. */
  padding-block: var(--space-7);
}

/* Footer: back to plain white, same as the page itself. */
.site-footer {
  background: var(--color-bg);
  /* The page just ends right after the last footer row otherwise — no
     breathing room before the actual bottom of the viewport/document,
     most noticeable on mobile where content stacks to 4 rows. */
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* ---------- Hero ---------- */

.hero {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  /* Driven by svh, not vw: on short phones (e.g. iPhone 16e) this needs to
     shrink toward the floor, which a vw-only clamp never does since width
     and height aren't correlated. */
  padding: clamp(1rem, 4.5svh, 3.5rem) var(--space-4);
}

.hero-head {
  position: relative;
  /* svh term so this compresses on short phones instead of staying a flat
     2rem regardless of how much vertical room the screen actually has. */
  margin-bottom: clamp(1rem, 1.5svh + 0.25rem, 2rem);
}

/* Tells a first-time visitor what the giant title below actually is — the
   page used to rely on a screen-reader-only "presents" for this, so sighted
   visitors had zero context for the dish name. */
.now-featuring {
  margin: 0 0 var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
}

.sticker {
  position: absolute;
  left: clamp(0rem, 3vw, 2.5rem);
  top: 0;
  width: var(--sticker-size);
  aspect-ratio: 1;
  animation: sticker-pulse 2.2s ease-in-out infinite;
}

.sticker::before,
.sticker span {
  position: absolute;
  clip-path: polygon(
    50% 0%,
    60.1% 12.3%,
    75% 6.7%,
    77.6% 22.4%,
    93.3% 25%,
    87.7% 39.9%,
    100% 50%,
    87.7% 60.1%,
    93.3% 75%,
    77.6% 77.6%,
    75% 93.3%,
    60.1% 87.7%,
    50% 100%,
    39.9% 87.7%,
    25% 93.3%,
    22.4% 77.6%,
    6.7% 75%,
    12.3% 60.1%,
    0% 50%,
    12.3% 39.9%,
    6.7% 25%,
    22.4% 22.4%,
    25% 6.7%,
    39.9% 12.3%
  );
}

.sticker::before {
  content: "";
  inset: 0;
  background: var(--color-border);
}

.sticker span {
  inset: 5px;
  display: grid;
  place-items: center;
  background: var(--color-yellow);
  font-family: var(--font-hand);
  font-size: clamp(1rem, 0.6rem + 1.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* Continuous heartbeat: two beats evenly spaced across the whole loop, no rest. */
@keyframes sticker-pulse {
  0%,
  50%,
  100% {
    transform: rotate(-12deg) scale(1);
  }
  12.5% {
    transform: rotate(-12deg) scale(1.12);
  }
  25% {
    transform: rotate(-12deg) scale(1);
  }
  37.5% {
    transform: rotate(-12deg) scale(1.08);
  }
  62.5% {
    transform: rotate(-12deg) scale(1.12);
  }
  75% {
    transform: rotate(-12deg) scale(1);
  }
  87.5% {
    transform: rotate(-12deg) scale(1.08);
  }
}

.hero-title {
  margin: 0;
}

.hero-dish {
  display: block;
  /* Bitter at its heaviest (900/black): a serious, confident slab-ish serif —
     deliberate contrast against the goofy hand-drawn Gaegu/Quicksand rest of
     the page. The dish itself is the one thing this site is dead serious
     about. */
  font-family: "Bitter", var(--font-body);
  font-weight: 900;
  font-size: var(--text-display);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
}

.hero-dish-a,
.hero-dish-b {
  /* Plain black, not a color: blue is reserved for links/actions (Craigslist
     styling) — the heavy Bitter weight carries "serious" on its own. */
  color: var(--color-text);
  overflow-wrap: normal;
  word-break: keep-all;
}

/* Photo strip: one photo per screen, swipe or scroll sideways for more. */
.plate-stage {
  position: relative;
  background: var(--color-bg);
}

.photo-strip {
  display: flex;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  scrollbar-width: thin;
}

.photo-strip li {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  /* svh term shrinks the photo on short phones (e.g. iPhone 16e) where the
     fixed 24rem cap left the hero taller than the screen; tall phones still
     hit the 24rem ceiling same as before. */
  max-height: clamp(12rem, 40svh, 24rem);
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Bigger cap on desktop (24rem, same ceiling as mobile): the photo is the
   star of the hero, so it should read larger there, not smaller — made room
   by shrinking .hero-desc's font-size/line-height below so the full hero
   (title, photo, description, price, button) still fits without clicking
   "Menu" in the nav scrolling to a view that cuts off the Reserve button. */
@media (min-width: 48em) {
  .photo-strip li {
    max-height: 24rem;
  }
}

.plate-note {
  position: absolute;
  right: var(--space-4);
  top: var(--space-4);
}

/* Stacked under the photo: description, then price, then the button. */
.hero-details {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  /* Top padding mirrors .hero-head's svh-aware margin above, same reasoning. */
  padding: clamp(1rem, 1.5svh + 0.25rem, 2rem) var(--space-4) 0;
  text-align: center;
}

.hero-details p {
  margin: 0;
}

.hero-desc {
  max-width: 34rem;
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* The USDA Choice ribeye note: kept to one line so it reads as a quick
   aside rather than wrapping into the main description's look. Forcing
   nowrap at every width pushes the page into horizontal scroll on narrow
   phones (the line is too long to shrink to fit without becoming
   illegible), so it only goes single-line once the viewport is wide
   enough to actually fit it comfortably; narrower screens fall back to
   wrapping like a normal .hero-desc line. */
.hero-desc--aside {
  font-size: var(--text-sm);
}

@media (min-width: 26em) {
  .hero-desc--aside {
    max-width: none;
    white-space: nowrap;
  }
}

.hero-price {
  font-size: clamp(2.5rem, 1.75rem + 3.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-red);
}

/* ---------- How it works ---------- */

.how-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5) var(--space-7);
}

.how-text {
  flex: 999 1 22rem;
  min-width: 0;
}

.steps {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding-left: 1.5rem;
  font-size: var(--text-lg);
  line-height: 1.5;
}

/* Snaps through three stages — tilt, straight, opposite tilt — same 700ms
   cadence as the header logo's three image frames, no easing, hard jumps. */
.buzzer-note {
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin-top: var(--space-2);
  animation: buzzer-rock 2.1s steps(1) infinite;
}

@keyframes buzzer-rock {
  0%,
  33.3% {
    transform: rotate(var(--tilt-a));
  }
  33.301%,
  66.6% {
    transform: rotate(0deg);
  }
  66.601%,
  100% {
    transform: rotate(calc(var(--tilt-a) * -1));
  }
}

.pulley {
  position: relative;
  flex: 2 1 22rem;
  max-width: 40rem;
  margin: 0;
}

.pulley-video {
  width: 100%;
  height: auto;
  display: block;
  /* svh cap so the video shrinks on short phones instead of growing to
     whatever height its own aspect ratio demands at the container's width. */
  max-height: clamp(10rem, 60svh, 34rem);
}

/* ---------- Dates ---------- */

/* .date-card-head floats the "Friday, Oct 16" label up over the card's
   top border (see .date-card-head), so the label text sits well above
   where the preceding element's margin-bottom alone would put it. Extra
   top margin here compensates so the label reads at a normal distance
   from whatever comes before the list (title, or the .dates-hint note). */
.date-list {
  display: grid;
  gap: var(--space-8);
  /* svh term shrinks this on short phones instead of a flat 3rem. */
  margin: clamp(1.5rem, 2svh + 0.75rem, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.date-message {
  padding: var(--space-4);
  border: 2px solid var(--color-border);
  text-align: center;
}

/* One date = a box with its name sitting on the top border (like a <fieldset> legend). */
.date-card {
  position: relative;
  /* Top needs extra room for .date-card-head floating over the border below;
     kept close to the bottom padding (space-7) rather than double it, so
     the box doesn't read as top-heavy. svh term shrinks both on short phones
     instead of staying a flat 3rem regardless of available height. */
  padding: clamp(1.5rem, 2svh + 0.75rem, 3rem) var(--space-6)
    clamp(1.5rem, 2svh + 0.75rem, 3rem);
  border: 2px solid var(--color-border);
}

.date-card-head {
  position: absolute;
  top: 0;
  left: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  /* center, not baseline: .dinner-meta is now a padded pill, not plain
     text, so aligning to its text baseline left it looking slightly
     ungrounded next to .date-name's plain baseline. */
  align-items: center;
  gap: 0 var(--space-3);
  padding: 0 var(--space-2);
  background: var(--color-bg);
  transform: translateY(-55%);
}

.date-name {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}

/* The plate count is the single most decision-relevant number on this
   card — a filled pill (not just colored text sharing the legend's plain
   baseline) so it reads as its own unit at a glance, not an afterthought
   trailing the date (per product decision: colored text alone didn't pop
   enough against the card's border/legend treatment). */
.dinner-meta {
  display: inline-block;
  font-weight: 800;
  font-size: var(--text-base);
  color: white;
  background: var(--color-red);
  padding: 0.2em 0.65em;
  border-radius: 999px;
  line-height: 1.3;
}

/* Shown instead of the slot-grid once a date's booking cutoff has passed
   (getDinners_'s bookingClosed) — the date stays visible rather than
   disappearing, per product decision during the C2 code-review fix. */
.booking-closed-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* Pickup times: a grid of raised buttons (about 3 per row on a phone). */
/* Fixed 6 columns: 15-min slots across a ~2.5hr window are usually 10-12 of
   them, so 6 columns makes two even rows instead of auto-fill's ragged wrap. */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 36em) {
  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* No border: these are members of the date-card's group, not their own
   boxes — the date-card's black border is the only outline needed, and
   gap + background fill separates one slot from the next. */
/* Black outline, no fill — matches the ghost "Reserve" button, not a grey
   box. Grey fill is reserved for genuinely disabled/unavailable states
   (.is-full below), not for a normal available, clickable slot. */
.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 5.5rem;
  padding: var(--space-3);
  border: 2px solid var(--color-border);
  background: none;
  color: var(--color-text);
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

a.slot:visited {
  color: var(--color-text);
}

a.slot:hover,
a.slot:focus-visible {
  background: none;
  color: var(--color-text);
  text-decoration: underline;
}

a.slot:active {
  background: none;
}

/* A locally-staged pickup-time choice on the manage page: picked but not
   yet saved. Outlined (not filled) so it reads as "about to be" rather
   than "is" — .is-current (the server-committed slot) stays solid. */
a.slot.is-pending {
  border: 3px solid var(--color-red);
  background: #fff;
  color: var(--color-red);
}

a.slot.is-pending .slot-left {
  color: var(--color-red);
}

.slot-time {
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.slot-left {
  font-size: var(--text-sm);
  line-height: 1.1;
  color: #333333;
}

.slot.is-full {
  border: 3px solid #cccccc;
  background: #eeeeee;
  color: #555555;
  cursor: not-allowed;
}

.slot.is-full .slot-time {
  text-decoration: line-through;
}

/* The order's own slot on the manage page: outlined, not a link. */
.slot.is-current {
  border: 3px solid var(--color-blue);
  background: #fff;
  color: var(--color-blue);
  cursor: default;
}

.slot.is-current .slot-left {
  color: var(--color-blue);
}

.dates-hint {
  /* svh term shrinks this on short phones instead of a flat 2rem. */
  margin: 0 0 clamp(1rem, 1.5svh + 0.25rem, 2rem);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.rsvp-copy {
  margin: 0 0 var(--space-5);
}

/* Perks list for the hardcoded 10/16 RSVP card — plain list, same spacing
   rhythm as .steps in How it works. Remove along with .rsvp-copy and the
   hardcoded date-card markup once reservations go back through the Sheet. */
.perk-list {
  display: grid;
  gap: var(--space-3);
  /* svh term shrinks this on short phones instead of a flat 2rem. */
  margin: clamp(1rem, 1.5svh + 0.25rem, 2rem) 0 0;
  padding-left: 1.25rem;
}

/* Coming soon: the next set of dates, readable but clearly not orderable yet */
.soon-dinners {
  margin-top: var(--space-7);
}

.dinner-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dinner-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--color-text-muted);
  color: var(--color-text-muted);
}

.dinner-label {
  font-weight: 700;
}

.soon-badge {
  font-family: var(--font-hand);
  font-size: var(--text-lg);
}

/* ---------- FAQ ---------- */

.faq-list details {
  overflow: hidden; /* clips the answer while script.js animates the height */
  /* Neutral, not blue: blue means "interactive/pay attention to me"
     elsewhere on the site (headings, links), and these are just dividers. */
  border-bottom: 2px solid var(--color-text);
}

.faq-list summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
  font-family: var(--font-hand);
  font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.5rem);
  font-weight: 700;
  cursor: pointer;
  list-style: none; /* drop the native marker: it can't be animated, so we draw our own below */
}

.faq-list summary::-webkit-details-marker {
  display: none;
} /* Safari's native marker */

/* Custom triangle (SVG, not a CSS border-triangle — those are built from
   unequal border widths, so rotating one 90° gives a lopsided shape instead
   of a clean down-arrow). Transitions smoothly; the native ::marker can't
   (browsers snap it instantly). */
.faq-list summary::before {
  content: "";
  flex: none;
  width: 0.7em;
  height: 0.7em;
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M2 1 L8 5 L2 9 Z"/></svg>')
    center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M2 1 L8 5 L2 9 Z"/></svg>')
    center / contain no-repeat;
  transition: transform 0.2s ease-out;
}

.faq-list details[open] summary::before {
  transform: rotate(90deg);
}
/* While script.js animates the close, rotate back in step with the panel
   instead of staying open until details.open flips at the very end. */
.faq-list details.is-closing summary::before {
  transform: none;
}

.faq-list details > p,
.faq-answer {
  margin: 0 0 var(--space-5);
  /* Body copy, not the hand-drawn voice font: the question above is a label
     (Gaegu), the answer is content to actually read — same split as the
     rest of the site (e.g. "how it works"). Quicksand's cleaner, more even
     letterforms read as "bigger" than Gaegu's loose ones at a given size,
     so this needs to sit a clear step below the question, not just a
     fraction below it, to actually look smaller next to it. */
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 0.75rem + 0.4vw, 1rem);
  transition: opacity 0.25s ease-out;
}

.faq-answer p {
  margin: 0 0 var(--space-3);
}

.faq-list details.is-closing > p,
.faq-list details.is-closing .faq-answer {
  opacity: 0;
}

.map-frame {
  aspect-ratio: 16 / 9;
  margin-top: var(--space-5);
  overflow: hidden;
  border: 3px solid var(--color-border);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer: tape, name logo + info, tape ---------- */

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5) var(--space-7);
  max-width: var(--max-width);
  margin-inline: auto;
  /* Padding matches .header-inner's exactly (space-3). min-height matches
     the header's own measured height (~86px/5.4rem) so the two bands are
     actually the same size, not just the same padding value — a flat
     min-height number picked without checking that left the footer
     visibly taller than the header. */
  padding: var(--space-3) var(--space-4);
  min-height: 5.4rem;
}

.footer-logo {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 18rem;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--space-1) var(--space-6);
  /* Trying Gaegu here (was Quicksand — see git history/earlier comment for
     the legibility argument against it: phone number/address digits are
     exactly where hand-drawn letterforms read worst). Sized up a step since
     Gaegu reads smaller than Quicksand at the same font-size. */
  font-family: var(--font-hand);
  font-size: var(--text-base);
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.footer-info-col {
  display: grid;
  gap: var(--space-1);
  align-content: start;
}

.footer-info p {
  margin: 0;
}

/* Desktop: subgrid, so this spans .footer-info's own two computed column
   tracks exactly (not a separately-sized nested grid guessing at matching
   auto widths, which two independent grids can never reliably agree on) —
   Terms lands exactly under the address column, Privacy exactly under the
   hours/Instagram column. */
.footer-legal-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  gap: var(--space-1) var(--space-6);
}

.footer-legal-links p {
  margin: 0;
}

.footer-fine {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4) var(--space-5);
  font-size: var(--text-sm);
}

/* 404 page uses the old single-row footer markup */
.footer-col {
  display: grid;
  gap: var(--space-1);
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-5) var(--space-4);
}

.footer-col p {
  margin: 0;
}

/* ---------- Order modal: an old pop-up window ---------- */

/* No page scroll behind the modal. script.js pads the page by the scrollbar's width
   while it's hidden, so nothing shifts sideways when the modal opens. */
html:has(.order-dialog[open]) {
  overflow: hidden;
}

.order-dialog {
  width: min(100% - 2rem, 35rem);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 3px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

/* Open: fade up. Close (script.js adds .is-closing): fade down, then it closes. */
.order-dialog[open] {
  animation: dialog-in 0.25s ease-out;
}
.order-dialog.is-closing {
  animation: dialog-out 0.2s ease-in forwards;
}

.order-dialog::backdrop {
  background: rgb(17 17 17 / 0.55);
  animation: backdrop-in 0.25s ease-out;
}

.order-dialog.is-closing::backdrop {
  animation: backdrop-out 0.2s ease-in forwards;
}

/* Form → "You're booked": fade the confirmation in instead of swapping instantly. */
.order-dialog #confirmation:not([hidden]) {
  animation: dialog-in 0.3s ease-out;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@keyframes dialog-out {
  to {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes backdrop-out {
  to {
    opacity: 0;
  }
}

/* Flat header: no divider, blends straight into the form below. */
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  background: var(--color-bg);
  color: var(--color-text);
}

.dialog-header h2 {
  margin: 0;
  /* Quicksand, not the inherited Gaegu: at this small size Gaegu's hand-
     drawn wobble reads as messy rather than charming — "you're booked."
     below is big enough to carry the hand-drawn accent instead. */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--color-border);
  background: none;
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dialog-close:hover {
  text-decoration: underline;
}
.dialog-close:active {
  transform: scale(0.96);
}

.dialog-body {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5) clamp(var(--space-4), 4vw, var(--space-5));
}

/* ---------- Order form ---------- */

.form-grid {
  display: grid;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: var(--space-1);
}

.field label {
  font-size: var(--text-lg);
  font-weight: 700;
}

.field-optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.field-hint {
  margin: 0;
  font-family: var(--font-hand);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.field-hint--donation {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-family: inherit;
}

/* SMS opt-in consent checkbox: the label is the checkbox + regular-weight
   explanatory text side by side, not a bold field label like the rest of
   the form. */
.field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
}

.field--checkbox input[type="checkbox"] {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}

/* Soft nudge, not a hard error: shown only while both the SMS box is
   unchecked and email is empty, so there's currently no way to reach the
   customer. Never blocks submission — email becomes a required field in
   that same state, so this is purely a heads-up before they get there. */
.field-hint--warning {
  color: var(--color-error-text);
}

.field-required {
  color: var(--color-red);
}

.field-hint--centered {
  text-align: center;
}

.manage-reschedule-title {
  margin-top: var(--space-8);
}
.manage-reschedule-hint {
  margin-bottom: var(--space-5);
}

.manage-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
  width: 100%;
  min-height: 2.875rem;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: 0;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-base);
}

/* Custom chevron (not the native OS arrow) so size/spacing are ours to set,
   same construction as the FAQ triangle marker above. */
select {
  appearance: none;
  padding-right: var(--space-7);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M1 3 L5 7 L9 3" fill="none" stroke="%23111111" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 0.85rem;
}

select:disabled {
  background-color: #f2f2f2;
  color: #666666;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-4);
}

.total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0;
  padding-top: var(--space-3);
  font-size: var(--text-lg);
}

.total output {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-red);
}

.form-actions {
  text-align: center;
}

.form-actions .button {
  padding-inline: var(--space-7);
  font-size: var(--text-lg);
  font-weight: 700;
}

.notice {
  padding: var(--space-3) var(--space-4);
  border: 2px dashed currentColor;
}

.notice:empty {
  display: none;
}
.notice p:last-child {
  margin-bottom: 0;
}

.notice--error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.notice--error a {
  color: inherit;
}

.notice--success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

/* The cancelled-reservation confirmation reuses #manage-error's box but is a
   settled/confirmed state (not a failure), so it gets the same solid-black-
   border treatment as other confirmed states (Save, the saved banner)
   instead of the dashed-red default genuine errors use. */
#manage-error.is-confirmed {
  border: 2px solid var(--color-border);
}

#manage-saved-note {
  margin-bottom: var(--space-5);
  border: 2px solid var(--color-border);
}

/* ---------- Confirmation: "you're booked." + receipt ---------- */

#confirmation h3 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-hand);
  font-size: 2.25rem;
  color: var(--color-red);
  transform: rotate(var(--tilt-b));
  transform-origin: left center;
}

#confirmation h3::after {
  content: "!";
}

.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
}

.summary dt,
.summary dd {
  margin: 0;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.summary dt {
  padding-right: var(--space-5);
  color: var(--color-text-muted);
}

.summary dt:last-of-type,
.summary dd:last-of-type {
  border-bottom: 0;
}

#conf-order {
  font-family: var(--font-mono);
  font-weight: 700;
}

#conf-total {
  /* Bold + red already signal "this one matters" — a bigger font-size on
     top of that made it sit off-baseline from its own row label ("Due at
     pickup"), reading as a font mismatch rather than emphasis. */
  font-weight: 700;
  color: var(--color-red);
}

.conf-email {
  margin: 0;
  /* Fixed, not var(--text-base): the dialog's own width is capped (not
     viewport-relative) past ~576px, so a vw-based size kept growing past
     what the box could hold and wrapped the line on wide screens. */
  font-size: 1rem;
}

/* Phones: full-height sheet */
@media (max-width: 30em) {
  .order-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: var(--space-8);
  text-align: center;
}

.not-found-inner {
  margin-inline: auto;
}

.not-found h1 {
  margin-bottom: var(--space-6);
}

/* The confirm/cancel-link landing pages (src/worker.js's htmlPage()) show
   their real status message here, in the body font — unlike the short
   declarative h1 above it, this is data meant to be read line by line
   (an order number, a specific outcome), not a display heading. */
.confirm-page-message {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  max-width: 28rem;
  margin: calc(-1 * var(--space-4)) auto var(--space-6);
}

.not-found-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

/* Stop-motion pulse: steps(1) jumps straight to each keyframe instead of
   tweening between them — three stages, 700ms apiece, same snap and the same
   2.1s clock as the logo's three-frame cycle up top, so both land in sync. */
.not-found-arrow {
  width: 5.5rem;
  height: auto;
  animation: arrow-pop 2.1s steps(1) infinite;
}

/* Mirror the right arrow so both point in toward the button. */
.not-found-arrow--right {
  animation-name: arrow-pop-right;
}

@keyframes arrow-pop {
  0% {
    transform: scale(1);
  }
  33.333% {
    transform: scale(1.15);
  }
  66.667% {
    transform: scale(1.3);
  }
}

@keyframes arrow-pop-right {
  0% {
    transform: scaleX(-1) scale(1);
  }
  33.333% {
    transform: scaleX(-1) scale(1.15);
  }
  66.667% {
    transform: scaleX(-1) scale(1.3);
  }
}

/* ---------- Phones ---------- */

@media (max-width: 40em) {
  /* 404 page only (.not-found doesn't exist elsewhere): everything here is
     sized in rem, so this scales the logo/heading/button/arrows down ~15%
     together — it read oversized on an actual phone. */
  .not-found {
    font-size: 85%;
  }

  .plate-note {
    display: none;
  } /* decoration that costs scroll */

  /* A little more breathing room off the screen edge than --space-4 alone gives. */
  .container,
  .header-inner,
  .footer-inner {
    padding-inline: 1.25rem;
  }

  /* Narrow phones: the 2-column grid squeezes "phone / hours / address"
     into a cramped left column, wrapping mid-field (e.g. the phone number
     breaking after "(732)"). Stack to one column so every field gets the
     full width, and give fields real spacing so it's clear where one ends
     and the next begins. */
  .footer-info {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    font-size: 1rem;
  }
  .footer-info-col {
    gap: var(--space-2);
  }
  .footer-info-col:last-child {
    align-content: start;
  }

  /* "Supreme" is the widest word in the hero title — on narrow phones the
     display scale's floor is still too large for it to fit one line without
     overflowing, so shrink the floor further here (min stays 2.25rem so
     that guarantee holds regardless of screen height below). svh term
     added so this also shrinks on short phones (e.g. iPhone 16e), which
     the old vw-only version never did since width and height aren't
     correlated; coefficients tuned so a normal-height phone lands at
     roughly the old vw-only value. */
  .hero-dish {
    font-size: clamp(2.25rem, 3.5vw + 3.5svh, 2.85rem);
  }

  /* Footer stacks here; left-align everything instead of .footer-inner's
     base justify-content: center, which was centering each stacked row
     (align-self can't fix this — it's a cross-axis property, and
     centering here happens on the main axis). */
  .footer-inner {
    justify-content: flex-start;
  }

  /* Keep the name logo at its natural width, not stretched full-width
     (flex-grow:1 from the base rule would do that otherwise). */
  .footer-logo {
    flex-grow: 0;
    align-self: flex-start;
  }

  /* Center the buzzer callout on mobile; desktop keeps it left-aligned
     under the steps list. */
  .buzzer-note {
    display: block;
    margin-inline: auto;
  }
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Debug: section/spacing outlines ----------
   Not shipped on by default. Toggle from the console:
     document.body.classList.toggle('debug-sections')
   Outlines each landmark in a different color and labels it with its
   class/id, so padding and gaps between sections are easy to eyeball. */
body.debug-sections .site-header,
body.debug-sections .hero,
body.debug-sections .section,
body.debug-sections .site-footer {
  position: relative;
  outline: 2px dashed;
  outline-offset: -2px;
}

body.debug-sections .site-header {
  outline-color: #e91e63;
}
body.debug-sections .hero {
  outline-color: #2196f3;
}
body.debug-sections .section {
  outline-color: #4caf50;
}
body.debug-sections .site-footer {
  outline-color: #ff9800;
}

body.debug-sections .site-header::before,
body.debug-sections .hero::before,
body.debug-sections .section::before,
body.debug-sections .site-footer::before {
  content: attr(data-debug-label);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 2px 6px;
  background: inherit;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}

body.debug-sections .site-header::before {
  content: "header";
  background: #e91e63;
}
body.debug-sections .hero::before {
  content: "hero";
  background: #2196f3;
}
body.debug-sections .section::before {
  content: attr(id) " .section";
  background: #4caf50;
}
body.debug-sections .site-footer::before {
  content: "footer";
  background: #ff9800;
}
