/* =============================================================
   Premier Lacrosse League — Design Tokens
   Source: ESPN PLL/WLL Logo Color Sheet (uploads/espn_pll_wll_logo_color_sheet.pdf)
          + _WLL BRAND CC Library screenshot.
   ============================================================= */

/* -----------------------------------------
   Fonts — Field Gothic TEST (Series 80, 8 weights).
   One family, weight-mapped across No.80–No.87.
   Treat the 80s series as a unified sans: use
   heavier weights (86/87) for display + eyebrows,
   mid weights (84/85) for headings, and 83 for body.
   ----------------------------------------- */
@font-face {
  font-family: 'Field Gothic';
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/FieldGothicTEST-No.80.woff') format('woff');
}
@font-face {
  font-family: 'Field Gothic';
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/FieldGothicTEST-No.81.woff') format('woff');
}
@font-face {
  font-family: 'Field Gothic';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/FieldGothicTEST-No.82.woff') format('woff');
}
@font-face {
  font-family: 'Field Gothic';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/FieldGothicTEST-No.83.woff') format('woff');
}
@font-face {
  font-family: 'Field Gothic';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/FieldGothicTEST-No.84.woff') format('woff');
}
@font-face {
  font-family: 'Field Gothic';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/FieldGothicTEST-No.85.woff') format('woff');
}
@font-face {
  font-family: 'Field Gothic';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/FieldGothicTEST-No.86.woff') format('woff');
}
@font-face {
  font-family: 'Field Gothic';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/FieldGothicTEST-No.87.woff') format('woff');
}
@font-face {
  font-family: 'Field Gothic';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/FieldGothicTEST-No.87.woff') format('woff');
}

:root {
  /* -------- Core league palette -------- */
  --pll-black:       #000000;
  --pll-gold:        #ffcb06;  /* official PLL/WLL gold */
  --pll-white:       #ffffff;

  /* Slightly warm near-black used on screen where #000 feels hollow.
     Only for large UI surfaces — never for logo reproduction. */
  --pll-surface:     #0b0b0b;

  /* -------- Grays (reluctant, support only) -------- */
  --gray-50:  #f5f5f5;
  --gray-100: #e6e6e6;
  --gray-200: #cccccc;
  --gray-300: #b0b6bb; /* matches Redwoods silver */
  --gray-400: #999999;
  --gray-500: #6a6a6a;
  --gray-600: #4a4a4a;
  --gray-700: #2b2b2b;
  --gray-800: #171717;

  /* -------- Semantic UI colors (light theme) -------- */
  --bg:           var(--pll-white);
  --bg-elevated:  var(--gray-50);
  --bg-inverse:   var(--pll-black);
  --fg:           var(--pll-black);
  --fg-muted:     var(--gray-600);
  --fg-subtle:    var(--gray-500);
  --fg-inverse:   var(--pll-white);
  --accent:       var(--pll-gold);
  --accent-fg:    var(--pll-black); /* type sitting on gold is always black */
  --border:       rgba(0,0,0,0.10);
  --border-strong:rgba(0,0,0,0.22);
  --border-gold:  var(--pll-gold);
  --focus-ring:   var(--pll-gold);

  /* -------- PLL teams -------- */
  --team-cannons-gold:    #ffcb06;
  --team-cannons-black:   #000000;
  --team-redwoods-green:  #004b37;
  --team-redwoods-red:    #c62030;
  --team-redwoods-silver: #b0b6bb;
  --team-redwoods-navy:   #011e41;
  --team-chaos-black:     #000000;
  --team-chaos-red:       #ff0000;
  --team-chaos-silver:    #b3b3b3;
  --team-outlaws-black:   #000000;
  --team-outlaws-orange:  #ff4d00;
  --team-outlaws-gold:    #ffcb06;
  --team-whipsnakes-black:#000000;
  --team-whipsnakes-red:  #ff0000;
  --team-atlas-navy:      #011e41;
  --team-atlas-blue:      #00b3ff;
  --team-waterdogs-silver:#99a4ad;
  --team-waterdogs-black: #000000;
  --team-waterdogs-purple:#6c20c4;
  --team-archers-navy:    #002244;
  --team-archers-orange:  #ff5216;
  --team-archers-gold:    #ffcb06;

  /* -------- WLL teams -------- */
  --team-guard-red:       #c60c30;
  --team-guard-navy:      #011e41;
  --team-palms-teal:      #3ddbc2;
  --team-palms-black:     #000000;
  --team-charm-red:       #ff0000;
  --team-charging-navy:   #011e41;
  --team-charging-blue:   #00b3ff;
  --team-charging-pink:   #ea6cb4;

  /* -------- Type families -------- */
  /* Field Gothic (Series 80) for both display and text, differentiated by weight. */
  --font-display: 'Field Gothic', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-sans:    'Field Gothic', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* -------- Type scale -------- */
  --type-display-xl: 120px;  /* hero headlines ("RHODE ISLAND") */
  --type-display-lg: 72px;
  --type-h1:         48px;
  --type-h2:         32px;
  --type-h3:         22px;
  --type-body:       17px;
  --type-meta:       13px;
  --type-eyebrow:    12px;
  --type-stat:       56px;

  /* -------- Weights -------- */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;
  --fw-xbold:   800;
  --fw-black:   900;

  /* -------- Spacing -------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* -------- Radii -------- */
  --radius-none: 0px;
  --radius-sm:   4px;   /* form inputs */
  --radius-md:   8px;   /* rare */
  --radius-pill: 999px; /* chips, buttons — THE brand radius */

  /* -------- Elevation (used sparingly) -------- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 4px 12px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.55);

  /* -------- Motion -------- */
  --ease-out:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:  140ms;
  --dur-med:   260ms;
  --dur-slow:  450ms;
}

/* =============================================================
   Semantic type classes
   ============================================================= */

.pll-display-xl,
.pll-hero {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(56px, 10vw, var(--type-display-xl));
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg);
}

.pll-display-lg {
  font-family: var(--font-display);
  font-weight: var(--fw-xbold);
  font-size: clamp(40px, 6vw, var(--type-display-lg));
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.pll-h1, h1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-xbold);
  font-size: var(--type-h1);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.pll-h2, h2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-xbold);
  font-size: var(--type-h2);
  line-height: 1.15;
  text-transform: uppercase;
}

.pll-h3, h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--type-h3);
  line-height: 1.25;
}

.pll-eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--type-eyebrow);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.pll-body, p {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--type-body);
  line-height: 1.5;
  color: var(--fg);
}

.pll-meta {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--type-meta);
  line-height: 1.4;
  color: var(--fg-muted);
}

.pll-stat {
  font-family: var(--font-sans);
  font-weight: var(--fw-black);
  font-style: italic;
  font-size: var(--type-stat);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.pll-mono, code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* =============================================================
   Primitive components — minimal, brand-correct
   ============================================================= */

.pll-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-weight: var(--fw-xbold);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.pll-btn--primary {
  background: var(--pll-gold);
  color: var(--pll-black);
}
.pll-btn--primary:hover {
  background: var(--pll-black);
  color: var(--pll-white);
}
.pll-btn--primary:active { transform: scale(0.98); }

.pll-btn--outline {
  background: transparent;
  color: var(--pll-black);
  box-shadow: inset 0 0 0 2px var(--pll-black);
}
.pll-btn--outline:hover {
  background: var(--pll-black);
  color: var(--pll-white);
}

.pll-btn--ghost {
  background: transparent;
  color: var(--fg);
}
.pll-btn--ghost:hover { color: var(--pll-black); background: var(--gray-100); }

.pll-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-weight: var(--fw-xbold);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--pll-gold);
  color: var(--pll-gold);
  background: transparent;
}
.pll-chip--solid {
  background: var(--pll-gold);
  color: var(--pll-black);
  border-color: var(--pll-gold);
}

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