:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #2563eb;
  --card: #fff;
  --border: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --text: #eee;
    --muted: #999;
    --accent: #60a5fa;
    --card: #1a1a1a;
    --border: #2a2a2a;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

nav, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

nav .logo { font-weight: 700; color: var(--text); }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav ul a { color: var(--muted); }
nav ul a:hover { color: var(--text); text-decoration: none; }

section { padding: 4rem 0; }

.hero { padding: 6rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; }
.tagline { font-size: 1.25rem; color: var(--muted); margin-top: 1rem; }

h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }

.links { display: flex; gap: 1.5rem; list-style: none; margin-top: 1rem; }

footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
