/* =========================================================================
   ANTHASMA — Blog & detail pages (listing, article prose, recipe detail)
   Built on the same tokens as styles.css / layout.css.
   ========================================================================= */

/* ============================================================ PAGE HERO === */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.4rem, 5vw, 4.2rem));
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { max-width: 760px; }
.page-hero-inner.center { margin-inline: auto; text-align: center; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-top: 1.1rem;
}
.page-hero .lead { margin-top: 1.3rem; }
.page-hero .eyebrow.center::before { display: none; }

/* Breadcrumb / back link */
.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--ink-soft);
  transition: gap .35s var(--ease), color .3s var(--ease);
}
.back-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.back-link:hover { color: var(--clay); gap: .75rem; }
.back-link:hover svg { transform: translateX(-2px); }

/* ============================================================ BLOG LIST === */
.blog-list { padding-top: clamp(1rem, 2vw, 2rem); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem 1.5rem;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.blog-card:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.blog-card image-slot {
  width: 100%; height: 220px;
  border-radius: 0; box-shadow: none;
}
.blog-card video {
  width: 100%; height: 220px;
  object-fit: cover; display: block; background: var(--sand);
}
.blog-card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.blog-card .tag { margin-bottom: .9rem; }
.blog-card h3 {
  font-size: 1.32rem; font-weight: 500; line-height: 1.18;
  letter-spacing: -.015em; text-wrap: balance;
}
.blog-card p {
  font-size: .94rem; color: var(--ink-soft);
  margin-top: .6rem; line-height: 1.6; flex: 1;
  text-wrap: pretty;
}
.blog-card .blog-meta {
  display: flex; align-items: center; gap: .7rem;
  margin-top: 1.3rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-display); font-size: .8rem; color: var(--ink-faint);
}
.blog-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); opacity: .6; }
.blog-card .read-more {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--sage-deep); font-weight: 600;
  transition: gap .35s var(--ease), color .3s;
}
.blog-card .read-more svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.blog-card:hover .read-more { gap: .65rem; color: var(--clay); }

/* ========================================================= ARTICLE PAGE === */
.article-hero { padding-top: calc(var(--header-h) + clamp(2rem, 4vw, 3.4rem)); padding-bottom: 0; }
.article-head { max-width: var(--container-narrow); margin-inline: auto; text-align: center; }
.article-head .back-link { margin-bottom: 1.8rem; }
.article-head h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.2rem, 4.3vw, 3.5rem); line-height: 1.07;
  letter-spacing: -.025em; margin-top: 1rem; text-wrap: balance;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem;
  margin-top: 1.6rem;
  font-family: var(--font-display); font-size: .9rem; color: var(--ink-faint);
}
.article-meta .author { color: var(--ink-soft); font-weight: 600; }
.article-cover {
  max-width: 1040px; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
  padding-inline: var(--pad-x);
}
.article-cover image-slot, .article-cover video {
  width: 100%; height: clamp(280px, 42vw, 520px);
  border-radius: var(--radius-lg);
}
.article-cover video { object-fit: cover; display: block; }

/* Split hero — title left, portrait video right */
.article-hero-split { padding-bottom: clamp(2.4rem, 5vw, 4rem); }
.article-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.article-head-split {
  max-width: none;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.article-head-split .back-link { margin-bottom: 1.4rem; }
.article-head-split h1 { margin-top: .8rem; }
.article-head-split .article-meta { justify-content: flex-start; }
.article-head-split .eyebrow.center { justify-content: flex-start; }
.article-hero-media { display: flex; justify-content: center; }
.article-hero-media video {
  width: auto;
  max-width: 100%;
  height: clamp(420px, 62vh, 660px);
  border-radius: var(--radius-lg);
  object-fit: contain;
  display: block;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .article-hero-grid { grid-template-columns: 1fr; gap: clamp(1.8rem, 5vw, 2.6rem); }
  .article-head-split { text-align: center; }
  .article-head-split .article-meta { justify-content: center; }
  .article-head-split .eyebrow.center { justify-content: center; }
  .article-hero-media video { height: auto; max-height: 70vh; width: 100%; max-width: 380px; }
}

/* Prose */
.prose {
  max-width: 720px; margin-inline: auto;
  padding-block: clamp(2.6rem, 5vw, 4rem);
}
.prose > * + * { margin-top: 1.4rem; }
.prose .lead-para {
  font-size: clamp(1.18rem, 1.7vw, 1.4rem);
  line-height: 1.6; color: var(--ink); font-weight: 400;
}
.prose p { font-size: 1.08rem; line-height: 1.82; color: var(--ink-soft); }
.prose h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.02em;
  color: var(--ink); margin-top: 2.8rem; line-height: 1.15;
}
.prose h2 + p, .prose h2 + ul { margin-top: 1rem; }
.prose h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.22rem; color: var(--ink); margin-top: 2rem;
}
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: .8rem; }
.prose li {
  position: relative; padding-left: 1.9rem;
  font-size: 1.06rem; line-height: 1.65; color: var(--ink-soft);
}
.prose ul li::before {
  content: ""; position: absolute; left: .2rem; top: .62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sage); 
}
.prose ol { counter-reset: pr; }
.prose ol li { counter-increment: pr; }
.prose ol li::before {
  content: counter(pr); position: absolute; left: 0; top: .05em;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--clay-tint); color: var(--clay);
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  display: grid; place-items: center;
}
.prose blockquote {
  margin-block: 2.2rem; padding: .2rem 0 .2rem 1.6rem;
  border-left: 3px solid var(--clay-soft);
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.4;
  color: var(--sage-deep); letter-spacing: -.01em;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose .note {
  background: var(--sage-tint); border-radius: var(--radius-md);
  padding: 1.5rem 1.7rem; margin-block: 2rem;
}
.prose .note p { color: var(--sage-deep); font-size: 1rem; }
.prose .note .note-label {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep);
  display: block; margin-bottom: .5rem;
}

/* Article footer nav (prev / next) */
.article-foot { border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 4vw, 3.4rem); }
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  max-width: 920px; margin-inline: auto;
}
.article-nav a {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.4rem 1.6rem; border: 1px solid var(--line-soft);
  border-radius: var(--radius-md); background: var(--ivory);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.article-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--sand); }
.article-nav a.next { text-align: right; align-items: flex-end; }
.article-nav .dir {
  font-family: var(--font-display); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--clay);
  display: inline-flex; align-items: center; gap: .4rem;
}
.article-nav .dir svg { width: 14px; height: 14px; }
.article-nav .at { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ink); line-height: 1.25; }
.article-nav a.disabled { opacity: .4; pointer-events: none; }

/* ========================================================== RECIPE PAGE === */
.recipe-hero { padding-top: calc(var(--header-h) + clamp(2rem, 4vw, 3.4rem)); }
.recipe-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.recipe-hero .back-link { margin-bottom: 1.6rem; }
.recipe-hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.08;
  letter-spacing: -.025em; margin-top: 1rem; text-wrap: balance;
}
.recipe-hero .lead { margin-top: 1.2rem; }
.recipe-hero image-slot { width: 100%; height: clamp(340px, 44vw, 500px); border-radius: var(--radius-lg); }
.recipe-stats {
  display: flex; flex-wrap: wrap; gap: 1.8rem;
  margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.recipe-stat { display: flex; flex-direction: column; gap: .2rem; }
.recipe-stat .s-label {
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
}
.recipe-stat .s-val { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--sage-deep); }

.recipe-detail-grid {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1000px; margin-inline: auto;
  align-items: start;
}
.ingredients {
  background: var(--ivory); border: 1px solid var(--line-soft);
  border-radius: var(--radius-md); padding: 1.9rem 1.8rem;
  position: sticky; top: calc(var(--header-h) - 36px);
}
.ingredients h2, .steps h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.4rem; letter-spacing: -.01em; margin-bottom: 1.3rem;
}
.ingredients ul { list-style: none; display: grid; gap: .85rem; }
.ingredients li {
  display: flex; gap: .7rem; align-items: baseline;
  font-size: 1rem; color: var(--ink-soft); line-height: 1.45;
  padding-bottom: .85rem; border-bottom: 1px solid var(--line-soft);
}
.ingredients li:last-child { border-bottom: none; padding-bottom: 0; }
.ingredients li .qty { font-family: var(--font-display); font-weight: 700; color: var(--clay); white-space: nowrap; flex-shrink: 0; min-width: 3.4rem; }
.steps ol { list-style: none; counter-reset: st; display: grid; gap: 1.6rem; }
.steps li { counter-increment: st; position: relative; padding-left: 3.4rem; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: -.1rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--sage-deep); color: var(--ivory);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  display: grid; place-items: center;
}
.steps li p { font-size: 1.06rem; line-height: 1.7; color: var(--ink-soft); }
.steps li strong { color: var(--ink); font-weight: 700; }
.recipe-note {
  max-width: 1000px; margin: clamp(2.4rem, 4vw, 3.4rem) auto 0;
  background: var(--clay-tint); border-radius: var(--radius-md);
  padding: 1.7rem 1.9rem;
}
.recipe-note .note-label {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--clay);
  display: block; margin-bottom: .5rem;
}
.recipe-note p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }

/* ============================== HOMEPAGE recipe cards → clickable detail = */
.recipe-card .recipe-body { cursor: pointer; }
.recipe-card h3 { transition: color .3s var(--ease); }
.recipe-card:hover h3 { color: var(--sage-deep); }
.recipe-go {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  color: var(--sage-deep);
  transition: gap .35s var(--ease), color .3s;
}
.recipe-go svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.recipe-card:hover .recipe-go { gap: .6rem; color: var(--clay); }

/* ============================================================ RESPONSIVE === */
@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .recipe-hero-grid { grid-template-columns: 1fr; }
  .recipe-hero image-slot { order: -1; }
  .recipe-detail-grid { grid-template-columns: 1fr; }
  .ingredients { position: static; }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a.next { text-align: left; align-items: flex-start; }
}

/* ====================================== FULL-WIDTH FEATURE ARTICLE ===== */
/* Rich editorial layout that reuses the .bo-* visual codes from styles.css,
   scoped to articles flagged layout:"feature". Spans the page width. */
.article-feature { padding-block: clamp(2.8rem, 5vw, 4.6rem); }
.article-feature > * + * { margin-top: clamp(2.6rem, 5vw, 4rem); }

/* Intro */
.af-intro { max-width: 66ch; }
.af-lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.af-kicker { margin-top: 1.2rem; }
.af-intro-body {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.82;
  color: var(--ink-soft);
}

/* Two-column band (definition + causes) */
.af-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.af-twocol .af-col { padding-block: 0; border-top: 0; }
.af-twocol .af-col .bo-h2 {
  padding-top: 1.4rem;
  border-top: 2px solid var(--clay-soft);
  margin-bottom: 1rem;
}

/* Steps band — numbered cards in a grid */
.af-steps .bo-h2 { margin-bottom: 1rem; }
.af-steps-intro {
  max-width: 66ch;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.af-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-top: 2rem;
  align-items: start;
}
.af-steps-grid .bo-step { align-items: flex-start; }

/* Ikigai panel & closing band */
.af-panel { margin-top: 0; }
.article-feature ul { padding-left: 0; }

/* Split (video) hero with the intro lifted into the left column */
.article-hero-split .article-hero-grid { align-items: start; }
.article-head-split h1 { text-wrap: pretty; }
.article-head-split .af-intro-hero {
  margin-top: 1.8rem;
  max-width: none;
  text-align: left;
}
.article-head-split .af-lead {
  font-size: clamp(1.16rem, 1.7vw, 1.5rem);
  line-height: 1.42;
}
.article-head-split .af-kicker {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}
.article-head-split .af-intro-body {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
}
.af-closing { max-width: 760px; margin-inline: auto; }
.af-closing > p:not(.bo-closing-lead) { color: var(--ink-soft); }

@media (max-width: 820px) {
  .af-twocol { grid-template-columns: 1fr; gap: 0; }
  .af-twocol .af-col + .af-col { margin-top: 2rem; }
  .af-steps-grid { grid-template-columns: 1fr; }
}
