/* Omni tokens for the site v2 prototype.
   Colors and shadows are the site scope of src/app/globals.css (white with black elements since 2026-10-25); easings are
   copied unchanged from there.
   Springs live in js/motion.js (copied from src/lib/motion.ts).
   The only new tokens are durations (Omni Motion System section 2.1). */

/* One family (2026-11-17, docs/design/one-line.md "Amendment 2026-11-17 (2)"): Schibsted Grotesk (SIL OFL), the
   latin subset of the same variable file next/font self-hosts for the Next pages, replacing Satoshi here too. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/SchibstedGrotesk-Latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/GeistMono-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* The site scope of src/app/globals.css (light since 2026-10-25; blue retired 2026-10-28): neutral grays for the
     chrome and highlights (--accent is ink, --accent-soft the panel gray), two meaning hues (--booked green, --danger
     red). Same names and values as the scope block there (token parity). */
  --page: oklch(100% 0 0);
  --surface: oklch(97.1% 0 0);
  --canvas: oklch(100% 0 0);
  --mist: oklch(96.4% 0 0);
  --haze: oklch(92.8% 0 0);
  --hairline: oklch(91.8% 0 0);
  --sky: oklch(44% 0 0);
  --sky-deep: oklch(19.5% 0 0);
  --action: oklch(19.5% 0 0);
  --action-hover: oklch(32% 0 0);
  --deep: oklch(26% 0 0);
  --ink: oklch(19.5% 0 0);
  --ink-2: oklch(44% 0 0);
  --ink-3: oklch(53% 0 0);
  --booked: oklch(52% 0.14 150);
  --booked-soft: oklch(96% 0.04 150);
  --danger: oklch(53% 0.2 27);
  --danger-soft: oklch(95.5% 0.022 25);
  --accent: oklch(19.5% 0 0);
  --accent-soft: oklch(97.1% 0 0);
  --on-ink: oklch(100% 0 0);
  --hardware: oklch(17% 0 0);
  --hardware-edge: oklch(34% 0 0);
  --sheen: oklch(100% 0 0 / 0.42);
  --scrim: oklch(0% 0 0 / 0.55);

  --shadow-tint: oklch(15% 0 0);
  --elev-1: 0 0 0 1px oklch(0% 0 0 / 0.1);
  --elev-2: 0 0 0 1px oklch(0% 0 0 / 0.12);
  --elev-3: 0 0 0 1px oklch(0% 0 0 / 0.16);
  --cta-highlight: oklch(100% 0 0 / 0);
  --cta-shadow: 0 0 0 0 oklch(0% 0 0 / 0);
  --cta-shadow-light: 0 0 0 0 oklch(0% 0 0 / 0);

  /* The page texture is gone on white (2026-10-25); the names stay for token parity. */
  --texture-line: transparent;
  --texture-dust: transparent;
  --texture-glow: transparent;
  --texture-edge: transparent;
  --texture-cell: 72px;

  /* Phone-only tokens: site.css reads every color through these. The phone is black hardware (a graphite frame,
     a black bezel) around a light screen. */
  --cta-icon-fill: oklch(100% 0 0 / 0.16);
  --phone-btn: oklch(30% 0 0);
  --metal-1: oklch(36% 0 0);
  --metal-2: oklch(20% 0 0);
  --metal-3: oklch(32% 0 0);
  --metal-4: oklch(17% 0 0);
  --metal-5: oklch(28% 0 0);
  --metal-6: oklch(18% 0 0);
  --phone-ring: oklch(100% 0 0 / 0.1);
  --phone-shadow-1: oklch(0% 0 0 / 0.14);
  --phone-shadow-2: oklch(0% 0 0 / 0.3);
  --phone-shadow-3: oklch(0% 0 0 / 0.22);
  --phone-screen: oklch(9% 0 0);
  --mask-solid: #000;
  /* Text over the painted street: the photo washes toward the white page behind the copy. */
  --scrim-1: oklch(100% 0 0 / 0.94);
  --scrim-2: oklch(100% 0 0 / 0.78);
  --scrim-3: oklch(100% 0 0 / 0.12);
  --scrim-m1: oklch(100% 0 0 / 0.9);
  --scrim-m2: oklch(100% 0 0 / 0.74);
  --scrim-m3: oklch(100% 0 0 / 0.35);
  --phone-island: #000;
  --phone-bezel-highlight: oklch(100% 0 0 / 0.6);

  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* globals.css easings */
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* New: durations (Omni column). Exits run at 0.65x. */
  --dur-press: 120ms;
  --dur-micro: 160ms;
  --dur-quick: 220ms;
  --dur-base: 280ms;
  --dur-sheet: 420ms;
  --dur-story: 600ms;
  --exit: 0.65;
  --stagger: 50ms;

  /* One line (2026-11-11): the type scale, rhythm, stroke and edge tokens, the same names and values as the One line block
     of src/app/globals.css (docs/design/one-line.md). */
  --type-display: clamp(2.625rem, min(10.4vw, 16svh), 8rem);
  --type-statement: clamp(2.25rem, 0.9rem + 5.4vw, 6.5rem);
  --type-headline: clamp(2.25rem, 1.15rem + 3.6vw, 4.75rem);
  --type-number: clamp(6rem, 2.5rem + 13vw, 14rem);
  --type-index: clamp(3.5rem, 1.5rem + 8vw, 10rem);
  --type-lead: clamp(1.125rem, 1rem + 0.42vw, 1.5rem);
  --type-caption: clamp(1.0625rem, 0.98rem + 0.3vw, 1.3125rem);
  --section-y: clamp(5.5rem, 3rem + 7vw, 11rem);
  --head-gap: clamp(2.75rem, 1.5rem + 3.4vw, 5rem);
  --nav-h: 72px;
  --anchor-air: 24px;
  --thread-w: 1.5px;
  --thread-ink: var(--ink);
  --thread-rest: color-mix(in oklab, var(--ink) 16%, transparent);
  --edge: 2px;
}

/* The ink ground (2026-11-17), mirrored from src/app/globals.css: a full-bleed section marked data-ground="ink" is the
   ink, and the tokens inside it are remapped (page, canvas and panel grays to steps of the ink, the ink to the white,
   hairlines white at 18%). Same names and values as there. */
[data-ground="ink"] {
  color-scheme: dark;
  --ground-ink: oklch(19.5% 0 0);
  --page: var(--ground-ink);
  --canvas: var(--ground-ink);
  --surface: oklch(24.5% 0 0);
  --mist: oklch(26% 0 0);
  --haze: oklch(31% 0 0);
  --hairline: oklch(100% 0 0 / 0.18);
  --sky: oklch(80% 0 0);
  --sky-deep: oklch(98.5% 0 0);
  --action: oklch(98.5% 0 0);
  --action-hover: oklch(88% 0 0);
  --deep: oklch(88% 0 0);
  --ink: oklch(98.5% 0 0);
  --ink-2: oklch(80% 0 0);
  --ink-3: oklch(70% 0 0);
  --accent: oklch(98.5% 0 0);
  --accent-soft: oklch(24.5% 0 0);
  --on-ink: var(--ground-ink);
  /* The meaning hues, same hue, lifted: a green or red fill carries --on-ink (the ground) text at 7:1 or more, and
     green or red text reads on the ground. */
  --booked: oklch(74% 0.14 150);
  --booked-soft: oklch(30% 0.05 150);
  --danger: oklch(72% 0.16 27);
  --danger-soft: oklch(30% 0.06 25);
  --sheen: oklch(100% 0 0 / 0.08);
  --elev-1: 0 0 0 1px oklch(100% 0 0 / 0.14);
  --elev-2: 0 0 0 1px oklch(100% 0 0 / 0.16);
  --elev-3: 0 0 0 1px oklch(100% 0 0 / 0.2);
  background-color: var(--page);
  color: var(--ink);
}
