/* Cellarmate design tokens.
 *
 * Sommelier voice: editorial / magazine. Warm paper background, Fraunces for
 * display, Inter for body. The accent is a single Bordeaux red used sparingly
 * — never as a fill, only as ink for the rank numeral, the active filter chip,
 * and the gouge tier. Semantic color carries the markup tier (fair/standard/
 * aggressive/gouge); everything else is paper and ink.
 *
 * Cellar + Atlas variants keep their existing warm-light palettes (they were
 * already paper-leaning); they share the new type stack and tier colors.
 */
:root {
  /* ───── Sommelier — editorial paper ───── */
  --somm-bg:       oklch(96% 0.012 80);   /* warm cream paper */
  --somm-surface:  oklch(93% 0.018 80);   /* slightly inset surface */
  --somm-rule:     oklch(85% 0.015 70);   /* hairline between rows */
  --somm-rule-strong: oklch(75% 0.020 60);
  --somm-fg:       oklch(22% 0.025 30);   /* warm charcoal ink */
  --somm-muted:    oklch(45% 0.025 30);   /* mid-tone, headers + secondary */
  --somm-quiet:    oklch(60% 0.020 40);   /* tertiary, footnotes */
  --somm-accent:   oklch(36% 0.140 25);   /* Bordeaux pour, used sparingly */
  --somm-on-accent: oklch(97% 0.012 80);  /* paper cream — for text on accent fills */
  --somm-card:     oklch(93% 0.018 80);   /* alias for --somm-surface, kept so legacy class names still resolve */

  /* Cellar — already paper-warm */
  --cellar-bg:     #faf6ec;
  --cellar-fg:     #1a1612;
  --cellar-card:   #f0e9d6;
  --cellar-accent: #6b4423;
  --cellar-muted:  #8a7960;

  /* Atlas — already paper-warm */
  --atlas-bg:        #f4ede0;
  --atlas-fg:        #2a2419;
  --atlas-card:      #ebe1cb;
  --atlas-accent:    #b8553a;
  --atlas-secondary: #5c7a4b;

  /* Semantic markup-tier ink. Used as text color, not fill. */
  --tier-fair:       oklch(45% 0.110 145);
  --tier-standard:   oklch(45% 0.020 30);
  --tier-high:       oklch(55% 0.150 70);
  --tier-gouge:      oklch(45% 0.190 28);

  /* Type — pair a serif display with a clean sans body. */
  --font-display: "Fraunces", "Iowan Old Style", "Cambria", Georgia, serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Fluid type — display sizes breathe between mobile + desktop. */
  --text-xs:       0.75rem;
  --text-sm:       0.875rem;
  --text-base:     1rem;
  --text-lg:       1.125rem;
  --text-xl:       1.25rem;
  --text-display-sm: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  --text-display-md: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --text-display-lg: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);

  /* Spacing — tighter for prose, looser for sections. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  --tap-min: 48px;

  --radius-card: 1rem;
  --radius-chip: 9999px;
}

/* Default body voice — sommelier paper. */
body {
  background: var(--somm-bg);
  color: var(--somm-fg);
  font-family: var(--font-body);
  font-feature-settings: "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}

body[data-variant="sommelier"] {
  background: var(--somm-bg);
  color: var(--somm-fg);
  font-family: var(--font-body);
}
body[data-variant="cellar"]    {
  background: var(--cellar-bg);
  color: var(--cellar-fg);
  font-family: var(--font-display);
}
body[data-variant="atlas"]     {
  background: var(--atlas-bg);
  color: var(--atlas-fg);
  font-family: var(--font-body);
}

/* Display type — for producer names, page headers, numerals. */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 36;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24;
}

/* Small caps for citations + section microtype. */
.smallcaps {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--somm-muted);
}

/* Tabular figures for prices + score — keeps columns aligned visually. */
.tabular { font-variant-numeric: tabular-nums; }
