/* Canvas design tokens. Every page and component reads from here.

   Look: warm paper, near-black ink, dark buttons, hairline dividers, lots of room.

   Type: Allo by Josh Puckett (SIL OFL), one variable font everywhere.
   Axes: wght 100-900, ROND 0-100 (roundness), opsz 9-32 which follows the font size
   on its own, so headlines get the Display cut and spacing without extra tracking.
   Letter-spacing turns Allo's ligatures off, so tracking stays at 0 except where noted. */

@font-face {
  font-family: "Allo";
  src: url("/fonts/Allo-v2.woff2") format("woff2");
  font-weight: 400 700; /* subset: Latin, weights 400-700, ROND 50-100 (design/og and film use the full file) */
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour */
  --paper: #faf9f5;       /* page */
  --paper-2: #f0eee6;     /* panels, cards */
  --paper-3: #e8e6dc;     /* pressed, wells */
  --surface: #ffffff;     /* things that sit on a panel */
  --line: #e3e0d6;        /* hairlines on paper */
  --line-strong: #d5d2c6;
  --ink: #141413;
  --ink-2: #5e5d59;       /* secondary text, 6.4:1 on paper */
  --ink-3: #73726c;       /* labels, 4.8:1 on paper */
  --button: #1f1e1d;
  --button-hover: #000000;
  --blue: #0a6cff;        /* Canvas: selection, links */
  --blue-bright: #0a84ff;
  --blue-tint: #e3edfb;
  --ochre: #e0a43c;       /* illustration accent */
  --select-row: #e8e6dc;  /* selected rows are grey, never blue */
  --ok: #2f7d32;
  --error: #b3261e;

  /* Dark band */
  --night: #1f1e1d;
  --night-2: #2a2927;
  --night-line: #3a3936;
  --night-ink: #faf9f5;
  --night-ink-2: #b9b7ae;

  /* Font stacks */
  --font-sans: "Allo", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Type scale: size, tracking and line height move together */
  --hero-size: clamp(52px, 9.2vw, 136px); --hero-track: -0.045em; --hero-lh: 0.92;
  --display-size: 88px;  --display-track: -0.045em; --display-lh: 0.98;
  --title-size: 56px;    --title-track: -0.045em; --title-lh: 1.02;
  --title2-size: 30px;   --title2-track: -0.03em;     --title2-lh: 1.12;
  --lead-size: 22px;     --lead-track: 0em;       --lead-lh: 1.36;
  --head-size: 19px;     --head-track: 0em;       --head-lh: 1.3;
  --body-size: 17px;     --body-track: 0em;       --body-lh: 1.47;
  --callout-size: 15px;  --callout-track: 0em;    --callout-lh: 1.47;
  --small-size: 13px;    --small-track: 0em;      --small-lh: 1.46;
  --caption-size: 12px;  --caption-track: 0em;    --caption-lh: 1.42;
  --micro-size: 11px;    --micro-track: 0em;      --micro-lh: 1.36;
  --tiny-size: 10px;     --tiny-track: 0em;

  /* Allo roundness: 0 sharp, 50 friendly (default), 100 round */
  --rond: 50;
  --rond-heading: 100; /* headings: fully round */

  /* Spacing: 4 px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px; --s-40: 160px;

  /* Layout */
  --container: 1200px;
  --gutter: 40px;
  --measure: 640px;   /* longest line of running text */

  /* Radius */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px; --r-full: 999px;

  /* Controls: everything in one row shares one height */
  --control-sm: 36px;
  --control-md: 44px;
  --control-lg: 52px;

  /* Elevation: only for things that float on a panel (mock windows, popovers) */
  --shadow-float:
    0 0 0 0.5px rgb(20 20 19 / 0.10),
    0 1px 3px rgb(20 20 19 / 0.06),
    0 12px 32px -8px rgb(20 20 19 / 0.14);
  --shadow-window:
    0 0 0 0.5px rgb(20 20 19 / 0.12),
    0 2px 6px rgb(20 20 19 / 0.06),
    0 32px 64px -16px rgb(20 20 19 / 0.22);
  --focus-ring: 0 0 0 3px rgb(10 132 255 / 0.35);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 760px) {
  :root {
    --hero-size: 15vw;
    --display-size: 52px; --display-lh: 1;
    --title-size: 38px;   --title-lh: 1.05;
    --lead-size: 19px;    --lead-lh: 1.4;
    --gutter: 20px;
  }
}
