/* ==========================================================================
   Orbi — design tokens
   A single dark, cinematic system with a violet "orb" accent, fluid type and
   container-relative spacing so the same UI scales from a 320px phone to a
   4K television without a separate code path.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Sora";
  src: url("/static/fonts/sora-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/static/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/static/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ------------------------------------------------------------- colour */
  --bg: #08070c;
  --bg-deep: #050409;
  --bg-raised: #0e0d15;
  --surface: #12111b;
  --surface-2: #17161f;
  --surface-3: #1d1c27;
  --surface-glass: rgba(18, 17, 27, 0.72);
  --surface-glass-strong: rgba(12, 11, 18, 0.9);

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.045);

  --text: #f4f3f8;
  --text-soft: #c9c7d6;
  --text-muted: #918fa3;
  --text-faint: #6a6879;
  --text-inverse: #0a0910;

  --primary: #6c68fb;
  --primary-bright: #8b87ff;
  --primary-deep: #4b47c9;
  --primary-soft: rgba(108, 104, 251, 0.14);
  --primary-glow: rgba(108, 104, 251, 0.45);
  --secondary: #b18cff;
  --accent-cyan: #6fd8ff;
  --accent-pink: #ff6b9d;
  --accent-amber: #f7c764;
  --accent-green: #5fd3a6;

  --success: #4ade80;
  --warning: #f7c764;
  --danger: #ff5c72;
  --rating: #f7c764;

  --grad-orb: radial-gradient(120% 120% at 20% 15%, #a99cff 0%, #6c68fb 38%, #342fb3 72%, #14112e 100%);
  --grad-primary: linear-gradient(135deg, #8b87ff 0%, #6c68fb 45%, #554fe6 100%);
  --grad-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 40%);
  --grad-scrim-side: linear-gradient(90deg, rgba(6, 5, 10, 0.97) 0%, rgba(6, 5, 10, 0.86) 38%, rgba(6, 5, 10, 0.35) 66%, rgba(6, 5, 10, 0.15) 100%);
  --grad-scrim-bottom: linear-gradient(180deg, rgba(8, 7, 12, 0) 0%, rgba(8, 7, 12, 0.55) 55%, var(--bg) 100%);
  --grad-scrim-top: linear-gradient(180deg, rgba(8, 7, 12, 0.92) 0%, rgba(8, 7, 12, 0) 100%);

  /* ---------------------------------------------------------- typography */
  --font-display: "Sora", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;

  --fs-display: clamp(2.9rem, 1.35rem + 6.1vw, 7rem);
  --fs-h1: clamp(2.1rem, 1.25rem + 3.4vw, 4.25rem);
  --fs-h2: clamp(1.55rem, 1.15rem + 1.7vw, 2.75rem);
  --fs-h3: clamp(1.22rem, 1.05rem + 0.72vw, 1.7rem);
  --fs-h4: clamp(1.05rem, 0.98rem + 0.32vw, 1.22rem);
  --fs-lead: clamp(1.02rem, 0.95rem + 0.42vw, 1.28rem);
  --fs-body: clamp(0.94rem, 0.9rem + 0.16vw, 1.03rem);
  --fs-sm: clamp(0.83rem, 0.8rem + 0.1vw, 0.9rem);
  --fs-xs: 0.75rem;
  --fs-2xs: 0.6875rem;
  --fs-mono: 0.78rem;

  --lh-tight: 1.02;
  --lh-heading: 1.1;
  --lh-body: 1.6;
  --tracking-tight: -0.035em;
  --tracking-heading: -0.022em;
  --tracking-wide: 0.08em;
  --tracking-caps: 0.16em;

  /* ------------------------------------------------------------- spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  --gap-xs: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
  --gap-sm: clamp(0.75rem, 0.6rem + 0.4vw, 1rem);
  --gap-md: clamp(1rem, 0.8rem + 0.8vw, 1.75rem);
  --gap-lg: clamp(1.5rem, 1rem + 1.6vw, 3rem);
  --gap-xl: clamp(2.5rem, 1.5rem + 4vw, 6rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --container: 1520px;
  --container-wide: 1720px;
  --measure: 68ch;

  --section-y: clamp(3.25rem, 2rem + 5vw, 7.5rem);
  --row-gap: clamp(2.25rem, 1.5rem + 2.4vw, 4rem);

  /* --------------------------------------------------------------- shape */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --radius-poster: clamp(12px, 1vw, 20px);
  --border-hair: 1px solid var(--line);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 20px 60px -20px var(--primary-glow);
  --shadow-card-hover: 0 30px 60px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);

  /* -------------------------------------------------------------- motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-hover: 250ms;
  --ease-hover: ease-in;
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 560ms;
  --dur-4: 820ms;
  --dur-slow: 1100ms;

  /* ---------------------------------------------------------------- misc */
  --z-base: 1;
  --z-sticky: 50;
  --z-nav: 80;
  --z-overlay: 100;
  --z-sheet: 120;
  --z-toast: 200;
  --nav-h: 72px;
  --tabbar-h: 68px;
  --player-h: 100vh;
}

/* TVs and very large displays: the UI scales up rather than stretching thin. */
@media (min-width: 1900px) {
  :root {
    --container: 1680px;
    --container-wide: 1880px;
    --nav-h: 84px;
    --fs-body: 1.08rem;
    --fs-sm: 0.95rem;
  }
}

@media (min-width: 2400px) {
  :root {
    font-size: 20px;
    --container: 1920px;
    --container-wide: 2160px;
    --nav-h: 96px;
    --tabbar-h: 80px;
    --gutter: 4.5rem;
  }
}

@media (min-width: 3200px) {
  :root {
    font-size: 26px;
    --container: 2240px;
    --container-wide: 2520px;
  }
}