.blog-page {
  background: var(--pp-cream);
  color: var(--pp-text);
  font-family: var(--pp-font-sans, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.blog-hero,
.blog-article__header {
  padding: clamp(66px, 8vw, 118px) 0 clamp(38px, 5vw, 68px);
  border-bottom: 1px solid var(--pp-line-soft);
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 176, 51, .16), transparent 34%),
    linear-gradient(180deg, var(--pp-paper), var(--pp-cream));
}

.blog-eyebrow,
.blog-card__meta {
  color: #bd7c0a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.blog-hero h1,
.blog-article__header h1 {
  max-width: 13ch;
  margin: 0 0 22px;
  color: var(--pp-burgundy-deep);
  font-family: var(--pp-font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.blog-hero p,
.blog-article__excerpt {
  max-width: 68ch;
  margin: 0;
  color: var(--pp-text-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.75;
}

.blog-article__excerpt strong,
.blog-card p strong {
  color: var(--pp-burgundy-deep);
  font-weight: 850;
}

.blog-list-section,
.blog-related,
.blog-gallery {
  padding: clamp(48px, 7vw, 92px) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.blog-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-r-lg);
  background: var(--pp-paper);
  box-shadow: var(--pp-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 46, 46, .22);
  box-shadow: var(--pp-shadow-md);
}

.blog-card__media {
  display: grid;
  min-height: 250px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(59, 24, 28, .95), rgba(92, 46, 46, .88)),
    var(--pp-burgundy-deep);
  color: var(--pp-gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-card__media img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.blog-card h2,
.blog-card h3 {
  margin: 8px 0 12px;
  color: var(--pp-burgundy-deep);
  font-family: var(--pp-font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.blog-card h2 a,
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(189, 124, 10, .5);
  text-underline-offset: 5px;
}

.blog-card p {
  margin: 0 0 18px;
  color: var(--pp-text-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.blog-readmore,
.blog-back {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  color: var(--pp-burgundy);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .03em;
  text-decoration: underline;
  text-decoration-color: rgba(92, 46, 46, .25);
  text-underline-offset: 5px;
}

.blog-back {
  margin: 0 0 24px;
}

.blog-empty {
  padding: 52px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-r-lg);
  background: var(--pp-paper);
  text-align: center;
}

.blog-empty h2 {
  margin: 0 0 10px;
  color: var(--pp-burgundy-deep);
  font-family: var(--pp-font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
}

.blog-empty p {
  margin: 0;
  color: var(--pp-text-soft);
}

.blog-article__cover {
  margin: clamp(32px, 5vw, 62px) 0 0;
  overflow: hidden;
  border-radius: var(--pp-r-xl);
  background: var(--pp-burgundy-deep);
  box-shadow: var(--pp-shadow-md);
}

.blog-article__cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: cover;
}

.blog-article__content {
  max-width: 860px;
  padding: clamp(42px, 6vw, 78px) 0;
  color: var(--pp-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.85;
}

.blog-article__content p {
  margin: 0 0 1.35em;
}

.blog-article__content strong {
  color: var(--pp-burgundy-deep);
  font-weight: 900;
}

/* Dark theme: --pp-burgundy and --pp-burgundy-deep stay dark, so this text would vanish. */
html[data-theme="dark"] .blog-readmore,
html[data-theme="dark"] .blog-back { color: var(--pp-gold); }
html[data-theme="dark"] .blog-article__content strong { color: var(--pp-ink); }

.blog-video {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--pp-line);
  font-family: var(--pp-font-sans, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.blog-video h2,
.blog-gallery h2,
.blog-related h2 {
  margin: 0 0 22px;
  color: var(--pp-burgundy-deep);
  font-family: var(--pp-font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -.03em;
}

.blog-video iframe,
.blog-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--pp-r-lg);
  background: #000;
}

.blog-gallery {
  background: var(--pp-paper);
}

.blog-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-gallery__grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--pp-r-md);
}

@media (max-width: 980px) {
  .blog-grid,
  .blog-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-hero,
  .blog-article__header {
    padding-top: 46px;
  }

  .blog-hero h1,
  .blog-article__header h1 {
    max-width: 10.5ch;
    font-size: clamp(38px, 13vw, 56px);
  }

  .blog-grid,
  .blog-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-card__body {
    padding: 22px;
  }

  .blog-card__media,
  .blog-card__media img,
  .blog-gallery__grid img {
    height: 238px;
    min-height: 238px;
  }

  .blog-article__content {
    font-size: 18px;
    line-height: 1.8;
  }
}

/* Staff preview of a post that is not public yet. Deliberately loud: the
   whole point is that you do not mistake it for the live article. */
.blog-preview-banner {
  margin: 0 auto 1.5rem;
  max-width: 900px;
  padding: 0.75rem 1rem;
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.5;
}
.blog-preview-banner strong { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }

/* Tables in articles: real HTML, readable, and scrollable sideways on phones
   (Manual 4.1; CMS spec, table block). */
.blog-article__content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95em; }
.blog-article__content th,
.blog-article__content td { border: 1px solid #e6dcd2; padding: 10px 12px; text-align: left; vertical-align: top; }
.blog-article__content th { background: #f6efe8; color: #3a2a23; font-weight: 600; }
.blog-article__content th p,
.blog-article__content td p { margin: 0; }
/* Tables scroll sideways on phones inside .blog-table-scroll (css/content-blocks.css). */
