/* BrewShipper blog (blog/index.html and the posts). Loaded after css/site.css, which supplies
   the tokens, type, buttons, nav and footer. Only the article and listing layouts live here.
   Replaces the per-page <style> blocks the blog pages carried before 2026-11-03. */

/* ---------- Post header ---------- */
.post-hero { background: var(--c-sand); padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(32px, 5vw, 56px); text-align: center; }
.breadcrumb { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span { margin: 0 8px; }
.post-tag, .blog-tag { display: inline-block; background: color-mix(in srgb, var(--c-brown) 8.0%, transparent); color: var(--c-brown); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.post-tag { margin-bottom: 20px; }
.post-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.1; color: var(--heading); max-width: 22ch; margin: 0 auto 20px; text-wrap: balance; }
.post-meta { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.post-meta span { font-size: var(--fs-xs); color: var(--muted); }
.post-meta span::before { content: '\00b7'; margin-right: 20px; }
.post-meta span:first-child::before { content: ''; margin: 0; }

/* ---------- Article ---------- */
.post-body { max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(56px, 7vw, 88px); }
.post-body h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); line-height: 1.15; color: var(--heading); margin: 48px 0 16px; text-wrap: balance; }
.post-body p { font-size: 17px; line-height: 1.78; margin-bottom: 22px; }
.post-body ul, .post-body ol { margin: 0 0 22px 24px; }
.post-body li { font-size: 17px; line-height: 1.72; margin-bottom: 10px; padding-left: 4px; }
.post-body strong { color: var(--heading); font-weight: 700; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.stat-box { background: var(--c-sand); border-radius: var(--r-md); padding: 24px 18px; text-align: center; border: 1px solid var(--line); }
.stat-box .num { font-size: 34px; color: var(--c-brown); line-height: 1; margin-bottom: 8px; }
.stat-box .label { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

.post-cta-box { background: var(--c-sand); border: 1px solid var(--line); border-left: 4px solid var(--c-brown); border-radius: var(--r-md); padding: 26px 28px; margin: 44px 0; }
.post-cta-box p { color: var(--heading); font-weight: 600; font-size: 16.5px; margin-bottom: 16px; }

.post-end-cta { --focus: var(--c-crema); background: var(--c-brown); border-radius: var(--r-lg); padding: clamp(36px, 5vw, 52px) clamp(22px, 4vw, 40px); text-align: center; margin: 60px 0 0; }
.post-end-cta h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); line-height: 1.15; color: var(--c-cream); margin-bottom: 12px; }
.post-body .post-end-cta p { color: #efe3d7; font-size: 16px; max-width: 48ch; margin: 0 auto 28px; }
.post-end-cta .btn-row, .blog-cta-band .btn-row { justify-content: center; }

/* ---------- Related posts ---------- */
.related { padding: clamp(48px, 6vw, 80px) var(--gutter); background: var(--c-sand); }
.related h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); color: var(--heading); margin-bottom: 28px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 780px; margin: 0 auto; }
.related-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); max-width: 1040px; }
.related-card { display: block; background: var(--c-paper); border-radius: var(--r-md); border: 1px solid var(--line); padding: 24px; text-decoration: none; color: inherit; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2); }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.related-tag { display: block; font-size: 11.5px; font-weight: 700; color: var(--c-brown); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.related-card h3 { font-size: 17px; color: var(--heading); line-height: 1.35; margin-bottom: 10px; }
.related-card span:last-child { font-size: 14px; color: var(--c-brown); font-weight: 700; }

/* ---------- Blog index ---------- */
.blog-header { background: var(--c-sand); padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(40px, 6vw, 72px); text-align: center; }
.blog-header h1 { font-size: var(--fs-h2); line-height: 1.08; color: var(--heading); margin-bottom: 16px; }
.blog-header h1 span { color: var(--c-brown); }
.blog-header p { font-size: var(--fs-md); color: var(--muted); max-width: 52ch; margin: 0 auto; }
.blog-section { padding: clamp(48px, 7vw, 88px) 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--c-paper); border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2); }
a.blog-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
/* Coming soon: a quieter row of four under the published guides (no orphan card at any
   width: 4, 2 or 1 per row). No opacity fade, so the small print keeps AA contrast. */
.blog-soon-h { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.9rem); line-height: 1.15; color: var(--heading); margin: clamp(48px, 6vw, 72px) 0 20px; }
.blog-grid-soon { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.blog-card.coming-soon { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.blog-card.coming-soon .blog-card-banner { aspect-ratio: 3 / 1; background: var(--c-sand); }
.blog-card.coming-soon .blog-card-banner svg { width: 32px; height: 32px; }
.blog-card.coming-soon .bean-body { fill: var(--c-brown); }
.blog-card.coming-soon .bean-crease { stroke: var(--c-sand); }
.blog-card.coming-soon .blog-card-body { padding: 18px 18px 16px; }
.blog-card.coming-soon h3 { font-size: 16.5px; }
.blog-card.coming-soon p { font-size: 14px; }
.blog-card-banner { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--c-brown); overflow: hidden; }
.blog-card-banner img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-banner svg { width: 44px; height: 44px; }
.blog-card-banner .bean-body { fill: #fff; }
.blog-card-banner .bean-crease { stroke: var(--c-brown); stroke-width: 2.6; }
.blog-card-body { padding: 24px 24px 22px; flex: 1; display: flex; flex-direction: column; }
.blog-tag { margin-bottom: 14px; align-self: flex-start; }
.blog-tag.muted { background: rgba(107, 87, 68, 0.12); color: var(--muted); }
.blog-card h3 { font-size: 18.5px; color: var(--heading); margin-bottom: 10px; line-height: 1.35; }
.blog-card p { color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; margin-bottom: 20px; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.blog-read-time, .coming-label { font-size: 13px; color: var(--muted); }
.coming-label { font-style: italic; }
.blog-read-more { color: var(--c-brown); font-weight: 700; font-size: 14px; white-space: nowrap; }

.blog-cta-band { --focus: var(--c-crema); background: var(--c-brown); padding: clamp(56px, 7vw, 88px) var(--gutter); text-align: center; }
.blog-cta-band h2 { font-size: var(--fs-h2); line-height: 1.08; color: var(--c-cream); margin: 0 auto 14px; }
.blog-cta-band h2 span { color: var(--c-crema); }
.blog-cta-band p { color: #efe3d7; font-size: var(--fs-md); max-width: 52ch; margin: 0 auto 32px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  /* Three guides on two columns: the third spans the row, laid out sideways. */
  .blog-grid > a.blog-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .blog-grid > a.blog-card:last-child:nth-child(odd) .blog-card-banner { flex: 0 0 50%; aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 640px) {
  .stat-row, .related-grid, .related-grid:has(> :nth-child(3)), .blog-grid { grid-template-columns: 1fr; }
  .blog-grid > a.blog-card:last-child:nth-child(odd) { flex-direction: column; }
  .blog-grid > a.blog-card:last-child:nth-child(odd) .blog-card-banner { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .post-body p, .post-body li { font-size: 16.5px; }
  .post-end-cta .btn, .blog-cta-band .btn, .post-cta-box .btn { width: 100%; }
}
