/* Closed design-token contract for Albert Wine.
 * This is the ONLY file allowed to contain raw font-size px, border-radius px,
 * and #hex / rgb() / rgba() colour literals. Enforced by scripts/check_tokens.py.
 */

:root {
  /* Surfaces */
  --bg-page: #4d0b1d;
  --bg-header: #340713;
  --bg-surface: #f6efe2;
  --bg-surface-bright: #ffffff;
  --bg-subtle: #ebe2d2;
  --bg-hover: #efe6d6;
  --bg-selected: #eadbc6;

  /* Outer burgundy controls */
  --outer-chip-bg: #631328;
  --outer-chip-border: #84263f;
  --outer-chip-hover: #741830;
  --outer-ink: #fbf5ea;
  --outer-ink-bright: #ffffff;
  --outer-muted: #dfb5bf;
  --header-input-bg: #4d0b1d;
  --header-input-border: #7a2339;

  /* Card inks */
  --ink: #1f0d12;
  --ink-secondary: #573941;
  --ink-muted: #7b5a63;

  /* Rules */
  --card-border: #25060e;
  --line: #e5dbc9;
  --line-strong: #c5b5a2;

  /* Semantic wine accent (overridden per colour tab on body[data-wine-type]) */
  --wine: #8a0e28;
  --wine-hover: #69091d;
  --wine-tab-accent: #e03152;
  --wine-ink: #ffffff;

  /* Fixed wine-type dot colours for header tabs */
  --dot-red: #c92444;
  --dot-white: #e0ac2b;
  --dot-rose: #e34f77;
  --dot-sparkling: #cfb16e;

  /* Neutral window / chart chrome */
  --handle: #2b0610;
  --dot-below: #c2b3b7;
  --grid: #e5dbc9;
  --axis-line: #c5b5a2;
  --axis-text: #6f5058;
  --chart-window-fill: rgba(77, 11, 29, 0.065);
  --bottle-placeholder: #cbbba8;

  /* Albert Heijn Bonus orange (strictly for Bonus deals) */
  --bonus: #ff7900;
  --bonus-hover: #e56a00;
  --bonus-ink: #ffffff;
  --bonus-tint: #fff4e5;
  --bonus-tint-border: #f0c080;

  /* Overlays & elevation */
  --scrim: rgba(20, 4, 9, 0.56);
  --shadow-sm: 0 1px 2px rgba(31, 13, 18, 0.14);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.40);
  --shadow-sheet: 0 -10px 32px rgba(0, 0, 0, 0.45);

  /* Typography — strictly 5 font sizes */
  --font-display: "Young Serif", Georgia, serif;
  --font-sans: "Karla", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --text-xs: 12px;
  --text-sm: 13.5px;
  --text-base: 15px;
  --text-lg: 19px;
  --text-title: 26px;

  /* Radii — strictly 3 box radii + 999px for circles/dots */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* Spacing — strictly 6 steps */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Control geometry — strictly 1 control height */
  --control-h: 34px;
  --max-width: 1180px;
}

@media (max-width: 720px) {
  :root {
    --control-h: 36px;
  }
}

body[data-wine-type="red"] {
  --wine: #8a0e28;
  --wine-hover: #69091d;
  --wine-tab-accent: #e03152;
}

body[data-wine-type="white"] {
  --wine: #946100;
  --wine-hover: #704900;
  --wine-tab-accent: #e0ac2b;
}

body[data-wine-type="rose"] {
  --wine: #b8224e;
  --wine-hover: #8f183b;
  --wine-tab-accent: #e34f77;
}

body[data-wine-type="sparkling"] {
  --wine: #7a5916;
  --wine-hover: #5c420e;
  --wine-tab-accent: #cfb16e;
}
