/* ============================================
   VARIABLES.CSS — Design Tokens
   ============================================ */

@font-face {
  font-family: 'Blair ITC Medium';
  src: url('../assets/fonts/blair-itc-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  size-adjust: 82%; /* Blair renders noticeably larger than Anton at the same font-size */
}

:root {
  /* Colors — dark: forest green / greige / sage (default theme) */
  --bg:             #1D3E29;
  --surface:        #274833;
  --surface-raised: #2E4F3A;
  --border:         rgba(201, 190, 176, 0.14);
  --border-strong:  rgba(201, 190, 176, 0.32);
  --accent:         #93A77C;
  --accent-hover:   #A8BE95;
  --accent-dim:     rgba(147, 167, 124, 0.18);
  --text-primary:   #C9BEB0;
  --text-secondary: rgba(201, 190, 176, 0.68);
  --text-muted:     rgba(201, 190, 176, 0.45);
  --nav-bg:         rgba(29, 62, 41, 0.88);

  /* Fixed — do NOT flip between themes (always-legible text on the sage accent) */
  --white:          #C9BEB0;
  --ink:            #1D3E29;
  --cream:          #C9BEB0;
  --cream-dim:      rgba(201, 190, 176, 0.08);

  /* Typography */
  --font-display: 'Blair ITC Medium', Anton, Impact, sans-serif;
  --font-script:  'Kaushan Script', cursive;
  --font-serif:   'Kaushan Script', cursive;
  --font-heading: 'Inconsolata', monospace;
  --font-body:    'Outfit', sans-serif;

  /* Spacing (4px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --max-width: 1280px;
  --content-width: 800px;
  --nav-height: 72px;
}

/* ---- Light theme override ---- */
:root[data-theme="light"] {
  --bg:             #C9BEB0;
  --surface:        #BCB1A2;
  --surface-raised: #C1B6A6;
  --border:         rgba(29, 62, 41, 0.14);
  --border-strong:  rgba(29, 62, 41, 0.3);
  --accent-hover:   #7A8F66;
  --accent-dim:     rgba(147, 167, 124, 0.22);
  --text-primary:   #1D3E29;
  --text-secondary: rgba(29, 62, 41, 0.75);
  --text-muted:     rgba(29, 62, 41, 0.5);
  --nav-bg:         rgba(201, 190, 176, 0.9);
}
