:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #111823;
  --text: #edf4fb;
  --muted: #9aa9b8;
  --line: #253241;
  --accent: #78e4ba;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% -10%, #173226 0, transparent 38%), var(--bg); color: var(--text); }
a { color: inherit; }
.site-header { width: min(1120px, calc(100% - 40px)); margin: 0 auto; min-height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--accent); font-weight: 800; letter-spacing: .16em; text-decoration: none; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a.active { color: var(--text); }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 110px 0 80px; max-width: 850px; }
.eyebrow { color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 14px 0 24px; max-width: 900px; font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.045em; }
.lead { color: #c2ced9; max-width: 730px; font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.65; }
.button { display: inline-block; margin-top: 22px; padding: 13px 18px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; border-radius: 8px; }
.button:hover { background: var(--accent); color: #07110d; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 90px; }
.grid article, .note-list article { background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.grid span, time { color: var(--accent); font-size: .78rem; letter-spacing: .12em; }
.grid h2 { margin: 38px 0 10px; }
.grid p, .page p, .note-list p { color: var(--muted); line-height: 1.7; }
.page { padding: 90px 0; }
.page h1 { font-size: clamp(3rem, 6vw, 5rem); }
.narrow { max-width: 820px; }
.note-list { display: grid; gap: 16px; margin-top: 46px; }
.note-list h2 { margin: 10px 0; font-size: clamp(1.35rem, 3vw, 2rem); }
footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.not-found { min-height: 100vh; display: grid; place-content: center; text-align: center; }
.not-found h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
@media (max-width: 720px) {
  .site-header { align-items: flex-start; padding: 24px 0; gap: 18px; flex-direction: column; }
  nav { width: 100%; gap: 16px; overflow-x: auto; }
  .hero { padding-top: 76px; }
  .grid { grid-template-columns: 1fr; }
}
