:root {
  color-scheme: light dark;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f4ef;
  color: #171714;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f4ef;
  color: #171714;
}

.shell {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 48px;
}

.brand {
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav { display: flex; gap: 18px; }
nav a, footer a { color: #5b5a54; text-decoration: none; }
nav a:hover, footer a:hover { color: #171714; }

main { font-size: 17px; line-height: 1.65; }
h1 {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
h2 { margin: 40px 0 8px; font-size: 22px; letter-spacing: -0.025em; }
p, li { color: #44433e; }
.lede { max-width: 600px; font-size: 21px; }
.note {
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid #d9d7cf;
  border-radius: 14px;
  background: #fff;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid #d9d7cf;
  color: #77756d;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  :root, body { background: #171714; color: #f3f1e9; }
  nav a, footer a, p, li { color: #b8b5aa; }
  nav a:hover, footer a:hover { color: #f3f1e9; }
  .note { background: #22221e; border-color: #393831; }
  footer { border-color: #393831; }
}
