:root {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1c1c1e; --muted: #6b6b70; --border: #e3e3e0;
  --accent: #2f6fed; --accent-soft: #e8efff; --good: #1f8a4c; --good-soft: #e5f5ec; --warn: #9a6700; --warn-soft: #fff4d6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113; --surface: #1b1b1f; --text: #ececef; --muted: #9a9aa2; --border: #2c2c33;
    --accent: #7aa2ff; --accent-soft: #1e2a47; --good: #5fd08f; --good-soft: #15301f; --warn: #e5b94e; --warn-soft: #3a2e10;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
header.site { padding: 20px 0; }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
header nav a { color: var(--muted); text-decoration: none; margin-left: 16px; }
header nav a:hover { color: var(--text); }
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0; }
h2 { font-size: 1.25rem; margin: 40px 0 16px; }
.projects { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: " →"; color: var(--muted); }
.card:hover { border-color: var(--accent); }
.card p { margin: 0; color: var(--muted); flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; }
.pill { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill.live { background: var(--good-soft); color: var(--good); }
.pill.beta { background: var(--warn-soft); color: var(--warn); }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.steps strong { display: block; }
.steps span { color: var(--muted); }
.prose { max-width: 68ch; }
.prose h1 { margin-top: 32px; }
footer.site { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); }
