:root {
  --bg: #f6f7f4;
  --ink: #242424;
  --paper: #fff;
  --accent: #849c7f;
  --sage: #adc5a8;
  --muted: #5c574f;
  --display: "Jost", Helvetica, sans-serif;
  --body: "Manrope", Helvetica, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(760px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  display: flex; justify-content: flex-end; align-items: center;
  width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 16px;
  font-family: var(--body); font-size: 14px; font-weight: 500;
}
.site-header nav { display: flex; gap: 18px; }
.site-header a { text-decoration: none; }
.cover {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  background: var(--bg);
  margin: 8px 0 28px;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.kicker { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
article h2 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 28px 0 12px; }
article h3 { font-size: 18px; margin: 20px 0 8px; }
article p, article li { margin-bottom: 12px; }
article ul, article ol { padding-left: 20px; margin-bottom: 16px; }
article table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
article th, article td { border: 1px solid rgba(36,36,36,.16); padding: 8px 10px; text-align: left; vertical-align: top; }
article blockquote {
  margin: 16px 0 24px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 16px;
  border-left: 3px solid var(--sage);
}
.diagram {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 16px;
  margin: 8px 0 8px;
  background: #fff;
}
.diagram-cap {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.back { display: inline-block; margin: 8px 0 20px; font-weight: 600; }
footer { padding: 28px 0 48px; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  margin: 12px 0 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #242424;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
