/* ─────────────────────────────────────────────────────────────
   ZumiLabs Shared Design Tokens & Typography System
   ───────────────────────────────────────────────────────────── */

/* Self-Hosted Recursive Variable Font */
@font-face {
  font-family: 'Recursive';
  font-style: oblique 0deg 15deg;
  font-weight: 300 1000;
  font-display: swap;
  src: url('/assets/fonts/recursive-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: 'Recursive';
  font-style: oblique 0deg 15deg;
  font-weight: 300 1000;
  font-display: swap;
  src: url('/assets/fonts/recursive-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 Palette — Standardised from Brand Asset System */
  --zumilabs: #3894FF;
  --studio: #FF845E;
  --omnicapt: #A8E85F;
  --omnibrief: #9B7CFF;
  --zumifiles: #65D8F6;
  --cabe: #E9C95C;
  --cloudsend: #648CFF;
  --audio: #E75BD1;
  --content: #2CCFB6;
  --articles: #F4A522;
  --art: #F26D9D;
  --games: #43C86B;


  /* Theme Tokens — Dark Mode (Default) */
  --bg: #08090c;
  --bg-soft: #0f1117;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --text: #f5f7fb;
  --muted: #9ca3b4;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);

  /* Approved Graphite Colors for Dark Logos / Outlines */
  --logo-outline: #f5f3fb;
  --logo-subtle: #b9b7c1;

  /* Geometry & Layout */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --page-max: 1140px;
  --page: min(var(--page-max), calc(100vw - 160px));

  /* Font Family Definitions */
  --font-recursive: "Recursive", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-recursive-mono: "Recursive", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --display: var(--font-recursive);
  --body-font: var(--font-recursive);
}

@media (max-width: 1200px) {
  :root {
    --page: min(var(--page-max), calc(100vw - 48px));
  }
}

@media (max-width: 640px) {
  :root {
    --page: min(var(--page-max), calc(100vw - 32px));
  }
}


/* Light Theme Tokens — Approved Graphite Colors (#434A5C / #7B8394) */
html[data-theme="light"] {
  --bg: #f5f5f1;
  --bg-soft: #ffffff;
  --panel: rgba(10, 16, 28, 0.045);
  --panel-strong: rgba(10, 16, 28, 0.075);
  --text: #11141b;
  --muted: #5e6675;
  --line: rgba(10, 16, 28, 0.12);
  --line-strong: rgba(10, 16, 28, 0.22);
  --shadow: 0 28px 90px rgba(25, 28, 38, 0.12);

  --logo-outline: #434a5c;
  --logo-subtle: #7b8394;
}

/* ─────────────────────────────────────────────────────────────
   Recursive Variable Typography Settings by Role
   ───────────────────────────────────────────────────────────── */

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-recursive);
  font-variation-settings: "MONO" 0, "CASL" 0.04, "wght" 430, "slnt" 0, "CRSV" 0;
}

p,
li,
dd,
.hero-note,
.product-copy p,
.compare-strip p,
.team-banner p {
  font-family: var(--font-recursive);
  font-variation-settings: "MONO" 0, "CASL" 0.06, "wght" 410, "slnt" 0, "CRSV" 0;
  letter-spacing: -0.006em;
}

.brand,
.nav-links,
.button,
.filter-button,
.menu-btn,
.icon-btn {
  font-family: var(--font-recursive);
  font-variation-settings: "MONO" 0, "CASL" 0.02, "wght" 650, "slnt" 0, "CRSV" 0;
}

h1 {
  font-family: var(--font-recursive);
  font-variation-settings: "MONO" 0, "CASL" 0.48, "wght" 790, "slnt" 0, "CRSV" 0;
  letter-spacing: -0.027em !important;
}

h2 {
  font-family: var(--font-recursive);
  font-variation-settings: "MONO" 0, "CASL" 0.28, "wght" 730, "slnt" 0, "CRSV" 0;
  letter-spacing: -0.022em !important;
}

h3,
.product-name,
.finder-product-name {
  font-family: var(--font-recursive);
  font-variation-settings: "MONO" 0, "CASL" 0.34, "wght" 760, "slnt" 0, "CRSV" 0;
  letter-spacing: -0.025em !important;
}

.eyebrow,
.product-number,
.finder-label,
.result-count,
.status,
.platform,
.fact small,
.section-index,
.signal-strip,
.float-chip,
.map-node span,
.map-node small,
code,
kbd {
  font-family: var(--font-recursive-mono) !important;
  font-variation-settings: "MONO" 1, "CASL" 0, "wght" 610, "slnt" 0, "CRSV" 0;
  letter-spacing: 0.055em;
}

.hero::before,
#catalogue::before,
.product-entry::after {
  font-family: var(--font-recursive) !important;
  font-variation-settings: "MONO" 0, "CASL" 0.12, "wght" 820, "slnt" 0, "CRSV" 0;
}

.type-accent,
em {
  font-family: var(--font-recursive);
  font-style: normal;
  font-variation-settings: "MONO" 0, "CASL" 0.82, "wght" 650, "slnt" -9, "CRSV" 1;
}

.hero h1 {
  font-variation-settings: "MONO" 0, "CASL" 0.52, "wght" 800, "slnt" 0, "CRSV" 0;
}

.stack-product-name,
.product-stack h2,
.product-stack h3 {
  font-family: var(--font-recursive);
  font-variation-settings: "MONO" 0, "CASL" 0.38, "wght" 760, "slnt" 0, "CRSV" 0;
}
