/* Design System */
:root {
  /* Light theme colors */
  --bg-color: hsl(210, 20%, 98%);
  --text-color: hsl(210, 10%, 15%);
  --accent-color: hsl(215, 70%, 55%);
  --card-bg: hsla(0, 0%, 100%, 0.8);
  --card-blur: 12px;
  --border-radius: 12px;
  --transition: 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: hsl(210, 15%, 12%);
    --text-color: hsl(210, 10%, 85%);
    --accent-color: hsl(215, 70%, 70%);
    --card-bg: hsla(0, 0%, 100%, 0.08);
  }
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 600;
  margin-top: 1.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

button:hover {
  background: hsl(215, 70%, 50%);
}

/* Glassmorphism Card */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-blur));
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Micro‑animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Focus outlines */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Dark mode toggle */
#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}
