/* output.md — blog (shares tokens, nav, buttons and footer with landing.css) */

body.blogPage { background: var(--paper); }
.blogPage .nav { position: sticky; }

.blogHead { padding: clamp(120px, 16vw, 190px) 0 clamp(40px, 5vw, 64px); }
.blogHead .display--l { max-width: 16ch; }
.blogHead .lead { margin-top: 18px; }

/* ---------------------------------------------------------- list page */

.postGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: clamp(70px, 9vw, 120px); }
.postCard { background: var(--paper-2); padding: 28px 26px 30px; display: grid; gap: 14px; align-content: start; color: inherit; transition: background .3s; position: relative; }
.postCard:hover { background: #fff; }
.postCard--feat { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding: clamp(30px, 4vw, 52px); align-items: end; }
.postCard__meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.postCard__meta .n { color: var(--accent); }
.postCard h2 { margin: 0; font-family: var(--display); font-weight: 600; font-variation-settings: 'wdth' 108; letter-spacing: -.025em; line-height: 1.08; font-size: clamp(1.2rem, 1.7vw, 1.5rem); text-wrap: balance; }
.postCard--feat h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); }
.postCard p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.postCard--feat p { font-size: clamp(1rem, 1.2vw, 1.15rem); }
.postCard .arrowLink { margin-top: 6px; }
.postCard--feat > div { display: grid; gap: 16px; }
.draftPill { display: inline-flex; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--accent); color: var(--accent); font-size: 9.5px; letter-spacing: .16em; }

.blogEmpty { border: 1px dashed var(--line); border-radius: 18px; padding: 60px 30px; text-align: center; color: var(--ink-mute); margin-bottom: clamp(70px, 9vw, 120px); }

/* ---------------------------------------------------------- post page */

.postHead { padding: clamp(120px, 15vw, 180px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.postHead .eyebrow { margin-bottom: 26px; }
.postHead .display--l { max-width: 20ch; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.postHead .lead { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 60ch; }
.postHead__meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.postHead__meta b { font-weight: 500; color: var(--ink); }

.postBody { display: grid; grid-template-columns: minmax(0, 1fr) 68ch minmax(0, 1fr); padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); }
.postBody > article, .postBody > .postCta { grid-column: 2; min-width: 0; }
.postBody aside { grid-column: 1; padding-right: 40px; }
.postSide { position: sticky; top: 100px; display: grid; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.postSide a { color: var(--ink-soft); }
.postSide a:hover { color: var(--accent); }

.prose { font-family: 'Lora', Georgia, serif; font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; text-wrap: pretty; }
.prose p:first-of-type { font-size: 20px; line-height: 1.7; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 600; font-variation-settings: 'wdth' 108; letter-spacing: -.02em; line-height: 1.12; color: var(--ink); text-wrap: balance; }
.prose h1, .prose h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 2.2em 0 .7em; }
.prose h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); margin: 1.8em 0 .6em; }
.prose h4 { font-size: 1.05rem; margin: 1.6em 0 .5em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-deep); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose ul li::marker { color: var(--accent); }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 22px; border-left: 2px solid var(--accent); font-style: italic; color: var(--ink-soft); }
.prose hr { border: 0; height: 1px; width: 64px; background: var(--line); margin: 2.6em 0; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--paper-3); padding: 2px 6px; border-radius: 5px; }
.prose pre { margin: 1.6em 0; padding: 18px 20px; background: var(--ink); color: var(--d-text); border-radius: 14px; overflow: auto; font-size: 13px; line-height: 1.7; }
.prose pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.prose img { max-width: 100%; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-family: var(--body); font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }

.postCta { margin: clamp(50px, 6vw, 80px) 0 0; padding: clamp(28px, 4vw, 44px); border-radius: 18px; background: var(--ink); color: var(--d-text); display: grid; gap: 24px; }
.postCta h3 { margin: 0 0 8px; color: var(--d-text); font-family: var(--display); font-weight: 600; font-variation-settings: 'wdth' 110; letter-spacing: -.025em; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; }
.postCta p { margin: 0; color: var(--d-mute); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.postCta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.morePosts { padding: clamp(60px, 8vw, 100px) 0; border-top: 1px solid var(--line); }
.morePosts .eyebrow { margin-bottom: 26px; }
.morePosts .postGrid { margin-bottom: 0; }

.notFound { padding: clamp(160px, 20vw, 240px) 0 clamp(100px, 12vw, 160px); text-align: center; display: grid; justify-items: center; gap: 18px; }

/* ---------------------------------------------------------- footer */

.blogFoot { background: var(--d-bg); color: var(--d-text); }
.blogFoot .foot { margin-top: 0; }

/* ------------------------------------------------------- responsive */

@media (max-width: 1000px) {
    .postGrid { grid-template-columns: repeat(2, 1fr); }
    .postCard--feat { grid-template-columns: 1fr; gap: 20px; }
    .postBody { grid-template-columns: minmax(0, 1fr); }
    .postBody > article, .postBody > .postCta, .postBody aside { grid-column: 1; }
    .postBody aside { padding: 0 0 28px; }
    .postSide { position: static; display: flex; flex-wrap: wrap; gap: 18px; }
}
@media (max-width: 640px) {
    .postGrid { grid-template-columns: 1fr; }
    .prose { font-size: 17px; }
    .prose p:first-of-type { font-size: 18px; }
}
