/* ============================================================
   StudySetGo design tokens (v2). See design/redesign/DESIGN-SYSTEM.md
   Load before base.css. v2.2: Montserrat only (weights 500, 600, 700 are the ones in /fonts).
   ============================================================ */

@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/Montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/Montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/Montserrat-700.woff2") format("woff2"); }

:root {
  /* Ink and paper */
  --ink:        #111D2F;   /* headings, dark sections */
  --ink-2:      #3B4859;   /* body on light (9.3:1) */
  --ink-3:      #5B6878;   /* captions, meta (5.7:1) */
  --paper:      #FFFFFF;
  --paper-2:    #F1F5F5;   /* alternate sections */
  --rule:       #D2DCDF;
  --rule-dark:  #2A3A50;   /* rules on navy */
  --on-ink:     #E8EEF2;   /* text on navy */
  --on-ink-2:   #A9B7C4;   /* secondary text on navy (8.3:1) */

  /* Industry channel */
  --teal:       #117C8C;   /* primary action, links (4.9:1) */
  --teal-deep:  #0B5E6A;
  --cyan:       #10AED2;   /* focus ring; graphics and text on navy only */
  --green:      #3AD59F;   /* "with us" marks; on navy only */
  --brand-blue: #009FE5;
  --brand-green:#3AD59F;
  --progress:   linear-gradient(90deg, var(--brand-blue), var(--brand-green)); /* StudySetGo progress only */

  --fade:       linear-gradient(68deg, #009FE5, #3AD59F);   /* the brand fade: heroes, closing band, accents */
  --fade-ink:   linear-gradient(68deg, #0078BA, #17996B);   /* the fade, deepened for large text on white */

  /* Participant channel (the one accent added in v2) */
  --amber:      #F59E0B;   /* fills; navy text on it 7.9:1 */
  --amber-ink:  #8A4B00;   /* amber text on light (6.8:1) */
  --amber-tint: #FFF5E3;
  --amber-rule: #E8D3AE;

  /* Type: Montserrat. It sets wide, so the scale is a step smaller than v2 */
  --font:       "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-cap:      0.8125rem;
  --t-small:    0.9375rem;
  --t-body:     1.0625rem;
  --t-lead:     1.1875rem;
  --t-h4:       1.3125rem;
  --t-h3:       clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  --t-h2:       clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-h1:       clamp(2rem, 1.2rem + 3vw, 3.125rem);       /* inner-page hero, 32 to 50 */
  --t-display:  clamp(2.25rem, 1.1rem + 4.4vw, 3.75rem);   /* homepage hero, 36 to 60 */

  /* Space: 4px base */
  --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;
  --section: clamp(40px, 5vw, 68px);   /* tightened again for launch (was up to 96, and 128 before that) */

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 12px;
  --nav-h: 78px;

  /* Aliases read by self-styled scripts (popup.js, consent.js) */
  --font-heading: var(--font);
  --font-body:    var(--font);
  --font-accent:  var(--font);
  --color-teal:   var(--teal);
  --color-navy:   var(--ink);
}
