/* design/tokens.css
 *
 * Rules:
 * 1. Components must reference tokens from this file rather than inventing raw values.
 * 2. Section spacing uses --space-12 (desktop) and --space-8 (mobile).
 * 3. Only the hero h1 uses --text-4xl.
 * 4. Body line width is capped at --measure for calm editorial readability.
 * 5. Prefer hairline 1px borders over shadows; use --shadow-2 strictly for floating photo prints.
 * 6. --accent (#5B21B6) is reserved for interactive actions and active states, not decorative headings.
 */

:root {
  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --text-xs:   0.75rem;    /* 12px mono labels, captions */
  --text-sm:   0.875rem;   /* 14px secondary notes, metadata */
  --text-base: 1.0625rem;  /* 17px body copy */
  --text-lg:   1.25rem;    /* 20px lead paragraph, subsection headings */
  --text-xl:   1.5625rem;  /* 25px card / schedule titles */
  --text-2xl:  2.125rem;   /* 34px section titles */
  --text-3xl:  2.625rem;   /* 42px mobile hero display */
  --text-4xl:  4.25rem;    /* 68px desktop hero display */

  --leading-hero:  0.98;
  --leading-tight: 1.15;
  --leading-snug:  1.32;
  --leading-body:  1.58;

  --tracking-hero:  -0.03em;
  --tracking-head:  -0.02em;
  --tracking-body:   0;
  --tracking-label:  0.08em;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;

  /* Spacing (4px base, 8px rhythm) */
  --space-1:   0.25rem;  /*   4px */
  --space-2:   0.5rem;   /*   8px */
  --space-3:   0.75rem;  /*  12px */
  --space-4:   1rem;     /*  16px */
  --space-5:   1.5rem;   /*  24px */
  --space-6:   2rem;     /*  32px */
  --space-7:   3rem;     /*  48px */
  --space-8:   4rem;     /*  64px */
  --space-10:  5.5rem;   /*  88px */
  --space-12:  7rem;     /* 112px */

  /* Color by Semantic Role */
  --bg:              #FAF7F0;
  --surface:         #FFFFFF;
  --surface-sunken:  #F2ECE0;
  --surface-game:    #201436;
  --border:          #DDD6C8;
  --border-strong:   #B8AE9B;
  --text:            #181512;
  --text-muted:      #5C564D;
  --text-faint:      #8A8276;
  --accent:          #5B21B6;
  --accent-hover:    #4C1D95;
  --accent-soft:     #F3EEFF;
  --accent-contrast: #FFFFFF;
  --gold-accent:     #D97706;
  --gold-soft:       #FEF6D8;
  --focus:           #2563EB;
  --danger:          #B91C1C;

  /* Shape */
  --radius-sm:   8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-pill: 999px;

  /* Elevation (Two levels maximum) */
  --shadow-1: 0 1px 2px rgb(24 21 18 / 0.05), 0 1px 1px rgb(24 21 18 / 0.03);
  --shadow-2: 0 14px 32px rgb(24 21 18 / 0.12), 0 3px 8px rgb(24 21 18 / 0.06);

  /* Motion */
  --dur-fast:  140ms;
  --dur-base:  240ms;
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1120px;
  --measure:   54ch;
  --gutter:    var(--space-5);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
