/* BokBok customer pages: the menu-poster world. White tiled wall, deep red table, near-black bands with film specks.
   Shared by the home page (index.html) and the tracking page (track.html). */

/* Brand fonts Popfine and Splatink are personal-use files: Anton and Permanent Marker stand in (see fonts/README.txt).
   To switch once licensed: point these two src lines at the brand files and keep the family names. */
@font-face { font-family: "BB Display"; src: url("/assets/fonts/anton-latin.woff2") format("woff2"); font-display: swap; }
/* Anton's extended set, only for the peso sign (and other currency/accented letters), so prices stay in one face */
@font-face { font-family: "BB Display"; src: url("/assets/fonts/anton-latin-ext.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "BB Script"; src: url("/assets/fonts/permanent-marker.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("/assets/fonts/cooper-hewitt-book.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("/assets/fonts/cooper-hewitt-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --red: #87271b;        /* brand board */
  --red-deep: #6d1e14;   /* pressed / hover */
  --red-wash: #f7ebe8;   /* checked options, soft fills on white */
  --ink: #131313;        /* brand board */
  --tile: #ffffff;       /* brand board */
  --grout: #e8e1dc;      /* tile joints, rules on white */
  --muted: #5f5450;      /* secondary text on white: 7:1 */
  --on-red-soft: rgb(255 255 255 / .84); /* secondary text on red: 6.9:1 */
  --ok: #1d6b3a;
  --error: #a3261c;
  --display: "BB Display", "Anton", "Arial Narrow", sans-serif;
  --script: "BB Script", "Permanent Marker", cursive;
  --text: "Cooper Hewitt", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); /* exponential out */
  --header: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 56px); }
body { margin: 0; background: var(--tile); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
::selection { background: var(--red); color: #fff; }
html { caret-color: var(--red); scrollbar-color: var(--red) var(--grout); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.on-red :focus-visible, .on-ink :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Materials. The wall is a drawn grid, not a photo: every poster's tiled wall carries text, script or food and is
   shot at an angle, so there's no clean patch to repeat. Swap in a straight-on tile photo if a shoot ever produces one. */
.tiles {
  background-color: var(--tile);
  background-image:
    linear-gradient(var(--grout) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--grout) 1.5px, transparent 1.5px),
    radial-gradient(120% 90% at 30% 10%, rgb(255 255 255 / 0) 60%, rgb(135 39 27 / .05));
  background-size: 52px 52px, 52px 52px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
}
.table { background: var(--red) url("/assets/brand/specks.svg") 0 0 / 360px 360px; color: #fff; }
.ink { background: var(--ink) url("/assets/brand/specks.svg") 40px 90px / 360px 360px; color: #fff; }

/* Icons: one stroke family, drawn (see the sprite in each page) */
.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* Type voices */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .9; }
.script { font-family: var(--script); font-weight: 400; }
.price { font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* Header: logo always goes home */
.site-head { position: fixed; inset: 0 0 auto; z-index: 20; height: calc(var(--header) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 10px; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-head.solid { background: rgb(255 255 255 / .96); box-shadow: 0 6px 18px -10px rgb(19 19 19 / .35); }
.home-link { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; min-height: 44px; }
.home-link .mark { width: 40px; height: 47px; }
.home-link .word { height: 24px; width: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--grout); border-radius: 50%; background: var(--tile); color: var(--ink); transition: border-color .2s, background-color .2s, transform .16s var(--ease); }
.icon-btn:hover { border-color: var(--red); }
.icon-btn:active { transform: scale(.92); }
.icon-btn[aria-pressed="false"] { color: var(--muted); }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font: 700 12px/20px var(--text); text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; font: 700 15px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 20px -12px rgb(109 30 20 / .9); }
.btn-red:hover { background: var(--red-deep); }
.btn-white { background: #fff; color: var(--red); box-shadow: 0 10px 20px -14px rgb(0 0 0 / .6); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }

/* Form fields */
.field-label, form label { display: block; margin: 16px 0 6px; font-weight: 700; font-size: 14px; }
input[type=text], input[type=tel], input[type=number], textarea, select, .input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--grout); border-radius: 12px; background: #fff; font-size: 16px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
textarea { min-height: 72px; resize: vertical; }
::placeholder { color: #7a6f6a; } /* 4.9:1 on white (AA); still lighter than typed text */
.muted { color: var(--muted); }
.error { color: var(--error); font-weight: 700; }

/* Toast */

/* Halloween look (Settings → Halloween look): /assets/season.js adds these while it is on. The shop after closing time:
   the tiled wall goes dark under a full moon, the red table and the food stay as they are; bats, cobwebs, a spider and hot
   sauce dripping off the red. Cards, sheets, checkout and the reading pages stay white. */
[data-season="halloween"] { --night: #141111; --night-line: rgb(255 255 255 / .065); --night-soft: rgb(255 255 255 / .74); }
[data-season="halloween"] .tiles {
  background-color: var(--night);
  background-image:
    linear-gradient(var(--night-line) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--night-line) 1.5px, transparent 1.5px),
    radial-gradient(120% 90% at 30% 10%, rgb(255 255 255 / 0) 55%, rgb(135 39 27 / .16));
}
[data-season="halloween"] .tiles .scrawl { opacity: .42; } /* the wall's faint red word, still faint at night */
[data-season="halloween"] .hero.tiles h1, [data-season="halloween"] .poster h2 { color: #fff; }
[data-season="halloween"] .hero.tiles .lede { color: var(--night-soft); }
[data-season="halloween"] .poster .note { color: var(--night-soft); }
[data-season="halloween"] .status, [data-season="halloween"] .batchbar { color: var(--ink); } /* white chips and cards keep dark text */
[data-season="halloween"] :is(.track-head, .legal-head, .site-foot, body.tiles) { position: relative; }
body.tiles > .season-deco { z-index: 0; } /* the whole page behind the cards: under everything that comes after it */
/* Ghosts: float and bob, fade in and out a little; one peeks over the top of the footer */
.ghost { position: absolute; left: var(--x); top: var(--y); width: var(--w); pointer-events: none; animation: ghostfloat var(--t) ease-in-out var(--d) infinite alternate; }
.ghost svg { display: block; width: 100%; height: auto; fill: #fff; scale: var(--f) 1; opacity: .9; animation: ghostfade calc(var(--t) * 1.9) ease-in-out var(--d) infinite alternate; }
.ghost .face { fill: var(--ink); }
.site-foot > .ghost.peek { z-index: 2; top: 0; translate: 0 -60%; width: 46px; animation-name: ghostpeek; }
@keyframes ghostfloat { from { transform: translateY(-9px) rotate(-5deg); } to { transform: translateY(9px) rotate(5deg); } }
@keyframes ghostfade { from { opacity: .92; } to { opacity: .5; } }
@keyframes ghostpeek { 0%, 55% { transform: translateY(18px); } 75%, 100% { transform: translateY(0) rotate(-4deg); } }
[data-motion="off"] :is(.ghost, .ghost svg) { animation: none; }
[data-season="halloween"] .home-link { position: relative; z-index: 2; } /* the logo stays in front of the bats */
.season-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; color: var(--ink); }
.wall > .season-deco { color: var(--red); } /* dark red bats on the dark wall */
.season-deco .moon { position: absolute; left: var(--mx, 74%); top: var(--my, 21%); width: var(--mw, 46vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 63% 60%, rgb(80 50 30 / .09) 0 9%, transparent 9.5%), radial-gradient(circle at 34% 70%, rgb(80 50 30 / .08) 0 6%, transparent 6.5%),
    radial-gradient(circle at 70% 27%, rgb(80 50 30 / .07) 0 5%, transparent 5.5%), radial-gradient(circle at 40% 36%, #fffaf3, #efe4d6 62%, #dccbb7);
  box-shadow: 0 0 50px 14px rgb(255 238 214 / .16), 0 0 140px 50px rgb(255 238 214 / .07); } /* moonlight: the bats and the spider cross it */
.season-deco .bat { position: absolute; left: var(--x); top: var(--y); width: var(--w); animation: batfly var(--t) ease-in-out var(--d) infinite alternate; }
.season-deco .bat svg, .bat-burst svg { display: block; width: 100%; height: auto; fill: currentColor; transform-origin: 50% 30%; animation: flap .26s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleY(.35); } }
@keyframes batfly { to { transform: translate(var(--dx), var(--dy)) rotate(8deg); } }
.season-deco .web { position: absolute; top: 0; right: 0; width: min(36vw, 230px); height: auto; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: .55; opacity: .32; }
.tiles > .season-deco .web { stroke: #fff; opacity: .2; } /* catching the light on the dark wall */
.wall > .season-deco .web { width: min(30vw, 150px); } /* menu posters: a smaller one, clear of the category name */
.season-deco .spider { position: absolute; left: var(--sx, 88%); top: var(--sy, 30%); width: 30px; animation: dangle 5.5s ease-in-out infinite alternate; }
.season-deco .spider::before { content: ""; position: absolute; left: 50%; bottom: calc(100% - 10px); width: 1.5px; height: 140vh; margin-left: -.75px; background: #fff; opacity: .35; } /* its thread, up out of sight */
.season-deco .spider svg { display: block; width: 100%; height: auto; fill: currentColor; transform-origin: 50% 25%; animation: wiggle 1.4s ease-in-out infinite alternate; }
.season-deco .spider .legs { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes dangle { from { transform: translateY(-34px); } to { transform: translateY(12px); } }
@keyframes wiggle { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
/* Sauce drips: they run down once, then a drop falls now and then */
.word-drips, .band-drips { pointer-events: none; color: var(--red); }
.band-drips i, .band-drips b { position: absolute; left: calc(var(--x) * 1%); background: currentColor; }
.band-drips i { width: var(--w); margin-left: calc(var(--w) / -2); height: var(--h); border-radius: 0 0 999px 999px; transform-origin: top; animation: drip 1.8s var(--ease) calc(.5s + var(--d)) both; }
.band-drips i::before { content: ""; position: absolute; left: 50%; top: 0; width: 260%; height: max(4px, calc(var(--w) * .9)); translate: -50% 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: inherit; } /* the shoulder where it runs off the edge */
.band-drips i::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 128%; aspect-ratio: 1; border-radius: 50%; background: inherit; translate: -50% 18%; } /* the heavy end */
.band-drips b { border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; opacity: 0; animation: drop 4.8s ease-in 3s infinite; }
@keyframes drip { from { transform: scaleY(0); } }
@keyframes drop { 0%, 70% { opacity: 0; transform: none; } 74% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--fall, .35em)); } }
[data-season="halloween"] .hero h1 .big { position: relative; width: fit-content; padding-bottom: .22em; } /* room for the drips above the line under it (padding: a margin would collapse into the lede's) */
/* "TENDERS" dipped in hot sauce: the feet of the letters are sauce-red, and the drips run out of that red */
[data-season="halloween"] .hero.tiles h1 .big { color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 13C14 5 28 5 42 12S70 22 84 13 108 4 120 13V24H0Z' fill='%2387271b'/%3E%3C/svg%3E") 0 .6em / 1.35em .15em repeat-x,
    linear-gradient(#fff .72em, var(--red) .72em) no-repeat;
  -webkit-background-clip: text; background-clip: text; } /* after the shorthand, which resets it. A wavy sauce line, not a ruler edge */
.word-drips { position: absolute; left: 0; top: 0; overflow: visible; fill: currentColor; } /* drawn by season.js from the real letters */
.word-drips path { transform-box: fill-box; transform-origin: 50% 0; animation: drip 1.8s var(--ease) calc(.5s + var(--d)) both; }
.word-drips .drop { transform-box: fill-box; opacity: 0; animation: drop 4.8s ease-in 3s infinite; --fall: .3em; }
.band-drips { display: block; position: relative; z-index: 1; height: 0; --cut: 36px; } /* right under the band; its edge rises by --cut from left to right */
.band-drips i { top: calc(var(--x) * var(--cut) / -100 - 2px); }
.band-drips b { top: calc(var(--x) * var(--cut) / -100 + var(--h) + 4px); width: 8px; height: 10px; margin-left: -4px; --fall: 26px; }
/* "Happy Halloween" and staff's line: a white sticker slapped on the dark wall or the red table */
.season-note:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; width: fit-content; max-width: 100%; padding: 10px 16px 12px 14px; border-radius: 14px; background: #fff; color: var(--ink); rotate: -1.5deg; box-shadow: 0 14px 26px -14px rgb(0 0 0 / .75); }
.season-note svg { width: 30px; height: auto; fill: currentColor; }
.season-note .script { font-size: 1.35rem; line-height: 1.1; color: var(--red); }
.season-note .line { flex-basis: 100%; font-size: 14px; font-weight: 700; line-height: 1.35; }
.bat-burst { position: fixed; z-index: 50; width: 34px; color: var(--ink); pointer-events: none; }
/* The one scare: the mascot lunges out of the dark (season.js runs it once per phone, never with animations off) */
.scare { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; overflow: hidden; background: radial-gradient(60% 50% at 50% 55%, #2a0d09, #070505 70%); cursor: pointer; }
.scare-word { position: absolute; top: 9svh; font: 400 min(44vw, 15rem)/.9 var(--display); letter-spacing: .02em; color: var(--red); }
.scare-face { position: relative; width: min(78vw, 56svh); }
.scare-face img { display: block; width: 100%; height: auto; }
.scare-face .eye { position: absolute; left: 14%; top: 47%; width: 11%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff 0 14%, var(--red) 30% 58%, transparent 72%); box-shadow: 0 0 22px 10px rgb(135 39 27 / .75); } /* red eyes behind the shades */
.scare-face .eye.r { left: 43%; top: 48%; }
[data-motion="off"] :is(.season-deco .bat, .season-deco .bat svg, .season-deco .spider, .season-deco .spider svg, .word-drips *, .band-drips *) { animation: none; }

/* Animations off (the header switch; each page starts it off when the device asks for reduced motion): nothing moves.
   Keyed to the switch, not the device setting, so a visitor who turns animations back on gets them. */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
