/* Design tokens. Justin Core v2, as tuned in the Oct 24–26 board review
   (fall-2026-planning/bonflower-2/live/board-review.html). Shared by every screen.
   Board knobs live at the bottom; the dev panel writes them, the defaults are the baked values. */
/* Inter Tight, served from here (design polish #42): Google's own latin file (v9, the one browsers fetched from
   fonts.gstatic.com), one variable font for every weight 400-800, OFL (fonts/OFL.txt). Same file, so text measures the
   same; no third-party request, and the service worker can keep it for offline opens. Latin only, as Google's split:
   other characters (latin-ext names, say) fall back to the system font, where Google used to send another file. */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/InterTight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --nh: 95;
  --bg:   oklch(.970 .004 var(--nh));
  --card: oklch(.995 .002 var(--nh));
  --soft: oklch(.948 .006 var(--nh));
  --ink:  oklch(.200 .004 var(--nh));
  --ink2: oklch(.480 .006 var(--nh));
  --ink3: oklch(.530 .008 var(--nh));
  --line: oklch(.200 .004 var(--nh) / .10);
  --line2: oklch(.200 .004 var(--nh) / .20);
  --frame: oklch(.930 .005 var(--nh));
  --on-fill: oklch(.99 0 0);
  --shine: oklch(1 0 0 / .55);
  --hl: oklch(.66 .12 72); --hl-soft: oklch(.66 .12 72 / .14); --warn: oklch(.60 .15 32);

  /* friend hues: color only where it means someone */
  --violet: oklch(.66 .105 295); --slate: oklch(.66 .03 262); --teal: oklch(.66 .10 184);
  --aqua: oklch(.66 .095 220); --green: oklch(.66 .11 137); --coral: oklch(.66 .125 38);
  --sand: oklch(.68 .06 80); --rose: oklch(.66 .115 359); --magenta: oklch(.64 .13 327); --amber: oklch(.70 .12 78);

  --shadow-panel: 0 16px 48px oklch(0 0 0 / .22);
  --scrim: oklch(0 0 0 / .35); --scrim-solid: oklch(0 0 0 / .6);   /* every dialog's scrim; solid under Reduce transparency (base.css) */
  --font: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --ls: .03em;   /* Oct 27 (Justin, round 3): added to every Inter Tight text; explicit letter-spacings add it too */
  --fs-micro: 10px; --fs-xs: 11px; --fs-sm: 12px; --fs-md: 14px; --fs-lg: 18px; --fs-xl: 20px;
  --fs-label: var(--fs-xs); --fs-note: 13px; --fs-body: 15px;   /* note / body: onboarding roles (names are Justin's to rename); not in the desktop type step */
  --fs-input: 16px;   /* fields on touch screens: iOS zooms the page when a focused field is under 16px */
  /* radius scale (Nov 22); --r-card, --r-float and --r-btn are roles. --r-btn (Nov 25, Justin: "no pill buttons
     anywhere"): every button and control is this rounded rectangle, never fully rounded. --r-pill is left for things
     that aren't buttons (dots, the switch, badges). */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-pill: 99px;
  --r-card: var(--r-md); --r-float: var(--r-lg); --r-btn: var(--r-sm);
  /* spacing scale (Nov 22): --sp-N is N × 2px. board.css and ob.css use it wherever a gap, padding or margin was
     exactly one of these; values off the scale (3px, 5px, 18px…) stay literal until someone decides to snap them. */
  --sp-1: 2px; --sp-2: 4px; --sp-3: 6px; --sp-4: 8px; --sp-5: 10px; --sp-6: 12px; --sp-7: 14px; --sp-8: 16px; --sp-10: 20px; --sp-16: 32px;
  --t-fast: 100ms; --t: 150ms; --t-medium: 180ms; --ease: ease; --ease-out: cubic-bezier(.2, .8, .2, 1);
  /* motion (Nov 25 motion pass; motion.js mirrors these for WAAPI): enter 200, exit 150 (exits a touch faster), a page
     push 200. Entering and moving: --ease-out. Leaving: --ease-exit, which is the same ease-out since Nov 27 (Justin
     approved #72): the brief's ease-in held almost still for the first 40ms of a close, so closing felt a beat late. The
     exit stays asymmetric by being shorter. */
  --t-in: 200ms; --t-out: 150ms; --t-slide: 200ms; --ease-exit: var(--ease-out);

  /* board knobs (baked Oct 26: journey cell 22 · gap 3 · round 14% · week gap 7 · label 112 ·
     panel 95% · blur 2 · color under 100% · taper 24 · swap 150ms · slide 8 · quick fade 80ms) */
  --fcell: 22px; --fgap: 3px; --round: .14; --wg: 7px; --fe: 7px; --lw: 112px;
  --po: 95%; --pb: 2px; --ps: 1; --taper: 24px; --slide: 150ms; --sd: 8px; --fadeq: 80ms;
  /* the × on "didn't happen" cells (Oct 26 pm: slightly more visible than review's 2 / 52%) */
  --big-days: 7; --t-zoom: 200ms;   /* larger cells: fit this many days in the strip; resize time */
  --x-w: 2.4; --x-ink: 62%; --x-bg: 50%;   /* × cell tint: above the skull's 20%, below done/skip's 100% (Justin, Oct 26 pm) */
}
/* Dark --bg is #141412 in sRGB: keep index.html's dark theme-color and manifest.webmanifest's colors in step with it. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: oklch(.190 .003 var(--nh)); --card: oklch(.235 .004 var(--nh)); --soft: oklch(.270 .004 var(--nh));
  --ink: oklch(.950 .008 var(--nh)); --ink2: oklch(.770 .012 var(--nh)); --ink3: oklch(.680 .010 var(--nh));
  --line: oklch(.950 .008 var(--nh) / .09); --line2: oklch(.950 .008 var(--nh) / .20);
  --frame: oklch(.150 .003 var(--nh)); --shine: oklch(1 0 0 / .18);
  --hov: 1.15;   /* desktop hover: a tint brightens in dark (light falls back to .95) */
  --hl: oklch(.78 .11 75); --hl-soft: oklch(.78 .11 75 / .14); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: oklch(.190 .003 var(--nh)); --card: oklch(.235 .004 var(--nh)); --soft: oklch(.270 .004 var(--nh));
  --ink: oklch(.950 .008 var(--nh)); --ink2: oklch(.770 .012 var(--nh)); --ink3: oklch(.680 .010 var(--nh));
  --line: oklch(.950 .008 var(--nh) / .09); --line2: oklch(.950 .008 var(--nh) / .20);
  --frame: oklch(.150 .003 var(--nh)); --shine: oklch(1 0 0 / .18);
  --hov: 1.15;   /* desktop hover: a tint brightens in dark (light falls back to .95) */
  --hl: oklch(.78 .11 75); --hl-soft: oklch(.78 .11 75 / .14); color-scheme: dark; }

/* The challenge painting's paper (paint/, Nov 25): the canvas and the Finished card's thumbnail sit on it. */
:root { --paper: oklch(.995 .002 var(--nh)); --paper-line: oklch(.2 .004 var(--nh) / .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: oklch(.205 .004 var(--nh)); --paper-line: oklch(.95 .008 var(--nh) / .12); } }
:root[data-theme="dark"] { --paper: oklch(.205 .004 var(--nh)); --paper-line: oklch(.95 .008 var(--nh) / .12); }

/* The grid's label panel, at its right edge over cells scrolled under it (Nov 27, Justin): in light mode the panel stops
   at its edge and casts a soft shadow onto the cells (--pshade: ink at 6.4%, fading out over 10px, its top and bottom ends feathered over 4px) instead of feathering
   out in white. Dark keeps its 7px feather (--fe), whose dark fade already reads as a shadow. board.css .jpanel, .jwin::before. */
:root { --pshade: oklch(.2 .004 var(--nh) / .064); --pfe: 0px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pshade: transparent; --pfe: var(--fe); } }
:root[data-theme="dark"] { --pshade: transparent; --pfe: var(--fe); }
