/* Halftime Buddy brand tokens v2 CORE SET — approved by Kyle, 2026-10-26. Full v1 draft backed up in tokens.v1-full.css
   Labels: [FOUND-site] halftimebuddy.app/styles.css · [FOUND-app] app code / ASC screenshots · [CD] direction.md · [PROPOSED] new.
   Every text pair noted below was computed against WCAG 2.x (AA = 4.5:1 normal text, 3:1 large text/UI). Mobile-first. */

/* Fonts — all free, SIL OFL 1.1 (Google Fonts). Self-host woff2 as the site already does. */
/* Self-hosted Latin-subset variable woff2 (see README "Fonts"). Fraunces is pinned SOFT=100/WONK=0, keeps opsz + wght 400–700. Nunito wght 400–800. */
@font-face{font-family:"Fraunces";src:url("../fonts/Fraunces-VF-latin.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap;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}
@font-face{font-family:"Nunito";src:url("../fonts/Nunito-VF-latin.woff2") format("woff2");font-weight:400 800;font-style:normal;font-display:swap;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}
/* Metric-adjusted fallbacks (approx.) to reduce layout shift during swap */
@font-face{font-family:"Fraunces Fallback";src:local("Georgia"),local("Times New Roman");size-adjust:104%;ascent-override:94%;descent-override:24.5%;line-gap-override:0%}
@font-face{font-family:"Nunito Fallback";src:local("Arial"),local("Helvetica"),local("Liberation Sans");size-adjust:101%;ascent-override:100%;descent-override:35%;line-gap-override:0%}

:root{
  /* ===== Brand core set (approved by Kyle 2026-10-26). Use ONLY these four. ===== */
  --hb-ink:#1E2440;    /* Ink navy: text, dark sections. 14.31:1 on cream, 15.20:1 on white */
  --hb-teal:#2F7D72;   /* Calm teal: buttons, links. White on it 4.89:1; on cream 4.60:1 (text >=16px) */
  --hb-peach:#F4B58E;  /* Halftime peach: accents. Always ink text on it (8.57:1). NEVER peach text on cream (1.67 FAIL) */
  --hb-cream:#FFF7EC;  /* Cream: backgrounds */

  /* ===== Utility (not brand colors) ===== */
  --hb-white:#FFFFFF;  /* button text, cards */

  /* ===== Technical exception (NOT a brand color) =====
     Matched to the real app screenshot behind the hero countdown so only one timer shows.
     Do not swap for --hb-ink or the old timer shows through. */
  --cd-patch:#1E3A50;

  /* Semantic */
  --hb-bg:var(--hb-cream); --hb-text:var(--hb-ink); --hb-text-muted:var(--hb-ink); /* lower emphasis via size/weight, not a new gray */
  --hb-link:var(--hb-teal); --hb-btn-bg:var(--hb-teal); --hb-btn-text:var(--hb-white);
  --hb-focus:var(--hb-ink); /* 3px outline + 3px offset. Navy vs cream 14.31:1, vs white 15.20:1 (>=3:1) */

  /* Type: two fonts only, both SIL OFL 1.1 */
  --hb-font-display:"Fraunces","Fraunces Fallback",Georgia,"Times New Roman",serif; /* headlines: SOFT 100, wght 600 */
  --hb-font-body:"Nunito","Nunito Fallback",ui-rounded,system-ui,-apple-system,"Segoe UI",sans-serif; /* everything else */

  /* Type scale mobile-first, fluid to desktop (base 17px) */
  --hb-text-xs:0.875rem;                          /* 14 legal/disclaimer min */
  --hb-text-sm:1rem;                              /* 16 */
  --hb-text-base:1.0625rem;                       /* 17 body, lh 1.6 */
  --hb-text-lg:clamp(1.25rem,1.1rem + .6vw,1.5rem);   /* 20→24 h4/lead */
  --hb-text-xl:clamp(1.5rem,1.3rem + 1vw,2rem);       /* 24→32 h3 */
  --hb-text-2xl:clamp(2rem,1.6rem + 2vw,3rem);        /* 32→48 h2 */
  --hb-text-hero:clamp(2.5rem,1.8rem + 3.5vw,4.5rem); /* 40→72 h1 */
  --hb-leading-tight:1.1; --hb-leading-body:1.6;
  --hb-tracking-display:-0.015em;

  /* Shape & motion */
  --hb-radius:22px; --hb-radius-lg:32px;  /* [FOUND-site] */
  --hb-tap:44px;                          /* [CD] min tap target */
  --hb-ease:cubic-bezier(.4,0,.2,1); --hb-dur-slow:600ms; /* slow fades, gentle bob */
}
@media (prefers-reduced-motion:reduce){:root{--hb-dur-slow:0ms}}

/* Buttons & form states (utility) — fixes live desktop "Get launch updates" CTA (old peach-on-cream combo failed at 1.57:1) */
:root{
  --hb-btn-primary-bg:#2F7D72;        --hb-btn-primary-text:#FFFFFF;   /* 4.89:1 */
  --hb-btn-primary-bg-hover:#1E2440;  /* hover to navy, white 15.20:1 */
  --hb-btn-secondary-bg:#FFF7EC;      --hb-btn-secondary-text:#1E2440; /* 14.31:1 */
  --hb-btn-secondary-border:#1E2440;  /* 2px, 14.31:1 vs cream */
  --hb-btn-secondary-bg-hover:#FFFFFF;/* ink 15.20:1 */
  --hb-focus-ring:#1E2440;            /* 3px outline, 3px offset on cream: 14.31:1 (>=3:1). Always use the offset */
  --hb-focus-ring-on-dark:#FFF7EC;    /* cream ring on navy sections: 14.31:1. Navy ring there is 1:1 and disappears */
  --hb-btn-disabled-bg:#FFF7EC;       --hb-btn-disabled-text:#1E2440;  /* 2px dashed ink border + aria-disabled, cursor:not-allowed */
  /* Peach CTA allowed only with ink text: #1E2440 on #F4B58E = 8.57:1 */

  /* Calm form status colors: utility, not brand colors (no alarm red) */
  --hb-success-text:#2F7D72; --hb-success-bg:color-mix(in srgb,#2F7D72 12%,#FFF7EC); --hb-success-border:#2F7D72; /* 6.56 / border 3.92 */
  --hb-error-text:#8A3B1F;   --hb-error-bg:color-mix(in srgb,#8A3B1F 12%,#FFF7EC);   --hb-error-border:#8A3B1F;   /* warm, 6.40 / border 4.01 */
  --hb-info-text:#1E2440;    --hb-info-bg:color-mix(in srgb,#2F7D72 12%,#FFF7EC);    --hb-info-border:#2F7D72;    /* 7.17 / border 4.21 */
  /* Always pair state color with an icon + words ("You're on the list", "That email doesn't look right — try again"); never color alone. */
}
