/* ==========================================================================
   Design tokens — the only place where colours, fonts, sizes and spacing live.
   Components use var(--…) exclusively.

   Single source of truth: values that exist as presets in theme.json
   (palette, font families, font sizes, spacing) are aliases of the
   --wp--preset--* variables. Change them in theme.json, never here.
   Everything else (layers, layout, motion, shape…) is defined here.
   Fonts (@font-face) are generated by theme.json (fontFace).
   CSS custom properties cannot be used inside @media conditions, so the
   two breakpoints (900px, 640px) are written as literals in the block files.
   ========================================================================== */

:root{
	/* Brand colours (theme.json palette) */
	--color-primary:var(--wp--preset--color--primary);
	--color-primary-dark:var(--wp--preset--color--primary-dark);
	--color-primary-light:var(--wp--preset--color--primary-light);
	--color-accent:var(--wp--preset--color--accent);
	--color-accent-dark:var(--wp--preset--color--accent-dark);
	--color-accent-light:var(--wp--preset--color--accent-light);
	--color-tertiary:var(--wp--preset--color--tertiary);
	--color-tertiary-light:var(--wp--preset--color--tertiary-light);

	/* Neutrals (theme.json palette) */
	--color-ink:var(--wp--preset--color--ink);
	--color-ink-deep:var(--wp--preset--color--ink-deep);
	--color-ink-raised:var(--wp--preset--color--ink-raised);
	--color-ink-line:var(--wp--preset--color--ink-line);
	--color-text:var(--color-ink);
	--color-text-muted:var(--wp--preset--color--text-muted);
	--color-text-on-dark:var(--wp--preset--color--surface);
	--color-text-on-dark-soft:var(--wp--preset--color--text-on-dark-soft);
	--color-text-on-dark-muted:var(--wp--preset--color--text-on-dark-muted);
	--color-surface:var(--wp--preset--color--surface);
	--color-surface-alt:var(--wp--preset--color--surface-alt);
	--color-surface-soft:var(--wp--preset--color--surface-soft);
	--color-border:var(--wp--preset--color--border);

	/* Transparent layers */
	--color-overlay:rgba(22,35,61,.86);
	--color-overlay-strong:rgba(22,35,61,.9);
	--color-on-dark-line:rgba(255,255,255,.16);
	--color-on-dark-divider:rgba(255,255,255,.22);
	--color-on-dark-hover:rgba(255,255,255,.05);
	--color-on-dark-chip:rgba(255,255,255,.12);
	--color-focus-glow:rgba(38,184,208,.35);
	--color-mask:#000;               /* mask channel only, never visible */

	/* Typography (theme.json font families / sizes) */
	--font-heading:var(--wp--preset--font-family--heading);
	--font-body:var(--wp--preset--font-family--body);
	--fw-regular:400;
	--fw-medium:500;
	--fw-semibold:600;
	--fw-bold:700;
	--fw-extrabold:800;

	--fs-xs:var(--wp--preset--font-size--xs);
	--fs-sm:var(--wp--preset--font-size--sm);
	--fs-base:var(--wp--preset--font-size--base);
	--fs-md:var(--wp--preset--font-size--md);
	--fs-lg:var(--wp--preset--font-size--lg);
	--fs-xl:var(--wp--preset--font-size--xl);
	--fs-2xl:var(--wp--preset--font-size--2-xl);
	--fs-3xl:var(--wp--preset--font-size--3-xl);
	--fs-h2:var(--wp--preset--font-size--h-2);
	--fs-h2-xl:var(--wp--preset--font-size--h-2-xl);
	--fs-display:var(--wp--preset--font-size--display);
	--fs-numeral:3.5rem;  /* 56 — programme days */
	--fs-countdown:2.75rem;
	--fs-map-city:25px;   /* SVG user units (map viewBox 1000×720) */
	--fs-map-city-hub:28px;
	--fs-map-doc:19px;
	--fs-map-city-sm:40px;   /* map labels on phones (map is scaled down) */
	--fs-map-city-hub-sm:42px;
	--fs-map-doc-sm:30px;

	--lh-tight:1.02;
	--lh-heading:1.12;
	--lh-snug:1.35;
	--lh-normal:1.5;
	--lh-body:1.65;
	--ls-eyebrow:.14em;

	/* Spacing scale (theme.json spacing sizes) */
	--space-3xs:var(--wp--preset--spacing--3-xs);
	--space-2xs:var(--wp--preset--spacing--2-xs);
	--space-xs:var(--wp--preset--spacing--xs);
	--space-sm:var(--wp--preset--spacing--sm);
	--space-md:var(--wp--preset--spacing--md);
	--space-lg:var(--wp--preset--spacing--lg);
	--space-xl:var(--wp--preset--spacing--xl);
	--space-2xl:var(--wp--preset--spacing--2-xl);
	--space-3xl:var(--wp--preset--spacing--3-xl);
	--space-4xl:var(--wp--preset--spacing--4-xl);
	--section-padding:var(--space-4xl);
	--section-padding-tight:4rem;
	--gutter:var(--space-md);

	/* Layout */
	--container-max:75rem;           /* 1200 — theme.json layout.wideSize */
	--header-max:100rem;             /* 1600: header and top bar, centred; up to that they span the window, with --header-gutter at each side (client, 16/11/2026) */
	--header-gutter:var(--space-lg); /* 32: space left and right of the header and top bar */
	--measure:51.25rem;              /* 820 — theme.json layout.contentSize */
	--hero-min-height:45rem;         /* 720 */
	--hero-copy-max:31.25rem;        /* 500 */
	--hero-shape-width:64%;
	--hero-shape-min:45rem;
	--hero-shape-opacity:.86;
	--road-copy-max:23.75rem;        /* 380 */
	--card-min:15rem;                /* 240 — grid columns */
	--footer-col-min:12.5rem;        /* 200 */
	--col-min:23.75rem;              /* 380 — two-column sections */
	--portrait-ratio:4 / 5;
	--portrait-ratio-short:8 / 9;     /* shorter portrait cards (torchbearers): ~432px tall at 384px wide */
	--media-ratio:16 / 9;
	--logo-header:4.75rem;           /* 76: logo height (full logo with text, 5.13:1) */
	--logo-header-small:3.5rem;      /* 56: scrolled header */
	--logo-footer:9.375rem;          /* 150 */
	--partner-logo:3.5rem;           /* 56 */
	--partner-logo-lg:4.75rem;
	--mark-width:8.25rem;            /* 132 — bridge mark */
	--dropdown-width:18.75rem;       /* 300 */
	--tap-target:3rem;               /* 48 */

	/* Icons */
	--icon-sm:1.125rem;  /* 18 */
	--icon-md:1.25rem;   /* 20 */
	--icon-lg:2rem;      /* 32 */
	--icon-xl:2.75rem;   /* 44 */
	--icon-portrait:4.5rem;
	--stroke-icon:1.8;
	--stroke-icon-thin:1.4;
	/* SVG strokes (user units of each drawing) */
	--stroke-mark:3.2;
	--stroke-hero-shape:4;
	--stroke-hero-wave:6;
	--stroke-map-land:.8;
	--stroke-map-track:2.5;
	--stroke-map-route:4;
	--stroke-map-dot:3;
	--stroke-map-pulse:2.5;

	/* Shape */
	--radius-sm:0.5rem;
	--radius-md:0.75rem;
	--radius-pill:999px;
	--hairline:1px;
	--border-thin:1px;
	--border-medium:2px;
	--border-thick:3px;
	--stripe-height:0.5rem;
	--underline-height:2px;
	--focus-ring:0 0 0 2px var(--color-surface),0 0 0 5px var(--color-primary-dark);

	/* Elevation */
	--shadow-header:0 6px 20px rgba(22,35,61,.12);
	--shadow-card:0 14px 30px rgba(22,35,61,.12);
	--shadow-menu:0 18px 40px rgba(22,35,61,.16);

	/* Motion */
	--duration-fast:150ms;
	--duration-base:250ms;
	--duration-slow:700ms;
	--duration-draw:1100ms;
	--ease-out:cubic-bezier(.2,.7,.2,1);
	--nudge:4px;
	--lift:-3px;

	/* Layers */
	--z-header:100;
	--z-menu:110;
}
