:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c66;
  --accent: #2563eb;
  --card: #f4f5f7;
  --radius: 12px;
}

* { box-sizing: border-box; }

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

.wrap { max-width: 960px; margin: 0 auto; padding: 24px 20px; }

header.wrap { display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
nav a { margin-left: 20px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }

.hero { padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid article { background: var(--card); padding: 20px; border-radius: var(--radius); }
.grid h3 { margin-top: 0; }

footer.wrap { color: var(--muted); border-top: 1px solid var(--card); margin-top: 48px; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #111214; --text: #f2f2f3; --muted: #a0a0aa; --card: #1d1f23; --accent: #60a5fa; }
}
