/* Block Cycling: the one home of every visual value.
   Pages and the app set no colour, size or face of their own; change a value
   here, not in a page. The home capture app carries a copy by hand.
   Face: Hanken Grotesk (SIL Open Font License 1.1, licence beside the file),
   the free stand-in for Untitled Sans until that is bought; replace it in the
   two lines below and nowhere else. 20 October 2026. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk/hanken-grotesk-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chivo";
  src: url("/assets/fonts/chivo/chivo-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Faces: the page in Hanken Grotesk; the wordmark in Chivo, a blockier
     grotesque (Jack's choice of ten on 20 October, "for now"). Both SIL
     Open Font License, licence files beside them. */
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mark: "Chivo", "Hanken Grotesk", system-ui, sans-serif;
  --w-mark: 700;
  --w-regular: 400;
  --w-medium: 500;

  /* Colour: black ground, warm white type, and the one colour as a slot.
     The slot is for the tab and the garment; the page does not use it. */
  --ground: #0a0a0a;
  --ink: #f3f1ec;
  --ink-2: rgba(243, 241, 236, 0.66);
  --ink-3: rgba(243, 241, 236, 0.42);
  --hairline: rgba(243, 241, 236, 0.16);
  --colour: #b99b5c; /* gold, a first thought; chosen on woven samples, not here */

  /* Type scale */
  --t-wordmark: clamp(1.625rem, 2.5vw, 2.375rem);
  --t-line: clamp(2.125rem, 4.8vw, 4.5rem);
  --t-sub: clamp(1.125rem, 1.6vw, 1.5rem);
  --t-body: clamp(1.0625rem, 1.4vw, 1.3125rem);
  --t-small: 0.9375rem;
  --lh-tight: 1.04;
  --lh-body: 1.45;
  --track-line: -0.022em;
  --track-caps: 0.04em;

  /* Space */
  --gutter-l: max(20px, env(safe-area-inset-left, 0px), 4vw);
  --gutter-r: max(20px, env(safe-area-inset-right, 0px), 4vw);
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.75rem;
  --s-4: 3rem;
  --s-5: 5rem;
  --s-6: 8rem;
  --measure: 36rem;   /* running text */
  --measure-line: 44rem; /* the headline */
  --page: 80rem;      /* the widest a framed layout grows */

  /* Controls */
  --control: 44px;
  --radius: 2px;

  /* Motion */
  --fade: 1.6s;
  --fade-words: 0.9s;
}
