/* =========================================================
   SUN WOOD — Blog
   Extends styles.css — same tokens, same components.
   ========================================================= */

/* ---------- Page header (non-hero pages) ---------- */
.page-head { padding-block: clamp(140px,16vw,190px) clamp(48px,6vw,72px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-top: 20px; }

/* ---------- Blog listing grid ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(22px,2.6vw,34px); }
.blog-grid .post-card:first-child { grid-column: 1 / -1; }
.blog-grid .post-card:first-child .post-card__media { aspect-ratio: 21/9; }
.blog-grid .post-card:first-child .post-card__title { font-size: clamp(1.5rem,3vw,2.2rem); }

.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__tag { position: absolute; top: 14px; left: 14px; background: rgba(20,27,64,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 100px; border: 1px solid rgba(255,255,255,.2); }
.post-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__meta { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.post-card__title { font-family: var(--serif); font-size: 1.32rem; line-height: 1.18; color: var(--navy); }
.post-card__excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.65; flex: 1; }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--orange-deep); }
.post-card__more svg { width: 15px; height: 15px; transition: transform .25s var(--ease-out); }
.post-card:hover .post-card__more svg { transform: translateX(3px); }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(140px,16vw,190px) clamp(40px,5vw,56px); background: var(--paper); border-bottom: 1px solid var(--line); }
.article-head__wrap { max-width: 780px; margin-inline: auto; padding-inline: var(--gutter); }
.article-head .eyebrow { margin-bottom: 20px; }
.article-head h1 { font-size: clamp(2rem,4.4vw,3.1rem); }
.article-head .lead { margin-top: 20px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 13.5px; color: var(--muted); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.article-meta__av { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; margin-right: 2px; }

.article-cover { max-width: 980px; margin: clamp(-30px,-3vw,-20px) auto 0; padding-inline: var(--gutter); }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.article-body { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); padding-block: clamp(48px,6vw,72px); }
.article-body > p { font-size: 1.08rem; color: var(--ink); line-height: 1.85; margin-bottom: 26px; }
.article-body h2 { font-size: clamp(1.5rem,2.6vw,1.9rem); color: var(--navy); margin: 48px 0 18px; line-height: 1.2; }
.article-body h3 { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; color: var(--navy); margin: 34px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 26px; padding-left: 22px; color: var(--ink); }
.article-body li { font-size: 1.05rem; line-height: 1.8; margin-bottom: 10px; }
.article-body li::marker { color: var(--orange-deep); }
.article-body blockquote { margin: 36px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--orange); }
.article-body blockquote p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--navy); line-height: 1.5; margin: 0; }
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body figure { margin: 40px 0; }
.article-body figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

.article-cta { max-width: 720px; margin: 8px auto 0; padding-inline: var(--gutter); }
.article-cta__box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(28px,4vw,40px); text-align: center; }
.article-cta__box h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem,3vw,2rem); color: #fff; }
.article-cta__box p { color: rgba(255,255,255,.72); margin-top: 10px; max-width: 44ch; margin-inline: auto; }
.article-cta__box .btn { margin-top: 22px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.article-tags a { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-strong); padding: 6px 13px; border-radius: 100px; transition: color .2s ease, border-color .2s ease; }
.article-tags a:hover { color: var(--orange-deep); border-color: var(--orange-deep); }

/* ---------- Related posts ---------- */
.related { background: var(--sand-2); border-top: 1px solid var(--line); }
.related .s-head { margin-bottom: clamp(30px,4vw,44px); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,2.4vw,28px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid .post-card:first-child { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-grid .post-card:first-child .post-card__media { aspect-ratio: 4/3; }
  .article-cover { padding-inline: 0; }
  .article-cover img { border-radius: 0; }
}
