/* The blog (site/blog/*.html, built by scripts/build_blog.py). Loaded after tokens.css and site.css;
   uses only the tokens in DESIGN.md. Shared pieces (page hero, prose, toc, chips, buttons) come from site.css. */

/* ---------- hero, breadcrumb, byline ---------- */
.blog-hero { padding-bottom: clamp(36px, 5vw, 60px); }
.blog-hero h1 { font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1.08; color: var(--text); max-width: 22ch; text-wrap: balance; margin-bottom: 0.4em; }
.blog-hero--index h1 { font-family: var(--wordmark); font-weight: 900; font-size: var(--step-4); line-height: 1; max-width: none; }
.blog-lede { font-size: var(--step-1); line-height: 1.45; color: var(--text); max-width: 60ch; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font: 500 0.74rem/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin: 0; max-width: none; }
.breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.breadcrumb li { color: var(--text-dim); }
.breadcrumb li + li::before { content: "›"; margin: 0 10px; color: var(--salt); }
.breadcrumb a { color: var(--salt); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb a[aria-current] { color: var(--text-dim); }

/* ---------- the post ---------- */
.blog-layout { padding-top: clamp(30px, 4vw, 50px); }
.blog-post { font-size: var(--step-0); }
.blog-post p, .blog-post li { max-width: 68ch; }
.blog-post h2 { font-size: var(--step-2); margin-top: 0.2em; }
.blog-post .prose-section { padding-bottom: clamp(24px, 3vw, 36px); margin-bottom: clamp(24px, 3vw, 36px); }
.blog-post a.ext::after { content: "↗"; font-size: 0.75em; margin-left: 2px; text-decoration: none; display: inline-block; }
.blog-figure { margin: 0 0 clamp(24px, 3vw, 36px); }
.blog-figure__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--royal); box-shadow: var(--shadow); }
.blog-figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.blog-figure figcaption { font: 500 0.7rem/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-top: 10px; }
.blog-figure figcaption span { color: var(--salt); }
.blog-intro p:first-child { font-size: var(--step-1); line-height: 1.5; }

/* key takeaways: a parchment card, like the narration scrolls */
.takeaways { margin: 8px 0 clamp(30px, 4vw, 44px); padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); color: var(--ink);
  background: linear-gradient(180deg, #fbf2dc, var(--parchment)); box-shadow: var(--shadow), inset 0 0 0 1px var(--parchment-3); }
.takeaways__title { font: 700 0.8rem var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--royal); margin: 0 0 10px; }
.prose .takeaways ul { margin: 0; }
.prose .takeaways li { color: var(--ink); }
.prose .takeaways li::marker { color: var(--salt-deep); }
.prose .takeaways a:not(.btn) { color: var(--royal); }
.prose .takeaways strong { color: var(--ink); }

.blog-disclaimer { font-style: italic; color: var(--text-dim); border-left: 2px solid var(--salt); padding-left: 14px; margin: 0 0 28px; }

/* soft call to action */
.blog-cta { margin: 10px 0 0; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 0% 0%, rgba(244, 167, 160, 0.18), transparent 70%), var(--royal); }
.blog-cta__title { font: 700 var(--step-1)/1.2 var(--display); color: var(--text); margin-bottom: 0.4em; }
.blog-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.prose .blog-cta__btns .btn { margin: 0; }
.blog-cta--index { margin: clamp(40px, 6vw, 70px) 0 clamp(50px, 7vw, 90px); }

/* recipe card */
.recipe { margin: 24px 0; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(74, 26, 90, 0.35); }
.prose .recipe h3 { margin-top: 0; }
.recipe h4 { font: 700 0.78rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--salt); margin: 0 0 10px; }
.recipe__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe__facts span { font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--text-dim); }
.recipe__cols { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; }
@media (max-width: 640px) { .recipe__cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cards (index and related reading) ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.bcard { min-width: 0; }
.bcard__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); border-radius: var(--radius); overflow: hidden;
  background: var(--royal-deep); border: 1px solid var(--line); transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.bcard__link:hover { transform: translateY(-3px); border-color: rgba(244, 167, 160, 0.55); }
.bcard__pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--royal); }
.bcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.bcard__body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.bcard__meta { font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--salt); margin: 0; }
.bcard__title { font: 700 var(--step-1)/1.15 var(--display); color: var(--text); margin: 0; text-wrap: balance; }
.bcard__text { color: var(--text-dim); font-size: 1rem; line-height: 1.5; margin: 0; }

.related { padding: clamp(50px, 7vw, 90px) 0; background: var(--royal-deep); border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-2); }
.related__all { margin: 28px 0 0; }

/* ---------- blog index ---------- */
.blog-index { padding-top: clamp(36px, 5vw, 60px); }
.bfeature__link { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; text-decoration: none; color: var(--text); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(80% 120% at 100% 0%, rgba(244, 167, 160, 0.16), transparent 70%), var(--royal); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bfeature__pic { min-height: 280px; background: var(--royal-deep); }
.bfeature__pic img { width: 100%; height: 100%; object-fit: cover; }
.bfeature__body { padding: clamp(22px, 4vw, 44px); display: grid; align-content: center; gap: 10px; }
.bfeature__body p { margin: 0; }
.bfeature__title { font: 800 var(--step-2)/1.1 var(--display); margin: 0; text-wrap: balance; }
.bfeature__body .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 860px) { .bfeature__link { grid-template-columns: minmax(0, 1fr); } .bfeature__pic { aspect-ratio: 16 / 9; min-height: 0; } }

.bchips { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(36px, 5vw, 56px) 0 8px; scroll-margin-top: 90px; }
.bchips .chip { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.bchips .chip span { font-family: var(--mono); opacity: 0.75; }
.bcat { padding-top: clamp(30px, 4vw, 48px); scroll-margin-top: 90px; }
.bcat[hidden] { display: none; }
.bcat__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.bcat__head h2 { font-size: var(--step-2); margin: 0; }
.bcat__head p { margin: 0; color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) { .bcard__link { transition: none; } .bcard__link:hover { transform: none; } }
