/* The Dinner Service - Brand Tokens
   Single source of truth for palette, typography scale, radii, shadows, focus rings.
*/
:root {
  /* Shared 4/8-based spacing from Brand Strategy; used by service planning controls. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  /* Foundations */
  --ivory: #f9f6f0;
  --warm-white: #fdfbf8;
  --parchment: #ede9e0;
  --deep-charcoal: #1c1a17;

  /* Branded dark shell surfaces */
  --espresso: #3a3630;
  --espresso-deep: #2f2b25;
  --espresso-soft: #454038;
  --espresso-veil: #3a3630;
  --mid-charcoal: #3a3630;
  --warm-stone: #7a7268;
  --light-stone: #b5afa5;
  --rule: #d8d2c8;

  /* Brand / active / selected */
  --gold: #9b7b3f;
  --gold-light: #c4a06a;
  --gold-bg: #f5efe5;
  --gold-border: #d4c4a0;

  /* Success / completion */
  --sage: #4e6449;
  --sage-light: #6b8966;
  --success-bg: #ebf2e9;
  --success-border: #a8c4a4;
  --success-text: #2e4e2a;
  --success-icon: #4e6449;

  /* Warning / advisory */
  --warning-bg: #f6f0e4;
  --warning-border: #c8a84b;
  --warning-text: #6b500e;
  --warning-icon: #8a6c1a;

  /* Error / destructive */
  --error-bg: #f3eced;
  --error-border: #b89098;
  --error-text: #5c2d35;
  --error-icon: #7a3a42;

  /* Information */
  --info-bg: #eaf0f5;
  --info-border: #90aabf;
  --info-text: #1e3a50;
  --info-icon: #2e5470;

  /* Compatibility aliases (legacy-safe) */
  --bg: var(--ivory);
  --surface: var(--warm-white);
  --surface-2: var(--parchment);
  --ink: var(--deep-charcoal);
  --muted: var(--warm-stone);
  --border: rgba(28, 26, 23, 0.12);

  --slate: var(--mid-charcoal);
  --slate-hover: var(--deep-charcoal);
  --slate-soft: var(--info-bg);

  --success: var(--success-text);
  --success-soft: var(--success-bg);

  --warning: var(--warning-text);
  --warning-soft: var(--warning-bg);

  --danger: var(--error-text);
  --danger-hover: #4a232a;
  --danger-soft: var(--error-bg);

  /* Elevation */
  --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 16px 40px rgba(0, 0, 0, 0.08);

  /* Fine-line motif (section/course separators only) */
  --rule-2: rgba(58, 54, 48, 0.24);
  --rule-gradient: linear-gradient(90deg, rgba(155, 123, 63, 0.52), rgba(58, 54, 48, 0.35), rgba(0, 0, 0, 0));

  /* Radius */
  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;

  --h1: clamp(34px, 3.3vw, 48px);
  --h2: clamp(24px, 2.2vw, 32px);

  --lh-tight: 1.12;
  --lh-relaxed: 1.65;

  --track-label: 0.14em;
  --track-tight: -0.02em;

  /* Focus rings (use focus-visible) */
  --focus: 0 0 0 4px rgba(155, 123, 63, 0.24);
  --focus-slate: 0 0 0 4px rgba(30, 58, 80, 0.22);
  --focus-danger: 0 0 0 4px rgba(92, 45, 53, 0.22);

  /* Motion */
  --t: 160ms ease;
}
