/**
 * MOVE Components — shared design tokens, and tokens only. A rule belongs in
 * global.css instead, even when every value it uses is a var() defined here.
 *
 * Loaded before every component stylesheet (Blocks_Loader::register_styles).
 *
 * Colour/type/radius/spacing values below are sourced from the approved
 * Figma (read 2026-08-29 — see `move-theme/tmp/figma/variables-2026-08-29.json`
 * for the raw capture), replacing prototype-screenshot values. Every value
 * with a real Figma source names it; one with no clean equivalent says so
 * (marked "judgment call") rather than pretending otherwise.
 *
 * Colour, radius, space and border-width kept their variable names from the
 * pre-rebrand scale, so every `var(--move-x, fallback)` call picks up the
 * new value with no component edit needed. Font-size and letter-spacing did
 * not keep their names — the old rank scale (`--move-font-size-600` etc.) no
 * longer exists.
 *
 * WCAG 2.2 AA is no longer a gating requirement (2026-08-29) — the Figma
 * palette is adopted as drawn, including values under 4.5:1. Contrast is
 * still measured as a matter of practice; a number here is information, not
 * a veto.
 *
 * `--move-font-base` is self-hosted Work Sans, `--move-font-heading` is
 * Rosario (both real variable fonts — see assets/fonts for the
 * regeneration recipe). Rosario is narrow in use: applied globally to
 * `em`/`i` below (not a heading class) because `Markup::kses_inline()`
 * already restricts every rich field to `strong/b/em/i/a/br`.
 *
 * Shared container-query breakpoints, reused literally by every component's
 * own `@container` rules (CSS can't put a custom property in a query):
 *   mobile:  < 768px  (default / mobile-first, no query needed)
 *   tablet:  >= 768px
 *   desktop: >= 1024px
 */

:root {
	/**
	 * Color. Figma source names in comments; a value with no clean Figma
	 * equivalent for its old role is marked "judgment call" rather than
	 * quietly presented as if the design specified it.
	 */
	--move-color-bg: #faf7f0; /* surface/brand-secondary-light — the Figma's own page root, not surface/page (white), which is reserved for card/component surfaces on top of this ground */
	--move-color-surface: #ffffff; /* surface/page — cards, the page-header's breadcrumb and sub-nav bands, and any panel drawn on top of --move-color-bg */
	--move-color-surface-subtle: #f8fafd; /* surface/subtle — a near-white band used to separate a listing from the white page around it (the Publications year list) */
	--move-color-dark: #0f2a4a;      /* surface/brand — the hero, footer panel and quote band's background */
	--move-color-dark-alt: #061b33; /* surface/inverse — a second, darker navy for nested elements over --move-color-dark */
	/* The accent family is the panel's (Theme_Colors prints any override
	   inline right after this sheet); these are the Figma defaults. Blue since
	   2026-09-29, when the approved logo dropped the gold. */
	--move-color-accent: #689fdf; /* color/new-colors/blue-high — hover, current and active states, marks and fills */
	--move-color-accent-subtle: #a4c6ec; /* color/new-colors/blue-light — the inactive carousel dot */
	--move-color-accent-contrast: var(--move-color-text-title, #061b33); /* judgment call: text/title — text drawn on top of an accent fill */
	--move-color-accent-text: #315179; /* judgment call: brand/primary/brand-mid-emphasis — the accent's role as small text on a light ground, which Figma does not draw */
	--move-color-text: #475c76;  /* text/body — 6.41:1 on the new --move-color-bg (measured) */
	--move-color-text-title: #061b33; /* text/title — headings and item titles on a light ground; darker than text/body. 16.4:1 on white (computed) */
	--move-color-text-inverse: #e3e7ec; /* text/inverse/body */
	--move-color-text-inverse-title: #ffffff; /* text/inverse/title — headings and display text on a dark ground, a full step brighter than the body colour beside it */
	--move-color-text-inverse-label: #f1f4f7; /* text/inverse/label — small text/labels on a dark ground */
	/* text/caption, darkened from Figma's #627995 (4.479:1 / 4.186:1, under
	   AA at 12-16px). #5c738f is 4.88:1 / 4.56:1, the smallest move that
	   clears AA on both grounds — this project's standing remedy. */
	--move-color-text-muted: #5c738f;
	--move-color-text-muted-inverse: #c6d9f2; /* judgment call: brand/primary/brand-subtle-emphasis — Figma defines no muted-inverse text role distinct from text/inverse/body */
	--move-color-border: #e3e7ec; /* border/default */
	--move-color-border-light: #eae9e6; /* border/light — the hairline Figma uses inside light components (feature-card shells, the Publications year-list rows), one step softer than border/default */
	--move-color-border-inverse: rgba(227, 231, 236, 0.2); /* translucent border/default — same mechanism as before (a light border visible on a dark ground), recoloured to the new palette; Figma defines no dedicated inverse-border token */
	--move-color-placeholder-photo: var(--move-color-surface-subtle, #f8fafd); /* judgment call: surface/subtle — placeholder boxes have no Figma equivalent, since real content replaces every one */
	--move-color-placeholder-image: #c6d9f2; /* judgment call: brand/primary/brand-subtle-emphasis, chosen only to stay distinguishable from the photo placeholder above */
	--move-color-focus: #315179; /* judgment call: brand/primary/brand-mid-emphasis — Figma defines no focus-ring token; 8.13:1 on white (measured) */

	/* Type — Work Sans (body) / Rosario (heading emphasis), self-hosted
	   (assets/fonts/work-sans.css / rosario.css). See the file-level comment
	   above for why Rosario is applied via em/i rather than a heading class. */
	--move-font-base: "Work Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
	--move-font-heading: "Rosario", Georgia, "Times New Roman", serif;

	/**
	 * Type scale — Figma's own named steps, replacing the seventeen
	 * rank-named steps that existed only to reproduce the prototype 1:1.
	 * `rem`, not `em`: no compounding when sized elements nest, immune to
	 * host <body> size, still honours browser font size (WCAG 1.4.4).
	 *
	 * Figma defines no step between xl (24px) and 5xl (56px), confirmed
	 * across all six approved frames. 2xl/3xl/4xl are literal sizes used
	 * inside named text styles that fill the gap without being variables
	 * themselves; 6xl is the Hero's H1, found in live content, absent from
	 * the variable set. Confirm with Tiago whether the gap is deliberate
	 * before treating 2xl-4xl as permanent.
	 */
	--move-font-size-xs: 0.75rem;    /* 12px — font-size/xs */
	--move-font-size-sm: 0.875rem;   /* 14px — font-size/sm */
	--move-font-size-base: 1rem;     /* 16px — font-size/base */
	--move-font-size-md: 1.125rem;   /* 18px — font-size/md */
	--move-font-size-lg: 1.25rem;    /* 20px — font-size/lg */
	--move-font-size-xl: 1.5rem;     /* 24px — font-size/xl */
	--move-font-size-2xl: 1.75rem;   /* 28px — literal inside Subtitle-28, not a named Figma variable */
	--move-font-size-3xl: 2rem;      /* 32px — literal inside Headings/H4 (both family variants), not a named Figma variable */
	--move-font-size-4xl: 2.5rem;    /* 40px — literal inside Headings/H3 (both family variants), not a named Figma variable */
	--move-font-size-5xl: 3.5rem;    /* 56px — font-size/5xl */
	--move-font-size-6xl: 4rem;      /* 64px — the Hero H1, observed in live content only; absent from every variable dump */
	--move-font-size-7xl: 6rem;      /* 96px — the error page's own big number; observed in live content, not a named Figma variable */

	/* Letter-spacing, in `em` — confirmed percent-of-font-size, not px (cross-
	   checked against five resolved values, e.g. a 14px tagline's "+15" step
	   renders at +2.1px = 15% x 14). `em` composes at any size, no calc(). */
	--move-letter-spacing-tight: -0.01em;    /* letter-spacing/tight (-1) */
	--move-letter-spacing-normal: 0em;       /* letter-spacing/normal (0) */
	--move-letter-spacing-tighter: -0.02em;  /* observed on Headings/H4-H5 sans-serif and the Hero H1; no named Figma variable, only the resolved "-2" style value */
	--move-letter-spacing-snug: -0.03em;     /* the "-3" step in the named scale; no current consumer — the 28px subtitle uses -crushed instead */
	--move-letter-spacing-tightest: -0.04em; /* observed on Headings/H3 sans-serif; same caveat as tighter */
	--move-letter-spacing-crushed: -0.05em;  /* Subtitles/Subtitle-28 (-5), the file's tightest step */
	--move-letter-spacing-wide: 0.01em;      /* Subtitles/Subtitle-16 (+1) — the only positive step below Tagline's */
	--move-letter-spacing-loose: 0.05em;     /* Tagline/tagline-12 (+5) */
	--move-letter-spacing-looser: 0.15em;    /* Tagline/tagline-14 (+15) */

	/* Font weights. Named because Figma's typographic character is carried
	   by weight, and the build had defaulted headings to 600 everywhere,
	   reading heavy against the design. Figma's actual usage: headings are
	   400/300, never 600; 600 appears only on taglines/small uppercase
	   labels; Rosario emphasis spans sit at 500/600. */
	--move-font-weight-light: 300;    /* font-weight Light — body copy, large display text */
	--move-font-weight-regular: 400;  /* font-weight Regular — headings, labels */
	--move-font-weight-medium: 500;   /* font-weight/medium — Rosario emphasis spans */
	--move-font-weight-semibold: 600; /* Tagline/tagline-14 and small uppercase labels only */
	--move-font-weight-bold: 700;     /* the logo wordmark, and Home's statement band: the only two places the design goes this heavy */

	/* Band rhythm. Figma's full-width sections pad 96/120px block — roughly
	   double what this build shipped (--move-space-lg reused for both a
	   section and a card). Named separately: a band uses it, a component
	   inside that band never should. */
	--move-section-padding: 6rem;    /* 96px — the common band padding */
	--move-section-padding-lg: 7.5rem; /* 120px — the hero and the CTA banner */

	/* Line heights, unitless. Figma's set is {1, 1.2, 1.3, 1.4, 1.5}, tighter
	   than the prototype scale it replaces in the first four steps. Nothing
	   above 1.5 in Figma; loose/body are a deliberate build-side extension
	   for long-form reading comfort. */
	--move-line-tight: 1.2;    /* was 1.25 — Headings/H3 sans-serif */
	--move-line-snug: 1.3;     /* was 1.4 — Headings/Subtitles generally */
	--move-line-normal: 1.4;   /* was 1.5 — Text-12/14/16 */
	--move-line-relaxed: 1.5;  /* was 1.55 — Text-18/20, the Figma's own loosest defined value */
	--move-line-loose: 1.6;    /* no Figma equivalent — see comment above */
	--move-line-body: 1.65;    /* no Figma equivalent — see comment above */

	/* Sticky bar heights. main.js overwrites both with measured values; these
	   are the pre-JS fallbacks. Sections add them together for scroll-margin so
	   an anchor jump clears both. */
	--move-header-sticky-height: 6rem;
	--move-subnav-sticky-height: 2.5rem;

	/* The rail every band lines up on. Figma has no single equivalent — each
	   Home band authors its own side padding rather than sharing one rail.
	   1312px (64px margins) is the most common across 5 Home sections
	   (feature-card row, CTA banner, footer), so it's the shared rail here.
	   The credibility-quote band's narrower 1200px/1000px stays a one-off
	   in that block's own CSS. */
	--move-container-max: 1312px;
	--move-container-gutter: 2rem;

	/* Space. The five names stay (~16 components reference them); `lg` is
	   repointed to the nearest Figma step (32 -> 48, no 40px step exists).
	   New granular steps take Figma's own gap/N numbers directly. */
	--move-space-xs: 0.5rem;  /* 8px  — espacing/gap/8 (unchanged) */
	--move-space-sm: 1rem;    /* 16px — espacing/gap/16 (unchanged) */
	--move-space-md: 1.5rem;  /* 24px — espacing/gap/24 (unchanged) */
	--move-space-lg: 3rem;    /* 48px — espacing/gap/48 (was 40px/2.5rem; Figma has no 40 step) */
	--move-space-xl: 4rem;    /* 64px — espacing/gap/64 (unchanged) */
	--move-space-4: 0.25rem;  /* 4px  — espacing/gap/4, the breadcrumb's own row gap and crumb padding */
	--move-space-12: 0.75rem; /* 12px — espacing/gap/12, new granular step */
	--move-space-20: 1.25rem; /* 20px — espacing/gap/20, new granular step */
	--move-space-32: 2rem;    /* 32px — espacing/gap/32, new granular step */
	--move-space-96: 6rem;    /* 96px — espacing/gap/96, new granular step */

	/* Radius. Figma introduces two real values where the build had one flat
	   4px everywhere. `--move-radius` keeps its name so every consumer
	   picks up the new value with no call-site change; `-lg`/`-none` are new. */
	--move-radius: 0.75rem;     /* 12px — border-radius/medium (was 4px) */
	--move-radius-md: 1.25rem;  /* 20px — border-radius/large */
	--move-radius-lg: 2.5rem;   /* 40px — border-radius/extra-large */
	--move-radius-none: 0;      /* radius/none, explicit */

	/* border-width/1 in the Figma is 1px — unchanged. */
	--move-border-width: 1px;

	/* Motion */
	--move-transition: 150ms ease;

	/* Minimum interactive target size — kept as practice even though SC 2.5.8 is no longer a gate */
	--move-target-min: 24px;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--move-transition: 0ms;
	}
}

/* Every rule that isn't a token — body defaults, the em/i/strong/b emphasis
   devices, the Figma text-style layer, the shared brand/button/carousel
   components, the visibility utilities, view transitions — now lives in
   global.css, which loads on every document the same way this file does. */
