:root {
  --background: 42 44% 96%;
  --foreground: 222 34% 13%;
  --primary: 173 63% 31%;
  --primary-foreground: 0 0% 100%;
  --secondary: 29 88% 58%;
  --secondary-foreground: 222 34% 13%;
  --muted: 38 27% 87%;
  --muted-foreground: 222 14% 43%;
  --destructive: 358 70% 49%;
  --destructive-foreground: 0 0% 100%;
  --border: 36 24% 78%;
  --card: 0 0% 100%;
  --accent: 173 63% 31%;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.35rem;
  --shadow-sm: 0 1px 2px hsl(222 34% 13% / 0.08);
  --shadow-md: 0 12px 28px hsl(222 34% 13% / 0.12);
  --shadow-lg: 0 24px 60px hsl(222 34% 13% / 0.16);
  --transition-fast: 150ms ease;
  --transition-smooth: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dark {
  --background: 218 28% 10%;
  --foreground: 40 36% 94%;
  --primary: 174 61% 46%;
  --primary-foreground: 218 28% 10%;
  --secondary: 31 91% 62%;
  --secondary-foreground: 218 28% 10%;
  --muted: 217 20% 18%;
  --muted-foreground: 40 16% 72%;
  --destructive: 0 76% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 217 18% 25%;
  --card: 217 25% 14%;
  --accent: 174 61% 46%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: hsl(var(--background));
}

body {
  margin: 0;
  min-height: 100%;
  color: hsl(var(--foreground));
  background:
    radial-gradient(circle at top left, hsl(var(--secondary) / 0.18), transparent 34rem),
    radial-gradient(circle at 85% 20%, hsl(var(--primary) / 0.16), transparent 28rem),
    hsl(var(--background));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.focus-ring:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.35);
  outline-offset: 3px;
}

.article-prose p {
  margin-top: 1.15rem;
  line-height: 1.8;
  color: hsl(var(--foreground) / 0.82);
}

.bg-1 { background-color: hsl(var(--background)); }
.bg-2 { background-color: hsl(var(--card)); }
.bg-3 { background-color: hsl(var(--muted)); }
.bg-4 { background-color: hsl(var(--primary)); }
.text-primary { color: hsl(var(--foreground)); }
.text-secondary { color: hsl(var(--muted-foreground)); }
.text-tertiary { color: hsl(var(--foreground) / 0.62); }
.accent { color: hsl(var(--accent)); }

.safe-bottom {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

.safe-top {
  padding-top: env(safe-area-inset-top);
}