/* Mulholland. Every value site.css uses: color, type, space, shape and motion. Nothing else carries a number. */

/* Color: the console's light theme (console/src/styles/tokens.css): paper, ink and the grays between. Agents are ink
   with paper eyes. A .light surface keeps the page's theme inside a .dark one. */
:root, .light {
  --paper: #ffffff;
  --fog: #eceef2;
  --fog-2: #e4e7ec;
  --ink: #0b0d12;
  --ink-2: rgba(11, 13, 18, 0.84);
  --mute: rgba(11, 13, 18, 0.62);
  --logo-ink: 0;
}

/* The console's dark theme: the whole page when chosen, and always on footage and the nav over it. */
[data-theme='dark'], [data-theme='dark'] .light, .dark, .nav.over:not(.solid) {
  color-scheme: dark;
  --paper: #1a1a1e;
  --fog: #242429;
  --fog-2: #303036;
  --ink: #f2f3f5;
  --ink-2: #b3b2b8;
  --mute: #8e8d93;
  --logo-ink: 1;
}

:root {
  --veil: rgba(5, 6, 9, 0.28);
  --veil-strong: rgba(5, 6, 9, 0.5);

  /* Drawings: the models' isometric pipelines. One accent, hairlines, faces shaded from the ink. */
  /* The AIs on the MCP tile, in their own colors. */
  --ai-claude: #d97757;
  --ai-muse: #0064e0;
  --ai-gemini: #3186ff;

  --dx-accent: #ff2d95;
  --dx-hairline: 1px;
  --dx-stroke: 1.5;
  --dx-dash: 4 3;
  --dx-area: 0.14;
  --dx-face-lit: 0;
  --dx-face-half: 0.08;
  --dx-face-shadow: 0.16;
  --dx-faint: 0.3;
  --dx-soft: 0.5;
  --dx-muted: 0.78;
  --dx-text: 11px;
  --dx-text-md: 12px;
  --dx-text-lg: 13px;
  --dx-tracking: 0.04em;

  /* Type: Geist, light for display, regular for reading. Nothing is set in mono. */
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --light: 300;
  --regular: 400;
  --medium: 500;
  --t-hero: clamp(2.75rem, 6.4vw, 6rem);
  --t-1: clamp(2.25rem, 4.4vw, 4.25rem);
  --t-2: clamp(1.625rem, 2.6vw, 2.5rem);
  --t-3: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-giant: 15.5vw;
  --lh-tight: 1.02;
  --lh-snug: 1.15;
  --lh-body: 1.5;
  --track-tight: -0.045em;
  --track-snug: -0.03em;
  --track-body: -0.01em;

  /* Space: one scale. The hair is the gap between filled bars; the last step is between sections. */
  --hair: 0.125rem;
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 2rem;
  --s-4: 4rem;
  --s-5: clamp(5rem, 9vw, 8rem);
  --gutter: clamp(1.25rem, 3.6vw, 3.75rem);

  /* Shape: one radius, one control height; things are filled, never outlined. */
  --r: 0.5rem;
  --control: 2.5rem;
  --page: 90rem;
  --measure: 34rem;
  --nav: 4.25rem;
  --nav-bare: 4.25rem; /* the bar alone, when a banner sits above it */
  --bar: 2.25rem; /* the banner over the nav */
  --col: 14rem;
  --card: min(70vh, 44rem);
  --short: calc(var(--card) * 0.6);
  --card-wide: min(38rem, 82vw);
  --tall: calc(var(--card) * 0.75);
  --sky: 40svh;
  --size-sm: 2.5rem;
  --size: 4.5rem;
  --size-lg: 7.5rem;
  --size-xl: 11rem;

  /* Motion. */
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 240ms;
  --mid: 600ms;
  --slow: 1100ms;
  --crawl: 2400ms;
  --drift: 4800ms;
  --marquee: 60s;
  --step: 45ms;
  --grain-step: 900ms;
  --rise: 1.5rem;
  --blur: 0.5rem;

  /* Grain: film noise laid over footage. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-size: 13.75rem;
  --grain-opacity: 0.22;
}

/* On a phone the banner runs to two lines. */
@media (max-width: 40rem) {
  :root { --bar: 3rem; }
}
