:root {
  --bg: #0f1115;
  --surface: #171a21;
  --text: #e8eaed;
  --muted: #9aa3b2;
  --accent: #6ea8fe;
  --border: #262b36;
  --maxw: 44rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f6f7f9;
    --text: #1a1d23;
    --muted: #5c6472;
    --accent: #2563eb;
    --border: #e4e7ec;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.9rem;
}

nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.75rem;
}

p { margin: 0 0 1.1rem; }

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
}

a { color: var(--accent); }

figure {
  margin: 2rem 0;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.card h3 { margin: 0 0 0.35rem; font-size: 0.98rem; }
.card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
