/* =====================================================================
   Nottingham Athletic — Colors & Type
   The single source of truth for visual foundations.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* ---------- Brand: Navy (primary) -------------------------------- */
  --na-navy-950: #060d24;
  --na-navy-900: #0b1738;   /* darkest — sidebar, scoreboard chrome */
  --na-navy-800: #131f47;
  --na-navy-700: #1c2c5e;
  --na-navy-600: #1e3a8a;   /* PRIMARY — from typelogo */
  --na-navy-500: #2d4cab;
  --na-navy-400: #4f6dc9;
  --na-navy-300: #8298dd;
  --na-navy-200: #c1cdf0;
  --na-navy-100: #e5ebfa;

  /* ---------- Brand: Court Orange (accent) ------------------------- */
  /* USE SPARINGLY — primary CTAs, "paid" state, single live highlights. */
  --na-orange-700: #9a3412;
  --na-orange-600: #c2410c;
  --na-orange:     #ea580c;   /* THE accent */
  --na-orange-400: #fb923c;
  --na-orange-200: #fed7aa;
  --na-orange-100: #ffedd5;

  /* ---------- Semantic: In / Attended (green) --------------------- */
  --na-green-700: #166534;
  --na-green-600: #15803d;   /* "In" toggle */
  --na-green-500: #22c55e;
  --na-green-200: #bbf7d0;
  --na-green-100: #dcfce7;

  /* ---------- Semantic: Owes / Outstanding (red) ------------------ */
  --na-red-700: #991b1b;
  --na-red-600: #b91c1c;     /* "Owes" / "Unpaid" */
  --na-red-500: #ef4444;
  --na-red-200: #fecaca;
  --na-red-100: #fee2e2;

  /* ---------- Semantic: Pending / Today (amber) ------------------- */
  --na-amber-700: #92400e;
  --na-amber-600: #b45309;
  --na-amber-500: #f59e0b;
  --na-amber-200: #fde68a;
  --na-amber-100: #fef3c7;

  /* ---------- Surface: warm off-white paper ----------------------- */
  --bg:            #f7f5f1;   /* page background — warm paper */
  --bg-deep:       #efeae0;   /* recessed surfaces */
  --surface:       #ffffff;   /* cards, modals */
  --surface-2:     #fbf9f5;   /* subtle row hover, table headers */
  --surface-3:     #f3efe6;   /* deeper card / scoreboard panel */

  /* ---------- Lines & rules --------------------------------------- */
  --line:          #e7e3d9;   /* default border / divider */
  --line-strong:   #d6d0c1;   /* input borders, stronger rules */
  --line-soft:     #efebe1;   /* very subtle inset divider */

  /* ---------- Ink (text) ------------------------------------------ */
  --ink:           #0d1430;   /* primary text — near-black with navy bias */
  --ink-soft:      #4b5673;   /* secondary text, labels */
  --ink-mute:      #8b94ad;   /* tertiary text, captions, placeholders */
  --ink-faint:     #b9bfd0;   /* disabled, hairlines */
  --ink-on-navy:   #ffffff;
  --ink-on-orange: #ffffff;

  /* ---------- Team colors (squads) -------------------------------- */
  --team-senior: #1e3a8a;
  --team-u23:    #1d4ed8;
  --team-u18:    #2563eb;
  --team-u16:    #3b82f6;
  --team-u14:    #60a5fa;

  /* ---------- Shadows --------------------------------------------- */
  --shadow-xs: 0 1px 1px rgba(11,23,56,.04);
  --shadow-sm: 0 1px 2px rgba(11,23,56,.06);
  --shadow:    0 6px 24px -8px rgba(11,23,56,.18), 0 1px 2px rgba(11,23,56,.06);
  --shadow-lg: 0 24px 60px -20px rgba(11,23,56,.35);
  --shadow-press: inset 0 1px 2px rgba(11,23,56,.18);

  /* ---------- Radii ----------------------------------------------- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ---------- Spacing scale (4px base) ---------------------------- */
  --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;

  /* ---------- Tap targets (mobile-first, court-side) -------------- */
  --tap:        42px;   /* MINIMUM */
  --tap-comfy:  48px;
  --tap-large:  56px;

  /* ---------- Type families --------------------------------------- */
  --font-serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---------- Type scale ------------------------------------------ */
  /* Display sizes use Fraunces; body/UI uses Inter. */
  --fs-display:  56px;   /* hero scoreboard moments */
  --fs-h1:       40px;   /* page titles, big stat values */
  --fs-h2:       28px;
  --fs-h3:       22px;   /* section heads, modal titles */
  --fs-h4:       18px;
  --fs-body-lg:  17px;
  --fs-body:     15px;   /* default UI body */
  --fs-body-sm:  14px;
  --fs-meta:     13px;   /* captions, metadata */
  --fs-micro:    11px;   /* uppercase labels, eyebrows */

  /* Line heights */
  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.45;
  --lh-loose:  1.6;

  /* Tracking */
  --track-tight: -0.02em;
  --track-snug:  -0.01em;
  --track-wide:  0.06em;     /* uppercase eyebrows */
  --track-wider: 0.08em;     /* nav labels */
}

/* =====================================================================
   Semantic element styles — apply to bare HTML
   ===================================================================== */

html, body { font-family: var(--font-sans); color: var(--ink); background: var(--bg); }
body {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
  -webkit-font-smoothing: antialiased;
}

/* --- Display & headings --- */
.display, h1.display {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  font-variation-settings: 'opsz' 144;
}

h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  font-variation-settings: 'opsz' 96;
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--track-snug);
  font-variation-settings: 'opsz' 48;
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--track-snug);
  font-variation-settings: 'opsz' 24;
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  margin: 0;
}

/* --- Body --- */
p, .body { font-size: var(--fs-body); line-height: var(--lh-normal); }
.body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-loose); }
.body-sm { font-size: var(--fs-body-sm); line-height: var(--lh-normal); }
.meta    { font-size: var(--fs-meta); color: var(--ink-soft); }

/* --- Eyebrow / label / micro --- */
.eyebrow, .label {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- Stat: the scoreboard moment --- */
.stat-value {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: var(--track-tight);
  font-variation-settings: 'opsz' 96;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --- Tabular numerics for tables and counts --- */
.tabular { font-variant-numeric: tabular-nums; }

/* --- Code / mono --- */
code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
}

/* --- Links --- */
a { color: var(--na-navy-600); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
a:hover { border-bottom-color: var(--na-navy-600); }

/* --- HR --- */
hr.subtle { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
