/* ============ A7 MEDIA — Blog styles ============ */
/* Inherits design tokens from ../styles.css */

/* Blog container */
.blog-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 900px) {
  .blog-wrap { padding: 0 24px; }
}

/* Blog header strip under main nav */
.blog-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.blog-hero .eyebrow { margin-bottom: 36px; }
.blog-hero h1 {
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 28px;
}
.blog-hero .lede {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.45;
}

/* ========== Blog index grid ========== */
.blog-grid {
  padding: 100px 0 160px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px 32px;
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr; gap: 48px; padding: 60px 0 100px; }
}

.blog-card {
  grid-column: span 6;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: transform .4s var(--ease);
}
@media (max-width: 900px) {
  .blog-card { grid-column: span 1; }
}
.blog-card:hover { transform: translateY(-4px); }

.blog-card .cover {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  margin-bottom: 28px;
  position: relative;
}
.blog-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.blog-card:hover .cover img { transform: scale(1.04); }

.blog-card .cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.blog-card .meta {
  display: flex;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.blog-card .meta .dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  align-self: center;
}

.blog-card h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  max-width: 22ch;
}
.blog-card h2 em { color: var(--gold); font-weight: 300; }

.blog-card .excerpt {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 20px;
}

.blog-card .read-more {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.blog-card .read-more .arr {
  display: inline-block;
  transition: transform .4s var(--ease);
}
.blog-card:hover .read-more .arr { transform: translateX(6px); }

/* Featured card — first post spans full row */
.blog-card.feature {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .blog-card.feature { grid-template-columns: 1fr; gap: 28px; }
}
.blog-card.feature .cover { margin-bottom: 0; aspect-ratio: 4 / 3; }
.blog-card.feature h2 {
  font-size: clamp(36px, 4vw, 56px);
}

/* ========== Article page ========== */
.article {
  padding: 140px 0 60px;
}
.article-head {
  max-width: 820px;
  margin: 0 auto 60px;
}
.article-breadcrumbs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 40px;
}
.article-breadcrumbs a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid transparent; }
.article-breadcrumbs a:hover { color: var(--ink); border-color: var(--gold); }
.article-breadcrumbs .sep { margin: 0 12px; color: var(--ink-3); opacity: 0.5; }

.article-head h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 20ch;
  text-wrap: balance;
}
.article-head h1 em { color: var(--gold); font-weight: 300; }

.article-head .dek {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 1.5vw, 24px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 58ch;
  margin-bottom: 40px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-byline .k { color: var(--ink-3); margin-right: 10px; opacity: 0.7; }
.article-byline .v { color: var(--ink); }

.article-hero {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 48px;
}
@media (max-width: 900px) {
  .article-hero { padding: 0 24px; margin-bottom: 48px; }
}
.article-hero .frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
}
.article-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero figcaption {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-hero figcaption::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}

/* Article body */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px 120px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .article-body { padding: 0 24px 80px; font-size: 17px; }
}

.article-body p {
  margin-bottom: 24px;
  text-wrap: pretty;
}
.article-body p.lead {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 40px;
  font-weight: 300;
}
.article-body p.lead::first-letter {
  font-family: var(--f-display);
  font-size: 72px;
  float: left;
  line-height: 0.85;
  margin: 8px 14px 0 -4px;
  color: var(--gold);
  font-weight: 300;
}

.article-body h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 60px 0 20px;
  text-wrap: balance;
}
.article-body h2::before {
  content: "";
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}
.article-body h2 em { color: var(--gold); font-weight: 300; }

.article-body h3 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 36px 0 12px;
}

.article-body ul, .article-body ol {
  margin: 0 0 28px 0;
  padding-left: 0;
  list-style: none;
}
.article-body li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 10px; height: 1px;
  background: var(--gold);
}
.article-body ol { counter-reset: li; }
.article-body ol li {
  counter-increment: li;
  padding-left: 36px;
}
.article-body ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.article-body blockquote {
  border: none;
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 300;
}

.article-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: all .3s var(--ease);
}
.article-body a:hover {
  color: var(--gold);
}

.article-body strong {
  color: var(--ink);
  font-weight: 500;
}

.article-body figure {
  margin: 48px 0;
}
.article-body figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}
.article-body figure figcaption {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
}

/* Callout box */
.callout {
  border: 1px solid var(--line-2);
  padding: 32px;
  margin: 48px 0;
  background: var(--bg-2);
  position: relative;
}
.callout::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 60px; height: 1px;
  background: var(--gold);
}
.callout .cal-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.callout h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}
.callout p { margin: 0; font-size: 15px; line-height: 1.6; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  .stats-row { grid-template-columns: 1fr; gap: 12px; }
}
.stats-row .stat { }
.stats-row .stat .v {
  font-family: var(--f-display);
  font-size: 48px;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
  font-weight: 300;
}
.stats-row .stat .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}

/* Article footer / CTA */
.article-cta {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}
@media (max-width: 900px) {
  .article-cta { padding: 60px 24px; }
}
.article-cta .eyebrow { justify-content: center; display: inline-flex; align-items: center; margin-bottom: 24px; }
.article-cta h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.1;
  margin-bottom: 36px;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
}
.article-cta h3 em { color: var(--gold); font-weight: 300; }
.article-cta .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  text-decoration: none;
  transition: all .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cta-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.cta-btn.gold {
  background: var(--gold);
  color: #1a1405;
  border-color: var(--gold);
}
.cta-btn.gold:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #1a1405;
}

/* Related posts */
.related {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 140px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .related { padding: 60px 24px 100px; }
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}
.related-head h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.015em;
}
.related-head .back {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.related-head .back:hover { color: var(--gold); border-color: var(--gold); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Simple site footer for blog pages */
.blog-foot {
  padding: 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 16px;
}
.blog-foot a { color: var(--ink-3); text-decoration: none; }
.blog-foot a:hover { color: var(--gold); }
.blog-foot .left { display: flex; gap: 28px; flex-wrap: wrap; }
.blog-foot .right { display: flex; gap: 28px; flex-wrap: wrap; }
