/* =====================================================================
   Smoked Kitchen & Tap — "Blue Plate"
   The contract is docs/design-system.md. In short: a plate-blue field,
   cream plates set on it, one brick-red seal. Round is the signature:
   pill buttons, ringed plates, circular seals. No drop shadows.

   THE ONE RULE: brick red never touches the blue field. A button on the
   field is a cream pill with navy text; a button on a plate is a brick pill
   with cream text; a seal always sits on a plate.

   Fonts are LINKED from templates/base.html (and the standalone
   templates/bookings/sheet.html), never @import-ed here: an @import is only
   discovered after this file has downloaded and parsed.
   ===================================================================== */

:root {
  /* fields and ink */
  --bg:              #244C69;   /* the page field: plate blue */
  --band-bg:         #17364D;   /* deep navy: header, footer, action bar */
  --surface:         #F6EFE2;   /* the plate */
  --surface-2:       #EBE1CD;   /* nested or chosen surfaces on a plate */
  --ink:             #1C2B36;   /* body text on a plate */
  --ink-muted:       #4F6070;   /* captions and meta on a plate */
  --heading:         #173A54;   /* headings on a plate */
  --band-text:       #F6EFE2;   /* all text on the field and the bands */
  --footer-text:     #B9CAD4;   /* secondary text on blue and navy */

  /* accents */
  --primary:         #9E3B26;   /* brick: button fill ON A PLATE; the seal */
  --primary-hover:   #8C2F1E;
  --on-primary:      #F6EFE2;
  --ember:           #9E3B26;   /* the seal. Never on the blue field */
  --accent-coral:    #9E3B26;
  --accent-seaglass: #B9CAD4;   /* light slate: quiet fills on blue */
  --brass:           #F2C14E;   /* mustard: focus ring and the demo ribbon */
  --link:            #173A54;   /* links on a plate: navy, underlined */
  --hairline:        #C9BEA8;   /* rules on a plate */
  --hairline-strong: #8EA7B5;   /* rules and rings on blue */
  --focus:           #F2C14E;   /* focus ring on blue and navy */
  --focus-band:      #173A54;   /* focus ring on a plate */

  /* type */
  --display: "Zilla Slab", Rockwell, Georgia, serif;
  --body:    "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  /* The token name is carried over from the skeleton. There is no stencil
     face here: it is the display slab, used bold, uppercase and tracked. */
  --stencil: var(--display);

  /* shape */
  --radius:       999px;        /* pills */
  --radius-plate: 20px;         /* plates and photographs */
  --shadow:       none;

  --maxw:   72rem;
  --gutter: 1rem;
  --gap:    clamp(1.25rem, 3vw, 2rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--band-text);
  font-family: var(--body);
  font-size: 1.0625rem;         /* 17px on phones */
  line-height: 1.55;
  /* room for the fixed action bar on phones */
  padding-bottom: 4.25rem;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p, ul, ol, dl { margin: 0 0 1em; }
small { font-size: .85em; }

a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 30;
  background: var(--surface); color: var(--heading); padding: .75rem 1rem;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Honeypot (apps.growth.antibot): off-screen for people and assistive tech. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- small labels ---------- */
.eyebrow {
  font-family: var(--stencil); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--footer-text); margin: 0 0 .4rem;
}
.plate .eyebrow { color: var(--ink-muted); }
.note, .hint, .source, .estimate-note, .menu-note { font-size: .9rem; }
.plate .note, .plate .hint, .plate .source, .plate .estimate-note, .plate .menu-note { color: var(--ink-muted); }
.field-note { color: var(--footer-text); font-size: .9rem; }
.lede { font-size: 1.15rem; max-width: 40rem; }
.quiet { color: var(--ink-muted); font-size: .95rem; margin: 0; }

/* ---------- the demo ribbon: navy on mustard ---------- */
.demo-ribbon {
  background: var(--brass); color: var(--band-bg);
  text-align: center; font-weight: 700; font-size: .85rem;
  padding: .35rem var(--gutter);
}

/* ---------- announcement bar (off unless a window is configured) ---------- */
.navbar { background: var(--accent-seaglass); color: var(--band-bg); }
.navbar-inner { max-width: var(--maxw); margin: 0 auto; padding: .4rem var(--gutter); display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.navbar-link { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.navbar-tag { font-family: var(--stencil); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.navbar-close { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; }

/* ---------- header: a navy band ---------- */
.site-header { background: var(--band-bg); }
.site-header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .6rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand-disc {
  width: 3.25rem; height: 3.25rem; flex: none; border-radius: 50%;
  background: var(--surface); display: grid; place-items: center; overflow: hidden;
}
/* The badge art sits on white; multiply lets the cream disc show through. */
.brand-disc img { width: 2.7rem; mix-blend-mode: multiply; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .3rem; text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:first-child { padding-left: 0; }
.nav a:last-child { padding-right: 0; }
.nav a:hover { text-decoration: underline; }
/* On phones the order control is the hero button and the action bar. */
.site-header .header-order { display: none; }

/* ---------- layout ---------- */
main {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: var(--gap);
}
main > * { min-width: 0; margin: 0; }
.page-head > :last-child, .plate > :last-child, .band-body > :last-child { margin-bottom: 0; }
.field-section { display: grid; gap: 1rem; }
.field-section > * { margin: 0; }

/* ---------- the plate: a cream card with a rim ---------- */
.plate {
  position: relative;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-plate);
  padding: clamp(1.4rem, 4vw, 2.25rem);
}
/* the rim: a 1px ring, 6px inside the edge */
.plate::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 1px solid var(--hairline); border-radius: calc(var(--radius-plate) - 6px);
}
.plate h1, .plate h2, .plate h3 { color: var(--heading); }
.plate a { color: var(--link); }
.photo-plate { border-radius: var(--radius-plate); width: 100%; }

/* ---------- buttons: pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.5rem;
  border: 2px solid var(--surface); border-radius: var(--radius);
  background: var(--surface); color: var(--heading);
  font: 700 1rem/1.2 var(--body); text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--accent-seaglass); border-color: var(--accent-seaglass); }
/* on a plate the pill is brick with cream text */
.plate .btn { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.plate .btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.plate .btn--quiet { background: transparent; border-color: var(--heading); color: var(--heading); }
.plate .btn--quiet:hover { background: var(--surface-2); border-color: var(--heading); }
.text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- the seal: a brick circle, always on a plate ---------- */
.seals { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1rem; }
.seal {
  width: 8.5rem; height: 8.5rem; flex: none; margin: 0;
  border-radius: 50%; background: var(--ember); color: var(--on-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: .8rem; position: relative;
}
.seal::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px solid var(--on-primary); opacity: .55; pointer-events: none;
}
.seal-figure { font-family: var(--display); font-weight: 700; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.seal-figure--word { font-size: 1.45rem; }
.seal-label { font-family: var(--stencil); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; margin-top: .3rem; }

/* ---------- hero: the blue field ---------- */
.hero { display: grid; gap: 1.5rem; align-items: center; }
.hero-copy > :last-child { margin-bottom: 0; }
.hero-sub { font-size: 1.15rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.hero-proof { color: var(--footer-text); font-size: .95rem; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  /* the brisket sits left of centre in the frame */
  object-position: 34% 60%;
  border-radius: var(--radius-plate);
}

/* ---------- hours ---------- */
.hours-plate, .visit { display: grid; gap: 1.5rem; }
.hours-list { margin: 0 0 1rem; }
.hours-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--hairline); }
.hours-list dt { font-weight: 400; }
.hours-list dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.hours-list .is-today dt, .hours-list .is-today dd { font-weight: 700; color: var(--heading); }
.today-tag { font-family: var(--stencil); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-left: .35rem; }
.hours-note { display: block; font-size: .85rem; font-weight: 400; color: var(--ink-muted); }

/* ---------- a band: photograph beside text, on one plate ---------- */
.band { display: grid; gap: 1.25rem; align-items: center; }
.band-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: calc(var(--radius-plate) - 6px); }
.band-photo--wide { aspect-ratio: 8 / 3; }

/* ---------- three plates in a row ---------- */
.plate-row { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.teaser { padding: 1.1rem; }
.teaser img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius-plate) - 8px); margin-bottom: .9rem; }
.teaser h3 { margin-bottom: .3rem; }
.teaser p { font-size: .95rem; color: var(--ink-muted); }

/* ---------- reviews and recognition ---------- */
.proof-row { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 1.25rem; }
.proof-row li { display: flex; align-items: center; gap: 1rem; }
.proof-row .source { margin: 0; font-size: .95rem; }
.quotes { display: grid; gap: 1rem; }
.quote blockquote { margin: 0 0 .4rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
figure { margin: 0; }
figcaption { color: var(--ink-muted); font-size: .9rem; }

/* ---------- the menu sheet: one long plate ---------- */
.menu-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.menu-head h1, .menu-head p { margin: 0; }
.menu-section { margin-bottom: 1.75rem; }
.menu-section h2 { border-bottom: 2px solid var(--heading); padding-bottom: .3rem; margin-bottom: .5rem; }
.menu-items { list-style: none; padding: 0; margin: 0; }
.menu-items li { padding: .6rem 0; border-bottom: 1px solid var(--hairline); }
.menu-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-name { font-weight: 700; }
.menu-price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.menu-desc { margin: .2rem 0 0; font-size: .95rem; color: var(--ink-muted); max-width: 46rem; }
.menu-foot { border-top: 2px solid var(--heading); padding-top: 1rem; }
.menu-body p { color: var(--ink-muted); font-size: .95rem; }

/* ---------- forms, on a plate ---------- */
label { display: block; font-weight: 600; margin: .9rem 0 .3rem; }
label small, legend small, .choice small { font-weight: 400; color: var(--ink-muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--ink-muted); border-radius: 12px;
}
textarea { min-height: 6rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
legend { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--heading); padding: 0; margin-bottom: .6rem; }
.legend-note { display: block; font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--ink-muted); margin-top: .15rem; }
.form-error { color: var(--primary); font-weight: 600; font-size: .95rem; margin: .4rem 0 0; }
.form-ok { font-weight: 600; }

.choices { display: grid; gap: .5rem; }
.choices--two { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  min-height: 48px; padding: .5rem .8rem; font-weight: 600;
  border: 1.5px solid var(--ink-muted); border-radius: 14px; cursor: pointer;
}
.choice input { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--heading); margin: 0; }
.choice:has(input:checked) { background: var(--surface-2); border-color: var(--heading); border-width: 2px; }
.choice:has(input:disabled) { opacity: .55; cursor: default; }

.stepper { display: inline-flex; align-items: center; gap: .4rem; }
.stepper button {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 2px solid var(--heading); background: var(--surface); color: var(--heading);
  font: 700 1.4rem/1 var(--body); cursor: pointer;
}
.stepper button:hover { background: var(--surface-2); }
.stepper input { width: 5rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--hairline); }
.stepper-row label { margin: 0; }
.stepper-row label small { display: block; }
.delivery { margin-top: .75rem; }

.subscribe-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.subscribe-row input { flex: 1 1 12rem; }

/* ---------- the catering inquiry and its estimate ---------- */
.inquiry { display: grid; gap: 1.5rem; }
.estimate { border-top: 2px solid var(--heading); padding-top: 1.25rem; }
.estimate > :last-child { margin-bottom: 0; }
.seal--total { width: 10.5rem; height: 10.5rem; margin: 0 auto 1rem; }
.seal--total .seal-figure { font-size: 1.9rem; }
.estimate-lines { margin: 0 0 1rem; }
.estimate-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--hairline); }
.estimate-lines dt small { display: block; color: var(--ink-muted); }
.estimate-lines dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.estimate-lines .estimate-total { border-bottom: 0; border-top: 2px solid var(--heading); font-family: var(--display); font-size: 1.3rem; color: var(--heading); }
.estimate-lines .estimate-total dt, .estimate-lines .estimate-total dd { font-weight: 700; }
.estimate .btn { width: 100%; margin-top: .5rem; }
.party { margin: 0 0 1.5rem; }
.party div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--hairline); }
.party dt { color: var(--ink-muted); }
.party dd { margin: 0; }
.quote-close { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--heading); margin-top: 1.5rem; }

/* ---------- holiday ---------- */
.offer-summary { font-size: 1.15rem; }
.offer-price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--heading); }
.offer-items { padding-left: 1.2rem; }
.offer-pickup { font-weight: 700; }

/* ---------- the sauce shelf ---------- */
.shelf { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bottle { padding: 1.1rem; text-align: center; }
.bottle img { height: 11rem; width: auto; margin: 0 auto .8rem; border-radius: 12px; }
.bottle h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.bottle p { font-size: .9rem; color: var(--ink-muted); }
.bottle--name-only { display: flex; flex-direction: column; justify-content: center; }
.shelf-order { text-align: center; }

/* ---------- the pitch ---------- */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); counter-reset: fact; }
.fact { counter-increment: fact; }
.fact h2::before {
  content: counter(fact); display: inline-grid; place-items: center;
  width: 2.2rem; height: 2.2rem; margin-right: .6rem; vertical-align: .1em;
  border-radius: 50%; border: 2px solid var(--heading);
  font-size: 1.1rem; font-variant-numeric: tabular-nums;
}
.fact h3 { font-family: var(--stencil); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin: 1rem 0 .3rem; }
.fact code { font-size: .9em; overflow-wrap: anywhere; }
.receipts { list-style: none; padding: 0; margin: 0 0 .75rem; }
.receipts a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; font-size: .95rem; }
.fact-close ol { padding-left: 1.3rem; margin-bottom: 0; }

/* ---------- text pages ---------- */
.legal { max-width: 48rem; }
.legal h2 { font-size: 1.35rem; margin-top: 1.75rem; }
.legal ul { padding-left: 1.2rem; }
.messages { list-style: none; padding: 0; }
.msg { background: var(--surface); color: var(--ink); border-radius: 12px; padding: .75rem 1rem; }

/* ---------- age gate (off unless AGE_GATE_ENABLED) ---------- */
.age-locked { overflow: hidden; }
.age-overlay { position: fixed; inset: 0; z-index: 40; background: var(--band-bg); display: grid; place-items: center; padding: var(--gutter); }
.age-overlay-card, .age-gate { max-width: 30rem; text-align: center; }
.age-overlay-card .btn, .age-gate .btn { margin: .25rem; }

/* ---------- footer: a navy band ---------- */
.site-footer { background: var(--band-bg); color: var(--footer-text); }
.site-footer a { color: var(--band-text); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--gutter) 1rem; display: grid; gap: 1.75rem; }
.site-footer h2 { font-family: var(--stencil); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--band-text); margin-bottom: .6rem; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--band-text); margin-bottom: .4rem; }
.footer-brand p { margin-bottom: .5rem; }
.footer-col a { display: flex; align-items: center; min-height: 44px; }
.footer-brand a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-hours { margin: 0 0 .3rem; display: flex; gap: .75rem; }
.footer-hours-day { min-width: 5.2rem; color: var(--band-text); font-weight: 600; }
.footer-note { margin: .6rem 0 0; font-size: .9rem; }
.site-footer label { color: var(--band-text); margin-top: 0; }
.site-footer .form-error { color: var(--brass); }
.footer-subscribed { color: var(--band-text); font-weight: 600; }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--hairline-strong);
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-sublinks { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-left: auto; }
.footer-sublinks a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- the action bar: phones only, always on the first screen ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--band-bg); border-top: 1px solid var(--hairline-strong);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; color: var(--band-text); font-weight: 700; text-decoration: none;
}
.action-bar a + a { border-left: 1px solid var(--hairline-strong); }
.action-bar a:first-child { background: var(--surface); color: var(--heading); }

/* ---------- the printable catering sheet ---------- */
.sheet-page { padding: var(--gutter); }
.sheet { max-width: 50rem; margin: 0 auto; }
.sheet-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.sheet-head img { width: 7rem; mix-blend-mode: multiply; }
.sheet-head h1, .sheet-head p { margin: 0; }
.sheet-tiers { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
.sheet-tiers th, .sheet-tiers td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.sheet-tiers thead th { font-family: var(--stencil); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); border-bottom: 2px solid var(--heading); }
.sheet-columns { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.sheet-columns h2 { font-size: 1.2rem; }
.sheet-columns ul { list-style: none; padding: 0; margin: 0; }
.sheet-columns li { padding: .25rem 0; border-bottom: 1px solid var(--hairline); }
.sheet-columns small { color: var(--ink-muted); }
.sheet-foot { border-top: 2px solid var(--heading); padding-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
.sheet-foot p { margin: 0; }
.sheet-tools { max-width: 50rem; margin: 1.25rem auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ---------- from 40rem: two columns where it helps ---------- */
@media (min-width: 40rem) {
  .plate-row { grid-template-columns: repeat(3, 1fr); }
  .proof-row { grid-template-columns: repeat(3, 1fr); }
  .proof-row li { flex-direction: column; text-align: center; }
  .hours-plate, .visit { grid-template-columns: 1fr 1fr; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .choices { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .sheet-columns { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- from 48rem: the desktop frame ---------- */
@media (min-width: 48rem) {
  :root { --gutter: 1.5rem; }
  body { font-size: 1.125rem; padding-bottom: 0; }   /* 18px */
  .action-bar { display: none; }
  .nav { width: auto; justify-content: flex-start; gap: 0 .5rem; }
  .nav a, .nav a:first-child, .nav a:last-child { padding: 0 .5rem; font-size: 1rem; }
  .site-header .header-order { display: inline-flex; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; }
}

/* ---------- from 60rem: side by side ---------- */
@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  /* a circle on wide screens */
  .hero-photo { aspect-ratio: 1 / 1; border-radius: 50%; max-width: 30rem; justify-self: end; object-position: 30% 62%; }
  .band { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .band--flip .band-photo { order: 2; }
  .shelf { grid-template-columns: repeat(6, 1fr); }
  .inquiry { grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
  .estimate { position: sticky; top: 1rem; border-top: 0; padding-top: 0; border-left: 2px solid var(--heading); padding-left: 2rem; }
}

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

/* ---------- print: the sheet, the quote and the pitch on white ---------- */
@media print {
  body { background: #fff; color: var(--ink); padding: 0; font-size: 11pt; }
  .site-header, .site-footer, .action-bar, .demo-ribbon, .navbar, .skip, .sheet-tools { display: none; }
  main { padding: 0; }
  .plate { padding: 0; border-radius: 0; }
  .plate::before { display: none; }
  .fact, .sheet-columns section { break-inside: avoid; }
  a { color: inherit; }
}
