/* Cloud Butler design tokens: the only colours, type, spacing, radii and motion the site may use.
   Rules (website-polish/REVIEWS.md G1 to G12): scale contrast, no card grids, aqua the only accent,
   dark = neutral charcoal (#15181D, as the apps) with one navy glow at the top of the page only, stillness (one 600 ms fade), pills and links only.
   Weights that exist: CogNoodle Serif 400 and its italic (the original files, byte-identical to HyveMind's); Ta-ala Sans
   400 and 500. Nothing else: no derived or synthesised weights (regrade-ed03ccc T3, 2026-11-21). */

:root {
  color-scheme: light dark;

  /* Colour, light */
  --bg: #FBFAF7;            /* warm paper */
  --bg-2: #F3F0E9;          /* a quiet band, never a box */
  --well: #ECE8DF;
  --deep: #E4E0D6;
  --ink: #1E222A;           /* charcoal text */
  --ink-2: #4A5463;         /* secondary text, 7.4:1 on --bg */
  --label-ink: #4A505B;   /* all-caps labels, light (adviser final type ruling 12:06Z) */
  --ink-3: #6B7482;         /* captions and labels, 4.6:1 on --bg */
  --hair: rgba(30, 34, 42, .12);
  --aqua: #1A8CC7;          /* the one accent: marks, focus, a single word */
  --link: #0B5A85;          /* text links, Amalfi text step */
  --pill: #1E222A;          /* primary pill fill */
  --pill-ink: #FBFAF7;
  --glow: none;  /* light: the warm ground only, so the hero fades into #FBFAF7 (adviser pass 3, item 4); dark has the one navy glow */
  --grain-opacity: 0;

  /* Type: families (fallbacks are metric-matched with size-adjust in cb.css) */
  --serif: "CogNoodle Serif", "CogNoodle Serif Fallback", Georgia, serif;
  --sans: "Ta-ala Sans", "Ta-ala Sans Fallback", ui-sans-serif, system-ui, sans-serif;
  --label: var(--sans);  /* all-caps labels: Ta-ala Sans 500, 12 px, .12em, line 1.4. Never a serif in caps (Ramon 12:05Z: "YOU DON'T USE A SERIF FOR ALL CAPS") */
  --w-head: 400;  /* the original CogNoodle Serif file; one switch if a lighter real cut is ever approved */
  --w-h3: 400;

  /* Type: one scale (ratio 1.333, fluid between 390 and 1440 px) */
  --t-label: 12px;
  --t-small: 14px;
  --t-body: 17px;
  --t-lead: clamp(19px, 1.1vw + 14px, 22px);
  --t-h3: clamp(22px, .6vw + 19.5px, 28px);       /* "less heavy" comes from size, not outlines (adviser 12:05Z) */
  --t-h2: clamp(32px, 1.6vw + 25px, 48px);
  --t-display: clamp(44px, 2.6vw + 35px, 72px);     /* largest serif on the site: 72 px at most */
  --lh-tight: 1.16;   /* display serif (h1 and the big h2s): HyveMind's h1 value; his words: "almost no space in between lines" (regrade T1) */
  --lh-head: 1.22;  /* h2 and smaller serif: open, as HyveMind (regrade T1) */
  --lh-body: 1.6;
  --track-head: 0;  /* serif tracking: none, as HyveMind; negative tracking made letters collide (regrade T2) */
  --track-label: .12em;
  --w-label: 500;
  --lh-label: 1.4;
  --track-text: -0.01em;                             /* running text, all widths (adviser pass 3, item 5) */
  --measure: 66ch;                                   /* line length 60 to 72 characters */

  /* Space: 4 px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --section: clamp(96px, 9vw + 60px, 176px);         /* one rhythm between sections */
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;

  /* Shape */
  --r-pill: 999px;
  --r-panel: 22px;
  --r-media: 18px;

  /* Motion (G7) */
  --fade: 600ms cubic-bezier(.2, .7, .2, 1);
  --quick: 160ms ease-out;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Same ground as the apps (PR 285): neutral charcoal; blue is a hint, never the base. */
    --bg: #15181D;          /* page */
    --bg-2: #1E222A;        /* cards and quiet bands */
    --well: #262B34;        /* wells, inputs, media frames */
    --deep: #0E1014;        /* deepest */
    --ink: #F1EEE6;         /* ivory */
    --ink-2: #BEC4CD;
    --ink-3: #8D96A3;
    --label-ink: #B9BEC8;
    --hair: rgba(241, 238, 230, .12);
    --aqua: #34AEE4;
    --link: #5EC2EE;
    --pill: #F1EEE6;
    --pill-ink: #15181D;
    --glow: radial-gradient(ellipse 90% 100% at 64% 0%, rgba(28, 66, 107, .7) 0%, rgba(28, 66, 107, .22) 48%, transparent 100%);  /* the one navy glow, top of page only */
    --grain-opacity: .08;
  }
}
:root[data-theme="dark"] {
  --bg: #15181D; --bg-2: #1E222A; --well: #262B34; --deep: #0E1014; --ink: #F1EEE6; --ink-2: #BEC4CD; --ink-3: #8D96A3; --label-ink: #B9BEC8;
  --hair: rgba(241, 238, 230, .12); --aqua: #34AEE4; --link: #5EC2EE; --pill: #F1EEE6; --pill-ink: #15181D;
  --glow: radial-gradient(ellipse 90% 100% at 64% 0%, rgba(28, 66, 107, .7) 0%, rgba(28, 66, 107, .22) 48%, transparent 100%);
  --grain-opacity: .08;
}



@media (prefers-reduced-motion: reduce) {
  :root { --fade: 0ms linear; --quick: 0ms linear; }
}
