/* Pinewood Sauna — blog (index + article pages). Loaded after styles.css */

.blog-hero {
  padding-bottom: 3rem;
}

.blog-list {
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 350px));
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .blog-card:hover {
    border-color: rgba(196, 165, 116, 0.35);
    transform: translateY(-3px);
  }
  .blog-card:hover .blog-card-media img { transform: scale(1.04); }
}

.blog-card-media {
  display: block;
  overflow: hidden;
  background: var(--smoke);
  aspect-ratio: 4 / 3;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 0.8s var(--ease);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.75rem;
}

.blog-meta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.75rem;
}

.blog-card h2,
.blog-card h3 {
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.blog-card h2 a,
.blog-card h3 a {
  transition: color 0.25s;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--pine);
}

.blog-excerpt {
  color: var(--linen-dim);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.blog-more {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--linen);
  transition: color 0.25s;
}

.blog-more:hover { color: var(--pine); }

.blog-empty {
  color: var(--linen-dim);
  text-align: center;
  grid-column: 1 / -1;
}

/* Article */
.post-hero {
  padding: calc(var(--header-h) + 3.5rem) clamp(1.25rem, 4vw, 3rem) 2.5rem;
  background:
    radial-gradient(ellipse 55% 45% at 15% 80%, rgba(197, 106, 58, 0.14), transparent 60%),
    var(--ink);
}

.post-hero-inner {
  max-width: 46rem;
  margin: 0 auto;
  animation: rise 1.1s var(--ease) both;
}

.post-crumbs {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 1.25rem;
}

.post-crumbs a { transition: color 0.25s; }
.post-crumbs a:hover { color: var(--pine); }
.post-crumbs span { margin: 0 0.4rem; color: var(--pine-deep); }

.post-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.post-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--linen-dim);
  margin-bottom: 1.5rem;
}

.post-hero .blog-meta { margin-bottom: 0; }

.post-cover {
  margin: 0 auto;
  width: min(46rem, 100% - 2.5rem);
}

.post-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
  border: 1px solid var(--line);
  background: var(--smoke);
}

.post-body {
  width: min(42rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: 3.5rem 0 1rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--linen-dim);
}

.post-body > * + * { margin-top: 1.25rem; }

.post-body h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.4rem);
  color: var(--linen);
  margin-top: 3rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.post-body h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  color: var(--linen);
  margin-top: 2.25rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.post-body h4 {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin-top: 2rem;
}

.post-body h2 + *,
.post-body h3 + *,
.post-body h4 + * { margin-top: 0.85rem; }

.post-body strong { color: var(--linen); font-weight: 500; }

.post-body a {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.post-body a:hover { color: var(--linen); }

.post-body ul,
.post-body ol {
  padding-left: 1.35rem;
  margin-bottom: 0;
}

.post-body li + li { margin-top: 0.5rem; }
.post-body li::marker { color: var(--pine); }

.post-body blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--pine);
  background: var(--glass);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--linen);
}

.post-body code {
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
  background: var(--smoke);
}

.post-table {
  overflow-x: auto;
  margin-top: 1.75rem;
  border: 1px solid var(--line);
}

.post-table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}

.post-table th,
.post-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.post-table thead th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--pine);
  background: var(--charcoal);
}

.post-table tbody tr:last-child td { border-bottom: 0; }
.post-table td:first-child { color: var(--linen); }

.post-body hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.post-figure { margin: 2rem 0 0; }

.post-figure img {
  width: 100%;
  border: 1px solid var(--line);
}

.post-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ash);
}

.post-cta {
  width: min(42rem, 100% - 2.5rem);
  margin: 3.5rem auto 5rem;
  padding: 2.25rem clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(196, 165, 116, 0.3);
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(197, 106, 58, 0.14), transparent 65%),
    var(--charcoal);
  text-align: center;
}

.post-cta .eyebrow { margin-bottom: 0.75rem; }

.post-cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.post-cta > p:not(.eyebrow) {
  color: var(--linen-dim);
  margin-bottom: 1.5rem;
}

.blog-related {
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem) 5rem;
  background: var(--charcoal);
  border-top: 1px solid var(--line);
}

.blog-related-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-related h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
}

.blog-related .blog-grid {
  margin: 0;
  justify-content: start;
}

.footer-note a { transition: color 0.25s; }
.footer-note a:hover { color: var(--pine); }
