:root {
  --background: 222 33% 98%;
  --foreground: 228 25% 12%;
  --primary: 252 83% 61%;
  --secondary: 190 78% 92%;
  --muted: 220 28% 94%;
  --destructive: 356 78% 58%;
  --border: 224 23% 86%;
  --card: 0 0% 100%;
  --shadow-sm: 0 10px 24px rgba(31, 38, 135, 0.08);
  --shadow-md: 0 18px 50px rgba(31, 38, 135, 0.14);
  --shadow-lg: 0 30px 80px rgba(31, 38, 135, 0.18);
  --transition-fast: 160ms ease;
  --transition-smooth: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
}

.dark {
  --background: 229 26% 8%;
  --foreground: 220 20% 94%;
  --primary: 261 88% 70%;
  --secondary: 222 24% 18%;
  --muted: 226 18% 15%;
  --destructive: 356 82% 66%;
  --border: 226 17% 22%;
  --card: 228 24% 11%;
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 24px 56px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 36px 96px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

textarea,
button,
a {
  transition: all var(--transition-fast);
}

textarea::placeholder {
  color: hsl(var(--foreground) / 0.42);
}

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
}