/* Archivo variable (wdth + wght) is self-hosted. OFL: fonts/OFL.txt.
   Path is relative to this file once copied into a site's assets/. */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo-Variable.woff2') format('woff2-variations'),
       url('fonts/Archivo-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* Video atlas design system: tokens.
   Every value a component may use is declared here. A site theme (themes/<site>.css)
   overrides a handful of these and nothing else. Load order:
   tokens.css, components.css, theme.css, then an optional site.css. */

:root {
  /* ── colour: surfaces, darkest first ── */
  --bg: #0c0d10;
  --bg-2: #14161a;
  --bg-3: #1c1e24;
  --bg-4: #272a31;
  /* ── colour: text, three ranks ── */
  --fg: #f2f2ee;
  --fg-2: #b9b9b5;
  --fg-3: #86878c;
  /* ── colour: the reversed slab (.slab). One per page at most ── */
  --paper: #ecebe4;
  --paper-2: #dddcd3;
  --ink: #0c0d10;
  --ink-2: #3a3b40;
  --ink-3: #63646a;
  --black: #000;
  /* ── colour: one accent, for state and for links under the pointer ── */
  --accent: #f7c531;
  --accent-ink: #7a5a00;            /* the accent darkened for use on --paper */
  --accent-dim: color-mix(in srgb, var(--accent) 45%, var(--bg));
  --accent-hi: color-mix(in srgb, var(--accent) 58%, #fff);
  /* ── colour: lines ── */
  --line: color-mix(in srgb, var(--fg) 12%, transparent);
  --line-2: color-mix(in srgb, var(--fg) 28%, transparent);
  --scrim: color-mix(in srgb, var(--black) 78%, transparent);
  /* ── colour: chart palette. a, b, c are the categorical series, mid is the neutral ── */
  --c-a: #b3882c;
  --c-b: #4192c2;
  --c-c: #cc6650;
  --c-mid: #55565b;

  /* ── dividers. Each has one job ──
     hair   between rows of one list
     rule   closes a list or a toolbar
     bold   opens a sub-block inside a section
     heavy  opens a section (.sec)
     Tone (.band) and reversal (.slab) separate without a line. */
  --rule-hair: 1px solid var(--line);
  --rule: 1px solid var(--line-2);
  --rule-bold: 2px solid var(--fg);
  --rule-heavy: 6px solid var(--fg);

  /* ── type: families ── */
  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-text: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-data: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* ── type: widths. Display is set wide, figures are set narrow ── */
  --stretch-display: 112%;
  --stretch-text: 100%;
  --stretch-data: 80%;
  /* ── type: text scale. Base 18px, minor third 1.2, meaning-bearing floor 15px. ── */
  --fs-ratio: 1.2;
  --fs-3xs: 12px;   /* chrome only: ticks, kbd */
  --fs-2xs: 12px;
  --fs-xs: 15px;
  --fs-sm: 15px;
  --fs-md: 18px;
  --fs-base: 18px;
  --fs-list: 22px;
  --fs-meta: 15px;
  --fs-lg: 22px;
  --fs-xl: 26px;
  --fs-2xl: 26px;
  --fs-3xl: 32px;
  /* ── type: display scale, fluid. Ends sit on the same scale. ── */
  --fs-d4: clamp(32px, 2.9vw, 44px);
  --fs-d3: clamp(36px, 4.4vw, 64px);
  --fs-d2: clamp(44px, 6.6vw, 96px);
  --fs-d1: clamp(54px, 8.2vw, 128px);
  --lh-display: 1;
  --lh-title: 1.12;
  --lh-body: 1.5;
  --lh-tight: 1.25;
  /* ── type: weights and tracking. Heavy type is tracked tight, word spaces opened back up ── */
  --fw-display: 900;
  --fw-head: 800;
  --fw-data: 500;
  --track-display: -.04em;
  --track-head: -.025em;
  --word-display: .08em;

  /* ── space: 4px baseline, 8px layout. Section gaps aim at 2x item gaps. ── */
  --pad: clamp(20px, 4.4vw, 64px);        /* page side padding. 20 is a 4px step. */
  --max: 1340px;                          /* page measure for video grids */
  --read: 72ch;                           /* continuous reading measure */
  --side: 220px;                          /* margin column of .sec-g */
  --gut: clamp(24px, 3.4vw, 48px);        /* column gutter */
  --sec-y: clamp(32px, 4.4vw, 64px);      /* section padding, block axis */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --mast: 36px;                           /* masthead height */
  --toolbar: 64px;                        /* height of a sticky toolbar under the masthead */

  /* ── shape, depth, motion ── */
  --radius: 2px;
  --shadow-pop: 0 18px 40px color-mix(in srgb, var(--black) 55%, transparent);
  --shadow-modal: 0 40px 120px color-mix(in srgb, var(--black) 70%, transparent);
  --shadow-up: 0 -30px 80px color-mix(in srgb, var(--black) 60%, transparent);
  --shadow-mark: drop-shadow(0 1px 6px color-mix(in srgb, var(--black) 70%, transparent));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .2s;
  --t-slow: .35s;
  color-scheme: dark;

  /* ── surface texture. Felt, not seen. Sites may retint --grain and --grain-opacity. ── */
  --grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.85%22%20numOctaves%3D%224%22%20stitchTiles%3D%22stitch%22%20seed%3D%223%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23n%29%22%2F%3E%3C%2Fsvg%3E");
  --grain-opacity: 0.04;
}
html { font-size: 18px; }

