/* ---------- Variables ---------- */
:root {
  --bg: #fafafa;
  --text: #111;
  --accent: #0077ff;
  --muted: #666;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --text: #f5f5f5;
    --accent: #5ea1ff;
    --muted: #999;
  }
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Base ---------- */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

header, main, footer {
  max-width: 700px;
  width: 100%;
}

h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h1 span { color: var(--accent); }

h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
}

p { color: var(--muted); }

ul {
  list-style: none;
  margin-top: 1rem;
}

li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

li strong { font-weight: 600; }

.stars {
  color: var(--accent);
  font-family: "SF Mono", monospace;
}

/* ---------- Navigation ---------- */
nav {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  margin-right: 1rem;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--accent);
}

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.6;
  text-align: center;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  body { padding: 3rem; }
  h1 { font-size: 2.2rem; }
}
