/* Cineoteca — design tokens
   Layout: one max-width column (1320px) for header, rails and grids; hero and
   backdrops bleed full width. Dark-first (a cinema UI), with a complete light theme. */

:root {
  color-scheme: dark;

  /* colour */
  --bg: #0c0e14;
  --bg-elev: #14171f;
  --bg-elev-2: #1c2029;
  --fg: #eef0f5;
  --fg-muted: #9aa1b2;
  --fg-faint: #5f6677;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ffb547;          /* cineoteca amber */
  --accent-fg: #1a1200;
  --accent-soft: rgba(255, 181, 71, 0.14);
  --good: #4cd49a;
  --warn: #ffb547;
  --bad: #ff6b6b;
  --overlay: rgba(12, 14, 20, 0.72);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  /* type */
  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);

  /* shape & spacing */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --container: 1320px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f4ef;
    --bg-elev: #ffffff;
    --bg-elev-2: #efece5;
    --fg: #171a21;
    --fg-muted: #5c6270;
    --fg-faint: #9aa0ad;
    --line: rgba(20, 24, 34, 0.1);
    --line-strong: rgba(20, 24, 34, 0.22);
    --accent: #c77a00;
    --accent-fg: #ffffff;
    --accent-soft: rgba(199, 122, 0, 0.12);
    --good: #1f9d66;
    --warn: #c77a00;
    --bad: #d63d3d;
    --overlay: rgba(246, 244, 239, 0.8);
    --shadow: 0 18px 40px rgba(30, 30, 40, 0.14);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-elev: #ffffff;
  --bg-elev-2: #efece5;
  --fg: #171a21;
  --fg-muted: #5c6270;
  --fg-faint: #9aa0ad;
  --line: rgba(20, 24, 34, 0.1);
  --line-strong: rgba(20, 24, 34, 0.22);
  --accent: #c77a00;
  --accent-fg: #ffffff;
  --accent-soft: rgba(199, 122, 0, 0.12);
  --good: #1f9d66;
  --warn: #c77a00;
  --bad: #d63d3d;
  --overlay: rgba(246, 244, 239, 0.8);
  --shadow: 0 18px 40px rgba(30, 30, 40, 0.14);
}
