:root {
  --background: 42 38% 96%;
  --foreground: 230 28% 12%;
  --primary: 255 84% 58%;
  --secondary: 255 42% 92%;
  --muted: 238 18% 88%;
  --muted-foreground: 232 14% 42%;
  --destructive: 350 82% 54%;
  --border: 240 22% 84%;
  --card: 0 0% 100%;
  --accent: 166 78% 34%;
  --shadow-sm: 0 6px 18px hsl(240 30% 20% / 0.08);
  --shadow-md: 0 14px 40px hsl(240 30% 20% / 0.12);
  --shadow-lg: 0 24px 70px hsl(255 64% 28% / 0.18);
  --transition-fast: 150ms ease;
  --transition-smooth: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
}

.dark {
  --background: 232 30% 8%;
  --foreground: 42 36% 94%;
  --primary: 260 92% 70%;
  --secondary: 235 24% 16%;
  --muted: 235 20% 20%;
  --muted-foreground: 238 14% 70%;
  --destructive: 350 86% 66%;
  --border: 235 18% 24%;
  --card: 234 26% 12%;
  --accent: 166 76% 48%;
  --shadow-sm: 0 6px 18px hsl(0 0% 0% / 0.24);
  --shadow-md: 0 14px 40px hsl(0 0% 0% / 0.34);
  --shadow-lg: 0 24px 70px hsl(0 0% 0% / 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a, button, input, select, textarea {
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

textarea[readonly] {
  cursor: text;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
