/* Dogyoga blog: articles and the article list. Builds on css/home.css
   (tokens, header, footer, buttons). */

.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: color-mix(in srgb, var(--line) 80%, transparent);
}

/* ───── Article ───── */
.post-head { display: flex; flex-direction: column; gap: 16px; padding-block: clamp(32px, 6vw, 72px) 28px; }
.crumbs { display: flex; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.post-head h1, .blog-head h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.8rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 96;
}
.post-lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.post-meta { font-size: 0.88rem; font-weight: 600; color: var(--muted); }

.post-hero { margin: 0 auto; max-width: 980px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 45%; border-radius: var(--radius); background: var(--plate); }

.post-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px); align-items: start;
}
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: flex; flex-direction: column; gap: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-size: 0.92rem; color: var(--muted); line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .toc { position: static; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
}

.post-body { max-width: 68ch; font-size: 1.08rem; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 2em; scroll-margin-top: 100px; }
.post-body h3 { font-size: 1.25rem; margin-top: 1.6em; }
.post-body p, .post-body li { color: color-mix(in srgb, var(--ink) 86%, transparent); }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.45em; }
.post-body li::marker { color: var(--fur); font-weight: 700; }
.post-body .tip { margin-block: 1.4em; padding: 16px 20px; border-radius: 16px; background: var(--fur-soft); color: var(--fur-ink); }
.post-body .tip p { color: inherit; margin: 0; }
.post-figure { margin: 1.6em 0; display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.post-figure img { width: 100%; border-radius: 18px; background: var(--plate); padding: 6% 5% 2%; }
.post-figure figcaption { font-size: 0.92rem; color: var(--muted); }

.post-cta {
  margin-block: 2em; padding: 26px 28px; border-radius: var(--radius);
  background: var(--deep); color: var(--deep-ink); display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.post-cta .eyebrow { color: var(--fur); }
.post-cta-title { font: 650 1.4rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--deep-ink) !important; }
.post-cta p { color: var(--deep-muted); margin: 0; }
.post-cta .btn { margin-top: 6px; }
.post-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.post-cta-actions .btn { margin-top: 0; }
.post-body .post-cta .btn { color: var(--accent-ink); text-decoration: none; }
.post-body .post-cta .appstore { min-height: 48px; font-size: 1.2rem; color: #fff; font-weight: 600; text-decoration: none; }

/* ───── Lists of articles ───── */
.blog-head { display: flex; flex-direction: column; gap: 16px; padding-block: clamp(40px, 7vw, 88px) 28px; }
.featured-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; text-decoration: none;
  border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
}
.featured-card img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.featured-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(22px, 4vw, 44px); }
.featured-title { font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.08 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.read-more { font-weight: 700; color: var(--accent); }
.read-more::after { content: ' →'; }
@media (max-width: 760px) { .featured-card { grid-template-columns: 1fr; } .featured-card img { min-height: 0; aspect-ratio: 16 / 9; } }

.related { background: var(--surface); }
.post-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: 20px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.post-card a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(18, 41, 31, 0.4); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--plate); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.post-card-title { font: 650 1.2rem/1.2 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.post-card-excerpt { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .post-card a { transition: none; } .post-card a:hover { transform: none; } }

/* ───── About this guide (author and editorial standards) ───── */
.post-meta a { color: inherit; text-underline-offset: 3px; }
.about-guide { margin-top: 2.4em; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 100px; }
.about-guide p { margin: 0; font-size: 0.98rem; color: var(--muted); }
.about-guide .about-guide-title { display: flex; align-items: center; gap: 8px; font: 650 1.1rem/1.2 var(--display); color: var(--ink); }
.about-guide-title svg { width: 20px; height: 20px; fill: var(--fur); }
