/* Blog and glossary pages (generated by scripts/build-blog.mjs). Sits on styles.css + theme.css. */

.seo-hero { padding: clamp(120px, 16vw, 180px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.seo-hero .hero__title { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.03; max-width: 18ch; margin: 18px auto 0; }
.seo-hero .hero__lede { max-width: 48ch; margin: 22px auto 0; }
.seo-cta { text-align: center; }
.seo-cta .lede { margin: 16px auto 0; max-width: 46ch; }
.post-cta__row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; margin-top: 28px; }
.post-cta__how { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.post-index__also { margin-top: 22px; }
.post-index__also a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.post-index { padding-top: 0; }

/* Cards (index + "more" block) */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-more .post-list { margin-top: 32px; }
.post-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px; border-radius: var(--radius, 22px); background: var(--surface-2, var(--surface)); border: 1px solid var(--line, rgba(127,127,127,.18)); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.post-card a:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card time { font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3, var(--ink-2)); }
.post-card h3 { font-family: var(--font-title); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.post-card p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* Article */
.post { padding-top: clamp(112px, 14vw, 160px); }
.post .wrap { width: min(720px, 100% - 2 * var(--gutter)); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono, monospace); font-size: 13px; color: var(--ink-3, var(--ink-2)); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.post__title { font-family: var(--font-title); font-size: clamp(34px, 5.4vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; margin-top: 18px; text-wrap: balance; }
.post__lede { margin-top: 18px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--ink-2); }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line, rgba(127,127,127,.18)); font-size: 14px; color: var(--ink-3, var(--ink-2)); }
.post__hero { width: min(960px, 100% - 2 * var(--gutter)); margin: 32px auto 0; }
.post__hero img { width: 100%; height: auto; border-radius: var(--radius, 22px); display: block; }

.post__body { padding-top: 30px; font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.post__body > * + * { margin-top: 1.1em; }
.post__body h2 { font-family: var(--font-title); font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; margin-top: 1.9em; scroll-margin-top: 100px; }
.post__body h3 { font-family: var(--font-title); font-size: clamp(20px, 2.4vw, 23px); font-weight: 600; line-height: 1.25; margin-top: 1.6em; scroll-margin-top: 100px; }
.post__body h4 { font-size: 18px; font-weight: 600; margin-top: 1.4em; }
.post__body h2 + *, .post__body h3 + *, .post__body h4 + * { margin-top: .6em; }
.post__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post__body a:hover { text-decoration-thickness: 2px; }
.post__body ul, .post__body ol { padding-left: 1.3em; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li + li { margin-top: .45em; }
.post__body li::marker { color: var(--accent); }
.post__body strong { font-weight: 600; }
.post__body blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.post__body hr { border: 0; border-top: 1px solid var(--line, rgba(127,127,127,.18)); margin: 2.2em 0; }
.post__body img, .post__body video { max-width: 100%; height: auto; border-radius: 16px; display: block; }
.post__body figure { margin-inline: 0; }
.post__body figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3, var(--ink-2)); }
.post__body code { font-family: var(--font-mono, monospace); font-size: .9em; padding: .1em .35em; border-radius: 6px; background: var(--surface-2, rgba(127,127,127,.12)); }
.post__body pre { overflow-x: auto; padding: 16px; border-radius: 14px; background: var(--surface-2, rgba(127,127,127,.12)); }
.post__body pre code { padding: 0; background: none; }
.post__body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.post__body th, .post__body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line, rgba(127,127,127,.18)); min-width: 120px; }
.post__body thead th { font-family: var(--font-title); font-weight: 600; }
.post--term .post__body > p:first-child { font-size: 21px; line-height: 1.5; padding: 20px 22px; border-radius: var(--radius, 22px); background: var(--surface-2, var(--surface)); border: 1px solid var(--line, rgba(127,127,127,.18)); }

@media (max-width: 600px) {
  .post__body { font-size: 17px; }
}
