:root {
  --background: 224 30% 98%;
  --foreground: 228 24% 12%;
  --primary: 266 84% 58%;
  --secondary: 178 76% 40%;
  --muted: 224 22% 92%;
  --destructive: 0 72% 54%;
  --border: 224 18% 84%;
  --card: 0 0% 100%;

  --shadow-sm: 0 8px 20px hsla(248, 35%, 20%, 0.08);
  --shadow-md: 0 18px 40px hsla(248, 35%, 20%, 0.14);
  --shadow-lg: 0 30px 80px hsla(248, 45%, 18%, 0.22);

  --transition-fast: 150ms ease;
  --transition-smooth: 280ms cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 0.6rem;
  --radius-md: 0.95rem;
  --radius-lg: 1.4rem;
}

.dark {
  --background: 228 28% 8%;
  --foreground: 220 20% 94%;
  --primary: 271 88% 68%;
  --secondary: 174 68% 48%;
  --muted: 228 18% 16%;
  --destructive: 0 78% 62%;
  --border: 228 14% 22%;
  --card: 228 20% 12%;

  --shadow-sm: 0 10px 24px hsla(0, 0%, 0%, 0.26);
  --shadow-md: 0 22px 48px hsla(0, 0%, 0%, 0.34);
  --shadow-lg: 0 36px 96px hsla(0, 0%, 0%, 0.42);
}

* {
  box-sizing: border-box;
}

html, body, #root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

input::placeholder {
  color: hsl(var(--foreground) / 0.45);
}

:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

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

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