/* ============================================
   adverr® — blog (index + post)
   ============================================ */

/* ============ BLOG INDEX HERO ============ */
.blog-hero {
  background: var(--bg-cream);
  padding-block: clamp(60px, 8vw, 110px) clamp(40px, 5vw, 64px);
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.blog-hero__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-block: 22px 22px;
}
.blog-hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.55;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.blog-filter__btn {
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 99px;
  color: var(--ink);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.blog-filter__btn:hover { background: var(--ink); color: var(--bg-cream); }
.blog-filter__btn.is-active { background: var(--ink); color: var(--bg-cream); }

/* ============ BLOG LIST ============ */
.blog-list {
  background: var(--bg-paper);
  padding-block: clamp(48px, 6vw, 80px) clamp(60px, 8vw, 110px);
}

.blog-card {
  display: block;
  background: var(--bg-cream);
  border: 1px solid var(--line-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,10,10,0.1); }
.blog-card__link { display: block; height: 100%; }

.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.blog-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }

.blog-card__body {
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.blog-card__title {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.blog-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.blog-card__arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--gold-deep);
  transition: transform .3s var(--ease);
}
.blog-card:hover .blog-card__arrow { transform: translateX(4px); }

/* Featured (hero) card */
.blog-card--feature {
  margin-bottom: clamp(32px, 4vw, 56px);
}
.blog-card--feature .blog-card__link {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
}
.blog-card--feature .blog-card__media { aspect-ratio: auto; height: 100%; min-height: 360px; }
.blog-card--feature .blog-card__body { padding: clamp(28px, 3.6vw, 56px); justify-content: center; gap: 18px; }
.blog-card--feature .blog-card__title { font-size: clamp(28px, 3.4vw, 44px); }
.blog-card--feature .blog-card__excerpt { font-size: clamp(15px, 1.2vw, 17px); }

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.blog-card[hidden] { display: none; }

/* ============ POST PAGE ============ */
.post { background: var(--bg-cream); }

.post__header {
  background: var(--bg-cream);
  padding-block: clamp(48px, 6vw, 80px) clamp(28px, 3vw, 40px);
  position: relative;
}
.post__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color .2s;
}
.post__back:hover { color: var(--gold-deep); }

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block: 28px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.post__cat { color: var(--gold-deep); font-weight: 700; }
.post__dot { opacity: 0.4; }

.post__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 18ch;
}

.post__lede {
  margin-top: 24px;
  font-family: var(--f-serif);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
  font-weight: 400;
}

.post__hero {
  padding-block: clamp(20px, 3vw, 40px);
}
.post__hero img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(10,10,10,0.18);
}

/* ============ POST BODY ============ */
.post__body {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(32px, 4vw, 56px);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.post__body > * + * { margin-top: 1.2em; }
.post__body p { font-size: 17px; line-height: 1.75; }
.post__body p:first-child { font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.post__body h2,
.post__body h3,
.post__body h4 {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 1.6em;
  margin-bottom: 0.3em;
  line-height: 1.1;
}
.post__body h2 { font-size: clamp(24px, 2.6vw, 32px); }
.post__body h3 { font-size: clamp(20px, 2vw, 24px); }
.post__body h4 { font-size: clamp(17px, 1.6vw, 20px); }
.post__body strong { color: var(--ink); font-weight: 800; }
.post__body em { font-family: var(--f-serif); font-style: italic; font-weight: 600; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.post__body u { text-decoration: none; background: linear-gradient(transparent 60%, rgba(184,146,74,0.22) 60%); padding: 0 2px; }
.post__body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.post__body a:hover { color: var(--ink); }

.post__body ul,
.post__body ol {
  padding-left: 1.4em;
}
.post__body li {
  margin-block: 6px;
  padding-left: 4px;
}
.post__body ul li::marker { color: var(--gold); content: "▸ "; }
.post__body ol { list-style: decimal; }
.post__body ol li::marker { color: var(--gold-deep); font-weight: 700; }

.post__body img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-block: 1.6em;
  box-shadow: 0 12px 30px rgba(10,10,10,0.1);
}

.post__body blockquote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 24px;
  margin-block: 1.6em;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.12em;
  color: var(--ink);
}

.post__body .caption {
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: -0.4em;
}

/* ============ SHARE ============ */
.post__share {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: clamp(24px, 3vw, 40px);
  border-block: 1px solid var(--line-soft);
}
.post__share-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.post__share-links {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.post__share-links a {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background .2s, color .2s;
}
.post__share-links a:hover { background: var(--ink); color: var(--bg-cream); }

/* ============ RELATED ============ */
.post__related {
  background: var(--bg-paper);
  padding-block: clamp(56px, 7vw, 96px);
  margin-top: clamp(40px, 5vw, 72px);
}
.post__related-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.post__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-cream);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10,10,10,0.1); }
.related-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}
.related-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.related-card:hover .related-card__media img { transform: scale(1.04); }
.related-card__body {
  padding: 20px 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.related-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.related-card__title {
  font-family: var(--f-display);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Active nav state */
.nav__link--active { color: var(--gold-deep); }
.nav__link--active::after { width: 100%; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post__related-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--feature .blog-card__link { grid-template-columns: 1fr; }
  .blog-card--feature .blog-card__media { min-height: 260px; aspect-ratio: 16/9; }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post__related-grid { grid-template-columns: 1fr; }
  .post__title { font-size: clamp(32px, 9vw, 48px); }
  .post__share { flex-direction: column; align-items: flex-start; gap: 12px; }
  .post__share-links { margin-left: 0; }
}
