/*
 * Modular Theme Tokens for blackwindow52
 * Edit colors, fonts, radii, and scrim intensity here without touching layout CSS.
 */

:root {
  color-scheme: dark;

  /* World-tinted neutral ramp (night detailing bay: cool ink-graphite) */
  --bg-deepest: #090b0e;
  --bg-page: #0f1216;
  --bg-surface: #151920;
  --bg-raised: #1c212a;

  /* Text hierarchy (all pass >= 4.5:1 on --bg-page / --bg-surface) */
  --text-primary: #eef1f4;
  --text-secondary: #a8b0bc;
  --text-muted: #828b98;

  /* Single studio accent (warm tungsten inspection lamp) */
  --accent: #d49a56;
  --accent-hover: #e0a865;
  --accent-ink: #0f1216;

  /* Borders & Hairlines (input border >= 3:1 non-text contrast on --bg-surface) */
  --border-hairline: rgba(238, 241, 244, 0.09);
  --border-control: #4a5260;
  --border-control-hover: #677285;
  --focus-ring: #eef1f4;

  /* Photo overlay scrims so left-aligned typography reads cleanly */
  --hero-scrim-horizontal: linear-gradient(
    90deg,
    rgba(11, 13, 16, 0.97) 0%,
    rgba(11, 13, 16, 0.9) 44%,
    rgba(11, 13, 16, 0.66) 76%,
    rgba(11, 13, 16, 0.52) 100%
  );
  --hero-scrim-vertical: linear-gradient(
    180deg,
    rgba(11, 13, 16, 0.82) 0%,
    rgba(11, 13, 16, 0.36) 35%,
    rgba(11, 13, 16, 0.72) 82%,
    rgba(11, 13, 16, 0.94) 100%
  );

  /* Typography (full Cyrillic + Latin support) */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radii on nested scale */
  --radius-sm: 6px;
  --radius-control: 8px;
  --radius-panel: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-enter: 360ms;
}

@media (forced-colors: active) {
  :root {
    --bg-page: Canvas;
    --bg-surface: Canvas;
    --bg-raised: Canvas;
    --text-primary: CanvasText;
    --text-secondary: CanvasText;
    --text-muted: GrayText;
    --accent: Highlight;
    --accent-ink: HighlightText;
    --border-hairline: CanvasText;
    --border-control: ButtonText;
    --focus-ring: Highlight;
  }
}
