/* ============================================================
   blog.css — dv2 editorial layer for the Journal
   Re-skins the blog index, category indexes and article pages
   onto the design-v2 system (warm near-black, single electric
   accent, PT Serif italic voice, Manrope body, JetBrains mono
   labels, hairline structure). Consumes the dv2 tokens defined
   on :root in design-v2.css. Scoped under .dv2-skin so it wins
   over the Webflow defaults without !important.
   ============================================================ */

/* ── shared: breadcrumb + hero ─────────────────────────────── */
.dv2-skin .breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0;
  margin: 0 0 22px;
}
.dv2-skin .breadcrumb a { color: var(--ink-3); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.dv2-skin .breadcrumb a:hover { color: var(--accent); border-color: var(--accent); }

/* hero wrappers — drop the flat-black box, go editorial-left */
.dv2-skin .blog-hero-section,
.dv2-skin .blog-hero,
.dv2-skin .blog-post-hero {
  background: transparent;
  text-align: left;
  /* !important to beat design-v2's `.dv2-skin .section { padding: …!important }` */
  padding: clamp(96px, 12vw, 150px) 0 clamp(22px, 3vw, 38px) !important;
  position: relative;
}
.dv2-skin .blog-hero-section .header,
.dv2-skin .blog-hero-section .header.is-align-center { text-align: left; max-width: none; align-items: flex-start; }
.dv2-skin .blog-hero-section .header > * { margin-left: 0; margin-right: 0; }

/* kicker */
.dv2-skin .blog-hero-section .eyebrow,
.dv2-skin .blog-hero .eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

/* hero headline */
.dv2-skin .blog-hero-section .heading_h1,
.dv2-skin .blog-hero h1,
.dv2-skin .blog-post-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.0;
  letter-spacing: -.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  max-width: 18ch;
}
.dv2-skin .blog-post-hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; max-width: 22ch; }
.dv2-skin .blog-hero-section .heading_h1 em,
.dv2-skin .blog-hero h1 em,
.dv2-skin .blog-post-hero h1 em { color: var(--accent); font-style: italic; }

/* hero lead / standfirst */
.dv2-skin .blog-hero-section .subheading,
.dv2-skin .blog-hero .subheading {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 20px 0 0;
}

/* ── category filter — mono hairline pills ─────────────────── */
.dv2-skin .category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.dv2-skin .category-filter a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 17px;
  backdrop-filter: none;
  transition: border-color .2s, color .2s, background .2s;
}
.dv2-skin .category-filter a:hover { border-color: var(--ink-3); color: var(--ink); background: transparent; transform: none; }
.dv2-skin .category-filter a.active { background: var(--accent); border-color: var(--accent); color: #0c0c0d; }

/* ── article-card grid ─────────────────────────────────────── */
.dv2-skin .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
  margin: 0;
}

.dv2-skin .blog-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s, transform .4s cubic-bezier(.2,.7,.3,1);
}
.dv2-skin .blog-card:hover { border-color: rgba(240,236,228,.28); transform: translateY(-4px); }
.dv2-skin .blog-card-glass {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* image — duotone-ish until hover, then it warms up */
.dv2-skin .blog-card-image {
  width: 100%;
  height: 198px;
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center;
  position: relative;
  filter: grayscale(.45) contrast(1.02) brightness(.82);
  transform: scale(1.001);
  transition: filter .45s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
.dv2-skin .blog-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12,12,13,.12) 0%, rgba(12,12,13,.55) 100%);
}
.dv2-skin .blog-card:hover .blog-card-image { filter: grayscale(0) contrast(1) brightness(.96); transform: scale(1.05); }

/* content — dark editorial, never the white block */
.dv2-skin .blog-card-content {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 22px 22px 20px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dv2-skin .blog-card-category {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 11px;
}
.dv2-skin .blog-card-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.dv2-skin .blog-card-title a { color: var(--ink); transition: color .25s; }
.dv2-skin .blog-card:hover .blog-card-title a,
.dv2-skin .blog-card-title a:hover { color: var(--accent); }
.dv2-skin .blog-card-excerpt {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px;
  flex: 1;
}
.dv2-skin .blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
/* normalise both separator styles (literal "•" spans and ::after dots) */
.dv2-skin .blog-card-meta span::after { content: none !important; margin: 0 !important; }
.dv2-skin .blog-card-meta span { margin: 0 !important; color: var(--ink-3); }
.dv2-skin .blog-card-meta span + span { position: relative; padding-left: 16px; }
.dv2-skin .blog-card-meta span + span::before { content: "·"; position: absolute; left: 6px; color: var(--ink-3); }

/* ── featured lead card (first card on the main Journal landing only) ── */
@media (min-width: 760px) {
  .dv2-skin [data-barba-namespace="blog"] .blog-grid > .blog-card:first-child { grid-column: 1 / -1; }
  .dv2-skin [data-barba-namespace="blog"] .blog-grid > .blog-card:first-child .blog-card-glass { flex-direction: row; align-items: stretch; }
  .dv2-skin [data-barba-namespace="blog"] .blog-grid > .blog-card:first-child .blog-card-image { width: 50%; height: auto; min-height: 320px; flex: 0 0 50%; }
  .dv2-skin [data-barba-namespace="blog"] .blog-grid > .blog-card:first-child .blog-card-content { justify-content: center; padding: clamp(28px, 4vw, 56px); }
  .dv2-skin [data-barba-namespace="blog"] .blog-grid > .blog-card:first-child .blog-card-category { font-size: 11px; }
  .dv2-skin [data-barba-namespace="blog"] .blog-grid > .blog-card:first-child .blog-card-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.06; margin-bottom: 16px; }
  .dv2-skin [data-barba-namespace="blog"] .blog-grid > .blog-card:first-child .blog-card-excerpt { font-size: 16px; max-width: 52ch; }
}

/* ── article prose ─────────────────────────────────────────── */
.dv2-skin .blog-post-container { max-width: 720px; margin: 0 auto; padding-inline: var(--gutter); }
.dv2-skin .blog-post-hero .blog-post-container { padding-inline: var(--gutter); }

.dv2-skin .blog-post-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 22px 0 0;
}
.dv2-skin .blog-post-meta span { color: var(--ink-3); }

/* the standfirst rule under the article header */
.dv2-skin .blog-post-hero { border-bottom: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 64px); }

.dv2-skin .blog-post-content {
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.78;
  color: rgba(240, 236, 228, .84);
}
.dv2-skin .blog-post-content > *:first-child { margin-top: 0; }
.dv2-skin .blog-post-content p { margin: 0 0 22px; }
.dv2-skin .blog-post-content h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: clamp(44px, 5vw, 60px) 0 18px;
  text-wrap: balance;
}
.dv2-skin .blog-post-content h2 em { color: var(--accent); font-style: italic; }
.dv2-skin .blog-post-content h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 34px 0 12px;
}
.dv2-skin .blog-post-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 228, 92, .4);
  transition: border-color .2s;
}
.dv2-skin .blog-post-content a:hover { border-color: var(--accent); }
.dv2-skin .blog-post-content strong { color: var(--ink); font-weight: 600; }
.dv2-skin .blog-post-content ul,
.dv2-skin .blog-post-content ol { margin: 0 0 22px; padding-left: 4px; list-style: none; }
.dv2-skin .blog-post-content li { position: relative; padding-left: 26px; margin-bottom: 11px; }
.dv2-skin .blog-post-content ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.dv2-skin .blog-post-content ol { counter-reset: pc; }
.dv2-skin .blog-post-content ol li { counter-increment: pc; }
.dv2-skin .blog-post-content ol li::before {
  content: counter(pc);
  position: absolute;
  left: 0; top: .05em;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.dv2-skin .blog-post-content blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
}

/* comparison table — hairline, mono headers, no white */
.dv2-skin .comparison-table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  font-size: 15px;
}
.dv2-skin .comparison-table th,
.dv2-skin .comparison-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.dv2-skin .comparison-table th {
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.dv2-skin .comparison-table tr td:first-child { color: var(--ink); }

/* ── CTA panel — hairline, not glass ───────────────────────── */
.dv2-skin .cta-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px);
  margin: clamp(48px, 6vw, 72px) 0 0;
  text-align: center;
}
.dv2-skin .cta-box h2,
.dv2-skin .cta-box h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--ink);
  margin: 0 0 12px;
}
.dv2-skin .cta-box p { color: var(--ink-2); margin: 0 auto; max-width: 52ch; }
.dv2-skin .cta-box .btn-primary,
.dv2-skin .blog-post-content .btn-primary {
  background: var(--accent);
  color: #0c0c0d;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  padding: 15px 28px;
  border-radius: 999px;
  margin-top: 26px;
  box-shadow: none;
  transition: background .2s, transform .2s;
}
.dv2-skin .cta-box .btn-primary:hover,
.dv2-skin .blog-post-content .btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: none; }

/* ── entrance reveal (gentle, gated on reduced-motion) ─────── */
@media (prefers-reduced-motion: no-preference) {
  .dv2-skin .blog-grid .blog-card {
    opacity: 0;
    transform: translateY(16px);
    animation: blog-card-in .6s cubic-bezier(.2,.7,.3,1) forwards;
  }
  .dv2-skin .blog-grid .blog-card:nth-child(1) { animation-delay: .04s; }
  .dv2-skin .blog-grid .blog-card:nth-child(2) { animation-delay: .10s; }
  .dv2-skin .blog-grid .blog-card:nth-child(3) { animation-delay: .16s; }
  .dv2-skin .blog-grid .blog-card:nth-child(4) { animation-delay: .22s; }
  .dv2-skin .blog-grid .blog-card:nth-child(5) { animation-delay: .28s; }
  .dv2-skin .blog-grid .blog-card:nth-child(6) { animation-delay: .34s; }
  .dv2-skin .blog-grid .blog-card:nth-child(7) { animation-delay: .40s; }
  @keyframes blog-card-in { to { opacity: 1; transform: none; } }
}

/* drop the Webflow/dv2 .section top padding under the hero so the filter/grid
   sit close to the masthead (scoped to blog namespaces so it can't leak to
   other pages via Barba's persisted stylesheet; !important to beat
   design-v2's `.dv2-skin .section { padding: …!important }`) */
.dv2-skin [data-barba-namespace^="blog"] main > section.section:not(.blog-hero-section) { padding-top: 0 !important; }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 760px) {
  .dv2-skin .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dv2-skin .blog-post-meta { flex-wrap: wrap; gap: 10px 18px; }
}
