/* ==========================================================================
   True Grit Cleaning Co - Blog styles
   Loaded after /tg-page.css so it inherits the brand tokens (--gold, --black,
   --cream, etc.) and the shared nav, hero, button, card and footer styles.
   This file only adds what the blog needs: article typography, the post grid,
   and the post header. Generated pages are written by blog-system/build_blog.py.
   ========================================================================== */

/* ---- Blog hub: hero ---- */
.blog-hero { min-height: 360px; }
.blog-hero .hero-sub { max-width: 620px; }

/* ---- Blog hub: post grid ---- */
.blog-list { background: var(--cream); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .28s var(--ease);
}
.post-card:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 44px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.post-card-media {
  display: block;
  aspect-ratio: 1200 / 630;
  background: var(--black);
  overflow: hidden;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-cat {
  color: var(--gold-deep);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
}
.post-card h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.post-card h3 a:hover { color: var(--gold-deep); }
.post-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.post-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.post-date {
  font-size: 12.5px;
  color: var(--muted);
}
.post-readmore {
  font-size: 12.5px;
  color: var(--gold-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Single post: header ---- */
.article-head {
  background: var(--black);
  color: var(--white);
  padding: 80px 24px 56px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.article-head .hero-atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.article-head-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.article-head h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 13.5px;
  color: rgba(255,255,255,.62);
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .7; }

/* ---- Single post: cover + body ---- */
.article-wrap { background: var(--cream); }
.article-inner { max-width: 820px; margin: 0 auto; }
.post-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin: -40px 0 8px;
  position: relative;
  z-index: 3;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.article-prose {
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--text);
  padding: 40px 0 8px;
}
.article-prose > *:first-child { margin-top: 0; }
.article-prose p { margin: 0 0 24px; }
.article-prose h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 48px 0 16px;
}
.article-prose h3 {
  font-size: clamp(21px, 2.6vw, 25px);
  font-weight: 700;
  margin: 36px 0 12px;
}
.article-prose ul, .article-prose ol { margin: 0 0 24px; padding-left: 26px; }
.article-prose li { margin-bottom: 10px; }
.article-prose li::marker { color: var(--gold-deep); }
.article-prose a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(168,134,42,.4);
  text-underline-offset: 3px;
}
.article-prose a:hover { text-decoration-color: var(--gold-deep); }
.article-prose strong { color: var(--black); font-weight: 700; }
.article-prose blockquote {
  margin: 32px 0;
  padding: 8px 28px;
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 12px 12px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--leather);
}
.article-prose blockquote p:last-child { margin-bottom: 0; }
.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin: 12px 0 28px;
}
.article-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.article-prose code {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: .9em;
}

/* author sign-off */
.article-signoff {
  max-width: 820px;
  margin: 8px auto 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14.5px;
  color: var(--muted);
}
.article-signoff img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.article-signoff strong { color: var(--black); display: block; font-size: 15.5px; }

/* back link */
.blog-back {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 0 0;
}
.blog-back a {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .article-head { padding: 60px 22px 44px; }
  .post-cover { margin-top: -28px; border-radius: 14px; }
  .article-prose { font-size: 16.5px; padding-top: 32px; }
}
