/* El Hornero — design tokens. See DESIGN.md for roles. */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow:wght@400;500&family=Barlow+Condensed:ital,wght@0,600;0,700;1,700;1,800&family=Kaushan+Script&display=swap');

:root {
  /* Color — dark (default) */
  --bg: #0B0B0B;
  --surface: #171513;
  --border: #2A2622;
  --text: #FFFFFF;
  --text-muted: #A39A8F;
  --red: #E31E24;
  --red-hover: #C4141A;
  --red-text: #FF4D4F;
  --on-red: #FFFFFF;
  --yellow: #F2C230;
  --success: #3FB66B;
  --warning: #F2C230;
  --error: #FF4D4F;

  /* Type */
  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-condensed: 'Barlow Condensed', 'Arial Narrow', 'DejaVu Sans Condensed', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-script: 'Kaushan Script', cursive;

  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: clamp(3.5rem, 8vw, 5.5rem);
  --fs-display: clamp(4.5rem, 14vw, 9rem);

  /* Spacing (8-based) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --content-width: 1200px;
  --text-width: 68ch;

  /* Shape */
  --r-0: 0;
  --r-sm: 4px;
  --r-full: 9999px;
  --rule: 2px solid var(--red);
  --focus: 2px solid var(--yellow);
}

/* Light "paper" theme — menu/print views or opt-in */
:root[data-theme="light"] {
  --bg: #F7F1E8;
  --surface: #FFFFFF;
  --border: #E2D9CC;
  --text: #0B0B0B;
  --text-muted: #5E554B;
  --red-text: #C4141A;
  --success: #1E7D43;
  --warning: #8A6400;
  --error: #C4141A;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

:focus-visible { outline: var(--focus); outline-offset: 2px; }
