/* ==========================================================================
   Optimon — Blog index & post page styles
   ========================================================================== */

/* ============================================================
   BLOG INDEX — narrow container (matches post page)
   ============================================================ */
.blog-hero .container,
.blog-filter .container.blog-filter-inner,
.featured-post .container,
.blog-index .container,
.newsletter .container {
  max-width: 920px;
}

/* ============================================================
   BLOG INDEX — hero
   ============================================================ */
.blog-hero {
  padding: 56px 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.blog-hero-inner {
  display: block;
  max-width: 720px;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: var(--headline-w);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.blog-hero h1 em {
  font-style: normal;
  color: var(--ink-3);
  background: none;
  padding: 0;
  font-weight: 500;
}
.blog-hero-deck {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0;
}
.blog-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}
.blog-hero-stat .v {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.blog-hero-stat .v em {
  font-style: normal;
  color: var(--accent);
}
.blog-hero-stat .l {
  margin-top: 8px;
  font-size: 13px; color: var(--ink-3);
  line-height: 1.4;
}

/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */
.blog-filter {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 65px;
  z-index: 20;
}
.blog-filter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.blog-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
  cursor: pointer;
}
.blog-chip:hover { border-color: var(--ink); color: var(--ink); }
.blog-chip.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.blog-chip .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}
.blog-chip.active .count { color: color-mix(in oklab, var(--bg) 64%, transparent); }
.blog-search {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 240px;
}
.blog-search::before {
  content: "⌕"; color: var(--ink-3); font-size: 16px;
}
.blog-search input {
  flex: 1; border: 0; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink);
  outline: 0;
}
.blog-search input::placeholder { color: var(--ink-3); }

/* ============================================================
   FEATURED POST (compact)
   ============================================================ */
.featured-post {
  padding: 40px 0 24px;
}
.featured-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
  color: var(--ink);
}
.featured-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.featured-art {
  background: var(--card-lavender);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
}
.featured-art-tag {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  font-size: 10px; font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative; z-index: 1;
  align-self: flex-start;
}
.featured-art-mark {
  position: absolute;
  bottom: -60px; right: -24px;
  font-family: var(--font-display);
  font-size: 240px; font-weight: 900;
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.08;
  letter-spacing: -0.05em;
  pointer-events: none;
}
.featured-art-stat {
  position: relative; z-index: 1;
  display: flex; align-items: baseline; gap: 12px;
}
.featured-art-stat .v {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.featured-art-stat .l {
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  max-width: 14ch;
  line-height: 1.3;
}
.featured-body {
  padding: 28px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.featured-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  color: var(--accent-deep);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.featured-body h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700; letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 10px 0 10px;
  color: var(--ink);
  text-wrap: balance;
}
.featured-body p {
  font-size: 14px; color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.featured-meta {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-3);
}
.featured-meta .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-weight: 800; font-size: 11px;
}
.featured-meta .author { font-weight: 700; color: var(--ink); font-size: 13px; }
.featured-meta .dot { color: var(--ink-3); font-size: 12px; }
.featured-meta .read { margin-left: auto; font-weight: 600; color: var(--ink); font-size: 13px; }

/* ============================================================
   BLOG INDEX GRID (full)
   ============================================================ */
.blog-index { padding: 32px 0 96px; }
.blog-index-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.blog-index-head h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  margin: 0; color: var(--ink);
}
.blog-index-head .sort {
  font-size: 13px; color: var(--ink-3); font-weight: 600;
}
.blog-index-head .sort strong { color: var(--ink); }

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

/* Reuse `.blog-card`/`.blog-thumb`/`.blog-body` from styles-bold.css */
.blog-index-grid .blog-card { min-height: 100%; }
.blog-index-grid .blog-thumb { height: 120px; padding: 12px; }
.blog-index-grid .blog-thumb .blog-cat { font-size: 10px; padding: 3px 8px; }
.blog-index-grid .blog-thumb-mark { font-size: 130px; bottom: -22px; right: -6px; }
.blog-index-grid .blog-body { padding: 16px 18px; gap: 8px; }
.blog-index-grid .blog-body h3 { font-size: 15px; line-height: 1.25; }
.blog-index-grid .blog-body p { font-size: 12px; line-height: 1.45; }
.blog-index-grid .blog-meta { font-size: 11px; padding-top: 12px; gap: 6px; }

.blog-pagination {
  margin-top: 48px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.page-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.page-btn:hover { border-color: var(--ink); color: var(--ink); }
.page-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-btn.ghost { border: 0; background: transparent; }

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.newsletter {
  padding: 80px 0;
}
.newsletter-card {
  background: var(--card-citrus);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 50%;
  right: -100px; top: -100px;
  pointer-events: none;
}
.newsletter-copy { position: relative; z-index: 1; }
.newsletter-eyebrow {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.newsletter-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: var(--headline-w);
  letter-spacing: -0.032em;
  line-height: 1.04;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}
.newsletter-copy p {
  font-size: 16px; color: var(--ink-2);
  margin: 0; max-width: 42ch;
}
.newsletter-form {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 12px;
}
.newsletter-form .row {
  display: flex; gap: 8px;
  background: var(--bg);
  border-radius: 999px;
  padding: 7px 7px 7px 22px;
  align-items: center;
}
.newsletter-form input {
  flex: 1; border: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink);
  outline: 0;
}
.newsletter-form input::placeholder { color: var(--ink-3); }
.newsletter-form button {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px;
  padding: 12px 22px; font-size: 14px; font-weight: 700;
  white-space: nowrap; border: 0;
  transition: background .15s;
}
.newsletter-form button:hover { background: var(--accent-deep); }
.newsletter-perks {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-2);
  padding-left: 22px;
}
.newsletter-perks span::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 4px; }

/* ============================================================
   POST PAGE
   ============================================================ */
.post-head {
  padding: 56px 0 40px;
  background: var(--bg);
}
.post-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 24px;
  display: flex; gap: 8px; align-items: center;
}
.post-breadcrumb a { color: var(--ink-3); transition: color .15s; }
.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb .sep { opacity: 0.4; }
.post-breadcrumb .current { color: var(--ink); font-weight: 600; }

.post-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: var(--headline-w);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: pretty;
}
.post-title em {
  font-style: normal;
  color: inherit;
  background: none;
  padding: 0;
}
.post-deck {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  line-height: 1.3;
  margin: 0 0 28px;
  max-width: 60ch;
  text-wrap: pretty;
}
.post-byline {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--ink-3);
}
.post-byline .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
}
.post-byline .author-name {
  font-weight: 700; color: var(--ink); font-size: 15px;
}
.post-byline .author-role {
  font-size: 13px; color: var(--ink-3);
}
.post-byline .by-meta {
  display: flex; flex-direction: column; gap: 1px;
}
.post-byline .by-side {
  margin-left: auto;
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: var(--ink-3);
}
.post-byline .by-side .sep { opacity: 0.4; }
.post-byline .share {
  display: inline-flex; gap: 6px; margin-left: 12px;
}
.post-byline .share a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink-2);
  font-size: 13px; font-weight: 800;
  transition: background .15s, color .15s, border-color .15s;
}
.post-byline .share a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Post head & body — narrow container (override styles-bold.css 1040px) */
.post-head .container,
.post-head .container-narrow,
.post-body .container,
.post-body .container-narrow {
  max-width: 920px;
}
.post-head { padding: 48px 0 32px; }

/* Post hero image */
.post-hero-img {
  margin: 0 auto 48px;
  max-width: 920px;
  padding: 0 var(--gutter);
}
.post-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}
.post-hero-img .image-frame {
  aspect-ratio: 16 / 7;
  background: var(--card-lavender);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  max-height: 360px;
}
.post-hero-img .image-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, transparent 0 48%, color-mix(in oklab, var(--ink) 8%, transparent) 48% 52%, transparent 52%),
    linear-gradient(45deg, transparent 0 48%, color-mix(in oklab, var(--ink) 8%, transparent) 48% 52%, transparent 52%);
  background-size: 32px 32px;
  opacity: 0.6;
}
.post-hero-img .placeholder-label {
  position: relative; z-index: 1;
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.post-hero-img .placeholder-label strong { color: var(--ink); font-weight: 700; }
.post-hero-img .caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
  text-align: center;
}

/* ============================================================
   POST BODY (long-form)
   ============================================================ */
.post-body {
  padding: 0 0 80px;
}
.post-body-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 48px;
  align-items: start;
}
.post-toc {
  position: sticky; top: 100px;
  font-size: 13px;
}
.post-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.post-toc ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  counter-reset: toc;
}
.post-toc li {
  counter-increment: toc;
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--rule);
}
.post-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}
.post-toc a {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.3;
  transition: color .15s;
}
.post-toc a:hover { color: var(--accent); }
.post-toc li.active { border-left-color: var(--accent); }
.post-toc li.active a { color: var(--ink); font-weight: 700; }

.post-rail {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 20px;
}
.rail-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 6px;
}
.rail-share {
  display: flex; flex-direction: column; gap: 8px;
}
.rail-share a {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.rail-share a:hover { color: var(--accent); border-color: var(--accent); }
.rail-share-row { display: flex; gap: 8px; }
.rail-share-row a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 800; font-size: 13px;
  transition: background .15s, color .15s, border-color .15s;
}
.rail-share-row a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rail-tags {
  display: flex; flex-direction: column; gap: 8px;
}
.rail-tags .pill {
  display: inline-block;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.rail-stat {
  padding: 18px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.rail-stat .v {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800; letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.rail-stat .v em { font-style: normal; color: var(--accent); }
.rail-stat .l {
  margin-top: 6px;
  font-size: 12px; color: var(--ink-3);
  line-height: 1.4;
}

/* Long-form prose */
.prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 auto;
}
.prose > * + * { margin-top: 24px; }
.prose p { margin: 0; text-wrap: pretty; }
.prose p.lead {
  font-size: 20px; line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.prose p.lead::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 60px;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--accent);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin: 44px 0 14px;
  scroll-margin-top: 120px;
  text-wrap: balance;
}
.prose h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 28px 0 10px;
}
.prose a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  transition: color .15s, background .15s;
}
.prose a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol {
  margin: 0; padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.prose ul li {
  position: relative; padding-left: 28px;
}
.prose ul li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--accent); font-weight: 800;
}
.prose ol { counter-reset: list; }
.prose ol li {
  counter-increment: list;
  position: relative; padding-left: 28px;
}
.prose ol li::before {
  content: counter(list) ".";
  position: absolute; left: 0;
  color: var(--accent); font-weight: 800;
  font-family: var(--font-mono);
}

.prose blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.32;
  color: var(--ink);
  text-wrap: balance;
}
.prose blockquote::before {
  content: """;
  display: block;
  font-size: 56px;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 8px;
}
.prose blockquote footer {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent-deep);
}
.prose pre {
  background: var(--ink); color: var(--bg);
  padding: 24px 28px;
  border-radius: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}
.prose pre code {
  background: transparent;
  border: 0; padding: 0;
  color: inherit;
}
/* Legacy ACF token classes */
.prose pre .tok-kw { color: #c4b5fd; }
.prose pre .tok-str { color: #6ee7b7; }
.prose pre .tok-num { color: #fde68a; }
.prose pre .tok-com { color: #82848f; }

/* ── Prism.js token colours — matches screenshot palette ─────────── */
/* Base: inherit dark bg from .pre */
.prose pre[class*="language-"],
.prose-wysiwyg pre[class*="language-"],
.prose pre:has(code[class*="language-"]),
.prose-wysiwyg pre:has(code[class*="language-"]) {
  background: #0d1117;
  color: #e6edf3;
  border-radius: 14px;
  padding: 24px 28px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
}
code[class*="language-"],
.prose pre code[class*="language-"],
.prose-wysiwyg pre code[class*="language-"] {
  background: transparent;
  border: 0; padding: 0;
  color: inherit;
  font-family: var(--font-mono);
  font-size: inherit;
}
/* Keywords — lavender/purple */
.token.keyword,
.token.rule,
.token.selector { color: #c4b5fd; }
/* Functions — cyan */
.token.function,
.token.method,
.token.builtin { color: #67e8f9; }
/* Strings — green */
.token.string,
.token.attr-value,
.token.char { color: #6ee7b7; }
/* Numbers — amber */
.token.number,
.token.boolean,
.token.constant { color: #fde68a; }
/* Comments — muted gray */
.token.comment,
.token.prolog,
.token.doctype { color: #6b7280; font-style: italic; }
/* Operators, punctuation */
.token.operator,
.token.punctuation { color: #8b949e; }
/* Classes, types */
.token.class-name,
.token.maybe-class-name { color: #f0a060; }
/* Properties, attributes */
.token.property,
.token.attr-name,
.token.variable { color: #79c0ff; }
/* Tags (HTML/JSX) */
.token.tag { color: #7ee787; }

/* Gap 1 — fix gaps found in real post content */

/* <i> tag — same as <em> */
.prose-wysiwyg i { font-style: italic; }
.prose i         { font-style: italic; }

/* <cite> — attribution inside blockquote or standalone */
.prose-wysiwyg cite,
.prose cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-deep);
}
.prose-wysiwyg cite::before,
.prose cite::before {
  content: "— ";
  color: var(--accent);
}

/* <img> without a figure wrapper — direct image in post content */
.prose-wysiwyg > img,
.prose-wysiwyg p > img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  margin: 8px 0;
  display: block;
}

/* Gutenberg text-alignment utility classes */
.prose-wysiwyg .has-text-align-center { text-align: center; }
.prose-wysiwyg .has-text-align-right  { text-align: right; }
.prose-wysiwyg .has-text-align-left   { text-align: left; }

/* ============================================================
   PROSE-WYSIWYG — styles raw WordPress HTML inside .prose
   Mirrors .prose rules so WP content looks identical to
   ACF-block content without adding extra class names.
   ============================================================ */

/* Spacing between siblings — (0,2,0) beats .prose p { margin:0 } (0,1,1) */
.prose .prose-wysiwyg > * + * { margin-top: 24px; }
/* Standalone fallback */
.prose-wysiwyg > * + * { margin-top: 24px; }

/* Heading margin overrides — (0,2,1) beats the sibling rule (0,2,0) */
.prose .prose-wysiwyg h1,
.prose .prose-wysiwyg h2,
.prose .prose-wysiwyg h4 { margin-top: 44px; }

.prose .prose-wysiwyg h3,
.prose .prose-wysiwyg h5 { margin-top: 28px; }

/* Tighten space between h3/h5 and the element that follows it */
.prose .prose-wysiwyg h3 + *,
.prose .prose-wysiwyg h5 + * { margin-top: 10px; }
.prose-wysiwyg h3 + *,
.prose-wysiwyg h5 + * { margin-top: 10px; }
.prose h3 + * { margin-top: 10px; }

.prose-wysiwyg p { text-wrap: pretty; }

/* WordPress commonly uses h4 as the main section heading and h5 as sub-heading.
   We map them visually to h2/h3 equivalents. */
.prose-wysiwyg h1,
.prose-wysiwyg h2,
.prose-wysiwyg h4 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin: 44px 0 14px;
  scroll-margin-top: 120px;
  text-wrap: balance;
}
.prose-wysiwyg h2::before,
.prose-wysiwyg h4::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.prose-wysiwyg h3,
.prose-wysiwyg h5 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 28px 0 10px;
}
.prose-wysiwyg a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  transition: color .15s, background .15s;
}
.prose-wysiwyg a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
/* WordPress uses <b> instead of <strong> */
.prose-wysiwyg strong,
.prose-wysiwyg b { color: var(--ink); font-weight: 700; }
.prose-wysiwyg em { font-style: italic; }

.prose-wysiwyg ul,
.prose-wysiwyg ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Unordered — arrow bullet */
.prose-wysiwyg ul li {
  position: relative;
  padding-left: 28px;
  font-weight: 400 !important;
}
.prose-wysiwyg ul li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent); font-weight: 800;
}

/* Ordered */
.prose-wysiwyg ol { counter-reset: list; }
.prose-wysiwyg ol li {
  counter-increment: list;
  position: relative;
  padding-left: 28px;
  font-weight: 400 !important;
}
.prose-wysiwyg ol li::before {
  content: counter(list) ".";
  position: absolute; left: 0;
  color: var(--accent); font-weight: 800;
  font-family: var(--font-mono);
}

.prose-wysiwyg blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.32;
  color: var(--ink);
  text-wrap: balance;
}
.prose-wysiwyg blockquote::before {
  content: "\201C";
  display: block;
  font-size: 56px;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 8px;
}

.prose-wysiwyg code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent-deep);
}
.prose-wysiwyg pre {
  background: var(--ink); color: var(--bg);
  padding: 24px 28px;
  border-radius: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}
.prose-wysiwyg pre code {
  background: transparent;
  border: 0; padding: 0;
  color: inherit;
}

/* Images inside WP content */
.prose-wysiwyg img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.prose-wysiwyg figure {
  margin: 28px 0;
}
.prose-wysiwyg figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  font-style: italic;
}

/* WordPress-specific classes */
.prose-wysiwyg .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}
.prose-wysiwyg .wp-block-pullquote {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 24px 0;
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  text-align: center;
  margin: 40px 0;
}

/* In-prose image */
.prose-figure {
  margin: 28px -8px;
}
.prose-figure .frame {
  aspect-ratio: 16 / 9;
  background: var(--card-mint);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.prose-figure .frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, transparent 0 48%, color-mix(in oklab, var(--ink) 8%, transparent) 48% 52%, transparent 52%),
    linear-gradient(45deg, transparent 0 48%, color-mix(in oklab, var(--ink) 8%, transparent) 48% 52%, transparent 52%);
  background-size: 24px 24px;
  opacity: 0.5;
}
.prose-figure .frame .placeholder-label {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.prose-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  font-style: italic;
}

/* Callout */
.callout {
  margin: 40px 0;
  padding: 24px 28px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
}
.callout .ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
}
.callout h4 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--ink);
}
.callout p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Stat highlight strip */
.stat-strip {
  margin: 32px -8px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-strip .item {
  padding: 0 24px;
  border-right: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}
.stat-strip .item:first-child { padding-left: 0; }
.stat-strip .item:last-child { border-right: 0; padding-right: 0; }
.stat-strip .v {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1;
}
.stat-strip .v em { font-style: normal; color: var(--accent); }
.stat-strip .l {
  margin-top: 8px;
  font-size: 13px;
  color: color-mix(in oklab, var(--bg) 64%, transparent);
  line-height: 1.4;
}

/* ============================================================
   AUTHOR CARD + RELATED
   ============================================================ */
.author-card {
  margin: 64px 0 0;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  align-items: center;
}
.author-card .avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 32px;
}
.author-card .meta .name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.author-card .meta .role {
  font-size: 14px; color: var(--ink-3);
  margin-top: 2px;
}
.author-card .meta .bio {
  font-size: 14px; color: var(--ink-2);
  line-height: 1.55;
  margin-top: 10px;
  max-width: 60ch;
}
.author-card .follow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
}
.author-card .follow:hover { background: var(--accent); color: var(--accent-ink); }

.related {
  padding: 80px 0 96px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.related-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.related-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; letter-spacing: -0.028em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.related-head h2 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%);
  padding: 0 0.08em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .blog-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-art { min-height: 280px; padding: 36px; }
  .featured-body { padding: 36px; }
  .newsletter-card { grid-template-columns: 1fr; padding: 36px; }
  .post-body-grid { grid-template-columns: 1fr; }
  .post-toc, .post-rail { position: static; }
  .post-rail { flex-direction: row; flex-wrap: wrap; }
  .stat-strip { margin: 32px 0; grid-template-columns: 1fr; gap: 24px; }
  .stat-strip .item { border-right: 0; padding: 0; border-bottom: 1px solid color-mix(in oklab, var(--bg) 14%, transparent); padding-bottom: 16px; }
  .stat-strip .item:last-child { border-bottom: 0; padding-bottom: 0; }
  .prose-figure { margin: 32px 0; }
  .author-card { grid-template-columns: 64px 1fr; }
  .author-card .avatar { width: 64px; height: 64px; font-size: 22px; }
  .author-card .follow { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .blog-index-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .blog-filter { top: 0; position: relative; }
  .blog-filter-inner { flex-direction: column; align-items: stretch; }
  .blog-search { min-width: 0; }
  .blog-index-grid { grid-template-columns: 1fr; }
  .post-byline .by-side { width: 100%; margin-left: 0; }
  .prose blockquote { padding: 18px 20px; font-size: 17px; }
}

/* ============================================================
   PROSE TABLE (in-article comparison table)
   ============================================================ */
.prose-table {
  margin: 32px -8px;
  padding: 0;
}
.prose-table .table-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-align: left;
  font-style: normal;
}
.prose-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.prose-table thead th {
  background: var(--bg-2);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.prose-table thead th.right { text-align: right; }
.prose-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  vertical-align: middle;
}
.prose-table tbody td:nth-child(2),
.prose-table tbody td:nth-child(4) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.prose-table tbody tr:last-child td { border-bottom: 0; }
.prose-table tbody tr:hover { background: var(--bg-2); }
.prose-table td.right { text-align: right; }
.prose-table td.up {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--positive);
}
.prose-table td.neutral {
  font-family: var(--font-mono);
  color: var(--ink-3);
}

.prose-table .chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.prose-table .chip.danger {
  background: color-mix(in oklab, var(--danger) 14%, transparent);
  color: var(--danger);
}
.prose-table .chip.warn {
  background: color-mix(in oklab, var(--warn) 14%, transparent);
  color: var(--warn);
}
.prose-table .chip.ok {
  background: color-mix(in oklab, var(--positive) 14%, transparent);
  color: var(--positive);
}

@media (max-width: 740px) {
  .prose-table { margin: 24px 0; overflow-x: auto; }
  .prose-table table { min-width: 560px; }
}

/* ============================================================
   WORDPRESS TABLES — auto-styled
   Applies .prose-table design to any <table> inside WP content,
   whether pasted as plain Markdown or inserted via Gutenberg
   "Table" block (class="wp-block-table").
   ============================================================ */
.prose-wysiwyg table,
.prose-wysiwyg .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}

/* Gutenberg wraps the table in a <figure> */
.prose-wysiwyg .wp-block-table {
  margin: 0;
}
.prose-wysiwyg .wp-block-table figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 12px;
}

/* Header row */
.prose-wysiwyg table thead th,
.prose-wysiwyg .wp-block-table thead th {
  background: var(--bg-2);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

/* Body cells */
.prose-wysiwyg table tbody td,
.prose-wysiwyg .wp-block-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  vertical-align: middle;
}

/* No border on last row */
.prose-wysiwyg table tbody tr:last-child td,
.prose-wysiwyg .wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Row hover */
.prose-wysiwyg table tbody tr:hover,
.prose-wysiwyg .wp-block-table tbody tr:hover {
  background: var(--bg-2);
}

/* Numeric columns (2nd and 4th) in mono */
.prose-wysiwyg table tbody td:nth-child(2),
.prose-wysiwyg table tbody td:nth-child(3),
.prose-wysiwyg table tbody td:nth-child(4),
.prose-wysiwyg table tbody td:nth-child(5) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 740px) {
  .prose-wysiwyg table,
  .prose-wysiwyg .wp-block-table { overflow-x: auto; display: block; }
  .prose-wysiwyg table table,
  .prose-wysiwyg .wp-block-table table { min-width: 480px; }
}

/* ============================================================
   GUTENBERG BUTTON BLOCK → Design System .btn
   Maps .wp-block-button__link to our pill button style.
   ============================================================ */
.prose-wysiwyg .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}
.prose-wysiwyg .wp-block-button__link,
.prose-wysiwyg .wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink) !important;
  border: 2px solid var(--accent);
  text-decoration: none !important;
  border-bottom: none !important;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.prose-wysiwyg .wp-block-button__link:hover,
.prose-wysiwyg .wp-element-button:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--accent-ink) !important;
}
/* Outline / ghost variant — add class "is-style-outline" in Gutenberg */
.prose-wysiwyg .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--accent) !important;
  border-color: var(--accent);
}
.prose-wysiwyg .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--accent);
  color: var(--accent-ink) !important;
}

