/* culvertvpn.com/blog — long-form layout on top of site.css.
   Same tokens, same two typefaces. The one deliberate difference from the landing page is
   the measure: posts are set at 66ch with a generous leading so a 1,000-word answer reads
   like an article, not a brochure. Hubs and the front page use one card style: title,
   description, date and reading time — nothing decorative. */

.post .wrap { max-width: 46rem; }
.blog-index .wrap { max-width: 64rem; }
.post, .blog-index { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem); }

/* breadcrumb */
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0; }
.crumbs li + li::before { content: "/"; margin-inline: 0.5rem; color: var(--rule); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-soft); }

/* post header */
.post-head { display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.post-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; }
.post-head .lede { font-size: 1.15rem; }
.meta { font-size: 0.92rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.tag { display: inline-block; background: var(--accent-wash); color: var(--accent-deep); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.82rem; font-weight: 600; text-decoration: none; margin-inline-end: 0.3rem; }
.tag:hover { background: var(--accent); color: var(--on-accent); }

/* table of contents */
.toc { border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 2rem; background: var(--surface); }
.toc p { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-inline-start: 1.2rem; font-size: 0.95rem; line-height: 1.7; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }

/* prose */
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { max-width: 66ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 2.4rem; max-width: 30ch; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; max-width: 66ch; }
.prose li + li { margin-top: 0.35rem; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; background: var(--surface2); padding: 0.08em 0.4em; border-radius: 6px; }
.prose blockquote { border-inline-start: 3px solid var(--accent); margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.1rem; color: var(--ink-soft); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.prose strong { font-weight: 600; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.prose th, .prose td { text-align: start; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; background: var(--surface2); }

/* faq */
.post-faq { margin-top: 2.6rem; }
.post-faq h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.post-faq details { border-top: 1px solid var(--rule); padding: 0.9rem 0; }
.post-faq details:last-child { border-bottom: 1px solid var(--rule); }
.post-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; color: var(--accent); font-family: var(--display); font-size: 1.3rem; line-height: 1; flex: none; }
.post-faq details[open] summary::after { content: "–"; }
.post-faq details p { margin-top: 0.6rem; color: var(--ink-soft); }

/* cta */
.post-cta { margin-top: 2.6rem; background: var(--accent-wash); border-radius: 20px; padding: 1.4rem 1.5rem; display: grid; gap: 1rem; }
.post-cta p { max-width: none; }
.post-cta .btn { justify-self: start; }

/* previous / next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: grid; gap: 0.2rem; border: 1px solid var(--rule); border-radius: 14px; padding: 0.9rem 1rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.post-nav a span { font-size: 0.8rem; color: var(--muted); font-weight: 500; text-transform: none; }
.post-nav a:hover { border-color: var(--accent); color: var(--accent-deep); }
.post-nav .next { text-align: end; grid-column: 2; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; text-align: start; } }

/* cards: shared by related, hubs and the front page */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.blog-index .cards { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 2rem; }
.card { border-top: 1px solid var(--rule); padding: 1rem 0; }
.card article { display: grid; gap: 0.35rem; }
.card h3 { font-family: var(--text); font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--accent-deep); text-decoration: underline; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .meta { font-size: 0.85rem; }
.related { margin-top: 2.6rem; }
.related h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.related .card:last-child { border-bottom: 1px solid var(--rule); }
.hub-link { margin-top: 1.6rem; font-size: 0.95rem; color: var(--muted); }

/* front page and hubs */
.index-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.index-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 18ch; }
.index-head .lede { max-width: 70ch; }
.count-line { color: var(--muted); font-size: 0.95rem; }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin-top: 0.4rem; }
.jump a { border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.9rem; text-decoration: none; color: var(--ink-soft); }
.jump a:hover { border-color: var(--accent); color: var(--accent-deep); }
.cluster { padding-block: 1.6rem 0; border: 0; }
.cluster + .cluster { border: 0; margin-top: 1.4rem; }
.cluster-head { display: grid; gap: 0.3rem; margin-bottom: 0.6rem; }
.cluster-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.cluster-head h2 a { text-decoration: none; color: var(--ink); }
.cluster-head h2 a:hover { color: var(--accent-deep); text-decoration: underline; }
.cluster-head p { color: var(--muted); }
.cluster .more { margin-top: 0.8rem; font-weight: 600; }
.cluster .more a { text-decoration: none; }
.cluster .more a:hover { text-decoration: underline; }
.hub .cards { grid-template-columns: 1fr; max-width: 46rem; }
.other-hubs { margin-top: 3rem; padding: 0; border: 0; }
.other-hubs h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
