:root {
  color-scheme: light;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --paper: oklch(0.972 0.014 83);
  --paper-2: oklch(0.944 0.018 82);
  --surface: oklch(0.992 0.006 82);
  --surface-warm: oklch(0.965 0.022 76);
  --ink: oklch(0.205 0.035 255);
  --ink-soft: oklch(0.34 0.036 255);
  --muted: oklch(0.49 0.03 250);
  --line: oklch(0.83 0.026 82);
  --line-strong: oklch(0.72 0.035 82);
  --accent: oklch(0.55 0.118 46);
  --accent-ink: oklch(0.24 0.06 45);
  --sage: oklch(0.59 0.078 156);
  --blue: oklch(0.55 0.085 244);
  --rose: oklch(0.62 0.12 354);
  --focus: oklch(0.62 0.12 46);

  --body-background:
    linear-gradient(180deg, oklch(0.972 0.014 83 / 0.9), oklch(0.972 0.014 83) 55%),
    radial-gradient(circle at 82% 10%, oklch(0.58 0.07 244 / 0.16), transparent 34%),
    var(--paper);
  --header-bg: oklch(0.972 0.014 83 / 0.78);
  --header-bg-scrolled: oklch(0.972 0.014 83 / 0.94);
  --header-border: oklch(0.61 0.055 76 / 0.22);
  --panel-bg: oklch(0.992 0.006 82 / 0.72);
  --panel-bg-strong: var(--surface);
  --chip-bg: oklch(0.992 0.006 82 / 0.66);
  --flow-bg: linear-gradient(180deg, oklch(0.992 0.006 82 / 0.92), oklch(0.965 0.022 76 / 0.84));
  --band-bg: var(--ink);
  --band-text: var(--surface);
  --demo-muted: oklch(0.78 0.02 82);
  --demo-soft: oklch(0.83 0.02 82);
  --grain-opacity: 0.045;
  --grain-blend: multiply;

  --shadow-soft:
    0 1px 1px oklch(0.25 0.04 55 / 0.05),
    0 20px 58px oklch(0.32 0.05 55 / 0.12);
  --shadow-lift:
    0 2px 8px oklch(0.25 0.04 55 / 0.07),
    0 30px 92px oklch(0.32 0.05 55 / 0.16);
  --shadow-button:
    0 1px 1px oklch(0.17 0.035 255 / 0.08),
    0 14px 30px oklch(0.17 0.035 255 / 0.14);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-w: 1180px;
  --gutter: clamp(18px, 4vw, 42px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: oklch(0.17 0.018 255);
    --paper-2: oklch(0.205 0.02 255);
    --surface: oklch(0.235 0.018 255);
    --surface-warm: oklch(0.27 0.026 74);
    --ink: oklch(0.92 0.012 82);
    --ink-soft: oklch(0.82 0.016 82);
    --muted: oklch(0.69 0.026 245);
    --line: oklch(0.37 0.022 255);
    --line-strong: oklch(0.48 0.026 255);
    --accent: oklch(0.74 0.12 58);
    --accent-ink: oklch(0.96 0.035 76);
    --sage: oklch(0.72 0.078 156);
    --blue: oklch(0.72 0.085 244);
    --rose: oklch(0.76 0.09 354);
    --focus: oklch(0.78 0.12 58);

    --body-background:
      linear-gradient(180deg, oklch(0.17 0.018 255 / 0.95), oklch(0.15 0.018 255) 58%),
      radial-gradient(circle at 82% 8%, oklch(0.55 0.08 244 / 0.22), transparent 34%),
      radial-gradient(circle at 14% 72%, oklch(0.52 0.08 46 / 0.12), transparent 30%),
      var(--paper);
    --header-bg: oklch(0.17 0.018 255 / 0.76);
    --header-bg-scrolled: oklch(0.17 0.018 255 / 0.93);
    --header-border: oklch(0.74 0.05 76 / 0.18);
    --panel-bg: oklch(0.235 0.018 255 / 0.72);
    --panel-bg-strong: oklch(0.235 0.018 255);
    --chip-bg: oklch(0.28 0.02 255 / 0.72);
    --flow-bg: linear-gradient(180deg, oklch(0.255 0.02 255 / 0.92), oklch(0.22 0.018 255 / 0.84));
    --band-bg: oklch(0.12 0.016 255);
    --band-text: var(--ink);
    --demo-muted: oklch(0.72 0.02 82);
    --demo-soft: oklch(0.82 0.018 82);
    --grain-opacity: 0.055;
    --grain-blend: screen;

    --shadow-soft:
      0 1px 1px oklch(0 0 0 / 0.16),
      0 24px 70px oklch(0 0 0 / 0.24);
    --shadow-lift:
      0 2px 8px oklch(0 0 0 / 0.18),
      0 34px 96px oklch(0 0 0 / 0.32);
    --shadow-button:
      0 1px 1px oklch(0 0 0 / 0.18),
      0 16px 34px oklch(0 0 0 / 0.22);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: oklch(0.17 0.018 255);
  --paper-2: oklch(0.205 0.02 255);
  --surface: oklch(0.235 0.018 255);
  --surface-warm: oklch(0.27 0.026 74);
  --ink: oklch(0.92 0.012 82);
  --ink-soft: oklch(0.82 0.016 82);
  --muted: oklch(0.69 0.026 245);
  --line: oklch(0.37 0.022 255);
  --line-strong: oklch(0.48 0.026 255);
  --accent: oklch(0.74 0.12 58);
  --accent-ink: oklch(0.96 0.035 76);
  --sage: oklch(0.72 0.078 156);
  --blue: oklch(0.72 0.085 244);
  --rose: oklch(0.76 0.09 354);
  --focus: oklch(0.78 0.12 58);

  --body-background:
    linear-gradient(180deg, oklch(0.17 0.018 255 / 0.95), oklch(0.15 0.018 255) 58%),
    radial-gradient(circle at 82% 8%, oklch(0.55 0.08 244 / 0.22), transparent 34%),
    radial-gradient(circle at 14% 72%, oklch(0.52 0.08 46 / 0.12), transparent 30%),
    var(--paper);
  --header-bg: oklch(0.17 0.018 255 / 0.76);
  --header-bg-scrolled: oklch(0.17 0.018 255 / 0.93);
  --header-border: oklch(0.74 0.05 76 / 0.18);
  --panel-bg: oklch(0.235 0.018 255 / 0.72);
  --panel-bg-strong: oklch(0.235 0.018 255);
  --chip-bg: oklch(0.28 0.02 255 / 0.72);
  --flow-bg: linear-gradient(180deg, oklch(0.255 0.02 255 / 0.92), oklch(0.22 0.018 255 / 0.84));
  --band-bg: oklch(0.12 0.016 255);
  --band-text: var(--ink);
  --demo-muted: oklch(0.72 0.02 82);
  --demo-soft: oklch(0.82 0.018 82);
  --grain-opacity: 0.055;
  --grain-blend: screen;

  --shadow-soft:
    0 1px 1px oklch(0 0 0 / 0.16),
    0 24px 70px oklch(0 0 0 / 0.24);
  --shadow-lift:
    0 2px 8px oklch(0 0 0 / 0.18),
    0 34px 96px oklch(0 0 0 / 0.32);
  --shadow-button:
    0 1px 1px oklch(0 0 0 / 0.18),
    0 16px 34px oklch(0 0 0 / 0.22);
}
