/* MergenKit design tokens
   Single source of truth for colour, typography, spacing, motion.
   Mirrors theme.py from the application codebase. */

:root {
  /* Brand */
  --brand-red: #E30A17;        /* Reserved for the logo mark only */
  --app-bg: #FAF6EE;           /* Page background, warm cream */
  --surface: #FFFFFF;          /* Card and panel surface */
  --surface-alt: #F4EFE5;      /* Muted band surface */
  --ink: #1A1A1A;              /* Primary body text */
  --secondary: #555555;        /* Secondary body text */
  --muted: #888888;            /* Small labels, captions only */
  --wine: #8C2A2F;             /* Links, CTAs, focus rings, accents */
  --wine-hover: #7A2428;       /* Wine on hover */
  --border: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.25);

  /* Footer (dark) */
  --footer-bg: #1A1A1A;
  --footer-fg: #FFFFFF;
  --footer-fg-muted: #C8C8C8;
  --footer-border: #333333;

  /* Typography families */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-italic: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Typography scale */
  --fs-h1: 48px;
  --fs-h2: 32px;
  --fs-h3: 20px;
  --fs-h4: 16px;
  --fs-body: 16px;
  --fs-body-lg: 18px;
  --fs-small: 14px;
  --fs-xs: 12px;
  --fs-mono: 13px;

  /* Letter spacing */
  --ls-h1: -1.5px;
  --ls-h2: -0.8px;
  --ls-h3: -0.3px;
  --ls-tight: -0.2px;

  /* Line heights */
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.65;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;

  /* Motion */
  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-slow: 320ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Z-index */
  --z-nav: 50;
  --z-modal: 100;

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(140, 42, 47, 0.35);
}

@media (max-width: 768px) {
  :root {
    --fs-h1: 36px;
    --fs-h2: 26px;
    --fs-h3: 18px;
    --fs-body-lg: 16px;
    --ls-h1: -1px;
    --ls-h2: -0.5px;
  }
}
