/* Blog: index + article layout (dark). Builds on styles.css tokens. */

.progress { position: fixed; top: 72px; left: 0; right: 0; height: 3px; z-index: 49; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- Index ---------- */
.blog-hero { padding: 150px 0 clamp(56px, 8vw, 100px); border-bottom: 1px solid var(--line); overflow: hidden; }
/* Text and wordmark sit in separate columns, so they can never overlap */
.blog-hero-inner { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 72px); align-items: center; }
.blog-hero-text { min-width: 0; container-type: inline-size; }
.blog-hero .kicker { color: var(--sand); }
/* Sized to the text column: "CONVERSATION." always fits on one line */
.blog-hero h1 { font: 700 clamp(26px, 10.2cqi, 140px)/0.88 var(--serif); text-transform: uppercase; font-variation-settings: "SOFT" 100, "WONK" 0; }
.blog-hero h1 span { color: var(--accent); }
.blog-dek { max-width: 520px; margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: var(--fg-2); }
.blog-hero-mark { width: clamp(150px, 19vw, 280px); height: auto; transform: rotate(4deg); }
.blog-list { padding-top: clamp(56px, 7vw, 90px); }
.blog-chips { margin: 56px 0 28px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-tile { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s; }
.post-tile:hover { transform: translateY(-6px); border-color: var(--line-2); }
.tile-art { display: grid; place-items: center; aspect-ratio: 16/9; padding: 28px; }
.tile-art img { max-width: 70%; max-height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.post-tile:hover .tile-art img { transform: scale(1.06) rotate(-2deg); }
.tile-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.tile-body h3 { font: 700 26px/1.02 var(--serif); text-transform: uppercase; font-variation-settings: "SOFT" 100, "WONK" 0; }
.tile-body p { color: var(--fg-2); font-size: 15px; flex: 1; }
.post-meta { font: 700 13px var(--sans); color: var(--fg-3); }

.post-tile.feature { flex-direction: row; }
.post-tile.feature .tile-art { flex: 1.1; aspect-ratio: auto; min-height: 380px; }
.post-tile.feature .tile-body { flex: 1; justify-content: center; padding: clamp(28px, 4vw, 56px); gap: 16px; }
.post-tile.feature h3 { font-size: clamp(34px, 4.2vw, 60px); line-height: .95; }
.post-tile.feature p { flex: 0; font-size: 18px; }
.post-tile[hidden] { display: none; }

/* Home page teasers */
.post-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .3s, border-color .3s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.post-card h3 { font: 700 26px/1.02 var(--serif); text-transform: uppercase; font-variation-settings: "SOFT" 100, "WONK" 0; }
.post-card p { color: var(--fg-2); font-size: 15px; flex: 1; }

/* ---------- Article ---------- */
.post-hero { padding: 136px 0 clamp(48px, 6vw, 80px); color: var(--black); }
.post-hero.band-sand { background: var(--sand); }
.post-hero.band-yellow { background: var(--yellow); }
.post-hero.band-blue { background: var(--blue); }
.post-hero.band-red { background: var(--red); }
.post-hero-inner { width: var(--wrap); margin-inline: auto; }
.crumbs { display: flex; gap: 8px; margin-bottom: 36px; font: 700 13px var(--sans); text-transform: uppercase; }
.crumbs a { text-decoration: none; opacity: .7; }
.crumbs a:hover { opacity: 1; }
.crumbs span { opacity: .4; }
.post-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.post-hero .pill { background: var(--black) !important; color: var(--cream); height: 26px; padding: 0 12px; margin-bottom: 22px; }
.post-hero h1 { max-width: 15ch; font: 700 clamp(44px, 7vw, 100px)/0.9 var(--serif); text-transform: uppercase; font-variation-settings: "SOFT" 100, "WONK" 0; text-wrap: balance; }
.post-dek { max-width: 640px; margin-top: 24px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; }
.post-byline { margin-top: 24px; font-size: 15px; opacity: .8; }
.post-mono { width: clamp(160px, 18vw, 250px); height: auto; }

.post-layout { width: var(--wrap); margin-inline: auto; padding-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(40px, 6vw, 96px); justify-content: center; }
.post-aside { position: relative; }
.toc-wrap { position: sticky; top: 108px; }
.toc-wrap .sub { margin-bottom: 14px; color: var(--accent); font-size: 12px; }
.toc { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent; text-decoration: none; font-size: 14px; line-height: 1.35; color: var(--fg-3); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--accent); font-weight: 700; }
.share { margin-top: 24px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: none; color: var(--fg); font: 700 12px var(--sans); text-transform: uppercase; cursor: pointer; }
.share:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }

.prose { font-size: 19px; line-height: 1.7; min-width: 0; color: var(--fg-2); }
.prose > p:first-of-type::first-letter { float: left; font: 700 4.4em/0.8 var(--serif); padding: 6px 10px 0 0; color: var(--accent); }
.prose p { margin: 0 0 1.2em; }
.prose h2 { margin: 2.2em 0 .6em; color: var(--fg); font: 700 clamp(28px, 3.2vw, 42px)/1.05 var(--serif); text-transform: none; font-variation-settings: "SOFT" 100, "WONK" 0; scroll-margin-top: 100px; }
.prose h3 { margin: 1.8em 0 .5em; color: var(--fg); font: 700 21px/1.3 var(--sans); scroll-margin-top: 100px; }
.prose a { color: var(--yellow); text-underline-offset: 3px; }
.prose strong { color: var(--fg); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 4px solid var(--accent); }
.prose blockquote p { margin: 0; color: var(--fg); font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 0; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 3em 0; }
.prose code { font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }

/* AEO blocks */
.answer { margin: 0 0 24px; padding: 26px 28px; border-radius: 18px; background: var(--cream); color: var(--black); }
.answer .sub { margin-bottom: 10px; font-size: 12px; color: var(--red); }
.answer-text { margin: 0 !important; font-size: 20px; line-height: 1.55; }
.takeaways { margin: 0 0 44px; padding: 24px 28px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); }
.takeaways .sub { margin-bottom: 10px; font-size: 12px; color: var(--accent); }
.takeaways ul { margin: 0; padding-left: 1.1em; font-size: 17px; color: var(--fg); }
.faq { margin-top: 3em; }
.faq-item { border-top: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; color: var(--fg); font: 700 19px/1.35 var(--sans); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 700 26px/0.9 var(--sans); color: var(--accent); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; font-size: 17px; }

/* Episode embed (click to load YouTube) */
.ep-embed { margin: 2em 0; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.ep-facade { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; cursor: pointer; background: #000; }
.ep-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ep-facade:hover img { transform: scale(1.03); }
.ep-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: var(--cream); display: grid; place-items: center; transition: transform .3s; }
.ep-facade:hover .ep-play { transform: scale(1.08); }
.ep-embed iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.ep-embed figcaption { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px 18px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
.ep-embed figcaption .sub { color: var(--sand); font-size: 11px; margin-bottom: 4px; }
.ep-embed figcaption strong { color: var(--fg); font-size: 18px; }
.ep-meta { color: var(--fg-3); font-size: 13px; margin-top: 4px; }

.post-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-top: 3.5em; padding: 24px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.post-cta img { width: 64px; height: auto; }
.post-cta p { margin: 0; font-size: 16px; color: var(--fg-2); }
.post-cta .sub { color: var(--sand); font-size: 12px; margin-bottom: 4px; }

@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-tile.feature { flex-direction: column; }
  .post-tile.feature .tile-art { min-height: 0; aspect-ratio: 16/9; }
  .post-layout { grid-template-columns: minmax(0, 720px); }
  .post-aside { display: none; }
  .post-hero-grid { grid-template-columns: 1fr; }
  .post-mono { order: -1; width: 150px; }
  .blog-hero-inner { grid-template-columns: 1fr; }
  .blog-hero-mark { display: none; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .answer, .takeaways { padding: 20px; }
  .answer-text { font-size: 18px; }
  .post-cta { grid-template-columns: 1fr; }
  .post-cta img { display: none; }
}
