:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #fff;
  --text: #20211f;
  --muted: #686a64;
  --line: #dcd8cf;
  --accent: #17594a;
  --content: 720px;
}

* { box-sizing: border-box; }

html { font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-underline-offset: 0.2em; }

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

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

.brand { font-weight: 750; text-decoration: none; }

nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover,
nav a[aria-current="page"] { color: var(--text); }

.hero { padding: 110px 0 96px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 700; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1; letter-spacing: -0.055em; }
.lead { max-width: 520px; margin: 24px 0 32px; color: var(--muted); font-size: 1.2rem; }

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.section { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-heading h2 { font-size: 1.6rem; }

.post-list article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-list time,
.prose time { color: var(--muted); font-size: 0.9rem; }
.post-list h2,
.post-list h3 { margin: 5px 0; line-height: 1.3; }
.post-list h2 a,
.post-list h3 a { text-decoration: none; }
.post-list p { margin: 8px 0 0; color: var(--muted); }

.page-header { padding: 72px 0 32px; }
.page-header h1,
.prose h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 4.2rem); line-height: 1.05; letter-spacing: -0.045em; }
.intro { color: var(--muted); }

.prose { padding: 72px 0 96px; }
.prose header { margin-bottom: 48px; }
.prose h2 { margin-top: 2em; line-height: 1.3; }
.prose p,
.prose li { max-width: 68ch; }
.prose img { max-width: 100%; height: auto; }
.prose code { padding: 0.12em 0.3em; background: #e9e6de; border-radius: 3px; }
.prose pre { overflow-x: auto; padding: 18px; background: #272824; color: #f5f3ee; border-radius: 5px; }
.prose pre code { padding: 0; background: transparent; }

.empty { color: var(--muted); }
footer { padding: 30px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

@media (max-width: 560px) {
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 0; }
  nav { gap: 16px; }
  .hero { padding: 76px 0 68px; }
}
