/* Blog: the /blog/ index and each post at /blog/<slug>/ (built by build.py from _src/blog/). */

.blog-head { padding: clamp(4rem, 9vw, 8rem) 0 clamp(2rem, 4vw, 3rem); }
.blog-head .lead { max-width: 46ch; }
.blog-list { padding: 0 0 var(--section); }

.post-list { list-style: none; margin: 0; padding: 0; max-width: 60rem; }
.post-card { border-top: 1px solid rgba(34, 48, 30, 0.18); padding: clamp(1.75rem, 3vw, 2.5rem) 0; }
.post-card:last-child { border-bottom: 1px solid rgba(34, 48, 30, 0.18); }
.post-card h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 0.4em; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; color: var(--heading); }
.post-empty { border-top: 2px solid var(--ochre); padding-top: 1.5rem; max-width: 46rem; }

.post-meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.post-meta a { text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }

/* A single post: a comfortable reading column */
.post { padding: clamp(4rem, 9vw, 7rem) 0 var(--section); }
.post-head, .post-body { max-width: calc(46rem + 2 * var(--margin)); }
.post-head h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.75rem); }
.post-byline { color: var(--muted); font-size: var(--step-small); }
.post-hero { margin-top: clamp(2rem, 4vw, 3rem); max-width: 72rem; }
.post-body { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.post-body h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); margin: 2.2em 0 0.5em; }
.post-body h3 { margin: 1.8em 0 0.4em; }
.post-body ul, .post-body ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.post-body li + li { margin-top: 0.4rem; }
.post-body li::marker { color: var(--accent); }
.post-body figure.photo { margin: 2rem 0; }
.post-body blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 2px solid var(--ochre); font-family: var(--font-heading); font-size: var(--step-lead); line-height: 1.45; color: var(--heading); }
.post-body .post-faq { margin-top: 3rem; border-top: 2px solid var(--ochre); padding-top: 0.5rem; }
.post-body a { text-decoration: underline; }

/* FAQ questions inside a post */
.post-body .post-faq h3 { font-size: var(--step-lead, 1.25rem); margin: 1.6em 0 0.35em; }

/* "Keep reading": the Land page hub plus related posts, under every post */
.post-related { max-width: calc(46rem + 2 * var(--margin)); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.post-related h2 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; font-family: inherit; }
.post-related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(34, 48, 30, 0.18); }
.post-related li { border-bottom: 1px solid rgba(34, 48, 30, 0.18); padding: 0.9rem 0; }
.post-related a { font-family: var(--font-heading); font-size: var(--step-lead, 1.2rem); color: var(--heading); text-decoration: none; }
.post-related a:hover { text-decoration: underline; }

/* Draft banner: only ever shown in preview/ (drafts are not built into site/) */
.post-draft { display: inline-block; background: var(--ochre); color: #1d2a1a; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.35rem 0.75rem; margin-bottom: 1.2rem; }
