/* ─── Page hero (shared: blog listing + post) ─────────────── */
.page-hero {
  padding: calc(var(--header-h) + env(safe-area-inset-top,0px) + 72px) 0 64px;
  text-align: center;
  background: linear-gradient(
    160deg,
    rgba(176,114,64,.045) 0%,
    var(--surface) 55%,
    rgba(176,114,64,.03) 100%
  );
  border-bottom: 1px solid var(--border);
  position: relative;
}
/* Subtle warm accent line at the top */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 10%, var(--warm-accent) 50%, transparent 90%);
  opacity: .35;
}
.page-hero-eyebrow {
  display: block;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--warm-accent);
  margin-bottom: 16px;
  opacity: .85;
}
.page-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.022em;
  margin-bottom: 18px;
}
.page-hero-sub {
  color: var(--text-2);
  font-size: .96rem;
  font-weight: 300;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── Blog listing section ────────────────────────────────── */
.blog-section {
  padding: 64px 0 120px;
}

/* 3 cols → 2 cols → 1 col (via media queries below) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-empty,
.blog-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
  font-size: .88rem;
  line-height: 1.7;
}
.blog-error button {
  color: var(--warm-accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
}

/* ─── Blog card ───────────────────────────────────────────── */
.blog-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
@media (hover: hover) {
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

.blog-card-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
@media (hover: hover) {
  .blog-card:hover .blog-card-img { transform: scale(1.04); }
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-card-category {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warm-accent);
  font-weight: 500;
}
.blog-card-date {
  font-size: .72rem;
  color: var(--text-3);
}
.blog-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text);
}
.blog-card-excerpt {
  font-size: .83rem;
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .77rem;
  font-weight: 500;
  color: var(--warm-accent);
  margin-top: 4px;
  transition: gap .22s var(--ease);
}
@media (hover: hover) {
  .blog-card:hover .blog-card-read-more { gap: 10px; }
}

/* ─── Skeleton cards ──────────────────────────────────────── */
.blog-card-skeleton {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.skel-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: blogShimmer 1.6s linear infinite;
}
.skel-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skel-line {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: blogShimmer 1.6s linear infinite;
}
.skel-line.skel-title  { height: 18px; width: 75%; }
.skel-line.skel-short  { width: 38%; }
.skel-line.skel-med    { width: 60%; }
@keyframes blogShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ─── Blog post page ──────────────────────────────────────── */
.post-hero {
  /* No padding — the fixed header overlays the cover image for a full-bleed look.
     The .post-body below has its own top padding to clear the header. */
  padding-top: 0;
}

.post-cover {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.post-cover-placeholder {
  width: 100%;
  height: 460px;
  background: var(--surface-2);
  display: block;
}

.post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 32px 120px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-3);
  margin-bottom: 44px;
  transition: color .2s;
}
.post-back:hover { color: var(--warm-accent); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.post-category {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warm-accent);
  font-weight: 500;
}
.post-date {
  font-size: .72rem;
  color: var(--text-3);
}

.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 44px;
}

.post-content p {
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--text-2);
  margin-bottom: 28px;
  letter-spacing: .008em;
}
.post-content p:last-child { margin-bottom: 0; }
.post-content p:first-child::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2em;
  line-height: .75;
  float: left;
  margin-right: .1em;
  margin-top: .08em;
  color: var(--warm-accent);
}

.post-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--warm-accent), transparent);
  opacity: .4;
  margin: 52px 0;
}

/* 404 state */
.post-not-found {
  text-align: center;
  padding: 80px 0;
  color: var(--text-3);
}
.post-not-found h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

/* ─── Wide screens ≥ 1200px ──────────────────────────────── */
@media (min-width: 1200px) {
  .blog-section  { padding: 80px 0 140px; }
  .blog-grid     { gap: 32px; }
  .post-cover, .post-cover-placeholder { height: 560px; }
  .post-body     { padding: 64px 32px 140px; }
}

/* ─── Blog-specific responsive ────────────────────────────── */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-section { padding: 40px 0 80px; }
  .blog-grid    { grid-template-columns: 1fr; gap: 20px; }
  .post-cover, .post-cover-placeholder { height: 260px; }
  .post-body { padding: 40px 20px 80px; }
  .page-hero { padding-bottom: 40px; }
}
@media (max-width: 480px) {
  .post-title { font-size: 1.75rem; }
}
