/* knowmadprjct.com · design tokens
   From frame B, "Calm with an ink chapter", picked by Alecz on 2026-11-25 (Phase 6).
   design.md explains every token, the rules for each surface and the contrast checks.
   Colours are the workbook's own (CLAUDE.md, Brand). Nothing here is new to the palette
   except the wheel's fourth wedge, which is the workbook's own diagram fill.
   @font-face rules live with the page CSS (Phase 7), since they hold the font paths. */

:root {
  /* ---------- palette (the workbook's tokens) ---------- */
  --c-teal: #0A5457;        /* headlines on light, primary buttons, accent blocks */
  --c-turq: #40C6CC;        /* accents on ink only: kickers, numbers, questions, rules, focus */
  --c-turqd: #1F8F95;       /* focus ring on light surfaces; never text under 24px */
  --c-sage: #5A7063;        /* small labels on light; the workbook band */
  --c-forest: #32463A;      /* fills and shadows only, never text */
  --c-grey: #D9D9D9;        /* body text on ink; image hairlines */
  --c-ink: #231F1D;         /* body text on light; the dark sections */
  --c-mist: #EEF0EE;        /* hero, closing, light panels */
  --c-muted: #5C615E;       /* secondary text on white and mist */
  --c-rule: #BCC6C1;        /* hairlines on light */
  --c-white: #FFFFFF;
  --c-wheel-4: #1A7C82;     /* the wheel's Performance wedge only (the workbook's own fill) */

  /* ---------- surfaces: background, text, secondary text, label, focus ---------- */
  /* light: white */
  --s-white-bg: var(--c-white);
  --s-white-text: var(--c-ink);
  --s-white-soft: var(--c-muted);
  --s-white-label: var(--c-sage);
  --s-white-head: var(--c-teal);
  --s-white-focus: var(--c-turqd);
  /* light: mist */
  --s-mist-bg: var(--c-mist);
  --s-mist-text: var(--c-ink);
  --s-mist-soft: var(--c-muted);
  --s-mist-label: var(--c-sage);
  --s-mist-head: var(--c-teal);
  --s-mist-focus: var(--c-turqd);
  /* dark: ink */
  --s-ink-bg: var(--c-ink);
  --s-ink-text: var(--c-grey);
  --s-ink-head: var(--c-white);
  --s-ink-label: var(--c-turq);
  --s-ink-focus: var(--c-turq);
  --s-ink-hairline: rgba(255, 255, 255, 0.16);
  /* mid: sage band */
  --s-sage-bg: var(--c-sage);
  --s-sage-text: var(--c-white);
  --s-sage-head: var(--c-white);
  --s-sage-label: var(--c-white);
  --s-sage-focus: var(--c-white);

  /* ---------- buttons ---------- */
  --btn-bg: var(--c-teal);          /* on white and mist */
  --btn-text: var(--c-white);
  --btn-bg-hover: var(--c-forest);
  --btn-alt-bg: var(--c-white);     /* on sage and ink */
  --btn-alt-text: var(--c-teal);
  --btn-alt-bg-hover: var(--c-mist);

  /* ---------- type ---------- */
  --f-head: "Poppins", "Segoe UI", system-ui, sans-serif;      /* 700 H1, 600 H2 to H3, buttons */
  --f-label: "Oswald", "Arial Narrow", sans-serif;              /* 500 (400 for journey subtitles), capitals */
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif; /* 400, 600, italic 400 */

  /* sizes: desktop value, with the phone value (under 760px) in the comment */
  --t-h1: clamp(44px, 6.6vw, 92px);    /* home hero only; 44 on phones */
  --t-h1-page: clamp(36px, 4.4vw, 56px); /* legal pages and 404 */
  --t-h2: clamp(32px, 3.4vw, 46px);
  --t-h2-about: clamp(36px, 4vw, 54px);
  --t-h3: 28px;                        /* 24 on phones */
  --t-voice: clamp(21px, 2.1vw, 29px); /* the five inner-voice lines */
  --t-quote: clamp(26px, 3vw, 42px);
  --t-feature: 21px;                   /* the protocol line; 19 on phones */
  --t-question: 20px;                  /* journey questions */
  --t-lead: 22px;                      /* 19 on phones */
  --t-body-l: 20px;                    /* long reading: bio, workbook, after-the-list; 18 on phones */
  --t-body: 19px;                      /* 18 on phones */
  --t-button: 18px;
  --t-button-s: 15px;                  /* header button */
  --t-small: 16px;                     /* under-button lines, small notes */
  --t-fine: 15px;                      /* credit line, small print */
  --t-label: 14px;                     /* Oswald kickers and numbers */
  --t-wheel: 12px;                     /* wheel labels; 10 on phones */

  --lh-tight: 1.03;   /* H1 */
  --lh-head: 1.12;    /* H2 */
  --lh-h3: 1.2;
  --lh-display: 1.35; /* voice lines, quote 1.3 */
  --lh-body: 1.55;
  --lh-lead: 1.5;

  --ls-h1: -0.02em;
  --ls-h2: -0.01em;
  --ls-label: 0.24em; /* kickers, numbers, quote credit */
  --ls-sub: 0.12em;   /* journey subtitles */
  --ls-wheel: 0.16em;

  --measure: 36em;    /* longest paragraph; most sit at 28em to 32em */

  /* ---------- space ---------- */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 40px;
  --sp-7: 48px;
  --sp-8: 56px;
  --sp-9: 64px;
  --sp-10: 80px;
  --sp-11: 96px;
  --section: 120px;   /* top and bottom of a section; 72 on phones */
  --wrap: 1280px;     /* outer width, gutters included */
  --gutter: 48px;     /* 20 on phones */
  --col-text: 720px;  /* single reading column: bio, legal pages */

  /* ---------- corners ---------- */
  --r-pill: 999px;    /* every button, the Copy button */
  --r-card: 12px;     /* white cards on sage, the mist panel; 8 on phones */
  --r-image: 4px;     /* a page image inside a card; focus outline */

  /* ---------- shadows (forest-based, fills and shadows only) ---------- */
  --shadow-card: 0 14px 32px rgba(50, 70, 58, 0.30);

  /* ---------- focus ---------- */
  --focus-width: 3px;
  --focus-offset: 3px;

  /* ---------- tap targets ---------- */
  --tap: 44px;        /* minimum; buttons are 48 */
}

/* Breakpoints (custom properties can't be used inside media queries):
   1000px  the method and the workbook go to one column; the wheel sits above the journeys
   760px   phones: one column throughout, header links hidden (the button stays), full-width buttons,
           centred sections turn left-aligned */
