/* DarkSingularity brand tokens: DarkSingularity/Style-Guide, BRAND_STYLE_GUIDE.md.
   Layout follows the site owner's UI mockups. Shared by the site and Django admin.
   Components read only the semantic aliases below, never the --ds-* palette.

   A saved theme choice is data-theme on <html> for the site. Django admin has no
   hook for that, so there it is a theme-light or theme-dark class on <body>. */
:root {
  --ds-void: #07080f;
  --ds-surface: #101030;
  --ds-surface-2: #181848;
  --ds-border: #242478;
  --ds-text: #fce4fc;
  --ds-muted: #c0ccd8;
  --ds-accent: #60d8fc;
  --ds-accent-2: #6c60fc;
  --ds-accent-3: #7848fc;
  --ds-highlight: #f060fc;

  --ds-light-bg: #f7f9fc;
  --ds-light-surface: #ffffff;
  --ds-light-surface-2: #e9eef8;
  --ds-light-border: #c9d4e8;
  --ds-light-text: #111827;
  --ds-light-muted: #4f5f73;
  --ds-light-accent: #007aa3;
  --ds-light-accent-2: #334ee8;
  --ds-light-accent-3: #6838d8;
  --ds-light-highlight: #b012b8;

  --ds-gradient-accretion: linear-gradient(135deg, #60d8fc 0%, #6c60fc 52%, #f060fc 100%);

  --ds-text-xs: 0.78rem;
  --ds-text-sm: 0.9rem;
  --ds-text-base: 1rem;
  --ds-text-lg: 1.14rem;
  --ds-text-xl: 1.45rem;
  --ds-text-2xl: 2.2rem;
  --ds-text-hero: clamp(2.5rem, 8vw, 6.5rem);

  --ds-space-1: 0.25rem;
  --ds-space-2: 0.5rem;
  --ds-space-3: 0.75rem;
  --ds-space-4: 1rem;
  --ds-space-6: 1.5rem;
  --ds-space-8: 2rem;
  --ds-space-12: 3rem;
  --ds-space-16: 4rem;
}

:root,
[data-theme="dark"],
:is(:root:has(> body.theme-dark)) {
  color-scheme: dark;
  --bg: var(--ds-void);
  --surface: var(--ds-surface-2);
  --surface-strong: var(--ds-surface);
  --text: var(--ds-text);
  --muted: var(--ds-muted);
  --line: var(--ds-border);
  --accent: var(--ds-accent);
  --accent-strong: #ccfcfc;
  --accent-support: var(--ds-accent-2);
  --highlight: var(--ds-highlight);
  --danger: #ff9aa8;
  --action-ink: var(--ds-void);
  --badge-bg: #0d2c3a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

[data-theme="light"],
:is(:root:has(> body.theme-light)) {
  color-scheme: light;
  --action-ink: #ffffff;
  --badge-bg: #e5f6fb;
  --bg: var(--ds-light-bg);
  --surface: var(--ds-light-surface);
  --surface-strong: var(--ds-light-surface-2);
  --text: var(--ds-light-text);
  --muted: var(--ds-light-muted);
  --line: var(--ds-light-border);
  --accent: var(--ds-light-accent);
  --accent-strong: #004f69;
  --accent-support: var(--ds-light-accent-2);
  --highlight: var(--ds-light-highlight);
  --danger: #a3122c;
  --shadow: 0 14px 38px rgba(17, 24, 39, 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --action-ink: #ffffff;
    --badge-bg: #e5f6fb;
    --bg: var(--ds-light-bg);
    --surface: var(--ds-light-surface);
    --surface-strong: var(--ds-light-surface-2);
    --text: var(--ds-light-text);
    --muted: var(--ds-light-muted);
    --line: var(--ds-light-border);
    --accent: var(--ds-light-accent);
    --accent-strong: #004f69;
    --accent-support: var(--ds-light-accent-2);
    --highlight: var(--ds-light-highlight);
    --danger: #a3122c;
    --shadow: 0 14px 38px rgba(17, 24, 39, 0.12);
  }
}

:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Dividers use --line. Form controls need a 3:1 boundary, so mix toward --muted. */
  --control-line: color-mix(in srgb, var(--muted) 70%, var(--bg));
  /* An open seat has to stand out from both the card and a taken seat. */
  --seat-empty: color-mix(in srgb, var(--muted) 45%, var(--surface));
}
