/* ==========================================================================
   Tiona Beach House — "The verandah" design system
   tiona/assets/tiona.css · one vocabulary for index / cafe / stay / staff
   ==========================================================================

   FONT RECIPE — paste into <head> BEFORE this stylesheet.

   Customer pages (index.html, cafe.html, stay.html):
     <link rel="preconnect" href="https://api.fontshare.com">
     <link rel="preconnect" href="https://cdn.fontshare.com" crossorigin>
     <link href="https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@800,900&f[]=satoshi@400,500,700&f[]=sharpie@700&display=swap" rel="stylesheet">

   Staff console ONLY (staff.html adds these two, sets <body class="staff">):
     <link href="https://api.fontshare.com/v2/css?f[]=switzer@600,800&f[]=cabinet-grotesk@900&display=swap" rel="stylesheet">
     <link href="https://fonts.googleapis.com/css2?family=Martian+Mono:wght@400;600&display=swap" rel="stylesheet">

   Faces: Cabinet Grotesk 800/900 = headlines (sign-painted). Satoshi 400/500/700 =
   body + UI. Sharpie 700 = ONE accent word per page (.accent) — never body copy.
   Staff: Switzer 600/800 + Martian Mono for numbers; Cabinet only for the wordmark.
   Nothing else. Ever.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* colour — verandah */
  --forest: #3E4A3C;
  --forest-deep: #2B342A;
  --stone: #C8C1B1;
  --stone-soft: #E3DDCF;         /* control tracks, dividers on sand */
  --sand: #EFE9DC;               /* page ground */
  --paper: #FBF8F1;              /* cards, nav, sheets */
  --board: #F6F3EC;              /* weatherboard */
  --white: #FFFFFF;              /* dockets only */
  --float: #2E8FA3;              /* glass-float teal: accents, icons, large type, borders */
  --float-deep: #1F6C7C;         /* primary action fill (6.0:1 with paper text) */
  --float-soft: #DCEFF3;
  --timber: #8A6A48;
  --timber-soft: #E9DECF;
  --b-orange: #F08A3E;
  --b-yellow: #F2C64B;
  --b-red: #E4573D;
  --b-blue: #3C7FC1;
  --b-green: #4CAF6E;            /* the sixth flag in the real string */
  --ink: #1E241D;
  --ink-2: #4C554B;              /* muted text, placeholders (6.4:1 on sand) */
  --ink-3: #5E675D;              /* quiet meta, still 4.9:1 on sand */
  --ink-4: #737B72;              /* decorative / disabled ONLY — fails 4.5:1 */
  --line: #DED7C8;
  --line-strong: #B9B2A2;
  --good: #1F5A2B;
  --warn: #8A4B0B;
  --bad: #8F2A1B;
  --sky: linear-gradient(180deg, #7FB6D9 0%, #BFDDEA 55%, #EFE9DC 100%);

  /* status fills (light chip, dark text — 4.5:1+ on every pairing) */
  --st-new-bg: #DCEFF3;      --st-new-fg: #16505C;
  --st-making-bg: #FBE9C6;   --st-making-fg: #6B4A0C;
  --st-ready-bg: #DDEFDF;    --st-ready-fg: #1F5A2B;
  --st-done-bg: #E6E3DA;     --st-done-fg: #4C554B;
  --st-off-bg: #F6DCD6;      --st-off-fg: #7A2B1B;

  /* type */
  --font-head: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Sharpie", "Segoe Script", "Bradley Hand", cursive;
  --font-num: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --track-tight: -0.03em;        /* floor is -0.04em */

  /* fluid modular scale, ratio 1.25 at 390px rising to ~1.33 at 1280px, display <= 6rem */
  --t-s: 0.9375rem;                                   /* 15px: captions, chips, meta only */
  --t-0: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);     /* 16-17px body */
  --t-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);    /* 20-24 */
  --t-2: clamp(1.5625rem, 1.35rem + 0.9vw, 2rem);     /* 25-32 */
  --t-3: clamp(1.9375rem, 1.55rem + 1.6vw, 2.75rem);  /* 31-44 */
  --t-4: clamp(2.375rem, 1.8rem + 2.6vw, 3.75rem);    /* 38-60 */
  --t-5: clamp(2.875rem, 2rem + 4.4vw, 5.5rem);       /* 46-88 display */
  --lh-tight: 1.02;
  --lh-head: 1.1;
  --lh-body: 1.5;

  /* spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 32px);
  --wrap-max: 1180px;
  --measure: 62ch;

  /* radii + shadows */
  --r-1: 6px; --r-2: 12px; --r-3: 20px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(30, 36, 29, .06), 0 2px 8px rgba(30, 36, 29, .05);
  --sh-2: 0 2px 6px rgba(30, 36, 29, .08), 0 12px 32px rgba(30, 36, 29, .10);
  --sh-3: 0 -8px 40px rgba(30, 36, 29, .22);
  --sh-up: 0 -2px 12px rgba(30, 36, 29, .10);

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.3, .4, 1);
  --ease-tide: cubic-bezier(.45, 0, .2, 1);
  --dur-1: .16s; --dur-2: .32s; --dur-3: .6s;

  /* chrome */
  --nav-h: 60px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  color-scheme: light;             /* customer pages are daylight-only */
}
@media (min-width: 820px) { :root { --nav-h: 72px; } }

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--t-0);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  overflow-x: hidden;
}
body.has-nav { padding-top: calc(var(--nav-h) + var(--safe-top)); }
body.nav-open, body.sheet-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { color: var(--float-deep); text-decoration-thickness: 1.5px; text-underline-offset: .15em; }
a:hover { color: var(--forest); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--float); outline-offset: 3px; border-radius: var(--r-1); }
::selection { background: var(--float-soft); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------------------
   3. Type
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: var(--lh-head);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
  color: var(--ink);
}
.display, h1.display { font-size: var(--t-5); font-weight: 900; line-height: var(--lh-tight); letter-spacing: -0.035em; }
h1, .h1 { font-size: var(--t-4); font-weight: 900; }
h2, .h2 { font-size: var(--t-3); }
h3, .h3 { font-size: var(--t-2); }
h4, .h4 { font-size: var(--t-1); }
p { max-width: var(--measure); }
.lead { font-size: var(--t-1); font-weight: 500; line-height: 1.4; color: var(--ink); max-width: 40ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.quiet { color: var(--ink-3); font-size: var(--t-s); }
.small { font-size: var(--t-s); }
.strong { font-weight: 700; }
.num, .price { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.price { font-weight: 700; }
.accent {
  font-family: var(--font-accent);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  color: var(--float);
  display: inline-block;
  transform: rotate(-3deg);
  transform-origin: left bottom;
}
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark p { color: var(--paper); }
.on-dark .muted { color: var(--stone); }
.on-dark .accent { color: var(--b-yellow); }
.on-dark a { color: var(--paper); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
hr, .rule { border: 0; height: 1px; background: var(--line); margin: var(--s-6) 0; }

/* diet marks: V / VO / VEO */
.diet { display: inline-flex; gap: 4px; vertical-align: middle; }
.diet span {
  font-size: 0.8125rem; font-weight: 700; line-height: 1; padding: 3px 5px 2px;
  border: 1.5px solid var(--forest); border-radius: 4px; color: var(--forest); letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap-max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }
.section { padding-block: var(--s-8); }
.section-tight { padding-block: var(--s-6); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
/* editorial two-column spread from 1000px */
.spread { display: grid; gap: var(--s-6); align-items: start; }
.spread > .spread-side { order: -1; }
@media (min-width: 1000px) {
  .section { padding-block: var(--s-9); }
  .spread { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); }
  .spread > .spread-side { order: 0; }
  .spread-reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .sticky-side { position: sticky; top: calc(var(--nav-h) + var(--s-5)); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) { .phone-only { display: none !important; } }
@media (max-width: 999px) { .desk-only { display: none !important; } }

/* --------------------------------------------------------------------------
   5. Ground: weatherboard, paper, sky, palm shadow
   -------------------------------------------------------------------------- */
.board {
  background-color: var(--board);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(30, 36, 29, .045) 26px 27px, rgba(255, 255, 255, .6) 27px 28px);
}
.paper { background: var(--paper); }
.sand { background: var(--sand); }
.forest { background: var(--forest); color: var(--paper); }
.forest-deep { background: var(--forest-deep); color: var(--paper); }
.sky { background: var(--sky); }
.verandah { position: relative; overflow: hidden; }
.frond { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.frond::before {
  content: ""; position: absolute; top: -12%; right: -8%; width: 58%; height: 130%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'%3E%3Cg fill='%231E241D'%3E%3Cpath d='M150 20c-6 60-4 140 10 220 4 22 12 60 14 90-20-40-40-100-44-170-3-50 2-100 20-140z'/%3E%3Cpath d='M152 60c-40 6-80 40-104 96 30-30 66-46 100-44z'/%3E%3Cpath d='M154 110c-44 10-82 50-100 110 32-40 64-60 100-56z'/%3E%3Cpath d='M158 160c-40 20-70 70-80 130 26-46 52-72 84-76z'/%3E%3Cpath d='M154 60c40 6 80 40 104 96-30-30-66-46-100-44z'/%3E%3Cpath d='M156 110c44 10 82 50 100 110-32-40-64-60-100-56z'/%3E%3Cpath d='M160 160c40 20 70 70 80 130-26-46-52-72-84-76z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .10; filter: blur(12px);
  animation: frond-drift 38s ease-in-out infinite alternate;
}
@keyframes frond-drift { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(-60px, 30px) rotate(4deg); } }

/* hero photo block */
.hero { position: relative; overflow: hidden; color: var(--paper); isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; background: var(--forest); }
.hero-photo img, .hero-photo video { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 36, 29, .10) 0%, rgba(30, 36, 29, .25) 55%, rgba(30, 36, 29, .78) 100%); }
.kenburns { animation: kenburns 30s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--forest); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--btn-bd); border-radius: var(--r-2);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
  white-space: nowrap; position: relative;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1);
  -webkit-user-select: none; user-select: none;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { --btn-bg: var(--float-deep); --btn-fg: var(--paper); --btn-bd: var(--float-deep); box-shadow: 0 2px 0 rgba(30, 36, 29, .15); }
.btn-primary:hover { --btn-bg: #1A5D6B; --btn-bd: #1A5D6B; }
.btn-forest { --btn-bg: var(--forest); --btn-fg: var(--paper); --btn-bd: var(--forest); }
.btn-forest:hover { --btn-bg: var(--forest-deep); --btn-bd: var(--forest-deep); }
.btn-ghost { --btn-bd: var(--forest); --btn-fg: var(--forest); }
.btn-ghost:hover { --btn-bg: rgba(62, 74, 60, .08); }
.btn-quiet { --btn-fg: var(--forest); padding-inline: 14px; }
.btn-quiet:hover { --btn-bg: rgba(62, 74, 60, .08); }
.btn-paper { --btn-bg: var(--paper); --btn-fg: var(--forest); --btn-bd: var(--paper); }
.btn-paper:hover { --btn-bg: var(--white); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-pill { border-radius: var(--r-pill); }
.btn-icon { width: 48px; padding: 0; border-radius: var(--r-pill); }
.btn-icon.btn-sm { width: 40px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid currentColor; border-color: var(--btn-fg) var(--btn-fg) transparent transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn .badge { background: var(--paper); color: var(--float-deep); font-size: .875rem; padding: 2px 8px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
.btn-forest .badge, .btn-primary .badge { background: rgba(251, 248, 241, .18); color: var(--paper); }
.btn.bump { animation: bump var(--dur-2) var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.05); } }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3);
  box-shadow: var(--sh-1); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2);
}
a.card { color: inherit; text-decoration: none; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--stone); overflow: hidden; }
.card-media.tall { aspect-ratio: 3 / 4; }
.card-media.wide { aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.card-hover:hover .card-media img { transform: scale(1.04); }
.card-media .chip, .card-media .card-tag { position: absolute; top: 12px; left: 12px; }
.card-body { padding: var(--s-4) var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card-title { font-family: var(--font-head); font-weight: 800; font-size: var(--t-1); line-height: 1.15; letter-spacing: var(--track-tight); }
.card-meta { color: var(--ink-2); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-2); }
.card-price { font-size: var(--t-1); }
/* horizontal row card for menu lists */
.card-row { flex-direction: row; align-items: stretch; }
.card-row .card-media { width: 112px; aspect-ratio: 1; flex: 0 0 auto; }
.card-row .card-body { padding: var(--s-3) var(--s-4); }
.card-row .card-title { font-size: 1.125rem; }
.card-row.is-soldout .card-media img { filter: grayscale(1); opacity: .6; }
.card-row.is-soldout .card-title { color: var(--ink-3); }
@media (min-width: 600px) { .card-row .card-media { width: 136px; } }
/* fallback tile when a photo is missing */
.card-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--stone) 0%, var(--stone-soft) 100%); }
.card-media img { position: relative; }
/* plain panel */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); }
.panel-forest { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.panel-forest .muted { color: var(--stone); }

/* --------------------------------------------------------------------------
   8. Nav — fixed, solid, no blur, no scroll states (iOS glitch history)
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--nav-h) + var(--safe-top)); padding-top: var(--safe-top);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--wrap-max); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest);
  font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1;
}
.wordmark svg { width: 30px; height: 30px; }
.wordmark small { font-family: var(--font-body); font-weight: 500; font-size: .875rem; color: var(--ink-2); letter-spacing: 0; margin-left: 2px; white-space: nowrap; }
@media (max-width: 599px) { .wordmark small { display: none; } }
.nav-links { display: none; align-items: center; gap: var(--s-2); list-style: none; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-2);
  color: var(--forest); font-weight: 700; text-decoration: none; position: relative;
}
.nav-links a:hover { background: rgba(62, 74, 60, .07); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--float);
}
.nav-right { display: flex; align-items: center; gap: var(--s-2); }
.nav-burger {
  width: 48px; height: 48px; border-radius: var(--r-2); display: inline-flex; align-items: center; justify-content: center; color: var(--forest);
}
.nav-burger:hover { background: rgba(62, 74, 60, .07); }
.nav-burger svg { width: 26px; height: 26px; }
.nav-burger .ic-close { display: none; }
body.nav-open .nav-burger .ic-menu { display: none; }
body.nav-open .nav-burger .ic-close { display: block; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}
.nav-sheet {
  position: fixed; inset: 0; z-index: 99; background: var(--sand);
  padding: calc(var(--nav-h) + var(--safe-top) + var(--s-5)) var(--gutter) calc(var(--s-7) + var(--safe-bottom));
  display: flex; flex-direction: column; gap: var(--s-5); overflow-y: auto;
  animation: sheet-fade var(--dur-2) var(--ease-out);
}
@keyframes sheet-fade { from { opacity: 0; transform: translateY(-6px); } }
.nav-sheet ul { list-style: none; padding: 0; display: flex; flex-direction: column; }
.nav-sheet li a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  font-family: var(--font-head); font-weight: 800; font-size: var(--t-3); letter-spacing: var(--track-tight);
  color: var(--forest); text-decoration: none; padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
}
.nav-sheet li a svg { width: 28px; height: 28px; color: var(--float); }
.nav-sheet li a[aria-current="page"] { color: var(--float-deep); }
.nav-sheet-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-3); color: var(--ink-2); }
.nav-sheet-foot a { color: var(--forest); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.nav-sheet-foot svg { width: 20px; height: 20px; color: var(--float); }
@media (min-width: 820px) { .nav-sheet { display: none !important; } }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--forest-deep); color: var(--stone); padding: var(--s-8) 0 calc(var(--s-6) + var(--safe-bottom)); }
.footer .wordmark { color: var(--paper); }
.footer-grid { display: grid; gap: var(--s-6); }
.footer h4 { color: var(--paper); font-size: 1.125rem; margin-bottom: var(--s-3); }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer a { color: var(--paper); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; gap: 8px; }
.footer a:hover { color: var(--b-yellow); }
.footer a svg { width: 18px; height: 18px; color: var(--stone); }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(200, 193, 177, .22);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--t-s);
}
.footer .muted, .footer p { color: var(--stone); }
.footer-bottom .by { color: var(--stone); }
.footer-bottom .by a { color: var(--paper); text-decoration: underline; text-underline-offset: .2em; display: inline; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* --------------------------------------------------------------------------
   10. Wave divider — two layered paths drifting at different speeds
   -------------------------------------------------------------------------- */
.wave { position: relative; height: var(--wave-h, 64px); overflow: hidden; line-height: 0; background: var(--wave-bg, transparent); }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave .w1, .wave .w2 { transform-box: fill-box; }
.wave .w1 { fill: var(--wave-front, var(--sand)); animation: drift 16s linear infinite; }
.wave .w2 { fill: var(--wave-back, var(--float)); opacity: .32; animation: drift 27s linear infinite reverse; }
.wave.flip svg { transform: scaleY(-1); }
@keyframes drift { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   11. Bunting — flags on a string, staggered swing
   -------------------------------------------------------------------------- */
.bunting {
  --rope: rgba(251, 248, 241, .9);
  display: flex; gap: 6px; justify-content: space-between; align-items: flex-start;
  height: 46px; padding: 0 6px; position: relative; pointer-events: none;
}
.bunting::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--rope); border-radius: 2px; }
.bunting .flag {
  flex: 1 1 0; max-width: 34px; height: 38px; margin-top: 5px;
  background: var(--c); clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0; animation: swing 3.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -.43s);
  filter: drop-shadow(0 1px 1px rgba(30, 36, 29, .18));
}
.bunting .flag:nth-child(6n+1) { --c: var(--b-orange); }
.bunting .flag:nth-child(6n+2) { --c: var(--b-yellow); }
.bunting .flag:nth-child(6n+3) { --c: var(--b-green); }
.bunting .flag:nth-child(6n+4) { --c: var(--b-red); }
.bunting .flag:nth-child(6n+5) { --c: var(--b-blue); }
.bunting .flag:nth-child(6n+6) { --c: #FBF8F1; }
.bunting.on-paper { --rope: var(--stone); }
@media (max-width: 819px) { .bunting .flag:nth-child(n+15) { display: none; } }  /* phones show at most 14 flags */
.bunting.sm { height: 30px; gap: 4px; }
.bunting.sm .flag { max-width: 22px; height: 24px; margin-top: 4px; }
@keyframes swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

/* --------------------------------------------------------------------------
   12. Glass float — bobbing in its rope net
   -------------------------------------------------------------------------- */
.float { display: inline-block; width: var(--size, 72px); height: auto; animation: bob 5.2s ease-in-out infinite; transform-origin: 50% 0; }
.float svg { width: 100%; height: auto; }
.float.slow { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }

/* --------------------------------------------------------------------------
   13. Tide clock — dial for kitchen hours; --progress 0..1 across 8am -> 2pm
   -------------------------------------------------------------------------- */
.tide-clock { --progress: 0; --size: 132px; --dial: var(--float); display: inline-flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.tide-clock[data-phase="closed"] { --dial: var(--ink-3); }
.tide-clock[data-phase="preorder"] { --dial: var(--b-blue); }
.tide-clock[data-phase="lunch"] { --dial: var(--forest); }
.tide-clock .dial { position: relative; width: var(--size); height: var(--size); }
.tide-clock svg { width: 100%; height: 100%; overflow: visible; }
.tide-clock .track { fill: none; stroke: var(--stone-soft); stroke-width: 9; }
.tide-clock .fill {
  fill: none; stroke: var(--dial); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress) * 100);
  transform: rotate(-90deg); transform-origin: 50% 50%; transform-box: view-box;
  transition: stroke-dashoffset var(--dur-3) var(--ease-tide);
}
.tide-clock .tick { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.tide-clock .tick.major { stroke: var(--forest); }
/* the pointer is a float riding the ring, so the centre stays free for the time */
.tide-clock .marker {
  fill: var(--paper); stroke: var(--dial); stroke-width: 3.5;
  transform: rotate(calc(var(--progress) * 360deg)); transform-origin: 50% 50%; transform-box: view-box;
  transition: transform var(--dur-3) var(--ease-tide);
}
.tide-clock .face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.tide-clock .face .time { font-family: var(--font-head); font-weight: 900; font-size: calc(var(--size) * .2); line-height: 1; letter-spacing: var(--track-tight); color: var(--ink); font-variant-numeric: tabular-nums; }
.tide-clock .face .phase { font-size: .8125rem; font-weight: 700; color: var(--dial); margin-top: 3px; }
.tide-clock .tide-label { font-weight: 700; color: var(--ink); text-align: center; max-width: 22ch; text-wrap: balance; }
.tide-clock.lg { --size: 180px; }
.tide-clock.sm { --size: 84px; }
.tide-clock.sm .face .phase { display: none; }
.on-dark .tide-clock .track { stroke: rgba(251, 248, 241, .18); }
.on-dark .tide-clock .marker { fill: var(--forest-deep); }
.on-dark .tide-clock .face .time, .on-dark .tide-clock .tide-label { color: var(--paper); }
.on-dark .tide-clock[data-phase="lunch"] { --dial: var(--b-yellow); }
.on-dark .tide-clock[data-phase="closed"] { --dial: var(--stone); }

/* status stepper — fills like a tide coming in. --n steps, --at index reached */
.steps { --n: 3; --at: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 0; position: relative; padding-top: 18px; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 8px; height: 6px; border-radius: 3px; background: var(--stone-soft); }
.steps::after {
  content: ""; position: absolute; left: 6%; top: 8px; height: 6px; border-radius: 3px; background: var(--float);
  width: calc(88% * var(--at) / (var(--n) - 1)); transition: width 1.2s var(--ease-tide);
}
.steps .step { text-align: center; font-size: var(--t-s); font-weight: 700; color: var(--ink-3); position: relative; padding-top: 12px; }
.steps .step::before {
  content: ""; position: absolute; top: -18px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--stone-soft); transition: border-color var(--dur-3), background var(--dur-3);
}
.steps .step.done { color: var(--ink); }
.steps .step.done::before { border-color: var(--float); background: var(--float); }
.steps .step.now { color: var(--float-deep); }
.steps .step.now::before { border-color: var(--float); background: var(--paper); animation: pulse-ring 1.8s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(46, 143, 163, .45); } 100% { box-shadow: 0 0 0 12px rgba(46, 143, 163, 0); } }

/* --------------------------------------------------------------------------
   14. Reveal on scroll (only when JS is running: html.js)
   -------------------------------------------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-3) var(--ease-out) var(--d, 0ms), transform .7s var(--ease-out) var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-scale { opacity: 0; transform: scale(.96); transition: opacity var(--dur-3) var(--ease-out) var(--d, 0ms), transform .7s var(--ease-spring) var(--d, 0ms); }
html.js .reveal-scale.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   15. Sheets + dialogs — bottom sheet on phone, centred dialog >= 1000px
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 200; background: rgba(30, 36, 29, .55);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-2);
}
.scrim.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-3) var(--r-3) 0 0; box-shadow: var(--sh-3);
  max-height: calc(100dvh - 32px - var(--safe-top)); display: flex; flex-direction: column;
  transform: translateY(105%); visibility: hidden;
  transition: transform var(--dur-2) var(--ease-tide), visibility 0s var(--dur-2);
}
.sheet.show { transform: none; visibility: visible; transition: transform .42s var(--ease-spring), visibility 0s; }
.sheet-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 0; flex: 0 0 auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-5) var(--s-2); flex: 0 0 auto; }
.sheet-head h2, .sheet-head h3 { font-size: var(--t-2); }
.sheet-close { width: 44px; height: 44px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--forest); margin-right: -8px; }
.sheet-close:hover { background: rgba(62, 74, 60, .08); }
.sheet-close svg { width: 24px; height: 24px; }
.sheet-body { overflow-y: auto; padding: var(--s-2) var(--s-5) var(--s-4); flex: 1 1 auto; overscroll-behavior: contain; }
.sheet-foot { padding: var(--s-3) var(--s-5) calc(var(--s-4) + var(--safe-bottom)); border-top: 1px solid var(--line); flex: 0 0 auto; background: var(--paper); }
.sheet-media { margin: 0 calc(var(--s-5) * -1); aspect-ratio: 16 / 9; background: var(--stone); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .sheet {
    left: 50%; top: 50%; right: auto; bottom: auto;
    width: min(560px, calc(100vw - 48px)); max-height: calc(100dvh - 80px);
    border-radius: var(--r-3); box-shadow: var(--sh-2), 0 24px 64px rgba(30, 36, 29, .3);
    transform: translate(-50%, -46%) scale(.97); opacity: 0;
    transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2), visibility 0s var(--dur-2);
  }
  .sheet.show { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: transform .36s var(--ease-spring), opacity var(--dur-2), visibility 0s; }
  .sheet-grab { display: none; }
  .sheet-head { padding-top: var(--s-5); }
  .sheet.wide { width: min(820px, calc(100vw - 48px)); }
}

/* --------------------------------------------------------------------------
   16. Form controls — everything 16px+, 44px+ targets
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: 1rem; color: var(--ink); }
.field .hint { color: var(--ink-2); font-size: var(--t-s); }
.field .error { color: var(--bad); font-weight: 700; font-size: var(--t-s); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-2);
  background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--forest); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--float); outline-offset: 1px; border-color: var(--float-deep); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.textarea { min-height: 96px; resize: vertical; }
.select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E4A3C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.input-group { display: flex; align-items: center; gap: 8px; }
.input-group .input { flex: 1; }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* segmented control: buttons with aria-pressed */
.seg { display: inline-flex; background: var(--stone-soft); padding: 4px; border-radius: var(--r-pill); gap: 2px; max-width: 100%; }
.seg-block { display: flex; width: 100%; }
.seg > button, .seg > label {
  flex: 1 1 0; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; color: var(--ink-2); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  transition: background var(--dur-1), color var(--dur-1), box-shadow var(--dur-1);
}
.seg > button svg { width: 18px; height: 18px; }
.seg > button[aria-pressed="true"], .seg > label:has(input:checked) { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(30, 36, 29, .18); }
.seg > label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg > label:has(input:focus-visible) { outline: 3px solid var(--float); outline-offset: 1px; }

/* stepper */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); }
.stepper button { width: 44px; height: 44px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--forest); }
.stepper button:hover { background: rgba(62, 74, 60, .08); }
.stepper button:disabled { color: var(--ink-4); cursor: not-allowed; background: none; }
.stepper button svg { width: 20px; height: 20px; }
.stepper output, .stepper .val { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.0625rem; }

/* option chips (selectable) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper);
  font-weight: 700; font-size: 1rem; color: var(--ink); cursor: pointer;
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.chip-opt svg { width: 18px; height: 18px; }
.chip-opt:hover { border-color: var(--forest); }
.chip-opt[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.chip-opt .delta { color: var(--ink-2); font-weight: 500; }
.chip-opt[aria-pressed="true"] .delta { color: var(--stone); }

/* check + radio rows */
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--float-deep); flex: 0 0 auto; cursor: pointer; }
.check .delta { margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.option-group { border: 0; padding: 0; margin: 0; }
.option-group legend { font-weight: 700; padding: 0; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
.option-group legend .req { font-size: var(--t-s); color: var(--ink-2); font-weight: 500; }
.option-group + .option-group { margin-top: var(--s-5); }

/* search */
.search { position: relative; }
.search .input { padding-left: 44px; border-radius: var(--r-pill); }
.search > svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-2); pointer-events: none; }

/* --------------------------------------------------------------------------
   17. Docket — paper-white, tear edges, mono numbers
   -------------------------------------------------------------------------- */
.docket {
  --tear: 10px;
  position: relative; background: var(--white); color: #1E241D;
  padding: var(--s-5) var(--s-5) var(--s-6); margin: var(--tear) 0;
  box-shadow: var(--sh-2); font-size: 1rem; line-height: 1.45; max-width: 420px;
}
.docket::before, .docket::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--tear); pointer-events: none;
  background-size: calc(var(--tear) * 2) var(--tear); background-repeat: repeat-x;
}
.docket::before {
  top: calc(var(--tear) * -1);
  background-image: linear-gradient(135deg, transparent 50%, var(--white) 50%), linear-gradient(225deg, transparent 50%, var(--white) 50%);
  background-position: 0 0, var(--tear) 0; background-size: var(--tear) var(--tear);
}
.docket::after {
  bottom: calc(var(--tear) * -1);
  background-image: linear-gradient(45deg, var(--white) 50%, transparent 50%), linear-gradient(-45deg, var(--white) 50%, transparent 50%);
  background-position: 0 0, var(--tear) 0; background-size: var(--tear) var(--tear);
}
.docket-head { text-align: center; padding-bottom: var(--s-3); }
.docket-head .venue { font-family: var(--font-head); font-weight: 900; font-size: var(--t-1); letter-spacing: var(--track-tight); line-height: 1.05; }
.docket-head .sub { color: var(--ink-2); font-size: var(--t-s); margin-top: 2px; }
.docket-ref { font-family: var(--font-num); font-weight: 700; font-size: var(--t-3); letter-spacing: .02em; text-align: center; line-height: 1; margin: var(--s-2) 0 var(--s-1); font-variant-numeric: tabular-nums; }
.docket-rule { border: 0; height: 0; border-top: 2px dashed var(--line-strong); margin: var(--s-3) 0; background: none; }
.docket-line { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 4px 10px; align-items: baseline; padding: 4px 0; }
.docket-line .qty { font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums; }
.docket-line .name { font-weight: 700; }
.docket-line .mods { grid-column: 2 / 4; color: var(--ink-2); font-size: var(--t-s); }
.docket-line .note { grid-column: 2 / 4; color: var(--warn); font-size: var(--t-s); font-weight: 700; }
.docket-line .amt { font-family: var(--font-num); font-variant-numeric: tabular-nums; text-align: right; }
.docket-row { display: flex; justify-content: space-between; gap: var(--s-3); padding: 2px 0; }
.docket-row .amt { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.docket-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; font-family: var(--font-head); font-size: var(--t-1); padding-top: var(--s-2); }
.docket-total .amt { font-family: var(--font-num); font-weight: 700; }
.docket-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: var(--t-s); }
.docket-meta b { color: var(--ink); }
.docket-site { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-num); font-weight: 700; font-size: var(--t-1); background: var(--b-yellow); color: var(--ink); padding: 4px 12px; border-radius: 6px; }
.docket-stamp {
  position: absolute; right: 12px; top: 12px; transform: rotate(8deg);
  border: 3px solid var(--float-deep); color: var(--float-deep); border-radius: 6px;
  font-family: var(--font-head); font-weight: 900; font-size: 1rem; letter-spacing: .04em; padding: 2px 8px; opacity: .85;
}
.docket:has(> .docket-stamp) .docket-head { padding-inline: 72px; }
.docket-stamp.ready { border-color: var(--good); color: var(--good); }
.docket-stamp.off { border-color: var(--bad); color: var(--bad); }
.docket-print { animation: docket-print 1.1s var(--ease-tide) both; clip-path: inset(0 0 0 0); }
@keyframes docket-print {
  0% { clip-path: inset(0 0 100% 0); transform: translateY(-16px); }
  100% { clip-path: inset(0 0 -20px 0); transform: none; }
}
.docket-wifi { display: flex; align-items: center; gap: 10px; background: var(--sand); border-radius: var(--r-1); padding: 10px 12px; font-weight: 700; }
.docket-wifi svg { width: 20px; height: 20px; color: var(--float-deep); flex: 0 0 auto; }
.docket-wifi .num { font-weight: 700; }
.docket.compact { padding: var(--s-4); max-width: none; }
.docket .timer { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; }
.docket.is-late .timer { color: var(--bad); }
.docket-actions { display: flex; gap: 8px; margin-top: var(--s-3); }
.docket-actions .btn { flex: 1; }
.docket-arrive { animation: docket-arrive .7s var(--ease-spring) both; }
@keyframes docket-arrive {
  0% { transform: translateX(28px); opacity: 0; box-shadow: 0 0 0 0 rgba(242, 198, 75, 0); }
  40% { box-shadow: 0 0 0 8px rgba(242, 198, 75, .55); }
  100% { transform: none; opacity: 1; box-shadow: var(--sh-2); }
}

/* --------------------------------------------------------------------------
   18. Status chips + live chip
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 2px 11px 2px 9px;
  border-radius: var(--r-pill); font-weight: 700; font-size: var(--t-s); line-height: 1.2; white-space: nowrap;
  background: var(--st-done-bg); color: var(--st-done-fg);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.chip svg { width: 16px; height: 16px; }
.chip.no-dot::before { display: none; }
.chip[data-status="new"], .chip[data-status="requested"] { background: var(--st-new-bg); color: var(--st-new-fg); }
.chip[data-status="making"], .chip[data-status="checked_in"] { background: var(--st-making-bg); color: var(--st-making-fg); }
.chip[data-status="ready"], .chip[data-status="confirmed"] { background: var(--st-ready-bg); color: var(--st-ready-fg); }
.chip[data-status="collected"], .chip[data-status="checked_out"] { background: var(--st-done-bg); color: var(--st-done-fg); }
.chip[data-status="cancelled"], .chip[data-status="declined"], .chip[data-status="soldout"] { background: var(--st-off-bg); color: var(--st-off-fg); }
.chip[data-status="new"]::before, .chip[data-status="making"]::before { animation: chip-pulse 1.6s ease-in-out infinite; }
@keyframes chip-pulse { 50% { opacity: .35; } }
.chip.open { background: var(--st-ready-bg); color: var(--st-ready-fg); }
.chip.closed { background: var(--st-off-bg); color: var(--st-off-fg); }
.chip.preorder { background: var(--st-new-bg); color: var(--st-new-fg); }
.chip.lg { min-height: 36px; padding: 4px 14px 4px 12px; font-size: 1rem; }
.chip.on-photo { background: rgba(30, 36, 29, .62); color: var(--paper); }
.chip.on-photo.open::before { background: #7BE0A0; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 6px; background: #3E4A3C; color: #FBF8F1; font-weight: 700; font-size: 0.875rem; }
.tag.sand { background: #EFE9DC; color: #3E4A3C; }
.tag.yellow { background: var(--b-yellow); color: var(--ink); }

/* --------------------------------------------------------------------------
   19. Toast
   -------------------------------------------------------------------------- */
.toasts {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-bottom)); transform: translateX(-50%); z-index: 300;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: min(420px, calc(100vw - 32px));
}
.toast {
  background: var(--forest-deep); color: var(--paper); padding: 12px 18px; border-radius: var(--r-2);
  box-shadow: var(--sh-2); font-weight: 700; display: flex; align-items: center; gap: 10px;
  animation: toast-in var(--dur-2) var(--ease-spring) both; pointer-events: auto;
}
.toast svg { width: 20px; height: 20px; color: var(--b-yellow); flex: 0 0 auto; }
.toast.good svg { color: #7BE0A0; }
.toast.bad { background: var(--bad); }
.toast.bad svg { color: var(--paper); }
.toast.out { animation: toast-out var(--dur-2) var(--ease-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* fly-to-cart clone */
.fly { position: fixed; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; z-index: 250; pointer-events: none; box-shadow: var(--sh-2); transition: transform .62s cubic-bezier(.32, .72, .38, 1), opacity .62s ease; }

/* sticky bottom bar (cart) */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: var(--s-3) var(--gutter) calc(var(--s-3) + var(--safe-bottom)); pointer-events: none; }
.cartbar .btn { pointer-events: auto; box-shadow: 0 10px 30px rgba(30, 36, 29, .3); }
@media (min-width: 1000px) { .cartbar { display: none; } }

/* --------------------------------------------------------------------------
   20. Staff console — dark forest, paper dockets, Switzer + Martian Mono
   -------------------------------------------------------------------------- */
body.staff {
  --font-head: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sand: #22291F;               /* page ground goes dark */
  --paper: #2B342A;              /* cards, sheets, nav */
  --board: #2B342A;
  --stone-soft: #3A4538;
  --line: #3E4A3C;
  --line-strong: #6B7668;
  --ink: #FBF8F1;
  --ink-2: #C8C1B1;
  --ink-3: #B4AC9B;
  --float-soft: #1F4A54;
  --good: #8FE3AC; --warn: #F2C64B; --bad: #F5A08C;   /* status inks on dark (dockets re-scope their own) */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
  --sh-2: 0 4px 16px rgba(0, 0, 0, .35);
  color-scheme: dark;
  background: #22291F; color: #FBF8F1;
}
body.staff .wordmark { font-family: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif; color: #FBF8F1; }
body.staff h1, body.staff h2, body.staff h3, body.staff h4 { letter-spacing: -0.02em; color: #FBF8F1; }
body.staff .nav { background: #2B342A; border-bottom-color: #3E4A3C; }
body.staff .nav-links a, body.staff .nav-burger, body.staff .sheet-close { color: #FBF8F1; }
body.staff .btn-ghost { --btn-bd: #C8C1B1; --btn-fg: #FBF8F1; }
body.staff .btn-ghost:hover { --btn-bg: rgba(251, 248, 241, .08); }
body.staff .btn-quiet { --btn-fg: #FBF8F1; }
body.staff .btn-quiet:hover { --btn-bg: rgba(251, 248, 241, .08); }
body.staff .btn-primary { --btn-bg: var(--float); --btn-bd: var(--float); --btn-fg: #0F2026; }
body.staff .btn-primary:hover { --btn-bg: #3AA3B8; --btn-bd: #3AA3B8; }
body.staff .btn-forest { --btn-bg: #FBF8F1; --btn-bd: #FBF8F1; --btn-fg: #2B342A; }
body.staff .card, body.staff .panel { background: #2B342A; border-color: #3E4A3C; }
body.staff .input, body.staff .select, body.staff .textarea { background-color: #1C2219; color: #FBF8F1; border-color: #6B7668; }
body.staff .input::placeholder { color: #B4AC9B; }
body.staff .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF8F1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
body.staff .seg { background: #1C2219; }
body.staff .seg > button[aria-pressed="true"], body.staff .seg > label:has(input:checked) { background: #3E4A3C; color: #FBF8F1; }
body.staff .stepper, body.staff .chip-opt { background: #1C2219; border-color: #6B7668; }
body.staff .chip-opt[aria-pressed="true"] { background: #FBF8F1; color: #2B342A; border-color: #FBF8F1; }
body.staff .num, body.staff .price, body.staff .timer { font-family: var(--font-num); font-weight: 600; letter-spacing: -0.02em; }
/* a docket is always paper, whatever theme wraps it: re-scope the light tokens inside it */
.docket, body.staff .docket {
  --ink: #1E241D; --ink-2: #4C554B; --ink-3: #5E675D; --ink-4: #737B72;
  --line: #DED7C8; --line-strong: #B9B2A2; --stone-soft: #E3DDCF; --paper: #FFFFFF; --sand: #EFE9DC;
  --float-soft: #DCEFF3; --good: #1F5A2B; --warn: #8A4B0B; --bad: #8F2A1B;
  color: #1E241D;
}
body.staff .docket { --font-head: "Switzer", Arial, sans-serif; }
body.staff .docket h1, body.staff .docket h2, body.staff .docket h3, body.staff .docket h4 { color: #1E241D; }
body.staff .docket .btn-ghost, body.staff .docket .btn-quiet { --btn-bd: #3E4A3C; --btn-fg: #3E4A3C; }
body.staff .docket .btn-ghost:hover, body.staff .docket .btn-quiet:hover { --btn-bg: rgba(62, 74, 60, .08); }
body.staff .docket .btn-forest { --btn-bg: #3E4A3C; --btn-bd: #3E4A3C; --btn-fg: #FBF8F1; }
body.staff .docket .btn-primary { --btn-bg: #1F6C7C; --btn-bd: #1F6C7C; --btn-fg: #FBF8F1; }
body.staff .docket .steps::before { background: #E3DDCF; }
body.staff .docket .steps .step::before { background: #FFFFFF; border-color: #E3DDCF; }
body.staff .docket .steps .step.done::before { background: var(--float); border-color: var(--float); }
body.staff .scrim { background: rgba(0, 0, 0, .6); }
body.staff .toast { background: #FBF8F1; color: #1E241D; }
body.staff .toast svg { color: var(--float-deep); }
body.staff .footer { background: #1C2219; }
body.staff .board { background-image: repeating-linear-gradient(180deg, transparent 0 26px, rgba(0, 0, 0, .18) 26px 27px, rgba(255, 255, 255, .03) 27px 28px); }
body.staff ::selection { background: var(--float); color: #0F2026; }
body.staff .tide-clock .track { stroke: #3A4538; }
body.staff .tide-clock .marker { fill: #2B342A; }
body.staff .tide-clock .face .time, body.staff .tide-clock .tide-label { color: #FBF8F1; }
body.staff .tide-clock[data-phase="lunch"] { --dial: var(--b-yellow); }
body.staff .tide-clock[data-phase="closed"] { --dial: #B4AC9B; }
body.staff .steps::before { background: #3A4538; }
body.staff .steps .step::before { background: #2B342A; border-color: #3A4538; }
/* kanban columns for the orders board */
.board-cols { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }
.board-col { display: flex; flex-direction: column; gap: var(--s-3); min-height: 120px; }
.board-col-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 1.125rem; padding: 6px 2px; }
.board-col-head .count { font-family: var(--font-num); font-size: var(--t-s); background: var(--stone-soft); color: var(--ink); padding: 2px 10px; border-radius: var(--r-pill); }
/* stat tiles for Today */
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4); display: flex; flex-direction: column; gap: 4px; }
.stat .label { color: var(--ink-2); font-weight: 500; font-size: var(--t-s); }
.stat .val { font-family: var(--font-num); font-size: var(--t-3); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.stat .delta { color: var(--ink-3); font-size: var(--t-s); }

/* --------------------------------------------------------------------------
   21. Reduced motion — every continuous animation stops, reveals show
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .bunting .flag, .wave .w1, .wave .w2, .float, .frond::before, .kenburns, .chip::before, .steps .step.now::before, .btn.is-loading::after { animation: none !important; }
  .btn.is-loading::after { border-color: var(--btn-fg); opacity: .5; }
  html.js .reveal, html.js .reveal-scale { opacity: 1 !important; transform: none !important; }
  .sheet, .scrim, .toast, .docket-print, .docket-arrive { transition: none !important; animation: none !important; }
  .docket-print { clip-path: none; }
}

/* --------------------------------------------------------------------------
   22. Print — dockets only
   -------------------------------------------------------------------------- */
@media print {
  body, body.staff { background: #fff !important; color: #000 !important; padding: 0 !important; }
  .nav, .nav-sheet, .scrim, .toasts, .cartbar, .footer, .no-print, .bunting, .wave, .frond, .docket-actions { display: none !important; }
  .docket { box-shadow: none !important; margin: 0 !important; max-width: 80mm !important; page-break-inside: avoid; border: 1px dashed #999; }
  .docket::before, .docket::after { display: none; }
  .docket-print { animation: none !important; clip-path: none !important; }
  .sheet { position: static !important; transform: none !important; visibility: visible !important; opacity: 1 !important; box-shadow: none !important; max-height: none !important; }
  .print-only { display: block !important; }
  a { color: inherit; text-decoration: none; }
}
.print-only { display: none; }
