/* Lodestar · Meridian tokens. GENERATED from brand/brand.json by
   scripts/brand-tokens.mjs; edit brand.json, then run npm run brand:tokens.
   Light is the default. Dark follows the device unless the page sets
   data-theme="light"; data-theme="dark" forces it. */

@font-face { font-family: 'Instrument Sans'; src: url('fonts/InstrumentSans-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: 'Instrument Sans'; src: url('fonts/InstrumentSans-latin-ext.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; 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: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-400-latin-ext.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-500-latin-ext.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-600-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-600-latin-ext.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #F4F7F6;
  --surface: #EAF0EF;
  --surface-raised: #FFFFFF;
  --border: #DCE4E3;
  --border-control: #6F8589;
  --ink: #10292F;
  --ink-heading: #10292F;
  --ink-body: #24393E;
  --ink-muted: #536A6F;
  --link: #0F4C55;
  --sea: #0F4C55;
  --sea-tint: #E1EEEE;
  --interactive: #0F4C55;
  --on-interactive: #FFFFFF;
  --signal: #E4572E;
  --signal-ink: #A3361A;
  --signal-tint: #FCE9E2;
  --accent: #C8441D;
  --on-accent: #FFFFFF;
  --focus-ring: #0F4C55;
  --success: #1E7A4F;
  --success-tint: #E2F2E9;
  --warning: #8A5300;
  --warning-tint: #FBF0DA;
  --danger: #B4321F;
  --danger-tint: #FBE9E4;
  --info: #0F4C55;
  --info-tint: #E1EEEE;
  --nav-bg: #10292F;
  --nav-ink: #CFE0DF;
  --nav-muted: #7FA0A2;
  --nav-active: rgba(255, 255, 255, 0.09);
  --nav-strong: #FFFFFF;
  --nav-signal: #F4A48A;
  --nav-line: rgba(255, 255, 255, 0.12);
  --overlay: rgba(16, 41, 47, 0.45);
  --shadow-card: 0 1px 2px rgba(16, 41, 47, 0.06);
  --shadow-modal: 0 12px 40px rgba(16, 41, 47, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1E22;
    --surface: #0F2428;
    --surface-raised: #12292E;
    --border: #264247;
    --border-control: #7A979B;
    --ink: #E6EEEC;
    --ink-heading: #FFFFFF;
    --ink-body: #C9D8D6;
    --ink-muted: #9DB3B1;
    --link: #5FB8B0;
    --sea: #5FB8B0;
    --sea-tint: rgba(95, 184, 176, 0.14);
    --interactive: #5FB8B0;
    --on-interactive: #0B1E22;
    --signal: #F07A55;
    --signal-ink: #F4A48A;
    --signal-tint: rgba(240, 122, 85, 0.16);
    --accent: #F07A55;
    --on-accent: #0B1E22;
    --focus-ring: #5FB8B0;
    --success: #7FD6A8;
    --success-tint: rgba(30, 122, 79, 0.24);
    --warning: #E8C46A;
    --warning-tint: rgba(178, 107, 0, 0.22);
    --danger: #F2938A;
    --danger-tint: rgba(180, 50, 31, 0.24);
    --info: #5FB8B0;
    --info-tint: rgba(95, 184, 176, 0.14);
    --nav-bg: #081619;
    --nav-ink: #CFE0DF;
    --nav-muted: #7FA0A2;
    --nav-active: rgba(255, 255, 255, 0.08);
    --nav-strong: #FFFFFF;
    --nav-signal: #F4A48A;
    --nav-line: rgba(255, 255, 255, 0.12);
    --overlay: rgba(0, 0, 0, 0.6);
    --shadow-card: none;
    --shadow-modal: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"], [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1E22;
  --surface: #0F2428;
  --surface-raised: #12292E;
  --border: #264247;
  --border-control: #7A979B;
  --ink: #E6EEEC;
  --ink-heading: #FFFFFF;
  --ink-body: #C9D8D6;
  --ink-muted: #9DB3B1;
  --link: #5FB8B0;
  --sea: #5FB8B0;
  --sea-tint: rgba(95, 184, 176, 0.14);
  --interactive: #5FB8B0;
  --on-interactive: #0B1E22;
  --signal: #F07A55;
  --signal-ink: #F4A48A;
  --signal-tint: rgba(240, 122, 85, 0.16);
  --accent: #F07A55;
  --on-accent: #0B1E22;
  --focus-ring: #5FB8B0;
  --success: #7FD6A8;
  --success-tint: rgba(30, 122, 79, 0.24);
  --warning: #E8C46A;
  --warning-tint: rgba(178, 107, 0, 0.22);
  --danger: #F2938A;
  --danger-tint: rgba(180, 50, 31, 0.24);
  --info: #5FB8B0;
  --info-tint: rgba(95, 184, 176, 0.14);
  --nav-bg: #081619;
  --nav-ink: #CFE0DF;
  --nav-muted: #7FA0A2;
  --nav-active: rgba(255, 255, 255, 0.08);
  --nav-strong: #FFFFFF;
  --nav-signal: #F4A48A;
  --nav-line: rgba(255, 255, 255, 0.12);
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow-card: none;
  --shadow-modal: 0 12px 40px rgba(0, 0, 0, 0.5);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --font-display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.type-display { font-family: var(--font-display); font-size: clamp(36px, 6vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.type-h1 { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.type-h2 { font-family: var(--font-display); font-size: clamp(23px, 3.4vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.type-h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.type-h4 { font-family: var(--font-display); font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.type-body-lg { font-family: var(--font-body); font-size: 18px; line-height: 1.6; font-weight: 400; }
.type-body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 400; }
.type-body-strong { font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 600; }
.type-body-sm { font-family: var(--font-body); font-size: 14px; line-height: 1.55; font-weight: 400; }
.type-caption { font-family: var(--font-body); font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--ink-muted); }
.type-label { font-family: var(--font-body); font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--signal-ink); }
.type-mono, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
