/* Limit Labs: shared design tokens ("Drawing set").
   Paper ground, ink text, gold only as a marker. Used by the page (css/site.css) and by the scene (js/scene/scene.css). */

/* ---------- Fonts (self-hosted, OFL; licences alongside in /assets/fonts/) ---------- */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"), url("/assets/fonts/Inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff2") format("woff2"), url("/assets/fonts/Inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-700.woff2") format("woff2"), url("/assets/fonts/Inter-700.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* the one italic on the site: "fast" in the headline, at the headline's weight */
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* colour */
  --paper: #f3f1ea;          /* page ground */
  --paper-raised: #fbfaf6;   /* form, panels, lists */
  --paper-sunk: #e9e6dc;     /* behind a sheet in the viewer */
  --sheet-white: #fff;       /* printed sheets only */
  --ink: #20231f;            /* text, rules, primary button */
  --ink-2: #4a4e47;          /* secondary text */
  --ink-3: #62665d;          /* data labels, captions */
  --rule: rgba(32, 35, 31, .16);   /* hairlines inside a block */
  --rule-2: rgba(32, 35, 31, .34); /* upcoming steps, thumbnail edges, input borders */
  --gold: #c2943e;           /* marker only: divider, current position, callout */
  --gold-ink: #7a5710;       /* gold that passes AA as text on paper */
  --error: #9c3a1e;

  /* type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-display: clamp(2.375rem, min(4.2vw, 8.4svh), 4rem);   /* 38 to 64, held by width and height */
  --t-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);          /* 28 to 44 */
  --t-h3: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);          /* 22 to 28 */
  --t-lede: clamp(1.0625rem, 1rem + .28vw, 1.1875rem);      /* 17 to 19 */
  --t-body: 1rem;
  --t-small: .9375rem;
  --t-data: .8125rem;                                       /* mono labels: 13 px, 14 px on a phone */

  /* space, 4 px base */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  /* layout */
  --gutter: clamp(1rem, 4.4vw, 4rem);          /* text edge */
  --wrap: 82rem;
  --col-gap: clamp(1rem, 1.7vw, 1.5rem);
  --head-h: 4rem;
  --cta-h: 0px;                                /* height of the phone action bar; set in site.css */

  --radius: 2px;
  --shadow-sheet: 0 1px 1px rgba(32, 35, 31, .05), 0 14px 24px -14px rgba(32, 35, 31, .22), 0 36px 56px -36px rgba(32, 35, 31, .2);
  --ease: cubic-bezier(.2, .6, .2, 1);
}
@media (max-width: 40em) {
  :root { --t-data: .875rem; --head-h: 3.5rem; }
}
@media (min-width: 112.5em) { html { font-size: 112.5%; } }
