@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/Sora-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* CMS-editable color layer. /theme.css is loaded after this file and
     overrides these exact defaults from the database. */
  --color-bg: #0d0c1e;
  --color-card: #160f30;
  --color-elevated: #26153f;
  --color-border: #492968;
  --color-border-soft: #412c57;
  --color-deep: #5b338b;
  --color-muted: #7c5a97;
  --color-button: #9450bf;
  --color-highlight: #b479d7;
  --color-text: #dcb4e8;
  --color-success: #22c55e;
  --color-white: #ffffff;

  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', ui-sans-serif, system-ui, -apple-system, Roboto, Helvetica, Arial,
    sans-serif;

  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --text-2xl: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem);
  --text-hero: clamp(2.65rem, 2rem + 3.8vw, 4.4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 0.625rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.375rem;
  --radius-pill: 999px;

  --max-page: 75rem;
  --gutter: 1rem;
  --header-height: 3.75rem;

  --shadow-card: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 0 1px rgba(180, 121, 215, 0.14), 0 1.5rem 4.5rem rgba(91, 51, 139, 0.22);
  --gradient-primary: linear-gradient(135deg, var(--color-button) 0%, var(--color-deep) 100%);
  --gradient-card: linear-gradient(155deg, rgba(38, 21, 63, 0.92) 0%, var(--color-card) 68%);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 180ms var(--ease);

  --z-header: 50;
  --z-drawer: 100;
  --z-dialog: 120;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
    --header-height: 4rem;
    --text-base: 1rem;
    --text-sm: 0.875rem;
  }
}

@media (min-width: 75rem) {
  :root {
    --gutter: 2rem;
  }
}
