/* The Sentence V4 · design tokens. Mobile first: every value is set for a phone, then widened.
   Load after ../fonts/fonts.css. Options may extend these tokens; they should not contradict them. */
:root {
  /* ---------- colour: the studio ---------- */
  --bone: #F3EFE7;          /* the ground */
  --paper: #FBF8F2;         /* a lighter sheet, plates and white product grounds sit on it */
  --ink: #161412;           /* all type on light grounds (16:1 on bone) */
  --ink-2: #5E574F;         /* secondary small type (6.2:1 on bone) */
  --rule: rgba(22, 20, 18, .16);
  --night: #0E0D0C;         /* the dark ground (cinematic, night) */
  --night-2: #1A1816;
  --chalk: #F3EFE7;         /* type on dark grounds */
  --chalk-2: #A9A196;       /* secondary type on dark (7.6:1 on night) */
  --rule-dark: rgba(243, 239, 231, .18);
  --stop: #1F7A4C;          /* Adam's full stop, the focus ring, nothing else (4.6:1 on bone) */
  --stop-dark: #4FB37E;     /* the full stop on dark grounds (7.5:1 on night) */

  /* ---------- colour: the worlds of the work (used only inside that project's modules) ---------- */
  --bt-ink: #1A1818; --bt-offwhite: #FBF8F2; --bt-pink: #FC6396;
  /* Better Totes colour engine: background then canvas, per colourway */
  --bt-onyx-bg: #F6FBFC; --bt-onyx: #141920;
  --bt-green-bg: #FE60DC; --bt-green: #00B877;
  --bt-tangerine-bg: #02CAF2; --bt-tangerine: #FD5F08;
  --bt-chalk-bg: #FD6009; --bt-chalk: #DCDCDC;
  --bt-orchid-bg: #98FF98; --bt-orchid: #AC4DBA;
  --bt-clay-bg: #651653; --bt-clay: #FD6009;
  --bt-raspberry-bg: #02CAF2; --bt-raspberry: #FC6396;
  --bt-grape-bg: #FD6009; --bt-grape: #9A3CAA;
  --bt-ink-bg: #FE60DC; --bt-ink-canvas: #2D2B2C;
  --hu-plum: #1C0C27; --hu-plum-900: #241730; --hu-plum-800: #2F1D3E; --hu-paper: #FBF5EC;
  --hu-apricot: #EF8A5C; --hu-apricot-soft: #F4A67C; --hu-saffron: #E8A93B; --hu-lavender: #C4B8F0;
  --md-sand: #F2E8D5; --md-sand-2: #ECDFC8; --md-paper: #FCF8F0; --md-navy: #1B2A41; --md-amber: #D89A4A;
  --cm-navy: #081C2E; --cm-cyan: #3AACD9; --cm-cyan-text: #1F7B9E;

  /* ---------- type roles (fonts.css defines --font-display, --font-text, --font-mono) ---------- */
  /* the landing sentence is fitted to its box per option (see kit.js SK.fit); these are its bounds */
  --t-sentence-min: 30px;
  --t-sentence-max: 104px;
  --t-poster: min(clamp(2.75rem, 11vw + .25rem, 10.5rem), 19svh);   /* one phrase alone, a case study title */
  --t-headline: clamp(1.875rem, 3.2vw + 1.05rem, 3.75rem);          /* a section line */
  --t-lede: clamp(1.3125rem, .9vw + 1.05rem, 1.875rem);             /* a short paragraph set in Tiempos */
  --t-figure: clamp(4rem, 15vw + 1rem, 11rem);                      /* one number, set large */
  --t-body: 1.0625rem;                                               /* 17px on a phone */
  --t-small: .9375rem;                                               /* 15px, captions */
  --t-label: .71875rem;                                              /* 11.5px Söhne Mono caps */
  --lh-display: .92; --lh-headline: 1.02; --lh-lede: 1.28; --lh-body: 1.55;
  --tr-display: -.032em; --tr-headline: -.02em; --tr-lede: -.01em; --tr-label: .06em;
  --measure: 34em;                                                   /* body text never runs wider */

  /* ---------- space (4 point scale) ---------- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 192px;

  /* ---------- grid: 4 columns on a phone, 8 on a tablet, 12 on desktop ---------- */
  --cols: 4;
  --margin: max(20px, env(safe-area-inset-left));
  --gutter: 12px;
  --mast-h: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --vh: 100svh;             /* layout height: the smallest viewport, so nothing hides under the toolbar */
  --vh-media: 100lvh;       /* full bleed media backgrounds: the largest viewport, so no gap appears when the toolbar retracts */

  /* ---------- motion ---------- */
  --ease: cubic-bezier(.2, .7, .1, 1);          /* entrances and settles */
  --ease-io: cubic-bezier(.65, 0, .35, 1);      /* wipes and masks that travel */
  --d-touch: 120ms;   /* press feedback */
  --d-1: 240ms;       /* small changes */
  --d-2: 480ms;       /* a reveal */
  --d-3: 900ms;       /* a full screen transformation */
  --scrub-tau: 70;    /* ms: every scroll scrub eases toward the scroll position with this time constant */

  --z-media: 0; --z-content: 1; --z-mast: 50; --z-menu: 80; --z-takeover: 90;
}

@media (min-width: 600px) {
  :root { --cols: 8; --margin: clamp(24px, 4vw, 40px); --gutter: 16px; --t-body: 1.0625rem; }
}
@media (min-width: 1024px) {
  :root { --cols: 12; --margin: clamp(32px, 3.33vw, 56px); --gutter: clamp(16px, 1.67vw, 24px); --mast-h: 64px; --t-body: 1.125rem; --t-small: .9375rem; }
}
