/* Wryhn product system. Compatibility aliases serve unmigrated specialist views. */
/* Geist (SIL OFL 1.1, see /fonts/GEIST-OFL.txt), self-hosted so the Tesla browser never falls back to a system face. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-wght.woff2?v=0.52.4") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-ext-wght.woff2?v=0.52.4") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --color-background: #0b0c0f;
  --color-surface: #15171c;
  --color-surface-subtle: #101216;
  --color-surface-raised: #1b1e25;
  --color-surface-elevated: #242832;
  --color-surface-hover: #2d333e;
  --color-surface-soft: rgba(255,255,255,.055);
  --color-border: #323844;
  --color-text: #f4f5f7;
  --color-text-muted: #b0b5c2;
  --color-on-brand: #fff;
  --color-brand: #d51b22;
  /* Red is reserved for starting playback and showing progress; other commits use the light action colour. */
  --color-action: #eef0f3;
  --color-action-hover: #ffffff;
  --color-on-action: #0b0c0f;
  --color-focus: #8fdcee;
  --color-focus-strong: #74ddf5;
  --color-info: #59d7f4;
  --color-success: #7ce0ab;
  --color-positive-indicator: #71dc9c;
  --color-warning: #f5c451;
  --color-danger-text: #ff9296;

  --font-body: "Geist",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 3rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --leading-body: 1.45;
  --leading-heading: 1.1;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --radius-sm: 8px;
  --radius-control: 12px;
  --radius-card: 16px;
  --radius-panel: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 30px 90px rgba(0,0,0,.28);
  --shadow-popover: 0 24px 70px rgba(0,0,0,.58);
  --control-min: 48px;
  --control-compact: 40px;
  --text-page-title: clamp(1.5rem,2vw,2rem);
  --poster-width: clamp(128px,11vw,164px);
  --landscape-width: clamp(224px,20vw,288px);
  --content-max: 1680px;
  --page-gutter: clamp(20px,3vw,48px);
  --app-header-height: 64px;
  --bottom-nav-height: 4.25rem;
  --chrome-gap: 8px;
  --chrome-inset: 16px;
  --brand-mark-type: 24px;
  --focus-width: 3px;
  --focus-offset: 3px;
  --layer-content: 0;
  --layer-sticky: 20;
  --layer-header: 50;
  --layer-popover: 70;
  --layer-menu: 90;
  --layer-player: 100;
  --layer-dialog: 120;
  --layer-toast: 200;
  --motion-fast: 120ms;
  --motion-normal: 180ms;
  --motion-slow: 300ms;
  --ease-standard: cubic-bezier(.2,0,0,1);

  --bg: var(--color-background);
  --panel: var(--color-surface);
  --panel2: var(--color-surface-raised);
  --panel-2: var(--color-surface-elevated);
  --panel-3: var(--color-surface-hover);
  --surface: var(--color-surface-subtle);
  --surface-raised: var(--color-surface-raised);
  --surface-soft: var(--color-surface-soft);
  --line: var(--color-border);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --red: var(--color-brand);
  --brand: var(--color-brand);
  --accent: var(--color-brand);
  --focus: var(--color-focus);
  --focus-ring: var(--color-focus-strong);
  --cyan: var(--color-info);
  --success: var(--color-success);
  --green: var(--color-positive-indicator);
  --warn: var(--color-warning);
  --radius: var(--radius-card);
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-normal: 0ms; --motion-slow: 0ms; }
}
