/* Gegenereerd uit tools/tokens.py. Niet met de hand bewerken.
 * Primitieven zijn feiten, semantische tokens zijn besluiten.
 * Componenten gebruiken --color-*; --bb-* alleen waar site.css de
 * reden erbij zet. */

:root {
  --bb-rood: #E30613;
  --bb-geel: #FFDD00;
  --bb-geel2: #FFC400;
  --bb-groen: #76B82A;
  --bb-nacht: #23103D;
  --bb-wit: #FFFFFF;
  --bb-licht: #FFF8D9;
  --bb-rooddiep: #B00410;
  --bb-groendiep: #2F6B12;
  --bb-muted: #726683;
  --bb-mutedopnacht: #BDB2AA;
  --bb-line: #E0DEE4;
  --bb-nachtraised: #392850;
  --bb-nachtdiep: #150A25;
  --bb-geellicht: #FFE640;
  --bb-geelsoft: #FFFAD6;
  --bb-sluier-nacht-0: rgb(35 16 61 / 0);
  --bb-sluier-nacht-55: rgb(35 16 61 / .55);
  --bb-sluier-nacht-92: rgb(35 16 61 / .92);
  --bb-sluier-nacht-12: rgb(35 16 61 / .12);
  --bb-sluier-nacht-30: rgb(35 16 61 / .30);
  --bb-sluier-licht-14: rgb(255 248 217 / .14);
  --bb-sluier-licht-30: rgb(255 248 217 / .30);
  --color-feedback-success-fg: #0B6B3A;
  --color-feedback-success-bg: #E7F6EE;
  --color-feedback-warning-fg: #8A5A00;
  --color-feedback-warning-bg: #FDF3E2;
  --color-feedback-danger-fg: #A3231B;
  --color-feedback-danger-bg: #FBEAE8;
  --color-feedback-info-fg: #1F5FA8;
  --color-feedback-info-bg: #E8F1FB;
}

[data-brand="bombarie"] {
  --color-surface: #FFFFFF;
  --color-surface-raised: #FFFFFF;
  --color-surface-sunken: #FFFAD6;
  --color-text: #23103D;
  --color-text-muted: #726683;
  --color-text-accent: #B00410;
  --color-border: #E0DEE4;
  --color-border-strong: #726683;
  --color-action-bg: #FFDD00;
  --color-action-fg: #23103D;
  --color-action-bg-hover: #FFC400;
  --color-action-fg-hover: #23103D;
  --color-action-quiet-bg: #FFFFFF;
  --color-action-quiet-fg: #23103D;
  --color-focus-ring: #B00410;
  --color-graphic-accent: #E30613;
}

[data-brand="bombarie"][data-theme="dark"] {
  --color-surface: #23103D;
  --color-surface-raised: #392850;
  --color-surface-sunken: #150A25;
  --color-text: #FFF8D9;
  --color-text-muted: #BDB2AA;
  --color-text-accent: #FFE640;
  --color-border: #4F4064;
  --color-border-strong: #91889E;
  --color-action-bg: #FFDD00;
  --color-action-fg: #23103D;
  --color-action-bg-hover: #FFC400;
  --color-action-fg-hover: #23103D;
  --color-action-quiet-bg: #392850;
  --color-action-quiet-fg: #FFF8D9;
  --color-focus-ring: #FFDD00;
  --color-graphic-accent: #FFDD00;
  --color-feedback-success-fg: #4ADE80;
  --color-feedback-success-bg: #0B2B1C;
  --color-feedback-warning-fg: #FBBF24;
  --color-feedback-warning-bg: #2E2206;
  --color-feedback-danger-fg: #FCA5A5;
  --color-feedback-danger-bg: #2E1512;
  --color-feedback-info-fg: #7DD3FC;
  --color-feedback-info-bg: #0C1F33;
  color-scheme: dark;
}

/* Componentcontracten. Elk interactief element heeft de volle reeks
 * toestanden: rust, hover, actief, uitgeschakeld, focus, fout.
 * Ze verwijzen naar de semantische laag, nooit naar een merkkleur. */
:root {
  --button-primary-bg: var(--color-action-bg);
  --button-primary-fg: var(--color-action-fg);
  --button-primary-bg-hover: var(--color-action-bg-hover);
  --button-primary-fg-hover: var(--color-action-fg-hover);
  --button-primary-bg-active: var(--color-action-bg-hover);
  --button-primary-bg-disabled: var(--color-border);
  --button-primary-fg-disabled: var(--color-text-muted);
  --button-primary-ring: var(--color-focus-ring);
  --button-quiet-bg: var(--color-action-quiet-bg);
  --button-quiet-fg: var(--color-action-quiet-fg);
  --button-quiet-bg-hover: var(--color-surface-sunken);
  --button-quiet-border: var(--color-border-strong);
  --button-quiet-bg-disabled: var(--color-surface-raised);
  --button-quiet-fg-disabled: var(--color-text-muted);
  --button-quiet-ring: var(--color-focus-ring);
  --input-bg: var(--color-surface-raised);
  --input-fg: var(--color-text);
  --input-border: var(--color-border-strong);
  --input-border-hover: var(--color-text-muted);
  --input-border-error: var(--color-feedback-danger-fg);
  --input-placeholder: var(--color-text-muted);
  --input-bg-disabled: var(--color-surface-sunken);
  --input-ring: var(--color-focus-ring);
  --card-bg: var(--color-surface-raised);
  --card-border: var(--color-border);
  --card-shadow: var(--shadow-1);
  --card-shadow-hover: var(--shadow-2);
}

/* Focus, overal hetzelfde. De witruimte is nodig omdat een ring in de
 * merkkleur op een knop van diezelfde kleur onzichtbaar is. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-width) solid var(--color-focus-ring);
  outline-offset: var(--focus-offset);
}

/* Typografie. Een waarde per stap, niet een bereik. */
:root {
  --font-family: Figtree, 'Helvetica Neue', Arial, sans-serif;
  --font-family-kop: 'Bowlby One', Impact, 'Arial Black', sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --text-display-size: 5.5000rem;
  --text-display-line: 0.955;
  --text-display-weight: 400;
  --text-display-tracking: -0.01em;
  --text-h1-size: 3.2500rem;
  --text-h1-line: 1.038;
  --text-h1-weight: 400;
  --text-h1-tracking: -0.005em;
  --text-h2-size: 2.2500rem;
  --text-h2-line: 1.111;
  --text-h2-weight: 400;
  --text-h3-size: 1.4375rem;
  --text-h3-line: 1.261;
  --text-h3-weight: 800;
  --text-h3-tracking: -0.01em;
  --text-h4-size: 1.1875rem;
  --text-h4-line: 1.368;
  --text-h4-weight: 800;
  --text-body-lg-size: 1.2500rem;
  --text-body-lg-line: 1.550;
  --text-body-lg-weight: 400;
  --text-body-size: 1.0625rem;
  --text-body-line: 1.588;
  --text-body-weight: 400;
  --text-body-sm-size: 0.9375rem;
  --text-body-sm-line: 1.467;
  --text-body-sm-weight: 400;
  --text-caption-size: 0.8125rem;
  --text-caption-line: 1.385;
  --text-caption-weight: 400;
}

/* Maatvoering. Een schaal van 4 px. Rechte hoeken: een affiche is
 * gesneden papier. Alleen knoppen en foto's van artiesten zijn rond. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 10px;
  --radius-full: 999px;
  --shadow-1: 0 1px 2px rgb(35 16 61 / .10), 0 12px 26px -16px rgb(35 16 61 / .55);
  --shadow-2: 0 2px 4px rgb(35 16 61 / .12), 0 20px 36px -18px rgb(35 16 61 / .60);
  --shadow-3: 0 2px 0 rgb(35 16 61 / .25), 0 22px 40px -24px rgb(35 16 61 / .90);
  --focus-width: 3px;
  --focus-offset: 3px;
}

/* Beweging. Twee duren en een curve, meer niet. Beweging beantwoordt
 * een handeling van de bezoeker en kondigt nooit het ontwerp aan. */
:root {
  --motion-fast: 140ms;
  --motion-base: 240ms;
  --motion-ease: cubic-bezier(.23, 1, .32, 1);
}
