/* Elle the Engineer: brand tokens (BRAND.md 7.1, 11 Nov 2026). Fonts are self-hosted,
   SIL Open Font Licence. Colours sampled from the logo's dither. */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans Mono"; src: url("../fonts/noto-sans-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* colour */
  --ink: #171c20;
  --ink-2: #4a5056;
  --peri: #5b5fc7;
  --peri-wash: #eceef9;
  --coral: #e2684a;
  --coral-deep: #c4502f;      /* the action pill: white text 4.63:1 (BRAND 4.1) */
  --ph-ink: #5c5f8a;          /* placeholder labels: 5.82:1 on #fafafc (BRAND 4.1) */
  --filter-off: #858993;      /* inactive filter words, 30 px+ bold: 3.3:1 (BRAND 4.1) */
  --paper: #ffffff;
  --paper-2: #f5f4f0;
  --line: #e3e3e0;
  --fields: #eef0fb, #fbefe9, #f2f2ee, #e9f1ee;
  --film-field: #ededed;   /* neutral grey behind films, so their colours read true (Ela, 12 Nov; BRAND 7.2) */   /* tile colour fields, in turn */
  /* type */
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --text: Inter, system-ui, sans-serif;
  --mono: "Noto Sans Mono", ui-monospace, monospace;
  /* shape and motion */
  --r-tile: 20px;
  --r-object: 28px;
  --shadow: 0 1px 2px rgb(23 28 32 / .06), 0 12px 32px rgb(23 28 32 / .10);
  --shadow-up: 0 2px 4px rgb(23 28 32 / .06), 0 26px 50px rgb(23 28 32 / .16);
  --spring: cubic-bezier(.3, 1.6, .5, 1);   /* lift and tilt: small overshoot (TASTE: springs, never a dead stop) */
  --t-hover: .45s;
  /* media (Ela, 11 Nov): case-study hero 720 px; supporting images half that */
  --hero-w: 720px;
  --fig-w: calc(var(--hero-w) / 2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); }
a { color: inherit; }
/* Never distort media (Ela, 11 Nov; rules.md): proportions are the file's own; frames say cover or contain. */
img, video { display: block; max-width: 100%; height: auto; object-fit: contain; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* The logo (BRAND 7.1, Ela 11 Nov): "Elle" in black halftone, transparent PNG; web copy 2000 × 1477, artwork at
   x 256–1800, y 387–1087. Black on white, its dots see-through; never recoloured, cut out or retyped.
   .logo: the file trimmed to the artwork plus a 24 px margin (x 232–1824, y 363–1111), for hero, headers and tiles. */
.logo { display: block; aspect-ratio: 1592 / 748; overflow: hidden; }
.logo img { width: 125.63%; max-width: none; height: auto; margin: -22.80% 0 0 -14.57%; }
