/* ==================================================================================================
   navrick — site design tokens
   ==================================================================================================
   PORTED FROM THE PRODUCT, DELIBERATELY. Every value below is copied from
   `src/shared/styles/globals.css` so the site and the app cannot drift apart. If you change a colour
   here and not there, the site stops looking like the thing it is selling.

   The governing rule, quoted from globals.css:54–55:
     "Primary actions are NEAR-BLACK, not a brand hue — colour in this app means state
      (recording/ok/warn/err), never decoration."

   So: there is no brand hue. The accent is ink. Saturated colour appears on this site in exactly one
   place — inside faithful recreations of product UI, where it carries state (the orb's four modes,
   the recording red). Nowhere else. No gradients-as-decoration, no accent fills, no green.

   Self-hosted fonts, zero third-party requests. The product's CSP is `default-src 'self'` and the
   site holds the same line.
   ================================================================================================== */

/* --- display face: Bricolage Grotesque, variable 400–700 -------------------------------------------
   Copied from src/shared/styles/fonts/. Only the latin subset is preloaded; latin-ext is declared but
   is fetched lazily and only if a glyph in its range actually renders in this face. Today nothing
   does — every heading is English, and "İstanbul" in the footer is set in the body face, not this one.
   It is kept declared so a Turkish heading later cannot silently fall back. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/bricolage-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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/bricolage-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 {
  color-scheme: light;

  /* --- layer model (globals.css:42–47) ----------------------------------------------------------- */
  --bg: #f5f4f0;              /* layer 0 · paper — the page */
  --sheet: #fcfcfb;           /* layer 1 · the content pane */
  --surface: #ffffff;         /* layer 2 · cards, panels */
  --surface-raised: #ffffff;  /* layer 3 · inputs, keycaps, code — border-defined, not fill-defined */
  --border: #eceae4;
  --border-strong: #dcd9d1;   /* reserved for frames around real screenshots */

  /* --- ink (globals.css:50–52) ------------------------------------------------------------------- */
  --ink: #1f1e1a;
  --ink-muted: #75726a;
  --on-ink: #fcfcfb;

  /* --- accent: near-black, not a hue (globals.css:56–59) ----------------------------------------- */
  --accent: #1f1e1a;
  --accent-hover: #33322d;
  --accent-soft-bg: rgba(31, 30, 26, 0.06);
  --accent-foreground: #fcfcfb;

  /* --- the ink plate ---------------------------------------------------------------------------- */
  /* Site-only. The product has no full-bleed dark surface except the island's glass; this is the
     marketing equivalent, pitched a touch warmer than pure black so it reads as ink, not as #000. */
  --plate: #141310;
  --plate-2: #1c1c1a;         /* the island/glass material — src/shared/ui/GlassCard.tsx:14 */
  --on-plate: #f5f4f0;
  --on-plate-muted: rgba(245, 244, 240, 0.58);
  --plate-border: rgba(255, 255, 255, 0.1);
  --plate-rule: rgba(255, 255, 255, 0.14);

  /* --- semantic state (globals.css:62–71) -------------------------------------------------------- */
  /* Used ONLY inside product recreations. Never as decoration. */
  --rec: #c2483d;
  --ok: #4f7a52;
  --warn: #b07a2e;
  --err: #b0453b;
  --info: #2f6fed;
  --rec-tint: rgba(194, 72, 61, 0.16);
  --ok-tint: rgba(79, 122, 82, 0.16);
  --warn-tint: rgba(176, 122, 46, 0.16);

  /* speaker duo — Me is ink, Them is amber (globals.css:74–79) */
  --me-bg: rgba(31, 30, 26, 0.06);
  --me-text: #1f1e1a;
  --them-bg: rgba(176, 122, 46, 0.14);
  --them-text: #6e5320;
  --them-accent: #b07a2e;

  /* --- the orb's four modes (src/island/Island.tsx:21–26) ---------------------------------------- */
  --mode-idle: #8b8a85;
  --mode-dictation: #2f6fed;
  --mode-question: #b45fd6;
  --mode-agent: #2fa46a;

  /* --- spacing (globals.css:82–88) --------------------------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  /* site-only, for section rhythm at page scale */
  --space-8: 72px;
  --space-9: 112px;

  /* --- radii (globals.css:90–94) ----------------------------------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* --- elevation (globals.css:97–99) ------------------------------------------------------------- */
  /* never a shadow without a border */
  --shadow-sm: 0 1px 2px rgba(31, 30, 26, 0.05), 0 1px 3px rgba(31, 30, 26, 0.03);
  --shadow-md: 0 4px 12px rgba(31, 30, 26, 0.08), 0 2px 4px rgba(31, 30, 26, 0.05);
  --shadow-lg: 0 12px 32px rgba(31, 30, 26, 0.16);

  /* --- type (globals.css:102–114) ---------------------------------------------------------------- */
  --font-ui: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  /* Verbatim record material — timestamps, keycaps, evidence quotes. Zero bundle bytes: Cascadia
     ships with Windows 11, SF Mono/Menlo cover macOS. */
  --font-verbatim: "Cascadia Mono", Consolas, ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Bricolage Grotesque", var(--font-ui);

  /* the product's px scale — kept for anything rendering product UI */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;

  /* site-only fluid display scale, layered on top */
  --display-1: clamp(44px, 6vw, 76px);
  --display-2: clamp(30px, 3.6vw, 46px);
  --display-3: clamp(22px, 2.2vw, 30px);
  --body-lg: clamp(17px, 1.3vw, 19px);
  --body: 16px;

  /* --- motion (globals.css:117–120) -------------------------------------------------------------- */
  --dur-fast: 0.12s;
  --dur: 0.18s;
  --dur-slow: 0.32s;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  /* bezier approximations of the product's two springs — we do not simulate springs on the web.
     surface entrance {stiffness:380,damping:30}; orb body {stiffness:260,damping:24} */
  --ease-surface: cubic-bezier(0.2, 0.9, 0.25, 1.02);
  --ease-orb: cubic-bezier(0.25, 0.85, 0.3, 1.05);

  /* --- layout ----------------------------------------------------------------------------------- */
  --measure: 1160px;   /* content max-width */
  --measure-text: 58ch; /* reading measure for body copy */
  --gutter: clamp(20px, 4vw, 40px);
}

/* Reduced-motion backstop, ported verbatim from globals.css:195–203. The site also disables each
   motion explicitly in site.css; this is belt and braces. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
