/* Design tokens — the app's shadcn token set (src/app/globals.css).
   An unthemed page uses these (light, or `.dark` when the visitor's site
   theme is dark). A themed page overrides every one of them inline on its
   scope element (js/theme/apply.js), so anything below that reads the
   tokens is recoloured without knowing a theme exists. */

:root {
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px); /* 6px  */
  --radius-md: calc(var(--radius) - 2px); /* 8px  — controls */
  --radius-lg: var(--radius); /*            10px — panels, tiles, cards */
  --radius-xl: calc(var(--radius) + 4px); /* 14px — imagery, popovers, dialogs */

  --background: oklch(1 0 0);
  --foreground: oklch(0.13 0.028 261.692);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.13 0.028 261.692);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.13 0.028 261.692);
  --primary: oklch(0.21 0.034 264.665);
  --primary-foreground: oklch(0.985 0.002 247.839);
  --secondary: oklch(0.967 0.003 264.542);
  --secondary-foreground: oklch(0.21 0.034 264.665);
  --muted: oklch(0.967 0.003 264.542);
  --muted-foreground: oklch(0.551 0.027 264.364);
  --accent: oklch(0.967 0.003 264.542);
  --accent-foreground: oklch(0.21 0.034 264.665);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --ring: oklch(0.707 0.022 261.325);
  /* Glass panel fill (EventPanel): an ink veil on light, a white veil on dark. */
  --panel: oklch(0.13 0.028 261.692 / 0.05);
  /* RealEvents brand accent (not themed). */
  --flash: oklch(0.37 0.18 283);

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  /* A bottom sheet's lift off the page, cast upward (the theme drawer). */
  --shadow-sheet: 0 -1px 3px rgb(0 0 0 / 0.04), 0 -12px 32px -8px rgb(0 0 0 / 0.16);

  /* Theme surface style (v2, engine.js `surfaceTokens`). Literal defaults
     only: a default that reads another token (--control-radius,
     --surface-border) is written as a var() fallback where it's used, since
     a custom property resolves var() where it's declared, not where read. */
  --surface-border-width: 1px;
  --surface-shadow: none;
  --panel-blur: 4px;
}

.dark {
  --shadow-sheet: 0 -1px 3px rgb(0 0 0 / 0.2), 0 -12px 32px -8px rgb(0 0 0 / 0.5);
  --background: oklch(0.13 0.028 261.692);
  --foreground: oklch(0.985 0.002 247.839);
  --card: oklch(0.21 0.034 264.665);
  --card-foreground: oklch(0.985 0.002 247.839);
  --popover: oklch(0.21 0.034 264.665);
  --popover-foreground: oklch(0.985 0.002 247.839);
  --primary: oklch(0.928 0.006 264.531);
  --primary-foreground: oklch(0.21 0.034 264.665);
  --secondary: oklch(0.278 0.033 256.848);
  --secondary-foreground: oklch(0.985 0.002 247.839);
  --muted: oklch(0.278 0.033 256.848);
  --muted-foreground: oklch(0.707 0.022 261.325);
  --accent: oklch(0.278 0.033 256.848);
  --accent-foreground: oklch(0.985 0.002 247.839);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.551 0.027 264.364);
  --panel: oklch(1 0 0 / 0.08);
  --flash: oklch(0.67 0.2 289);
}
