/* The blog's pages (articles and the index). site.css supplies the fonts, colours, masthead, buttons and footer. */
.blog main{padding-top:18px;padding-bottom:28px}
.blog .post,.blog .index{max-width:720px;margin:0 auto}

.crumbs{font-size:16px;color:var(--soft);margin-bottom:18px}
.crumbs a{color:var(--soft)}
.crumbs a:hover{color:var(--ink)}
.blog h1{font-size:clamp(34px,5vw,52px);line-height:1.06;font-weight:600;letter-spacing:-.026em;margin-bottom:14px;text-wrap:balance}
.blog .meta{font-size:16px;color:var(--soft);margin-bottom:22px}
.blog .meta a{color:var(--soft)}

/* The short answer: first thing under the title, for a reader who wants only that. */
.answer{background:var(--card);border:1.5px solid var(--line);border-left:6px solid var(--green);border-radius:12px;padding:14px 18px 6px;margin:0 0 28px;
  box-shadow:0 1px 0 var(--line),0 14px 30px -24px rgba(29,38,29,.45)}
.answer .kicker{font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--green);margin-bottom:4px}
.answer p{font-size:21px;line-height:1.45;margin-bottom:10px}

.prose{font-size:20px;line-height:1.6}
.prose>*+*{margin-top:1.05em}
.prose>:first-child:is(p){font-size:22px;line-height:1.5;color:var(--ink)}
.answer+.prose>:first-child:is(p){font-size:inherit;line-height:inherit}
.prose h2{font-size:clamp(28px,3.4vw,36px);line-height:1.12;font-weight:600;letter-spacing:-.018em;margin-top:1.7em;margin-bottom:-.15em;scroll-margin-top:16px}
.prose h3{font-size:24px;line-height:1.2;font-weight:600;margin-top:1.5em;margin-bottom:-.2em;scroll-margin-top:16px}
.prose h4,.prose h5,.prose h6{font-size:20px;font-weight:700;margin-top:1.4em;scroll-margin-top:16px}
.prose ul,.prose ol{padding-left:1.4em}
.prose li+li{margin-top:.4em}
.prose li::marker{color:var(--green)}
.prose :not(pre)>code{background:#F6F2E8;border-radius:5px;padding:.08em .35em;font-size:.82em;overflow-wrap:anywhere}
.prose pre{background:#F6F2E8;border-radius:10px;padding:12px 14px;overflow-x:auto;line-height:1.6;white-space:pre}
.prose pre code{font-size:14px}
.prose blockquote{border-left:4px solid var(--leaf);padding:2px 0 2px 18px;color:var(--soft);font-style:italic}
.prose blockquote>*+*{margin-top:.6em}
.table-wrap{overflow-x:auto;border:1.5px solid var(--line);border-radius:12px;background:var(--card)}
.prose table{border-collapse:collapse;width:100%;font-size:17px;line-height:1.4}
.prose th,.prose td{padding:9px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.prose th{font-weight:700;background:#F6F2E8;white-space:nowrap}
.prose tr:last-child td{border-bottom:0}

/* The ending: install and the code. */
.cta{margin-top:44px;background:var(--card);border:1.5px solid var(--line);border-radius:14px;padding:20px 22px;
  box-shadow:0 1px 0 var(--line),0 14px 30px -22px rgba(29,38,29,.45)}
.cta h2{font-size:26px;line-height:1.1;font-weight:600;letter-spacing:-.012em;margin-bottom:6px}
.cta pre{background:#F6F2E8;border-radius:10px;padding:10px 12px;margin:12px 0;overflow-x:auto;white-space:pre;line-height:1.6}
.cta .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
/* The guides list under the ending: every page and post a link away from the rest. */
.related{margin-top:34px;border-top:1.5px solid var(--line);padding-top:18px}
.related h2{font-size:15px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--soft);margin-bottom:8px}
.related ul{list-style:none;display:grid;gap:6px}
.related a{font-size:19px;line-height:1.35}
.alt{margin-top:18px;font-size:16px;color:var(--soft)}

/* The index. */
.index .lede{font-size:21px;line-height:1.45;color:var(--soft);margin-bottom:26px}
.posts{list-style:none;display:grid;gap:14px}
.posts li{background:var(--card);border:1.5px solid var(--line);border-radius:14px;padding:16px 20px 14px;box-shadow:0 1px 0 var(--line)}
.posts h2{font-size:26px;line-height:1.15;font-weight:600;letter-spacing:-.012em;margin-bottom:2px}
.posts h2 a{color:var(--ink);text-decoration:none}
.posts h2 a:hover{text-decoration:underline}
.posts .meta{margin-bottom:6px;font-size:15px}
.posts p:last-child{font-size:18px;color:var(--soft)}

@media (max-width:560px){
  .prose{font-size:19px}
  .prose>:first-child:is(p){font-size:20px}
  .answer p{font-size:19px}
  .cta{padding:16px}
}
