:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --text: #20231f;
  --muted: #62685f;
  --line: #d8d5cc;
  --accent: #245b45;
  --accent-soft: #dce9df;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.site-header,
main,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand { color: var(--text); font-weight: 750; text-decoration: none; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; }

main { padding: 72px 0 88px; }
.hero { max-width: 820px; margin-bottom: 72px; }
.eyebrow, .meta { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }
h1 { max-width: 800px; margin: 14px 0 22px; font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: 1.55rem; }
h3 { margin: 10px 0; font-size: 1.45rem; }
.lede { max-width: 720px; color: var(--muted); font-size: 1.2rem; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card p:last-child { color: var(--muted); }

.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.prose h2 { margin-top: 2.2em; }
.prose p, .prose li { color: #41473f; }
.note-list { display: grid; gap: 18px; padding: 0; list-style: none; }
.note-list li { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.note-list a { font-size: 1.2rem; font-weight: 700; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .site-header { align-items: flex-start; }
  nav { gap: 14px; }
  main { padding-top: 52px; }
  .cards { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141714;
    --surface: #1b201b;
    --text: #eef2ea;
    --muted: #adb5aa;
    --line: #353b35;
    --accent: #95cfaa;
    --accent-soft: #263b2d;
  }
  .prose p, .prose li { color: #cbd2c8; }
}
