/* Nexa landing: tokens.
 *
 * Three palettes, all drawn from systems that already exist in Sudeep's work:
 *   nexloid (default, chosen 2026-09-26, D-047): the Nexloid brand, deep blue + amber
 *   petrol            : the Nexa product palette (D-031) and the mockup's own theme
 *   electric          : the Ink + Electric product system, slate + cobalt
 * The page is light for the story and turns dark once, at the reveal. That single switch is
 * the "colour block" moment; nothing else inverts.
 *
 * The screen inside the laptop (story.js) reads the AfB-style names (--ink, --blue, --orange…),
 * so each palette maps those too. Components on the page read the semantic names only.
 */

:root {
  --font-display: "Schibsted Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display-weight: 700;
  --display-track: -0.035em;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  --gutter: max(20px, 6vw);
  --danger: #b3261e;      /* form errors: 6.5:1 on white */
  --danger-50: #fbe7e7;
  --nav-h: 64px;
}

/* ── Petrol (default) ─────────────────────────────────────────────────────────────── */
:root[data-palette="petrol"] {
  --paper: #eef4f2;
  --paper-2: #e3ece9;
  --surface: #ffffff;
  --ink: #0b2624;
  --ink-2: #3f5a56;
  --ink-3: #546d69;
  --line: #cfdcd8;
  --accent: #0b7a6e;
  --accent-hover: #086459;
  --accent-ink: #086459;
  --accent-50: #e0f1ed;
  --accent-100: #c6e8e1;
  --on-accent: #ffffff;
  --signal: #e8603a;
  --signal-ink: #b9431d;
  --signal-50: #fdebe3;

  --dark: #0b2624;
  --dark-2: #103330;
  --dark-3: #16403c;
  --dark-line: #24514b;
  --on-dark: #eef5f3;
  --on-dark-2: #a6c0bb;
  --on-dark-3: #7f9d97;
  --signal-on-dark: #ff8a5c;
  --accent-on-dark: #5fd0bf;
}

/* ── Nexloid (deep blue + amber) ──────────────────────────────────────────────────── */
:root,
:root[data-palette="nexloid"] {
  --paper: #f7f8fb;
  --paper-2: #eceff6;
  --surface: #ffffff;
  --ink: #10131a;
  --ink-2: #454b5c;
  --ink-3: #62687a;
  --line: #d6dbe7;
  --accent: #15307a;
  --accent-hover: #0f2560;
  --accent-ink: #15307a;
  --accent-50: #e7ecf8;
  --accent-100: #d3dcf2;
  --on-accent: #ffffff;
  --signal: #ff9d2e;
  --signal-ink: #a65a00;
  --signal-50: #fff1df;

  --dark: #0c1638;
  --dark-2: #122050;
  --dark-3: #182a63;
  --dark-line: #283b78;
  --on-dark: #f2f4fb;
  --on-dark-2: #b3bdd9;
  --on-dark-3: #8d99bf;
  --signal-on-dark: #ffb25c;
  --accent-on-dark: #9db4f5;
}

/* ── Ink + Electric (slate + cobalt) ──────────────────────────────────────────────── */
:root[data-palette="electric"] {
  --paper: #f4f5f7;
  --paper-2: #e9ebef;
  --surface: #ffffff;
  --ink: #0f1115;
  --ink-2: #474c57;
  --ink-3: #646a76;
  --line: #d9dce2;
  --accent: #2563eb;
  --accent-hover: #1d4fc4;
  --accent-ink: #1d4fc4;
  --accent-50: #e9f0fe;
  --accent-100: #d4e2fd;
  --on-accent: #ffffff;
  --signal: #f0663a;
  --signal-ink: #b8431b;
  --signal-50: #fdebe4;

  --dark: #0d0f13;
  --dark-2: #15181e;
  --dark-3: #1c2029;
  --dark-line: #2a2f3a;
  --on-dark: #f1f2f5;
  --on-dark-2: #aab0bd;
  --on-dark-3: #858c9a;
  --signal-on-dark: #ff8c64;
  --accent-on-dark: #8fb0f7;
}

/* Display face options (review panel). Body text stays Hanken Grotesk in every option. */
:root[data-display="bricolage"] {
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --display-weight: 700;
  --display-track: -0.04em;
}
:root[data-display="geist"] {
  --font-display: "Geist", "Hanken Grotesk", system-ui, sans-serif;
  --display-weight: 600;
  --display-track: -0.045em;
}

/* Names the in-screen story reads (mapped per palette through the tokens above). */
:root {
  --font-sans: var(--font-text);
  --pg-head: var(--font-display);
  --pg-mono: var(--font-mono);
  --ink-body: var(--ink);
  --ink-muted: var(--ink-2);
  --ink-subtle: var(--ink-3);
  --blue: var(--accent);
  --blue-50: var(--accent-50);
  --blue-100: var(--accent-100);
  --surface-sunken: #f2f4f9;
  --chip-neutral: #e0e5f0;
  --orange: var(--signal);
  --orange-ink: var(--signal-ink);
  --orange-50: var(--signal-50);
  --green: var(--accent);
}
:root[data-palette="petrol"] { --surface-sunken: #f1f5f4; --chip-neutral: #dde7e4; }
:root[data-palette="electric"] { --surface-sunken: #f3f4f6; --chip-neutral: #e3e6eb; }
