/* ============================================================================
   VENDORED — READ-ONLY MIRROR of connector/public/tokens.css. DO NOT HAND-EDIT.
   This is the connector's design system copied verbatim so the marketing site
   reads as one visual language. If the connector's tokens change, RE-COPY this
   file (re-run the copy in MARKETING-SCAFFOLD-PLAN.md §2) rather than editing
   here — otherwise the two surfaces silently drift. site.css is layout-only and
   consumes these variables; all colour/type/space/radius/shadow live below.
   ============================================================================ */
/* Shared design system for every connector surface (§12.14). The live panel (/c), the admin create
   page (/) and the login page (/login) all speak ONE visual language here — warm ink-on-paper with a
   single cobalt accent — so the product reads as continuous from link-minting to conducting.

   Self-hosted, same-origin type only: the Latin faces are woff2 served from /fonts (font-src 'self',
   §12.10) — no third-party origin, no CDN, the dependency-free posture intact. Japanese keeps the
   system CJK gothic stack (a full JP webfont is megabytes; system faces are correct and free, §12.14).
   No inline styles anywhere; dynamic values ride CSS custom properties set via CSSOM (§12.10).

   Layering: this sheet is linked BEFORE each page's own sheet, so the cascade order is
   tokens → page. Pages consume the variables; only the panel adds the few it sets from JS
   (--col / --row / --level / --focus-pad). */

/* ── Type — self-hosted variable Latin faces (woff2; Latin + Latin-ext subsets) ─────────────────
   Fraunces (display serif, optical) for headings; Hanken Grotesk (humanist grotesque) for UI + Latin
   reading text — it pairs cleanly BESIDE Japanese gothic, where a serif would clash with the
   alternating-language blocks. Both are variable (one face, a weight range), so weight is a free axis. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/fraunces-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;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/fraunces-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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/hanken-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;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/hanken-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;
}

:root {
  /* font families */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-ui: var(--font-text); /* back-compat alias for the panel's existing references */
  --font-cjk: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Meiryo", var(--font-text);
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
  /* Hanken Grotesk (self-hosted, §12.10) is the humanist-grotesque body face — the same role a CDN
     "Inter" would play, but same-origin so the dependency-free CSP posture holds; Fraunces is the
     display serif. The pairing reads cool, calm and editorial. */

  /* type scale — 1.20 modular ratio on a 16px base; three reading steps (primary/secondary/label)
     plus display sizes. Display steps go fluid with clamp() so headings breathe on a wide screen. */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.4rem;
  --text-2xl: clamp(1.5rem, 1.25rem + 1.2vw, 1.85rem);
  --text-3xl: clamp(1.75rem, 1.35rem + 2vw, 2.4rem);
  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.55;
  --leading-cjk: 1.75; /* generous so kana/kanji don't crowd (§12.14) */
  --tracking-tight: -0.015em;
  --tracking-label: 0.085em;

  /* spacing — 4px base, geometric-ish scale */
  --space-1: 0.25rem; /* 4 */
  --space-2: 0.5rem; /* 8 */
  --space-3: 0.75rem; /* 12 */
  --space-4: 1rem; /* 16 */
  --space-5: 1.5rem; /* 24 */
  --space-6: 2rem; /* 32 */
  --space-7: 3rem; /* 48 */
  --space-8: 4rem; /* 64 */

  /* surfaces — cool, clean, ink-on-air. White cards float on a faint blue-grey wash; the deep navy
     "ink" carries the brand (header band, primary actions) and a single teal is the accent. */
  --bg: #f4f7fa; /* cool off-white page wash */
  --bg-tint: #e9eff5; /* faint blue-grey behind the scroll column */
  --surface: #ffffff;
  --surface-2: #eef2f6; /* quiet fill — chips, inputs, pending blocks */
  --line: #d9e1e9;
  --line-soft: #e6ecf2;
  --text-primary: #14202b; /* deep navy-charcoal */
  --text-secondary: #495764; /* the "original" text — smaller, dimmed (§12.14) */
  --text-label: #6b7885;

  /* brand ink — deep navy. The header/footer bands and the primary action wear this. */
  --ink: #0b3c5d;
  --ink-deep: #08304a;
  --on-ink: #ffffff;
  /* heading ink — dark navy on light surfaces; flips to a light ink in dark mode so headings
     keep their contrast (a *band* colour like --ink-deep stays dark and would vanish on dark). */
  --ink-heading: #08304a;

  /* the five state roles the §12.9 badge table names (the role, not the hex, is the contract).
     Teal is the accent + "ready/on-air"; a controlled coral red is reserved for the one loud thing,
     the "🔴 Mic live" safety banner (--live). */
  --neutral: #66737f;
  --ready: #1f8a73; /* engine ready / transcribing — teal-green */
  --accent: #2c8c86; /* accent + active controls — accessible teal */
  --teal: #3aafa9; /* brand teal (decorative — borders, accents on dark) */
  --teal-light: #6fd3cd;
  --accent-soft: #e3f2f0;
  --warn: #b5740a;
  --error: #d14343;
  --live: #e5484d; /* the single loud element — the mic-live safety cue (§12.9) */

  /* elevation + focus ring — soft, navy-tinted (matches the cool palette, not a neutral grey drop) */
  --shadow-sm: 0 1px 2px rgba(11, 60, 93, 0.05), 0 2px 6px rgba(11, 60, 93, 0.06);
  --shadow-md: 0 2px 4px rgba(11, 60, 93, 0.06), 0 10px 22px -8px rgba(11, 60, 93, 0.16);
  --shadow-hero: 0 2px 8px rgba(11, 60, 93, 0.08), 0 20px 44px -18px rgba(11, 60, 93, 0.26);
  /* raised button — inner top highlight + a soft navy lift (the supportfinder "Search" button feel) */
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(11, 60, 93, 0.2), 0 8px 18px -6px rgba(11, 60, 93, 0.34);
  --ring: 0 0 0 3px color-mix(in srgb, var(--teal) 38%, transparent);

  /* radii — generously rounded, supportfinder-soft. Pills for actions. */
  --radius-lg: 26px;
  --radius: 20px;
  --radius-sm: 13px;
  --radius-pill: 999px;

  /* motion — one premium, settled easing shared across surfaces */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* v1 ships one light theme ("boring," §1); honour prefers-color-scheme for dark — no theme switcher.
   Only the surface + role tokens flip; the type/space/radius/motion scales are theme-agnostic. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a141d; /* deep navy night */
    --bg-tint: #0d1925;
    --surface: #122231;
    --surface-2: #1a2d3e;
    --line: #284055;
    --line-soft: #1f3346;
    --text-primary: #eaf1f7;
    --text-secondary: #a7b6c4;
    --text-label: #758999;
    --ink: #103a57; /* the band sits a touch above the page in dark */
    --ink-deep: #0c2f48;
    --on-ink: #eaf1f7;
    --ink-heading: #eaf1f7; /* headings flip to light ink on the dark page/surfaces */
    --neutral: #93a3b3;
    --ready: #4cc7a8;
    --accent: #58c6bf; /* teal lifts to stay legible on navy */
    --teal: #5fd0c9;
    --teal-light: #8fe2dc;
    --accent-soft: #123a3a;
    --warn: #e0a93f;
    --error: #ff7a7a;
    --live: #ff5c61;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.45), 0 10px 28px -10px rgba(0, 0, 0, 0.6);
    --shadow-hero: 0 12px 34px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.5);
    --ring: 0 0 0 3px color-mix(in srgb, var(--teal) 46%, transparent);
  }
}
