:root {
  --ink: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.55);
  --border: rgba(0, 0, 0, 0.08);
  --cream: #faf9f7;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.blog-page {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── LISTING ── */

.blog-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  margin-top: 72px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
}

.blog-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-hero:hover .blog-hero-media {
  transform: scale(1.06);
}

.blog-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.55) 72%, rgba(0,0,0,0.78) 100%);
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px) clamp(36px, 6vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.blog-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 14px;
}

.blog-hero-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.45);
}

.blog-hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 14ch;
  margin-bottom: 16px;
}

.blog-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

.blog-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.42);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.blog-hero-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.72);
}

.blog-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 40px) 80px;
}

.blog-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.blog-intro-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-intro-count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}

.blog-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  border-color: rgba(0,0,0,0.16);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
}

.blog-card--featured { grid-column: span 7; min-height: 420px; }
.blog-card--wide { grid-column: span 8; min-height: 360px; }
.blog-card--tall { grid-column: span 4; min-height: 420px; }
.blog-card--standard { grid-column: span 4; }

.blog-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-card-media {
  transform: scale(1.05);
}

.blog-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 20%, rgba(0,0,0,0.72) 100%);
}

.blog-card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 22px 20px 20px;
  color: #fff;
}

.blog-card-index {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.62;
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.blog-card--standard .blog-card-title,
.blog-card--tall .blog-card-title {
  font-size: clamp(16px, 1.8vw, 20px);
}

.blog-card-arrow {
  display: inline-block;
  margin-top: 14px;
  font-size: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.blog-card:hover .blog-card-arrow {
  opacity: 0.85;
  transform: translateX(0);
}

.blog-card--no-image {
  background: #fff;
  color: var(--ink);
}

.blog-card--no-image .blog-card-shade { display: none; }

.blog-card--no-image .blog-card-body {
  color: var(--ink);
  padding-top: 28px;
}

.blog-card--no-image .blog-card-index { color: var(--muted); }

.blog-loading,
.blog-empty,
.blog-error {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border: 1px dashed var(--border);
}

/* ── ARTICLE ── */

.blog-article-main {
  padding:
    calc(72px + clamp(24px, 4vw, 40px))
    clamp(20px, 4vw, 40px)
    80px;
}

.blog-article-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.blog-article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  transition: color 0.15s ease;
}

.blog-article-back:hover { color: var(--ink); }

.blog-article-back svg {
  width: 14px;
  height: 14px;
}

.blog-article-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: clamp(24px, 4vw, 36px);
  background: var(--cream);
}

.blog-article-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.blog-article-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.blog-article-body {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.88);
}

.blog-article-body h2,
.blog-article-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  margin: 2em 0 0.75em;
  color: var(--ink);
}

.blog-article-body h2 { font-size: clamp(22px, 3vw, 28px); }
.blog-article-body h3 { font-size: clamp(18px, 2.4vw, 22px); }

.blog-article-body p { margin-bottom: 1.15em; }

.blog-article-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article-body img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  display: block;
}

.blog-article-body ul,
.blog-article-body ol {
  margin: 0 0 1.15em 1.2em;
}

.blog-article-body li { margin-bottom: 0.45em; }

.blog-related {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) 80px;
}

.blog-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.blog-related-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.blog-related-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream);
}

.blog-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-related-card:hover img { transform: scale(1.05); }

.blog-related-card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72));
  color: #fff;
}

.blog-related-card-title {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.25;
}

@media (max-width: 960px) {
  .blog-card--featured,
  .blog-card--wide,
  .blog-card--tall,
  .blog-card--standard {
    grid-column: span 6;
    min-height: 300px;
  }

  .blog-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .blog-hero-title { max-width: none; }

  .blog-card--featured,
  .blog-card--wide,
  .blog-card--tall,
  .blog-card--standard {
    grid-column: span 12;
    min-height: 280px;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}
