/* blog.css — Blog listing + single post styles
   Design tokens match contact.css exactly — same brand, editorial section
   v2: card-based listings, no listing imagery, expanded spacing system */

.blog-main {
  background: #000;
  color: #fff;
}

/* ── Shared hero pattern (mirrors .contact-hero) ── */
.blog-hero,
.post-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #050505;
}

.blog-hero {
  height: 64vh;
  min-height: 460px;
}

.post-hero {
  height: 58vh;
  min-height: 380px;
}

.blog-hero__bg,
.post-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blog-hero__bg img,
.post-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.05);
  animation: heroImgZoom 9s ease-out both;
}

.blog-hero__overlay,
.post-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 42%, rgba(0,0,0,0.28) 100%),
    linear-gradient(100deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 58%);
}

@keyframes heroImgZoom {
  from { transform: scale(1.09); }
  to   { transform: scale(1); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero__bg img,
  .post-hero__bg img,
  .blog-hero__kicker,
  .blog-hero__title,
  .blog-hero__sub,
  .blog-hero .blog-breadcrumb {
    animation: none !important;
  }
}

.blog-hero__content,
.post-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
  padding-top: 64px;
}

.blog-hero__kicker,
.post-hero__kicker {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212,175,100,0.95);
  border: 1px solid rgba(212,175,100,0.45);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 24px;
  animation: heroFadeUp 0.7s ease both;
}

.blog-hero__title,
.post-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 22px;
  animation: heroFadeUp 0.8s 0.12s ease both;
}

.blog-hero__title  { font-size: clamp(1.6rem, 3vw, 3rem); letter-spacing: -0.01em; }
.post-hero__title  { font-size: clamp(1.4rem, 2.4vw, 2rem); max-width: 760px; }

.blog-hero__title em {
  font-style: italic;
  color: #c8a45d;
  position: relative;
}

.blog-hero__sub {
  font-family: 'Jost', sans-serif;
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 36px;
  animation: heroFadeUp 0.8s 0.22s ease both;
}

.post-hero__meta {
  display: flex;
  gap: 26px;
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.post-hero__meta i { color: #c8a45d; margin-right: 7px; }

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
}

.blog-hero .blog-breadcrumb {
  animation: heroFadeUp 0.8s 0.32s ease both;
}

.blog-breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.blog-breadcrumb a:hover { color: #c8a45d; }
.blog-breadcrumb span:last-child { color: #c8a45d; }

/* ── Dossier listing ── */
.blog-dossier {
  padding: 70px 0 130px;
  background: #000;
}

.dossier-date {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,164,93,0.75);
  display: inline-block;
}

.dossier-dot {
  color: rgba(255,255,255,0.25);
  margin: 0 10px;
}

.dossier-readtime {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
}

/* ── Card grid (image-free, card-style) ── */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 55%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 38px 34px;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.post-card::before,
.post-card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(200,164,93,0);
  transition: border-color 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.post-card::before {
  top: 10px; left: 10px;
  border-right: none; border-bottom: none;
}

.post-card::after {
  bottom: 10px; right: 10px;
  border-left: none; border-top: none;
}

.post-card__glow {
  position: absolute;
  width: 260px;
  height: 260px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(200,164,93,0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.post-card:hover .post-card__glow { opacity: 1; }

.post-card:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-6px);
  box-shadow: 0 32px 60px -28px rgba(0,0,0,0.75);
}

.post-card:hover::before,
.post-card:hover::after {
  border-color: rgba(200,164,93,0.7);
}

.post-card__inner {
  position: relative;
  z-index: 1;
}

.post-card__tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c8a45d;
  border: 1px solid rgba(200,164,93,0.35);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 22px;
}

.post-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 16px;
}

.post-card__title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.post-card__title a:hover { color: #c8a45d; }

.post-card__excerpt {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  flex-grow: 1;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.post-card__meta {
  display: flex;
  align-items: center;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}

.post-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8a45d;
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.3s;
}

.post-card__readmore:hover { gap: 13px; }

/* Featured card — first post on page 1, spans full width, text-forward */
.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.post-card--featured .post-card__inner {
  padding: 46px 48px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.post-card--featured .post-card__inner::before {
  content: '';
  position: absolute;
  left: 0; top: 28px; bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(200,164,93,0.7), rgba(200,164,93,0.05));
}

.post-card--featured .post-card__tag {
  margin-bottom: 26px;
}

.post-card--featured .post-card__title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 18px;
  max-width: 640px;
}

.post-card--featured .post-card__excerpt {
  font-size: 15px;
  max-width: 620px;
  margin-bottom: 30px;
}

/* Pagination */
.dossier-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 64px;
  font-family: 'Jost', sans-serif;
}

.dossier-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.dossier-pagination .page-numbers:hover,
.dossier-pagination .page-numbers.current {
  border-color: rgba(200,164,93,0.5);
  color: #c8a45d;
  background: rgba(200,164,93,0.06);
}

.dossier-empty {
  text-align: center;
  padding: 90px 0;
}

.dossier-empty p {
  font-family: 'Jost', sans-serif;
  color: rgba(255,255,255,0.5);
  font-size: 14.5px;
  max-width: 460px;
  margin: 18px auto 0;
  line-height: 1.8;
}

/* ── Single post body ── */
.post-body-section {
  background: #000;
  padding: 96px 0 70px;
}

.post-body-wrap {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

/* Signature element: margin gold rule, like a surveyor's annotation */
.post-margin-rule {
  width: 1px;
  background: linear-gradient(to bottom, rgba(200,164,93,0.6), rgba(200,164,93,0.05));
  margin-top: 8px;
}

.post-body {
  font-family: 'Jost', sans-serif;
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255,255,255,0.78);
}

.post-body p { margin-bottom: 28px; }

.post-body h2,
.post-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #fff;
  margin: 50px 0 20px;
  line-height: 1.3;
}

.post-body h2 { font-size: 1.65rem; }
.post-body h3 { font-size: 1.28rem; }

.post-body a {
  color: #c8a45d;
  text-decoration: underline;
  text-decoration-color: rgba(200,164,93,0.35);
  transition: text-decoration-color 0.3s;
}

.post-body a:hover { text-decoration-color: #c8a45d; }

.post-body ul,
.post-body ol {
  margin: 0 0 28px 22px;
}

.post-body li { margin-bottom: 11px; }

.post-body img {
  width: 100%;
  border-radius: 4px;
  margin: 14px 0 32px;
}

.post-body blockquote {
  border-left: 2px solid #c8a45d;
  padding: 6px 0 6px 26px;
  margin: 38px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.22rem;
  color: #fff;
  line-height: 1.65;
}

/* Tags row beneath article body */
.post-tags {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.post-tags__label {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 18px;
}

.post-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.post-tags a {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  padding: 9px 18px;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.post-tags a:hover {
  border-color: #c8a45d;
  color: #c8a45d;
  background: rgba(200,164,93,0.08);
}

/* Back to blog / CTA footer */
.post-footer-nav {
  background: #060606;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0;
}

.post-footer-nav .container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Back link — icon badge + label */
.post-footer-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-footer-nav__back-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.7);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.post-footer-nav__back:hover {
  color: #c8a45d;
}

.post-footer-nav__back:hover .post-footer-nav__back-icon {
  border-color: #c8a45d;
  color: #c8a45d;
  transform: translateX(-4px);
}

/* CTA — icon + label + animated arrow */
.post-footer-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #d8b568, #b78a45);
  color: #0a0a0a;
  font-family: 'Jost', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 16px 15px 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-footer-nav__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  color: #0a0a0a;
}

.post-footer-nav__cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10,10,10,0.14);
  transition: transform 0.3s ease;
}

.post-footer-nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(200,164,93,0.55);
}

.post-footer-nav__cta:hover .post-footer-nav__cta-arrow {
  transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .dossier-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .post-body-wrap     { grid-template-columns: 24px 1fr; gap: 18px; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__inner::before { display: none; }
}

@media (max-width: 768px) {
  .blog-hero          { height: auto; min-height: 320px; }
  .post-hero          { height: auto; min-height: 320px; }
  .blog-hero__content,
  .post-hero__content { padding-bottom: 52px; padding-top: 100px; }
  .blog-dossier       { padding: 56px 0 80px; }
  .dossier-grid        { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .post-card           { padding: 30px 26px; }
  .post-card--featured .post-card__inner { padding: 34px 28px; }
  .post-body-wrap      { grid-template-columns: 1fr; }
  .post-margin-rule    { display: none; }
  .post-body-section   { padding: 64px 0 50px; }
  .post-footer-nav .container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .blog-hero__title, .post-hero__title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .post-card__title { font-size: 1.15rem; }
}