/* 01-tokens.css — CSS custom properties (:root design tokens) */

/* ═══════════════════════════════════════════════════════════════
   CASK.AI — "The Cellar" Design System
   A luxury editorial aesthetic: dark, cinematic, magazine-quality
   ═══════════════════════════════════════════════════════════════ */

/* ─── Self-Hosted Fonts ─── */

/* DM Sans — Body font */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Playfair Display — Display font */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Typography */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;

  /* Noir Palette (dark-first) */
  --noir-950: #0a0a0a;
  --noir-900: #111111;
  --noir-800: #1a1a1a;
  --noir-700: #252525;
  --noir-600: #333333;

  /* Accent — Gold */
  --amber-400: #d4a853;
  --amber-300: #e3c17a;
  --amber-200: #f0dba8;

  /* Accent — Wine Red */
  --rouge-500: #8b2942;
  --rouge-400: #a3384f;

  /* Text */
  --ivory-100: #f5f0e8;
  --ivory-200: #ddd5c8;
  --ivory-300: #b8ad9e;
  --ivory-400: #8a8078;

  /* Functional */
  --sage-500: #3b6d5c;
  --sage-400: #4a8a72;

  /* Shadows & Effects */
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(212, 168, 83, 0.15);

  /* Radii */
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Spacing (8px base unit) */
  --space-1: 0.25rem;   /* 4px  — micro: icon gaps */
  --space-2: 0.5rem;    /* 8px  — tight pairs */
  --space-3: 0.75rem;   /* 12px — component internal */
  --space-4: 1rem;      /* 16px — standard gap */
  --space-5: 1.5rem;    /* 24px — card padding */
  --space-6: 2rem;      /* 32px — section internal */
  --space-7: 3rem;      /* 48px — section separation */
  --space-8: 4rem;      /* 64px — major separation */

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-default: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --border-accent: rgba(212, 168, 83, 0.12);
  --border-accent-hover: rgba(212, 168, 83, 0.3);

  /* Validation rings */
  --input-focus-ring: 0 0 0 3px rgba(212, 168, 83, 0.08);
  --input-error-ring: 0 0 0 3px rgba(139, 41, 66, 0.1);
  --input-success-ring: 0 0 0 3px rgba(59, 109, 92, 0.1);

  /* Button surfaces */
  --btn-primary-gradient: linear-gradient(180deg, #e3c17a 0%, #d4a853 100%);
  --btn-primary-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);

  /* Wine Type Colors (single source of truth) */
  --wine-type-red: #8b2942;
  --wine-type-white: #d4b85c;
  --wine-type-rose: #d96c7b;
  --wine-type-sparkling: #4f7ea3;
  --wine-type-dessert: #c08a4f;
  --wine-type-fortified: #7a5230;

  /* Animation Timing */
  --duration-fast: 0.15s;    /* HTMX swaps, micro-feedback */
  --duration-normal: 0.3s;   /* hover, focus, transitions */
  --duration-slow: 0.5s;     /* content reveals, match fills */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Glass */
  --glass-bg: rgba(17, 17, 17, 0.7);
  --glass-border: var(--border-accent);
  --glass-blur: 16px;
}
