/* WTF Go blog — editorial article layout (Mindbody-grade). */
:root {
	--v: #5b3df5; --v-dark: #3a1fb0;
	--ink: #14141b; --ink-soft: #3d3d49; --mute: #6b6b78;
	--line: #eae9f1; --paper: #fff; --paper-soft: #f7f7fb;
	--maxw: 1180px;
}
* { box-sizing: border-box; }
body { color: var(--ink); background: var(--paper); }

.article-shell { width: 100%; }
.article { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 64px; }

/* Header */
.article-head { max-width: 760px; margin: 40px auto 0; text-align: left; }
.article-head .crumb { color: var(--mute); text-decoration: none; font-size: 15px; }
.article-head .eyebrow { color: var(--v); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 20px 0 10px; }
.article-head h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
.article-head .lede { font-size: 21px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 20px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--mute); font-size: 15px; }
.meta .dot { opacity: .5; }
.byline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-soft); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--v); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }

/* Hero */
.hero { max-width: 1120px; margin: 28px auto 8px; }
.hero-img, .hero-video-el { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 20px 50px -24px rgba(20,20,27,.28); }
.video-wrap { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 20px 50px -24px rgba(20,20,27,.28); }
.video-wrap .poster { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }
.play-btn { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: none; background: rgba(91,61,245,.92); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(91,61,245,.5); transition: transform .15s ease; }
.play-btn:hover { transform: scale(1.06); }
.play-btn .tri { width: 0; height: 0; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.vid-badge { position: absolute; bottom: 14px; left: 14px; background: rgba(20,20,27,.72); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }

/* 3-column grid: TOC | prose | CTA rail */
.grid { display: grid; grid-template-columns: 220px minmax(0, 720px) 300px; gap: 48px; justify-content: center; align-items: start; margin-top: 40px; }
.toc { position: sticky; top: 24px; align-self: start; }
.toc-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; font-weight: 700; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--mute); text-decoration: none; font-size: 14px; line-height: 1.35; transition: color .12s, border-color .12s; }
.toc li.d3 a { padding-left: 26px; font-size: 13px; }
.toc li a:hover, .toc li a.active { color: var(--v); border-left-color: var(--v); }

/* Prose typography */
.prose { min-width: 0; font-size: 19px; line-height: 1.75; color: var(--ink-soft); }
.prose > p { margin: 0 0 1.35em; }
.prose h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 2em 0 .6em; font-weight: 800; scroll-margin-top: 24px; }
.prose h3 { font-size: 23px; line-height: 1.25; color: var(--ink); margin: 1.6em 0 .5em; font-weight: 700; scroll-margin-top: 24px; }
.prose a { color: var(--v); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.2em; border-left: 3px solid var(--v); color: var(--ink); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--paper-soft); font-weight: 700; color: var(--ink); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* Inline CTA already inside content via engine; keep readable */
.prose .cta-inline { display: flex; flex-wrap: wrap; gap: .6em; align-items: center; justify-content: space-between; margin: 1.6em 0; padding: 1em 1.25em; border-radius: 12px; background: rgba(91,61,245,.07); border: 1px solid rgba(91,61,245,.22); }

/* CTA rail */
.rail { position: sticky; top: 24px; align-self: start; }
.rail-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--paper-soft); }
.rail-kicker { color: var(--v); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.rail-h { font-size: 20px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.rail-p { font-size: 15px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.5; }
.rail-btn { display: block; text-align: center; background: var(--v); color: #fff; font-weight: 700; padding: 12px; border-radius: 10px; text-decoration: none; }
.rail-link { display: block; text-align: center; margin-top: 10px; color: var(--v); font-weight: 600; text-decoration: none; font-size: 15px; }

/* FAQ */
.faq { margin-top: 2.5em; }
.faq h2 { font-size: 28px; margin-bottom: .4em; color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ink); font-size: 18px; }
.faq details p { margin: .6em 0 0; color: var(--ink-soft); }

/* Related */
.related { max-width: 1120px; margin: 56px auto 0; }
.related h2 { font-size: 26px; margin: 0 0 20px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.rel-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.rel-cat { color: var(--v); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.rel-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.rel-card:hover .rel-title { color: var(--v); }

/* Final CTA */
.cta-final { max-width: 1120px; margin: 56px auto 0; padding: 40px; border-radius: 20px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--v), var(--v-dark)); box-shadow: 0 20px 50px -24px rgba(91,61,245,.5); }
.cta-final h2 { color: #fff; margin: 0 0 .4em; font-size: 30px; }
.cta-final p { max-width: 54ch; margin: 0 auto 1.4em; opacity: .95; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.btn.primary { background: #fff; color: var(--v-dark); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }

/* Responsive */
@media (max-width: 1080px) {
	.grid { grid-template-columns: minmax(0, 760px); }
	.toc { display: none; }
	.rail { position: static; margin-top: 32px; }
	.rail-card { max-width: 760px; }
	.rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.article { padding: 0 18px 48px; }
	.prose { font-size: 18px; }
	.rel-grid { grid-template-columns: 1fr; }
	.cta-final { padding: 28px 20px; }
}
