:root {
  --background: 48 45% 96%;
  --foreground: 222 47% 12%;
  --primary: 263 82% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 177 42% 88%;
  --secondary-foreground: 220 45% 12%;
  --muted: 42 24% 88%;
  --muted-foreground: 221 16% 42%;
  --destructive: 4 78% 55%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 18% 82%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 18px hsl(222 47% 12% / 0.08);
  --shadow-md: 0 14px 36px hsl(222 47% 12% / 0.12);
  --shadow-lg: 0 24px 70px hsl(263 82% 30% / 0.18);
  --transition-fast: 140ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
}

.dark {
  --background: 230 28% 8%;
  --foreground: 46 45% 94%;
  --primary: 268 92% 72%;
  --primary-foreground: 230 28% 8%;
  --secondary: 215 26% 18%;
  --secondary-foreground: 46 45% 94%;
  --muted: 226 22% 16%;
  --muted-foreground: 222 16% 70%;
  --destructive: 4 78% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 225 20% 24%;
  --card: 229 28% 11%;
  --shadow-sm: 0 6px 18px hsl(0 0% 0% / 0.24);
  --shadow-md: 0 14px 36px hsl(0 0% 0% / 0.32);
  --shadow-lg: 0 24px 70px hsl(268 92% 20% / 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, hsl(var(--primary) / 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, hsl(177 72% 48% / 0.16), transparent 30rem),
    hsl(var(--background));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a, textarea, input {
  -webkit-tap-highlight-color: transparent;
}

textarea, input, select {
  font-size: max(16px, 1rem);
}

button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.45);
  outline-offset: 3px;
}

::selection {
  background: hsl(var(--primary) / 0.24);
}

pre code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
