/**
 * SBC design tokens — site-specific values and canonical brand aliases.
 * Neutral primitives are generated in brand-core.css; this file owns all
 * derived values and consumes only exact-value aliases.
 *
 * Brand values verified against the live site (2026-11-09):
 *   primary red  #AE2326 · ink #222222 · secondary gray #808080
 *   display type Merriweather Sans (headings/UI) · body Merriweather
 * Derived values (not on the live site, computed from the brand red) are
 * marked. No raw colours or font stacks below this file.
 */

:root {
	/* Brand colour ramp. */
	--sbc-red: var(--brand-primary-red);
	--sbc-red-dark: #8e1c1f; /* derived: darken(red, 8%) — hover/active */
	--sbc-red-deep: #6f1417; /* derived: darken(red, 16%) — pressed/on-red borders */
	--sbc-red-tint: #f9ecec; /* derived: tint(red, 92%) — quiet surfaces */
	--sbc-ink: #222222;
	--sbc-ink-lift: #2c2c2c; /* derived: lift(ink, 4%) — surfaces on the ink header/drawer */
	--sbc-ink-soft: #4a4a4a; /* derived: soften(ink) — secondary body copy */
	--sbc-slate: var(--brand-grey); /* live-site secondary */
	--sbc-paper: var(--brand-white);
	--sbc-mist: #f6f6f6; /* live-site quiet surface */
	--sbc-line: #e4e4e4; /* derived border */
	--sbc-line-strong: #cfcfcf; /* derived border, high contrast */
	--sbc-line-on-ink: rgba(255, 255, 255, 0.1); /* derived: hairline on the ink header/drawer */
	--sbc-red-on-ink: #ec7578; /* derived: red brightened for text on ink — 5.6:1 on #222, 4.9:1 on ink-lift (AA); red-bright is 2.9:1 and stays underline-only */

	/* Status colours (used for scores/standings deltas). */
	--sbc-win: #1d7a3d;
	--sbc-loss: #a3312c;
	--sbc-warn: #b26a00;
	--sbc-info: #1f5fa8;

	/* Type. */
	--sbc-font-primary-display: var(--brand-font-primary-display); /* page H1 + primary navigation */
	--sbc-font-display: var(--brand-font-headings-ui);
	--sbc-font-body: var(--brand-font-body);
	--sbc-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

	--sbc-text-2xs: 0.75rem; /* 12px */
	--sbc-text-xs: 0.8125rem; /* 13px */
	--sbc-text-sm: 0.9375rem; /* 15px */
	--sbc-text-md: 1rem; /* 16px — body */
	--sbc-text-lg: 1.125rem; /* 18px */
	--sbc-text-xl: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
	--sbc-text-2xl: clamp(1.5rem, 1vw + 1.25rem, 1.875rem);
	--sbc-text-3xl: clamp(1.875rem, 1.6vw + 1.4rem, 2.5rem);
	--sbc-text-4xl: clamp(2.25rem, 2.6vw + 1.5rem, 3.25rem);
	--sbc-text-5xl: clamp(2.75rem, 4vw + 1.5rem, 4.5rem);

	--sbc-leading-tight: 1.08;
	--sbc-leading-snug: 1.25;
	--sbc-leading-normal: 1.55;
	--sbc-tracking-display: 0.02em;
	--sbc-tracking-caps: 0.08em;
	--sbc-tracking-wide: 0.14em; /* wide small-caps labels (section eyebrows/kickers) */

	/* Spacing (4px base). */
	--sbc-space-1: 0.25rem;
	--sbc-space-2: 0.5rem;
	--sbc-space-3: 0.75rem;
	--sbc-space-4: 1rem;
	--sbc-space-5: 1.5rem;
	--sbc-space-6: 2rem;
	--sbc-space-7: 3rem;
	--sbc-space-8: 4rem;
	--sbc-space-9: 6rem;

	/* Shape (radii aligned to the approved design reference). */
	--sbc-radius-sm: 10px;
	--sbc-radius: 16px;
	--sbc-radius-lg: 24px;
	--sbc-radius-pill: 999px;

	/* Elevation ramp (from the approved design reference). */
	--sbc-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
	--sbc-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
	--sbc-shadow-lg: 0 28px 70px -10px rgba(0, 0, 0, 0.22);
	--sbc-shadow-xl: 0 36px 90px -16px rgba(0, 0, 0, 0.34);

	/* Breakpoints (reference values; queries live in the layer files). */
	--sbc-bp-tablet: 40em; /* 640px */
	--sbc-bp-desktop: 64em; /* 1024px */
	--sbc-bp-wide: 80em; /* 1280px */

	/* Interaction. */
	--sbc-focus-ring: 0 0 0 3px rgba(174, 35, 38, 0.45);
	--sbc-transition: 160ms ease;
	--sbc-transition-slow: 280ms ease;

	/* Motion system (from the approved design reference, canada-cup ideas pack). */
	--sbc-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--sbc-ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
	--sbc-dur-fast: 0.2s;
	--sbc-dur: 0.38s;
	--sbc-dur-slow: 0.85s;

	/* Brand red ramp (derived from the primary red). */
	--sbc-red-bright: #c8292d; /* derived: specular highlight */
	--sbc-red-soft: rgba(174, 35, 38, 0.08);
	--sbc-red-mid: rgba(174, 35, 38, 0.16);
	--sbc-red-glow: rgba(174, 35, 38, 0.42);
	--sbc-gray-dark: #565656;
	--sbc-gray-pale: #e8e8e8;

	/* Layout rhythm. */
	--sbc-gutter: clamp(1.25rem, 4vw, 2.75rem);
	--sbc-container: 75rem; /* content measure: .sbc-container's max width (alignwide shares it) */
	--sbc-header-h: 88px;
	--sbc-header-h-compact: 68px;
	--sbc-section-y: clamp(4.5rem, 8.5vw, 8rem);

	/* Scroll-progress laser value (set by assets/js/nav.js). */
	--sbc-scroll-progress: 0;

	/* Wow layer (2026-11-12 homepage pass) — motion system values consumed by
	   assets/css/wow.css and assets/js/motion.js. The entrance choreography,
	   pointer tilt, stat count-up and the foul-line geometry all read these;
	   reduced-motion users get the static treatment (wow.css / kenburns.css). */
	--sbc-rise-dur: 0.72s; /* entrance choreography duration */
	--sbc-rise-stagger: 0.07s; /* per-element entrance delay step */
	--sbc-tilt-max: 4deg; /* pointer-tilt ceiling (about frame) */
	--sbc-count-up-dur: 1.2s; /* stat count-up duration (motion.js) */
	--sbc-geometry-line: rgba(255, 255, 255, 0.05); /* foul-line grid, hero */
	--sbc-geometry-line-strong: rgba(255, 255, 255, 0.08); /* grid, CTA band */

	/* z-index scale. */
	--sbc-z-header: 100;
	--sbc-z-drawer: 200;
	--sbc-z-overlay: 300;

	/* Homepage layer (2026-11-13, ADR 0011) — derived values consumed by
	   assets/css/home.css. The homepage reproduces Concept A's composition on
	   the brand ramp above: ink is the cinematic band colour, paper/mist the
	   editorial surfaces, red the accent. RGB triplets exist so the scrim
	   gradients and translucent text levels read as the same brand ink. */
	--sbc-ink-rgb: 34 34 34; /* == --sbc-ink, as a modern-rgb() triplet */
	--sbc-paper-rgb: 255 255 255; /* == --sbc-paper */

	/* Hero/photo scrims (gradient stops, ink at decreasing alpha). */
	--sbc-scrim-side: linear-gradient(to right, rgb(var(--sbc-ink-rgb) / 0.92), rgb(var(--sbc-ink-rgb) / 0.72) 45%, rgb(var(--sbc-ink-rgb) / 0.15));
	--sbc-scrim-bottom: linear-gradient(to top, rgb(var(--sbc-ink-rgb) / 0.92), rgb(var(--sbc-ink-rgb) / 0.15) 45%, rgb(var(--sbc-ink-rgb) / 0.55));

	/* Text levels on the cinematic ink bands (ARGB-style translucency). */
	--sbc-on-ink: rgb(255 255 255 / 0.92);
	--sbc-on-ink-05: rgb(255 255 255 / 0.05); /* countdown tile fill */
	--sbc-on-ink-soft: rgb(255 255 255 / 0.78); /* lifted from 0.65 (2026-11-15): with the lightened hero scrims the lede dips below AA at 0.65 over bright photo bands */
	--sbc-on-ink-faint: rgb(255 255 255 / 0.6); /* lifted from 0.48 (2026-11-15): the hero detail values over the bright stadium photo measured 4.04:1; 0.6 clears AA */
	--sbc-on-ink-line: rgb(255 255 255 / 0.15);
	--sbc-on-ink-line-strong: rgb(255 255 255 / 0.25);

	/* Text levels on the editorial light surfaces. */
	--sbc-text-body: rgb(34 34 34 / 0.72);
	--sbc-text-muted: rgb(34 34 34 / 0.58);
	--sbc-text-faint: rgb(34 34 34 / 0.45);
	--sbc-line-12: rgb(34 34 34 / 0.12); /* hairline at 12% ink (editorial rules) */
	--sbc-line-18: rgb(34 34 34 / 0.18);

	/* Homepage texture opacities (film grain, halftone, foul-line stripe). */
	--sbc-grain-opacity: 0.22;
	--sbc-grain-size: 190px;
	--sbc-stripe-line: rgb(255 255 255 / 0.07);

	/* Red washes for decorative borders and glows (derived: brand red at
	   alpha — keeps home.css free of raw values). */
	--sbc-red-wash: rgb(174 35 38 / 0.2); /* hero glow, blur blobs */
	--sbc-red-edge: rgb(174 35 38 / 0.35); /* frame offset border */
	--sbc-red-deep-glass: rgb(111 20 23 / 0.95); /* SuperKids camp card, deep red glass */

	/* Homepage display type (Merriweather Sans (the approved sample's face)
     headline scale — see ADR 0011: Merriweather Sans (the approved sample's face)
     italic accent words render red in Merriweather Sans (the approved sample's face)). */
	--sbc-home-display-tracking: -0.038em; /* the approved sample's .display recipe */
	--sbc-home-eyebrow-tracking: 0.24em;

	/* Per-element entrance delay for the homepage rise choreography. The
	   default is 0; patterns set --d inline per element (home.css). */
	--sbc-home-rise-d: 0ms;
}
