/* Design tokens: change the look of the whole site from here.
   Direction: black and white, editorial, quiet. One type family
   (IBM Plex) in two cuts: Sans for everything you read, Mono for small
   labels. Big headings use the light weight with tight tracking. There is
   no accent colour: emphasis comes from size, weight and white space. */

/* Fonts are self-hosted from assets/fonts (SIL Open Font License). */
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-200-normal.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* dark (default) */
  --bg: #000;
  --text: #f4f4f4;          /* headings, key text */
  --text-body: #c4c4c4;     /* paragraphs */
  --text-dim: #8c8c8c;      /* labels, meta (6.6:1 on black) */
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .32);

  /* light band (sections with "theme": "light" in site.json) */
  --paper: #f2f2f0;
  --ink: #0b0b0b;
  --ink-body: #2b2b2b;
  --ink-dim: #5e5e5e;       /* 5.9:1 on paper */
  --ink-line: rgba(0, 0, 0, .14);

  /* type */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: .75rem;
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.05rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.15rem + 1.5vw, 2.45rem);
  --step-3: clamp(2.6rem, 1.5rem + 4.6vw, 5.75rem);

  /* layout */
  --grid: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr);  /* label | content | content */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
