/* ==========================================================================
   Curating Consistency with Coach KB: design tokens
   Source: Coach KB Brand Guidelines v1.0 (locked 2026-11-28) and Brand Rules (04).
   The one rule: components consume tokens, pages consume components,
   and nobody types a hex code anywhere else.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@500;600;700&family=Playfair+Display:ital@0;1&display=swap");

:root {
  /* ---- Brand colors (guidelines page 22). Only these six exist. ---- */
  --color-steward-navy: #0D5278;        /* headlines, nav, footers, dark surface */
  --color-clarity-white: #FFFFFF;       /* main surface */
  --color-quiet-charcoal: #302E2E;      /* body text */
  --color-confidence-pink: #E53D7B;     /* ACCENT, DETAIL ONLY. Never body or small text; never on navy. */
  --color-follow-through-pink: #C8336B; /* BUTTONS ONLY: white button text passes (5.1:1). */
  --color-riverstone-azure: #4C7F9B;    /* NOT FOR SMALL BODY TEXT (4.4:1 on white). Large text, borders, icons. */

  /* Tints: allowed only as soft backgrounds (guidelines page 22). */
  --tint-confidence-pink: color-mix(in srgb, var(--color-confidence-pink) 12%, var(--color-clarity-white));
  --tint-riverstone-azure: color-mix(in srgb, var(--color-riverstone-azure) 12%, var(--color-clarity-white));

  /* ---- Semantic aliases: these enforce the readable pairings (page 24). ---- */
  --surface-light: var(--color-clarity-white);
  --surface-dark: var(--color-steward-navy);
  --text-on-light: var(--color-quiet-charcoal);
  --heading-on-light: var(--color-steward-navy);
  --text-on-dark: var(--color-clarity-white);
  --accent-detail-only: var(--color-confidence-pink);   /* rules, underlines, icons, highlights */
  --action-fill: var(--color-follow-through-pink);      /* primary button fill */
  --action-text: var(--color-clarity-white);
  --line-subtle: var(--color-riverstone-azure);         /* field borders, dividers */
  --focus-ring: var(--color-steward-navy);
  --focus-ring-on-dark: var(--color-clarity-white);
  --error: var(--color-follow-through-pink);            /* brand error color; never generic red */
  /* FORBIDDEN pairings: pink on navy, navy on pink, pink small text on white, azure small text. */

  /* ---- Type (pages 19 and 20) ---- */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;  /* headlines, nav, buttons, labels */
  --font-text: "Inter", "Segoe UI", Roboto, Arial, sans-serif;        /* everything else */
  --font-accent: "Playfair Display", Georgia, "Times New Roman", serif; /* pull quotes only, one per section */
  /* WEIGHT CEILING: nothing heavier than 700 anywhere in the brand. */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-max: 700;

  --size-headline: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);   /* 32px mobile to 56px desktop */
  --lh-headline: 1.15;
  --ls-headline: 0;
  --size-subhead: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem); /* 24 to 28px */
  --lh-subhead: 1.3;
  --size-body: 1.125rem;            /* 18px; never below 16px */
  --size-body-min: 1rem;
  --lh-body: 1.6;
  --measure: 65ch;                  /* maximum line length */
  --size-label: 0.9375rem;          /* 15px, all caps */
  --ls-label: 0.08em;
  --size-caption: 0.875rem;         /* 14px */
  --lh-caption: 1.5;
  --size-quote: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);     /* 28 to 36px */
  --lh-quote: 1.3;

  /* ---- Space: 8px base unit (page 25) ---- */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 1rem;     /* 16 */
  --space-4: 1.5rem;   /* 24 */
  --space-5: 2rem;     /* 32 */
  --space-6: 3rem;     /* 48 */
  --space-7: 4rem;     /* 64: section gap on mobile */
  --space-8: 6rem;     /* 96: section gap on desktop */
  --content-max: 75rem; /* 1200px */
  --gutter: clamp(1rem, 4vw, 4rem); /* 16px mobile to 64px desktop */
  --control-height: 3rem; /* 48px minimum tap target */

  /* ---- Shape: the only two radii the guidelines allow ---- */
  --radius-control: 0.5rem;  /* buttons, fields, cards: the only control radius */
  --radius-photo: 0.75rem;   /* photo corners only */
  --border-thin: 1px;
  --border-thick: 2px;
  --icon-size: 2rem;

  /* ---- Motion: one quiet range ---- */
  --transition: 160ms ease-out; /* allowed range 150 to 200ms */

  /* ---- Breakpoint (reference; CSS variables cannot be used in media queries) ---- */
  --breakpoint-nav: 48rem; /* 768px: below this the nav collapses */
}

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