/* GENERATED by site/build.py from ../design-system/tokens.css. Edit there, then rebuild. */
/* Bayerische Spreestuben, design tokens v2 (2026-11-28, Grok aesthetic tuning applied).
   ONE token layer. Components use these custom properties only, never a raw hex or font name.
   To tune the brand, change a value here; nothing else in the site should need to move.

   ONE palette ("Rautenblau & Brezn"), two modes:
     Tag   (default, :root)       paper ground, cobalt lead, ink text.
     Abend (data-mode="abend")    night ground with PAPER TYPE ONLY. Cobalt and pretzel are never text on
                                   night (2.81:1 and 2.88:1, both fail); `check.py brand` refuses those pairs.
   Put data-mode on <html> or on one section (then set font-family/color on that section too, since a
   custom property resolves where it is used). Contrast for every text pair is checked by `check.py brand`
   (WCAG: 4.5:1 text, 3:1 large text and UI parts). Rationale: ../brand/BRAND_IDENTITY.md.
   No mustard token: mustard appears only as real mustard in photos (too close to Neffes' amber).
   Fonts: ../site/assets/fonts/fonts.css (self-hosted, OFL). */

:root,
[data-mode="tag"] {
  /* Brand layer: raw values. */
  --bs-cobalt: #1D5FA8;   /* Rautenblau: hero, buttons, the diamond pattern */
  --bs-paper: #F6F4EE;    /* page ground, text on cobalt and on night; never pure white */
  --bs-ink-raw: #1B1F24;  /* body text */
  --bs-pretzel: #8A5230;  /* Brezn brown: rules and LARGE labels only; do not lighten it */
  --bs-night: #11161D;    /* Abend ground only; paper type only on it */

  /* Roles. Components read ONLY these. */
  --bs-surface: var(--bs-paper);          /* page background */
  --bs-ink: var(--bs-ink-raw);            /* body text, prices         15.06:1 on surface */
  --bs-brand: var(--bs-cobalt);           /* buttons, links, kickers    5.87:1 on surface */
  --bs-on-brand: var(--bs-paper);         /* text on brand fill         5.87:1 */
  --bs-accent: var(--bs-pretzel);         /* rules, labels >= 24px      5.73:1 on surface */
  --bs-band: var(--bs-cobalt);            /* hero / beer band ground */
  --bs-on-band: var(--bs-paper);          /* text on band               5.87:1 */

  /* Functional layer: outside the brand palette. */
  --bs-ok: #1F7A4D;      /* 4.83:1 on paper */
  --bs-warn: #8A5B00;    /* 5.34:1 on paper */
  --bs-error: #B42318;   /* 5.98:1 on paper */

  color-scheme: light;
}

[data-mode="abend"] {
  --bs-surface: var(--bs-night);          /* evening ground */
  --bs-ink: var(--bs-paper);              /* 16.51:1 */
  --bs-brand: var(--bs-paper);            /* links + button fill turn paper: cobalt text on night fails */
  --bs-on-brand: var(--bs-night);         /* 16.51:1 */
  --bs-accent: var(--bs-paper);           /* rules/labels: pretzel on night fails */
  --bs-band: var(--bs-cobalt);            /* cobalt stays as a FILL (band), with paper type */
  --bs-on-band: var(--bs-paper);          /*  5.87:1 */

  --bs-ok: #6FD3A0;      /*  9.95:1 on night */
  --bs-warn: #FFB27A;    /* 10.29:1 on night */
  --bs-error: #FF8A80;   /*  7.96:1 on night */

  color-scheme: dark;
}

:root,
[data-mode] {
  /* Tonal steps, derived from the roles so they follow the mode (also on a nested Abend section). */
  --bs-brand-tint: color-mix(in srgb, var(--bs-brand) 10%, var(--bs-surface));   /* quiet fills, placeholders */
  --bs-brand-deep: color-mix(in srgb, var(--bs-brand) 72%, var(--bs-ink));       /* hover/pressed */
  --bs-muted: color-mix(in srgb, var(--bs-ink) 74%, var(--bs-surface));          /* secondary text, English line */
  --bs-line: color-mix(in srgb, var(--bs-ink) 18%, var(--bs-surface));           /* hairlines, borders */
  --bs-pattern-ink: color-mix(in srgb, var(--bs-brand) 10%, transparent);        /* Rauten field, 8-12 % */
}

:root {
  /* Type roles. */
  --bs-font-display: 'Gloock', 'Gloock Fallback', Georgia, 'Times New Roman', serif;      /* wordmark + hero, >= 32px */
  --bs-font-text: 'Work Sans', 'Work Sans Fallback', Arial, system-ui, sans-serif;       /* body, interface, menu, prices (group house font, Hemang 28.11) */
  --bs-font-dish: 'Work Sans', 'Work Sans Fallback', Arial, system-ui, sans-serif;       /* dish names, 17-22px, medium */
  --bs-weight-display: 400;               /* Gloock has one weight */
  --bs-weight-dish: 500;                  /* Work Sans medium for dish names */
  --bs-weight-kicker: 600;
  --bs-track-kicker: 0.18em;
  --bs-kicker-case: uppercase;
  --bs-numeric: tabular-nums;             /* prices: Work Sans digits are proportional by default; tnum lines them up */
  --bs-display-min: 2rem;                 /* Gloock never smaller */

  /* Rauten: at most two uses per screen (see BRAND_IDENTITY §2.3). Both are CSS masks painted in tokens:
     the field = ../brand/pattern-rauten.svg in --bs-pattern-ink; the large cut-off Raute =
     ../brand/rauten-cut.svg as a mask on a photo or the reservation panel, sized past the frame. */
  --bs-rauten-ratio: 0.6;                 /* lozenge width : height */
  --bs-rauten-cut-size: auto 120%;        /* mask-size: taller than the frame, so the frame cuts it */
  --bs-rauten-cut-pos: right var(--bs-space-5) top var(--bs-space-4); /* top + side tips stay inside, the bottom tip leaves the frame (lengths: % offsets turn negative when the mask is larger than the box) */

  /* Space: 4/8 scale. */
  --bs-space-1: 4px;
  --bs-space-2: 8px;
  --bs-space-3: 12px;
  --bs-space-4: 16px;
  --bs-space-5: 24px;
  --bs-space-6: 32px;
  --bs-space-7: 48px;
  --bs-space-8: 64px;
  --bs-space-9: 96px;
  --bs-gutter: 16px;                       /* phone margin */
  --bs-measure: 68ch;                      /* line length cap */
  --bs-content-max: 1200px;

  /* Type scale: phone first, grows to desktop. */
  --bs-fs-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  --bs-fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --bs-fs-h3: 1.25rem;
  --bs-fs-dish: 1.1875rem;                 /* 19px */
  --bs-fs-body: 1.0625rem;                 /* 17px */
  --bs-fs-small: 0.9375rem;
  --bs-fs-kicker: 0.8125rem;
  --bs-lh-display: 1.05;
  --bs-lh-heading: 1.2;
  --bs-lh-body: 1.55;

  /* Shape and touch. */
  --bs-radius: 6px;
  --bs-radius-pill: 999px;
  --bs-touch: 44px;                        /* minimum hit target */
  --bs-bar-h: 64px;                        /* phone bottom bar: Tisch + Anrufen */
  --bs-focus: 3px solid var(--bs-brand);              /* Tag: cobalt on paper 5.87:1 · Abend: paper on night */
  --bs-focus-on-band: 3px solid var(--bs-on-band);    /* paper on cobalt 5.87:1 */

  /* Motion. One signature reveal (diamond-shaped, plays once) + micro feedback. */
  --bs-dur-micro: 160ms;
  --bs-dur-move: 260ms;
  --bs-dur-reveal: 520ms;                  /* brief: 400-600 ms */
  --bs-ease-enter: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --bs-dur-micro: 0ms; --bs-dur-move: 0ms; --bs-dur-reveal: 0ms; }
}
