:root {
  --bg: #f7f4ee;
  --ink: #1d2433;
  --muted: #5b6474;
  --line: #d9d3c7;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --card: #fffdf9;
  --note: #efe7d6;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d;
    --ink: #e9e6df;
    --muted: #a3abb8;
    --line: #2b323d;
    --accent: #59b89c;
    --accent-ink: #0d1a16;
    --card: #181d26;
    --note: #222a35;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
header.site { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.brand { font: 700 1.05rem/1 system-ui, sans-serif; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav.site a { font: 500 0.95rem system-ui, sans-serif; color: var(--muted); text-decoration: none; margin-left: 1.25rem; }
nav.site a:hover { color: var(--ink); }
.status {
  font: 500 0.85rem/1.4 system-ui, sans-serif;
  background: var(--note);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-block;
  padding: 0.35rem 0.85rem;
  color: var(--muted);
}
.hero { padding: 3.5rem 0 3rem; max-width: var(--measure); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; margin: 1rem 0 1.25rem; letter-spacing: -0.01em; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.75rem; }
.button {
  display: inline-block;
  font: 600 0.95rem system-ui, sans-serif;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.15rem;
  border-radius: 0.5rem;
  text-decoration: none;
}
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); margin-left: 0.5rem; }
section { padding: 3rem 0; border-top: 1px solid var(--line); }
section h2 { font: 700 0.85rem/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 1.5rem; }
.prose { max-width: var(--measure); }
.prose h3 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.75rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.25rem 1.25rem 1.1rem; }
.step::before { counter-increment: step; content: counter(step); font: 700 0.85rem system-ui, sans-serif; color: var(--accent); }
.step h3 { font-size: 1.15rem; margin: 0.35rem 0 0.5rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
.posts { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.posts li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.posts li:last-child { border-bottom: 0; }
.posts a { font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.posts .meta { font: 0.85rem system-ui, sans-serif; color: var(--muted); }
.posts p { margin: 0.25rem 0 0; color: var(--muted); }
.subscribe iframe { width: 100%; max-width: 30rem; height: 150px; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--card); }
footer.site { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font: 0.85rem/1.5 system-ui, sans-serif; color: var(--muted); }
footer.site a { color: var(--muted); }
article.post { max-width: var(--measure); padding: 2.5rem 0 3rem; }
article.post h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.12; margin: 0.5rem 0 0.75rem; }
article.post .meta { font: 0.9rem system-ui, sans-serif; color: var(--muted); }
article.post h2 { font: 700 1.35rem/1.3 inherit; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 2.25rem 0 0.75rem; }
article.post table { border-collapse: collapse; width: 100%; font: 0.92rem/1.4 system-ui, sans-serif; margin: 1rem 0; display: block; overflow-x: auto; }
article.post th, article.post td { border-bottom: 1px solid var(--line); padding: 0.45rem 0.6rem; text-align: left; white-space: nowrap; }
article.post blockquote { margin: 1.25rem 0; padding: 0.25rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.draft-flag { font: 700 0.8rem system-ui, sans-serif; color: #b4442f; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 40rem) {
  nav.site a { margin-left: 0.9rem; }
  .button.ghost { margin: 0.6rem 0 0; }
}
article.post figure { margin: 1.75rem 0; }
article.post figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0.5rem; }
article.post figure.narrow img { max-width: min(30rem, 100%); }
article.post figcaption { font: 0.85rem/1.45 system-ui, sans-serif; color: var(--muted); margin-top: 0.5rem; }
