/* ============================================================
   blog.css — public blog index + post styles
   Editorial, light, SEO-friendly. Loaded after styles.css.
   ============================================================ */

.subhdr { position: sticky; top: 0; z-index: 100; background: rgba(250,248,245,.86);
  backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.subhdr__inner { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.subhdr .brand { margin-right: auto; }
.subhdr__nav { display: flex; gap: 26px; align-items: center; }
.subhdr__nav a { font-size: 15px; font-weight: 500; opacity: .82; }
.subhdr__nav a:hover { opacity: 1; color: var(--brand-primary); }
.subhdr__back { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--brand-primary); }

/* ---- Blog index ---- */
.blog-hero { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 48px); }
.blog-hero h1 { font-size: clamp(40px, 6vw, 70px); font-weight: 480; max-width: 16ch; }
.blog-hero p { max-width: 52ch; margin-top: 20px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-bottom: 100px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__img { aspect-ratio: 16/10; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-primary); background: var(--brand-tint); padding: 5px 10px; border-radius: 999px; }
.post-card h2 { font-size: 23px; font-weight: 500; line-height: 1.2; }
.post-card__excerpt { color: var(--grey-text); font-size: 15px; margin-top: 12px; line-height: 1.55; }
.post-card__meta { margin-top: auto; padding-top: 20px; display: flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--grey-accent); }
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 48px; }
.blog-featured__img { min-height: 340px; }
.blog-featured__body { padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.blog-featured__body h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 480; line-height: 1.12; margin-top: 16px; }
.blog-featured__body p { color: var(--grey-text); margin-top: 16px; max-width: 46ch; }

/* ---- Single post ---- */
.post-wrap { max-width: 720px; margin: 0 auto; padding-inline: var(--gutter); }
.post-head { padding-block: clamp(48px, 7vw, 88px) 36px; text-align: center; }
.post-head h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 480; line-height: 1.08; max-width: 18ch; margin: 18px auto 0; }
.post-head__meta { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 26px;
  font-size: 14px; color: var(--grey-accent); }
.post-cover { aspect-ratio: 16/8; border-radius: var(--radius); margin-bottom: 48px; }
.post-body { font-size: 18.5px; line-height: 1.72; color: #2c2c2c; padding-bottom: 60px; }
.post-body > * + * { margin-top: 26px; }
.post-body h2 { font-size: 30px; font-weight: 500; margin-top: 48px; }
.post-body h3 { font-size: 23px; font-weight: 600; font-family: var(--font-body); margin-top: 38px; }
.post-body a { color: var(--brand-primary); border-bottom: 1.5px solid rgba(228,6,6,.3); }
.post-body a:hover { border-color: var(--brand-primary); }
/* Buttons inside post body keep their own styling (not the inline-link treatment) */
.post-body a.btn { color: #fff; border-bottom: none; }
.post-body a.btn--ghost { color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li + li { margin-top: 10px; }
.post-body blockquote { border-left: 3px solid var(--brand-primary); padding-left: 22px; font-family: var(--font-display);
  font-size: 22px; line-height: 1.45; color: var(--ink); font-style: italic; }
.post-body strong { font-weight: 600; color: var(--ink); }
.post-cta { background: var(--paper-grey); border-radius: var(--radius); padding: 40px; text-align: center; margin: 48px 0 80px; }
.post-cta h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.post-cta p { color: var(--grey-text); margin: 10px auto 22px; max-width: 40ch; }

.post-seo { background: #fffbe9; border: 1px dashed #e7c200; border-radius: 10px; padding: 16px 18px;
  font-family: ui-monospace, monospace; font-size: 12.5px; color: #6b5800; margin-bottom: 36px; line-height: 1.7; }
.post-seo b { color: #4a3a00; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__img { min-height: 220px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  /* Keep the Apply CTA visible; drop only the back-link (the logo already links home) */
  .subhdr__inner { gap: 14px; }
  .subhdr__nav { gap: 14px; }
  .subhdr__back { display: none; }
  .post-cta { padding: 30px 22px; }
  .post-body { font-size: 17.5px; }
}
