/* ───────────────────────── TOKENS — the only file allowed to hold colour literals ─────────────────────────
   Provenance (all sampled from supplied assets, nothing invented):
   --bg          #fffdfe  median of 2×(50×50) corner pixels, brand/LOGO ANTROPIFY PNG.png (opaque page colour of the logo sheet)
   --accent      #fd8b53  median RGB of the 199,578 fully-opaque (alpha 255) pixels, brand/LOGO ANTROPIFY PNG...png (the logo's orange)
   --accent-hot  #fe701a  median of headline-orange pixels (29,900 px), reference/ANTROPIFY 1.jpg.jpeg
   --ink         #111219  median of body-text dark pixels (18,637 px), reference/ANTROPIFY 1.jpg.jpeg
   Everything else (muted, line, deep surfaces, glows) is derived below with color-mix() from these four. */
:root {
  --bg: #fffdfe;
  --accent: #fd8b53;
  --accent-hot: #fe701a;
  --ink: #111219;

  --ink-2: color-mix(in srgb, var(--ink) 82%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 62%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, var(--bg));
  --accent-deep: color-mix(in srgb, var(--accent-hot) 78%, var(--ink));
  --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--bg));
  --deep: var(--ink);

  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --s-small: 0.875rem;
  --s-body: 1.0625rem;
  --s-lead: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  --s-head: clamp(2.125rem, 1.4rem + 3.1vw, 3.75rem);
  --s-display: clamp(2.75rem, 1.5rem + 5.6vw, 6rem);
  --s-ca: clamp(0.8125rem, 0.55rem + 1.1vw, 1.375rem);

  --gutter: clamp(20px, 5vw, 80px);
  --radius: 8px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tap: 44px;
}

/* the dark "inside" band flips the tokens (derived tokens re-declared so they resolve against the flipped values) */
:root { --cream: var(--bg); }
.inside {
  --bg: var(--deep);
  --ink: var(--cream);
  --ink-2: color-mix(in srgb, var(--ink) 86%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 66%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 18%, var(--bg));
}
