/* ============ Friend Advent · blog ============ */
.blog-nav { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.blog-nav .btn.sm { padding: 8px 16px; font-size: 14px; }

/* cards (shared with the homepage module) */
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .25s, background .25s, border-color .25s; }
.post-card:hover { transform: translateY(-3px); background: var(--card-2); border-color: rgba(210, 181, 121, .45); }
.post-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-2); }
.pc-body { padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start; }
.pc-body h2, .pc-body h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.pc-body p { color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-tag { justify-self: start; display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pc-more { color: var(--gold); font-weight: 700; font-size: 15px; }
.post-card.lead { display: grid; grid-template-columns: 1.25fr 1fr; margin-top: 10px; }
.post-card.lead img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.post-card.lead .pc-body { padding: clamp(22px, 3vw, 40px); align-content: center; gap: 12px; }
.post-card.lead h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.post-card.lead p { -webkit-line-clamp: 5; font-size: 16px; }

/* homepage module */
.home-blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* blog index */
.blog-hero { text-align: center; padding: clamp(40px, 6vw, 70px) 20px clamp(20px, 3vw, 30px); max-width: 760px; margin: 0 auto; }
.blog-hero h1 { font-size: clamp(34px, 4.6vw, 54px); text-wrap: balance; }
.blog-hero p { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin-top: 14px; text-wrap: balance; }
.bh-orn { width: 78px; margin: 0 auto 14px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; --r: -6deg; }
main > .wrap { padding: 0 clamp(18px, 5vw, 40px); }
main > .wrap:last-child { padding-bottom: 70px; }

/* article */
.post { max-width: 1120px; margin: 0 auto; padding: 18px clamp(18px, 5vw, 40px) 40px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.post-head { max-width: 820px; margin: 26px auto 0; text-align: center; display: grid; justify-items: center; gap: 12px; }
.post-head .pc-tag { justify-self: center; }
.post-head h1 { font-size: clamp(32px, 4.4vw, 52px); text-wrap: balance; }
.post-meta { color: var(--faint); font-size: 14.5px; }
.post-cover { margin: 30px auto 0; max-width: 1000px; }
.post-cover img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); border: 1px solid var(--line); }
.post-grid { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(28px, 4vw, 56px); justify-content: center; margin-top: 44px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; border-left: 2px solid var(--line); padding-left: 16px; max-height: calc(100vh - 130px); overflow: auto; }
.toc p { font-weight: 700; color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.4; display: block; }
.toc a:hover { color: var(--text); }

.prose { font-size: 18px; line-height: 1.75; color: #e6ede8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(25px, 2.6vw, 31px); margin-top: 2.1em; color: var(--text); scroll-margin-top: 96px; }
.prose h3 { font-size: 20.5px; margin-top: 1.7em; color: var(--text); letter-spacing: -.01em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #e6cf9c; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--gold); }
.prose .lede { font-size: 20.5px; line-height: 1.65; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--gold); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.prose td:first-child { font-weight: 600; color: var(--text); }
.callout { border-radius: 16px; padding: 18px 20px 18px 62px; background: var(--card-2); border: 1px solid rgba(210, 181, 121, .35); position: relative; font-size: 16.5px; }
.callout::before { content: ''; position: absolute; left: 16px; top: 18px; width: 32px; height: 32px; background: url(/img/s-star.webp) center / contain no-repeat; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)); }
.callout b:first-child { color: var(--gold); }
.idea-list { list-style: none; padding: 0 !important; counter-reset: idea; display: grid; gap: 10px; }
.idea-list > li { counter-increment: idea; position: relative; padding: 14px 16px 14px 58px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin: 0 !important; font-size: 16.5px; line-height: 1.6; }
.idea-list > li::before { content: counter(idea); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 13.5px; }
.idea-list > li b:first-child { color: var(--text); }
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; padding: 6px 4px; }
.prose .notes .note { margin: 0; font-size: 19px; line-height: 28px; padding: 16px 18px 14px; color: var(--ink); background-position: 0 16px; background-image: repeating-linear-gradient(transparent 0 27px, rgba(0, 0, 0, .06) 27px 28px); }
.notes .note:nth-child(even) { transform: rotate(2deg); }
.notes .note:nth-child(3n) { transform: rotate(-1.2deg); }
.notes .note .from { font-size: 16px; margin-top: 8px; padding-top: 4px; }
.cta-box { display: flex; gap: 20px; align-items: center; border-radius: 20px; padding: 22px 24px; margin: 2.2em 0; background: var(--felt) 0 0 / 240px, linear-gradient(135deg, rgba(199, 68, 73, .28), rgba(210, 181, 121, .12)), var(--bg-2); border: 1px solid rgba(210, 181, 121, .4); }
.cta-box img { width: 110px; flex: none; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .45)); }
.cta-box .cta-h { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 6px; line-height: 1.3; }
.cta-box p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.cta-box .btn { margin-top: 14px; color: #fff; text-decoration: none; }
.prose .cta-box .btn:hover { color: #fff; }
.post-faq { margin-top: 2.4em; }
.post-faq details { border-bottom: 1px solid var(--line); }
.post-faq summary { cursor: pointer; padding: 16px 4px; font-weight: 700; font-size: 17px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
.post-faq details[open] summary::after { content: '–'; }
.post-faq details p { padding: 0 4px 18px; font-size: 16.5px; color: var(--muted); margin: 0; }
.related { padding: 50px clamp(18px, 5vw, 40px) 80px; border-top: 1px solid var(--line); margin-top: 30px; }
.blog-footer { background: transparent; color: var(--faint); padding: 34px 20px 44px; border-top: 1px solid var(--line); margin: 0; }
.foot-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: minmax(0, 720px); }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
}
@media (max-width: 900px) {
  .post-cards { grid-template-columns: 1fr 1fr; }
  .post-card.lead { grid-template-columns: 1fr; }
  .post-card.lead img { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
  .post-cards { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .prose .lede { font-size: 18.5px; }
  .notes { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-box img { width: 84px; }
  .blog-nav .pill-btn { display: none; }
  .idea-list > li { padding-left: 52px; }
}
@media (max-width: 680px) { .nav-blog { display: none; } }
