/* Design tokens: single source for color, type, space, radius and motion. */
:root {
  /* Palette: ink/paper neutrals + steel-blue family sampled from the chrome logo */
  --ink: #0a0f1a;
  --ink-2: #111827;
  --ink-3: #1a2233;
  --paper: #f4f6f9;
  --paper-2: #e8ecf2;
  --white: #fff;
  --block-1: #cfe0ff;
  --block-2: #8fb8ff;
  --block-3: #4f86f0;
  --block-4: #1e3a8a;

  /* Semantic status colours stay fixed across scopes */
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;

  /* Light scope (default). Dark scope below flips only these scope tokens. */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: var(--white);
  --line: rgba(10, 15, 26, 0.12);
  --line-2: rgba(10, 15, 26, 0.28);
  --text: var(--ink);
  --text-2: #475066;
  --text-3: #5b657a;
  --accent: #2a62d6;
  --accent-2: #1e4fb8;
  --on-accent: var(--white);
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --surface: rgba(10, 15, 26, 0.03);
  --cyan: var(--accent);
  --blue: var(--accent);
  --violet: var(--block-4);

  /* Type */
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
  --nav-h: 60px;
  --r: 2px;

  /* Motion: short, transform/opacity only */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;

  /* Legacy aliases: sections not yet rebuilt still read these names */
  --surface-solid: var(--bg-3);
  --line-strong: var(--line-2);
  --muted: var(--text-2);
  --font: var(--sans);
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-24: clamp(1.25rem, 2.4vw, 1.5rem);
  --fs-32: clamp(1.5rem, 3vw, 2rem);
  --fs-48: clamp(2rem, 5vw, 3rem);
  --fs-72: clamp(3rem, 8vw, 4.5rem);
  --fs-display: clamp(3.5rem, 9vw, 6.5rem);
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-72: 72px;
  --sp-112: 112px;
  --sec-y: clamp(72px, 10vw, 112px);
  --sec-y-tight: clamp(56px, 7vw, 80px);
  --max: var(--maxw);
  --r-sm: 2px;
  --r-md: var(--r);
  --r-pill: 999px;
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
}
/* Large monitors: let the container and gutters grow so content does not sit in a narrow column */
@media (min-width: 1680px) {
  :root { --maxw: 1360px; --gutter: 32px; }
}
@media (min-width: 2200px) {
  :root { --maxw: 1560px; --gutter: 40px; }
}

/* Dark scope: nav, hero, footer and any .sec--ink section. Logo artwork is silver, so it only sits here. */
.sec--ink, .nav, .hero, .foot {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --bg-3: var(--ink-3);
  --line: rgba(233, 238, 247, 0.12);
  --line-2: rgba(233, 238, 247, 0.26);
  --text: #e9eef7;
  --text-2: #a9b4c8;
  --text-3: #8a96ac;
  --accent: var(--block-2);
  --accent-2: var(--block-1);
  --on-accent: var(--ink);
  --btn-bg: var(--block-1);
  --btn-fg: var(--ink);
  --surface: rgba(233, 238, 247, 0.04);
  --cyan: var(--accent);
  --blue: var(--accent);
  --violet: var(--block-3);
  --muted: var(--text-2);
  --line-strong: var(--line-2);
  --surface-solid: var(--bg-3);
  color: var(--text);
}
