/* 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));
  /* ── 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 ── */
  --fs-3xs: .62rem;
  --fs-2xs: .72rem;
  --fs-xs: .8rem;
  --fs-sm: .875rem;
  --fs-md: .95rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.16rem;
  --fs-xl: 1.28rem;
  --fs-2xl: 1.42rem;
  --fs-3xl: 1.7rem;
  /* ── type: display scale, fluid ── */
  --fs-d4: clamp(1.8rem, 2.9vw, 2.6rem);
  --fs-d3: clamp(2.2rem, 4.4vw, 3.6rem);
  --fs-d2: clamp(2.7rem, 6.6vw, 5.6rem);
  --fs-d1: clamp(3rem, 8.2vw, 7.2rem);
  /* ── 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 ── */
  --pad: clamp(20px, 4.4vw, 60px);        /* page side padding */
  --max: 1340px;                          /* page measure */
  --side: 220px;                          /* margin column of .sec-g */
  --gut: clamp(24px, 3.4vw, 56px);        /* column gutter */
  --sec-y: clamp(34px, 4.4vw, 60px);      /* section padding, block axis */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 14px;
  --sp-4: 22px;
  --sp-5: 34px;
  --sp-6: 56px;
  --mast: 56px;                           /* masthead height */
  --toolbar: 60px;                        /* 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;
}
