/* ephemeral design tokens — type and mark from ephemeral.money (13 Nov 2026), palette v6 (14 Nov 2026).
   See /brand/SOURCE.md for exact URLs. Not a copy of fomo or Axiom. */
/* v6 "ink pro" palette (14 Nov 2026): one token set for web, press, landing and the extension.
   Dark, high contrast, calm cool-neutral greys; precise green/red for PnL only; one restrained
   accent (signal blue) for focus, selection and the primary chart series. No neon. */
:root {
  /* surfaces */
  --s0: #08090b;           /* app */
  --s1: #0e1013;           /* panel / card */
  --s2: #14171b;           /* raised / input */
  --s3: #1b1f25;           /* hover / selected */
  --line: #1f2329;
  --line-2: #2b3038;
  /* text (all >= 4.5:1 on --s2) */
  --t1: #f3f5f7;
  --t2: #c6cbd2;
  --t3: #959ca6;
  --t4: #878e98;
  /* PnL / verdict — used for change and PnL, never for decoration */
  --up: #2fbf86;
  --down: #f2626b;
  --up-bg: color-mix(in srgb, var(--up) 13%, transparent);
  --down-bg: color-mix(in srgb, var(--down) 13%, transparent);
  --caution: #e0b25a;
  /* the one accent */
  --accent: #7ea6f4;
  --accent-bg: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  /* chart series (model streams), calm and distinguishable */
  --c1: #7ea6f4; --c2: #2fbf86; --c3: #b69cf0; --c4: #e0b25a; --c5: #6fc7d6; --c6: #8d949e;

  /* brand atmosphere (public @ephemeral_eth banner) — background washes only */
  --atmosphere-0: #1f3a45;
  --atmosphere-1: #2e505b;
  --atmosphere-2: #6f8a93;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-1: 2px;
  --radius-2: 6px;
  --radius-3: 10px;
  --font-sans: "Inter Variable", "Inter", system-ui, sans-serif;
  --font-tight: "Inter Tight Variable", "Inter Tight", "Inter Variable", system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace;
  --fs-caption: 12px;
  --fs-body: 15px;
  --fs-body-lg: 16px;
  --fs-h3: 20px;
  --fs-h2: 28px;
  --fs-h1: 44px;
  --lh: 1.5;
  --measure: 40rem;
  color-scheme: dark;
}

[data-theme="light"] {
  --s0: #f5f6f8;
  --s1: #ffffff;
  --s2: #eff1f4;
  --s3: #e6e9ee;
  --line: #e2e5ea;
  --line-2: #d2d7de;
  --t1: #0a0c10;
  --t2: #2a3039;
  --t3: #555d69;
  --t4: #5a626e;
  --up: #0b7f55;
  --down: #c2343f;
  --caution: #8a5a00;
  --accent: #2c5fd0;
  --c1: #2c5fd0; --c2: #0b7f55; --c3: #7650d8; --c4: #a36a00; --c5: #0f7f91; --c6: #5a626e;
  color-scheme: light;
}

:root, [data-theme] {
  /* legacy names, mapped onto v6 so v1–v5 pages and the extension inherit it */
  --ink-bg: var(--s0);
  --ink-fg: var(--t2);
  --ink-fg-strong: var(--t1);
  --ink-muted: var(--s2);
  --ink-muted-fg: var(--t3);
  --ink-card: var(--s1);
  --ink-border: var(--line-2);
  --ink-accent: var(--s3);
  --ink-ring: var(--accent);
  --ink-secondary: var(--s2);
  --ok: var(--up);
  --warn: var(--down);
  --example: var(--t3);
  --up-bg: color-mix(in srgb, var(--up) 13%, transparent);
  --down-bg: color-mix(in srgb, var(--down) 13%, transparent);
  --accent-bg: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--ink-fg);
  background: var(--ink-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .wordmark {
  font-family: var(--font-tight);
  color: var(--ink-fg-strong);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h1 { font-size: var(--fs-h1); margin: 0 0 var(--space-4); }
h2 { font-size: var(--fs-h2); margin: 0 0 var(--space-4); }
h3 { font-size: var(--fs-h3); margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
a { color: var(--ink-fg-strong); text-underline-offset: 3px; }
button, input, select, textarea { font-family: inherit; }
input.mono, textarea.mono { font-family: var(--font-mono); }
code, .mono, kbd { font-family: var(--font-mono); font-size: 0.92em; }

.caption, figcaption, .muted { color: var(--ink-muted-fg); font-size: var(--fs-caption); }
.kicker {
  font-family: var(--font-tight);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted-fg);
  margin: 0 0 var(--space-3);
}

.dotgrid {
  background-color: var(--ink-bg);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--line-2) 70%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}

.wordmark { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; text-transform: lowercase; }
.mark { width: 28px; height: 28px; display: block; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }

/* v4 design-system additions — motion, focus, type tightness. Official colors unchanged. */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-1: 140ms;
  --dur-2: 220ms;
  --dur-3: 400ms;
  --shadow-sheet: 0 -16px 48px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.28);
  --tap: 44px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection { background: var(--accent-bg); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img, svg { max-width: 100%; height: auto; }
img[width][height] { height: auto; }
.mark { width: 28px; height: 28px; }
