/* GoBolt launch kit v2. tokens. Light theme only.
   Values mirror packages/meridian/src/tokens.css (Meridian) and the
   onboarding welcome. Edit here, then run sync.mjs into each deliverable.
   v3: display type is Bricolage Grotesque, body is Figtree (both OFL). */

/* Bricolage Grotesque, variable (weight 200 to 800, optical size 12 to 96), latin + latin-ext. Display only. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./fonts/bricolage-grotesque-latin.woff2") format("woff2");
  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;
}

/* Figtree, variable (weight 300 to 900), latin + latin-ext. Everything that is not display. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("./fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("./fonts/figtree-latin.woff2") format("woff2");
  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;
}

/* Familjen Grotesk: the product admin's own face (Meridian). Named only by pictures of the admin, so a page
   that shows none never downloads it. */
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/familjen-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/familjen-grotesk-latin.woff2") format("woff2");
  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;
}

:root {
  /* colour */
  --k-paper: #f6f5f1;          /* stone-50, the canvas */
  --k-surface: #ffffff;
  --k-well: #fbfaf8;
  --k-sunken: #efede8;
  --k-ink: #1e1d1a;            /* stone-900 */
  --k-ink-2: #57544d;          /* stone-600, secondary */
  --k-ink-3: #6e6960;          /* quiet. Darker than stone-500 (#8f8a80, 3.2:1) so small text passes WCAG AA: 5.0:1 on paper, 4.7:1 on sunken */
  --k-line: #e5e2db;           /* stone-200, hairline */
  --k-line-soft: #eceae4;
  --k-green: #1c6b52;          /* the one accent */
  --k-green-bright: #4caf87;
  --k-green-tint: #eaf1ed;
  --k-yellow: #f4e020;         /* at most once per screen */

  /* atmosphere */
  --k-violet: #b6a0e8;
  --k-coral: #e4a192;
  --k-honey: #ecd16e;
  --k-sage: #c0d58d;
  --k-pearl: #fffbe4;

  /* type. Display is Bricolage Grotesque, at Harvey's scale; everything else is Figtree.
     --k-serif keeps its name from v2, when the display face was a serif. */
  --k-font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --k-serif: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --k-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; /* inside product mocks, as the real widget */
  --k-display: clamp(2.5rem, 1.75rem + 3.2vw, 4rem);         /* 40 → 64, reaches 64 at 1125px */
  --k-headline: clamp(2.25rem, 1.6rem + 2.75vw, 3.5rem);      /* 36 → 56 */
  --k-title: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);      /* 22 → 28 */
  --k-body: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);     /* 18 → 20 */
  --k-small: 0.9375rem;                                      /* 15 */
  --k-lead-display: 1.02;
  --k-lead-headline: 1.04;
  --k-lead-body: 1.55;
  --k-track-display: -0.028em;
  --k-track-headline: -0.025em;
  --k-weight: 500;            /* .title and the grotesque headings inside mocks */
  --k-weight-display: 600;

  /* space (4 base) */
  --k-1: 4px; --k-2: 8px; --k-3: 12px; --k-4: 16px; --k-5: 24px;
  --k-6: 32px; --k-7: 48px; --k-8: 64px; --k-9: 96px; --k-10: 128px;
  --k-gutter: clamp(20px, 5vw, 64px);
  --k-section: clamp(72px, 12vw, 168px);
  --k-measure: 34rem;
  --k-page: 1200px;

  /* radius */
  --k-r-control: 8px; --k-r-card: 12px; --k-r-sheet: 16px; --k-r-stage: 28px; --k-r-pill: 999px;

  /* shadow: soft, two layers */
  --k-shadow-sheet: 0 2px 6px rgba(30, 29, 26, 0.05), 0 18px 50px rgba(30, 29, 26, 0.10);
  --k-shadow-quiet: 0 1px 2px rgba(30, 29, 26, 0.04), 0 10px 28px rgba(30, 29, 26, 0.06);
  --k-shadow-button: 0 4px 12px rgba(30, 29, 26, 0.08);

  /* motion */
  --k-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --k-ease-drift: linear;   /* v2: the atmosphere never decelerates to a stop (BRIEF-V2 decision 7) */
  --k-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);   /* overshoots once and settles: the logo's slash, a magnetic button */
  --k-fast: 200ms;
  --k-move: 650ms;
  --k-slow: 900ms;
  --k-line-gap: 220ms;   /* delay between the two lines */
  --k-rise: 14px;
}

/* Hindi and Tamil: Bricolage Grotesque has no Devanagari or Tamil, so the display face names the Indic faces itself.
   Left to each engine's own fallback, Safari and Chrome set Hindi in different faces and break the same headline
   differently. Latin inside a Hindi or Tamil line (Bolt, WhatsApp) stays Bricolage Grotesque. */
:root:lang(hi) { --k-serif: "Bricolage Grotesque", "Kohinoor Devanagari", "Noto Sans Devanagari", system-ui, sans-serif; }
:root:lang(ta) { --k-serif: "Bricolage Grotesque", "Tamil Sangam MN", "Noto Sans Tamil", system-ui, sans-serif; }
