:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1a1c1e;
  --muted: #5b6168;
  --line: #e4e6e8;
  --accent: #2459d6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #181b1e;
    --text: #eceef0;
    --muted: #a1a8b0;
    --line: #2a2f34;
    --accent: #7ea2ff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand img { width: 28px; height: 28px; }

nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

main { flex: 1; padding: 64px 0 72px; }

h1 {
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h2 { font-size: 22px; margin: 40px 0 8px; letter-spacing: -0.01em; }

.lede { font-size: 20px; color: var(--muted); margin: 0 0 40px; max-width: 34em; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.card h2 { margin-top: 0; }
.card p { margin: 0; }

.updated { color: var(--muted); font-size: 15px; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }
