/* The guest booking pages (/book, /book/r/…, privacy, terms) in the B-SIDE brand book v2 colours, side B
   (night): https://design.bsidewaw.com, adapted after the 2026-11-18 review (docs/plans/2026-11-18-booking-form-brand.md):
   the room's palette, plain Montserrat in sentence case, no lined display face (it turns to grey ripple on a
   phone and reads as 70s disco). Loaded after styles.css by book.html only, so the staff app keeps its look.
   Amber: one action per step (the main button), nothing else; money and links are cream. Picked day/time: filled cream
   with ink text (an outline alone read as "not picked" in the 2026-11-20 test pass), like the picked language.
   Speaker blue appears once per screen: the booking's day and time. */

:root {
  /* brand book palette */
  --b-amber: #E47D31;
  --b-amber-bright: #F2954B;
  --b-amber-deep: #C25F1C;
  --b-gold: #E6B062;
  --b-speaker: #7AA7B4;
  --b-ink: #120C07;
  --b-char: #251A10;
  --b-char-2: #30231A;
  --b-smoke: #46362A;
  --b-cream: #F0E9DF;
  --b-cream-dim: #CABFB1;
  --b-cream-faint: #9A8E7F;
  --b-on-amber: #1A1208;
  --b-hair: rgba(240, 233, 223, .12);
  --b-sans: "Montserrat", system-ui, sans-serif;
  --b-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;

  /* the shared tokens, re-pointed */
  --page: var(--b-ink);
  --surface: var(--b-char);
  --surface-2: var(--b-char);
  --text: var(--b-cream);
  --hint: var(--b-cream-faint);
  --sub: var(--b-cream-dim);
  --line: rgba(240, 233, 223, .10);
  --accent: var(--b-amber);
  --accent-text: var(--b-cream);
  --on-accent: var(--b-on-amber);
  --accent-soft: var(--b-char-2);
  --gold: var(--b-gold);
  --speaker: var(--b-speaker);
  --display: var(--b-sans);
  --text-font: var(--b-sans);
  --radius: 14px;
  --radius-s: 14px;
  --shadow: none;
  color-scheme: dark;
}

body { background: var(--b-ink); font-family: var(--b-sans); }
::selection { background: color-mix(in srgb, var(--b-amber) 45%, transparent); color: var(--b-cream); }
input, textarea { caret-color: var(--b-amber); }
:focus-visible { outline: 2px solid var(--b-cream); outline-offset: 2px; }
a { text-underline-offset: 3px; }
/* Links are cream and underlined: amber is kept for the step's one main button (review 2026-11-18). */
.book a { color: var(--b-cream); text-decoration: underline; text-decoration-color: rgba(240, 233, 223, .35); }
.book a.btn { text-decoration: none; }
/* Icons: one family (Lucide), 1.5 stroke, 16/20/24 only. */
.book .icon { stroke-width: 1.5; }

/* ---- head: the two-ink mark and the address in the catalogue voice */
.book .brandbar .mark { width: 28px; height: 28px; background: url(/static/brand/bs-mark-2ink.svg) center / contain no-repeat;
  -webkit-mask: none; mask: none; }
.book .brandbar .where { font: 400 0.6875rem/1.2 var(--b-mono); letter-spacing: .12em; color: var(--b-cream-dim); }
.book .lang-switch { background: transparent; border: 1px solid var(--b-hair); border-radius: 999px; padding: 3px; }
.book .lang-switch button { border-radius: 999px; font: 600 0.75rem var(--b-sans); letter-spacing: .06em; padding: 8px 12px; min-height: 32px; }
.book .lang-switch button.on { background: var(--b-cream); color: var(--b-ink); }

/* ---- type: one calm sans, sentence case; small spaced capitals only for the quiet field labels */
.book .book-title { font: 600 2rem/1.15 var(--b-sans); letter-spacing: -.01em; color: var(--b-cream); margin: 24px 0 12px; text-wrap: balance; }
.book .book-lead { font-size: 1rem; line-height: 1.55; color: var(--b-cream-dim); margin: 0 0 24px; max-width: 36ch; }
.book .book-step, .book .res-label { font: 600 0.6875rem var(--b-sans); letter-spacing: .14em; color: var(--b-cream-faint); margin: 24px 0 12px; }
.book .book-step { margin: 0 0 24px; }
.book .res-label:first-child { margin-top: 0; }

/* ---- the choice: days, people, times. Picked = filled cream, ink text; never orange */
.book .book-day { background: transparent; border: 1px solid var(--b-hair); border-radius: 14px; width: 56px; min-height: 68px; }
.book .book-day small { font: 600 0.6875rem var(--b-sans); color: var(--b-cream-faint); }
.book .book-day b { font: 400 1.25rem var(--b-mono); }
.book .book-day.on, .book .res-tile.on { background: var(--b-cream); border-color: var(--b-cream); color: var(--b-ink); box-shadow: none; }
.book .book-day.on small { color: var(--b-smoke); }
.book .res-tile.on b { font-weight: 600; }
.book .book-day.off { opacity: .3; }

.book .res-people { font-weight: 600; }
.book .res-stepper button { display: inline-flex; align-items: center; justify-content: center; color: var(--b-cream); background: transparent; border: 1px solid var(--b-hair); border-radius: 999px; width: 48px; height: 48px; }
.book .res-stepper button:disabled { opacity: .35; }
.book .res-stepper output { font: 400 1.5rem var(--b-mono); color: var(--b-cream); min-width: 48px; text-align: center; }

.book .res-tile { background: transparent; border: 1px solid var(--b-hair); border-radius: 14px; }
.book .res-tile b { font: 400 1rem var(--b-mono); letter-spacing: .04em; }

/* ---- cards: raised char, a hairline, no shadow */
.book .group-body, .book .res-people, .book .book-night, .book .book-choice, .book .book-summary, .book .notice, .book .book-status {
  background: var(--b-char); border: 1px solid rgba(240, 233, 223, .08); border-radius: 14px; }
.book .group-foot { color: var(--b-cream-faint); }
.book .field > span { font: 600 0.75rem var(--b-sans); color: var(--b-cream-faint); }
.book .book-night b { color: var(--b-cream); font-weight: 600; }

/* The booking itself: the one speaker-blue thing on the screen (the brand book's poster date). */
.book .book-when { font: 600 1.0625rem/1.35 var(--b-sans); color: var(--b-speaker); }

/* ---- buttons: pills in sentence case; amber only for the step's one action */
.book .btn { border-radius: 999px; min-height: 52px; font: 600 1rem var(--b-sans); letter-spacing: 0; text-transform: none; }
.book .btn:not(.primary):not(.ghost) { background: transparent; border: 1px solid rgba(240, 233, 223, .22); color: var(--b-cream); }
.book .btn.primary { background: var(--b-amber); color: var(--b-on-amber); }
.book .btn.primary:hover { background: var(--b-amber-bright); }
.book .btn.primary:active:not(:disabled) { background: var(--b-amber-deep); }
.book .btn.primary:disabled { background: var(--b-smoke); color: var(--b-cream-faint); }
.book .btn.ghost { color: var(--b-cream); }
.book .book-choice .btn { min-height: 44px; padding: 8px 12px; color: var(--b-cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240, 233, 223, .35); }

/* ---- the minimum spend to tick before sending: a raised card, the whole card is the tap target */
.book .book-ack { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 14px 16px; min-height: 48px;
  background: var(--b-char); border: 1px solid rgba(240, 233, 223, .22); border-radius: 14px; cursor: pointer; }
.book .book-ack:has(input:checked) { border-color: var(--b-cream); }
.book .book-ack input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--b-cream); }
.book .book-ack b { display: block; font: 600 1rem/1.35 var(--b-sans); color: var(--b-cream); }
.book .book-ack .hint { display: block; margin-top: 4px; font-size: 0.8125rem; line-height: 1.45; color: var(--b-cream-dim); }

/* ---- statuses: colour plus words and an icon, in the text face on one line; "waiting" is lamp gold */
.book .book-status b { font: 600 1.25rem/1.3 var(--b-sans); }
.book .book-status.amber { background: color-mix(in srgb, var(--b-gold) 10%, var(--b-char)); border-color: color-mix(in srgb, var(--b-gold) 30%, transparent); }
.book .book-status.amber svg, .book .book-status.amber b { color: var(--b-gold); }
.book .book-status.ok { border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.book .book-status.red { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.book .notice.teal > .icon { color: var(--b-cream); }
.book .btn.ghost.book-cancel { color: var(--b-cream-dim); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240, 233, 223, .3); }

/* ---- the documents */
.book .book-privacy h2 { font: 600 1rem/1.3 var(--b-sans); color: var(--b-cream); }
.book .book-privacy p { color: var(--b-cream-dim); line-height: 1.65; max-width: 65ch; }

/* ---- the catalogue line at the foot (the page's one brand motif): facts joined by small cream dots */
.book-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 32px 0 0; padding-top: 16px;
  border-top: 1px solid rgba(240, 233, 223, .10); font: 400 0.6875rem/1.4 var(--b-mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--b-cream-faint); }
.book-cat span { display: inline-flex; align-items: center; gap: 12px; }
.book-cat i { width: 4px; height: 4px; border-radius: 50%; background: var(--b-cream-faint); flex: none; }
.book-cat a { color: inherit; }

/* ---- errors in place: under the block they belong to, never a toast over the fields */
.book .book-err { margin: 12px 4px 0; color: var(--danger-text); font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
.book .book-err[hidden] { display: none; }
.book .book-days.invalid .book-day:not(.off), .book .book-times.invalid .res-tile { border-color: var(--danger-text); }
.book .field:has([aria-invalid="true"]) > span { color: var(--danger-text); }
.book .field [aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--danger-text); }
.book .book-ack.invalid { border-color: var(--danger-text); }
.book .book-retry > div { flex: 1; min-width: 0; }
.book .book-retry .btn { margin-top: 12px; min-height: 48px; gap: 8px; }
.book .book-retry .btn .icon { color: var(--b-cream); }

/* The status page's small links stay one-thumb tappable (44px tall), each kept whole. */
.book .book-foot { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; }
.book .book-foot a, .book .book-foot .link-btn { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.book .book-foot .link-btn::after { content: none; }

/* No tab bar here: the toast sits at the very bottom, clear of the form's middle. */
.book ~ .toast { bottom: calc(12px + env(safe-area-inset-bottom)); }

/* ---- time at the table (1.5 / 2 / 3 h): one pill row, the picked one cream like a picked time */
.book .seg.book-dur { background: transparent; border: 1px solid var(--b-hair); border-radius: 999px; padding: 3px; margin: 0 0 8px; }
.book .book-dur button { border-radius: 999px; min-height: 44px; color: var(--b-cream-dim); font: 600 0.9375rem var(--b-sans); }
.book .seg.book-dur button.on { background: var(--b-cream); color: var(--b-ink); box-shadow: none; }

/* The mark is a link to the website: a 44 px tap area around the 28 px mark. */
.book .brandbar a.mark { display: block; position: relative; }
.book .brandbar a.mark::after { content: ""; position: absolute; inset: -8px; }

/* The Instagram handle carries the glyph, so people see where it leads. */
.book .book-ig { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.book .book-ig .icon { flex: none; }

/* A date closed by staff reads "full", not crossed out like a closed weekday. */
.book .book-day.full:not(.on) b, .book .book-day.full:not(.on) small:first-child { opacity: .6; }
.book .book-day .book-day-note { font: 600 0.625rem var(--b-sans); letter-spacing: .02em; color: var(--b-cream-dim); text-transform: none; }
