/* ==========================================================================
   Unruly Court — Brand Tokens (v2: green + light blue, gold words)
   Hexes approximated from the mood board; swap here when official values land.
   ========================================================================== */

:root {
  /* ---- Core palette ---------------------------------------------------- */
  /* Main: greens + light blue */
  --uc-pistachio:      #DDE3B4;  /* light green base */
  --uc-pistachio-50:   #F3F5E4;  /* lightest surface */
  --uc-mint:           #A8D4D3;  /* light blue */
  --uc-mint-50:        #E3F1F0;
  --uc-olive:          #7E9A48;  /* mid-green */
  --uc-olive-300:      #8FAA57;  /* mid-green card surface (5.3:1 with ink) */
  --uc-forest:         #2F4527;  /* dark green: buttons, dark sections */
  --uc-forest-900:     #22301E;  /* body text */
  --uc-teal:           #2C4A4E;  /* checker pattern only */

  /* Gold: the "foil" */
  --uc-gold-300:       #E4CF8A;  /* gold words on dark green */
  --uc-gold:           #C9A646;  /* linework, rings, rules (not text on light) */
  --uc-gold-deep:      #7D611A;  /* gold headings on light surfaces */
  --uc-gold-ink:       #6E5515;  /* small gold text on light surfaces */
  --uc-foil: linear-gradient(100deg, var(--uc-gold-ink) 0%, #8F7020 45%, var(--uc-gold-ink) 55%, #7D611A 100%);
  --uc-foil-light: linear-gradient(100deg, #E4CF8A 0%, #F4E6B5 45%, #D9BC66 60%, #E4CF8A 100%);

  /* Accents only: maroon, pink, mid-pink, darker teal blue, mid-green */
  --uc-blush:          #F2B4B8;  /* pink */
  --uc-rose:           #E48A9A;  /* mid-pink */
  --uc-lilac:          #D8B9D9;
  --uc-plum:           #8C3F76;
  --uc-coral:          #D9534F;
  --uc-coral-700:      #B23B38;

  /* ---- Semantic roles -------------------------------------------------- */
  --uc-bg:             var(--uc-pistachio-50);
  --uc-surface:        #FFFFFF;
  --uc-surface-alt:    var(--uc-pistachio);
  --uc-ink:            var(--uc-forest-900);  /* body text */
  --uc-ink-muted:      #4A5A43;
  --uc-heading:        #8F7020;               /* large headings on light (≥3:1, AA large) */
  --uc-on-dark:        var(--uc-gold-300);    /* headings/words on forest */
  --uc-on-dark-body:   var(--uc-pistachio-50);
  --uc-ink-inverse:    var(--uc-pistachio-50);
  --uc-primary:        var(--uc-forest);      /* primary buttons */
  --uc-primary-hover:  var(--uc-forest-900);
  --uc-primary-text:   var(--uc-gold-300);
  --uc-accent:         var(--uc-coral);       /* live / game-day, sparingly */
  --uc-success:        #4E6A2C;
  --uc-danger:         var(--uc-coral-700);
  --uc-border:         var(--uc-forest);
  --uc-line:           rgba(34, 48, 30, 0.16);
  --uc-focus:          var(--uc-gold);

  /* ---- Typography ------------------------------------------------------ */
  --uc-font-script:    "Yellowtail", "Brush Script MT", cursive;   /* "Unruly" in the wordmark */
  --uc-font-caps:      "Josefin Sans", "Futura", "Century Gothic", sans-serif; /* "COURT" in the wordmark */
  --uc-font-display:   "Shrikhand", "Cooper Black", Georgia, serif;
  --uc-font-body:      "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --uc-font-mono:      "DM Mono", ui-monospace, "Cascadia Mono", monospace;

  --uc-text-xs:   0.75rem;
  --uc-text-sm:   0.875rem;
  --uc-text-md:   1rem;
  --uc-text-lg:   1.25rem;
  --uc-text-xl:   1.5rem;
  --uc-text-2xl:  2rem;
  --uc-text-3xl:  clamp(2.25rem, 4vw, 3rem);
  --uc-text-hero: clamp(3.5rem, 11vw, 8.5rem);

  --uc-leading-tight: 1.05;
  --uc-leading-body:  1.6;
  --uc-tracking-label: 0.14em;

  /* ---- Spacing (4px base) ---------------------------------------------- */
  --uc-space-1: 0.25rem;
  --uc-space-2: 0.5rem;
  --uc-space-3: 0.75rem;
  --uc-space-4: 1rem;
  --uc-space-6: 1.5rem;
  --uc-space-8: 2rem;
  --uc-space-12: 3rem;
  --uc-space-16: 4rem;
  --uc-space-24: 6rem;

  /* ---- Shape & depth --------------------------------------------------- */
  --uc-radius-sm: 6px;
  --uc-radius-md: 14px;
  --uc-radius-lg: 28px;
  --uc-radius-pill: 999px;
  --uc-shadow-card: 0 1px 0 rgba(34,48,30,.06), 0 12px 32px -16px rgba(34,48,30,.28);
  --uc-shadow-pop: 6px 6px 0 var(--uc-forest);  /* retro offset shadow */

  /* ---- Motion ---------------------------------------------------------- */
  --uc-ease: cubic-bezier(.2, .8, .2, 1);
  --uc-dur-fast: 120ms;
  --uc-dur: 240ms;

  /* ---- Patterns (from the mood board's checker + sunburst) ------------- */
  --uc-pattern-checker: conic-gradient(var(--uc-forest) 25%, var(--uc-mint) 0 50%, var(--uc-forest) 0 75%, var(--uc-mint) 0) 0 0 / 48px 48px;
  --uc-pattern-checker-soft: conic-gradient(var(--uc-mint) 25%, var(--uc-pistachio) 0 50%, var(--uc-mint) 0 75%, var(--uc-pistachio) 0) 0 0 / 40px 40px;
  --uc-pattern-sunburst: repeating-conic-gradient(from 0deg, var(--uc-mint) 0deg 7.5deg, var(--uc-pistachio-50) 7.5deg 15deg);
}

/* Gold-foil text utility: use on large display text over light surfaces */
.uc-foil {
  background: var(--uc-foil);
  -webkit-background-clip: text; background-clip: text;
  color: var(--uc-gold-deep);
  -webkit-text-fill-color: transparent;
}
