/* =========================================================
   Jamie Freeman Blog — luxury dark journal
   Multi-tone topics · cinematic cards · premium prose
   ========================================================= */

.blog-body {
  --blog-max: 1180px;
  --blog-read: 720px;
  --brand: #00a1ff;
  background:
    radial-gradient(1200px 620px at 8% -12%, rgba(0, 161, 255, 0.12), transparent 55%),
    radial-gradient(900px 520px at 94% 6%, rgba(167, 139, 250, 0.16), transparent 50%),
    radial-gradient(700px 420px at 20% 100%, rgba(251, 113, 133, 0.1), transparent 55%),
    radial-gradient(600px 360px at 80% 50%, rgba(52, 211, 153, 0.08), transparent 50%),
    radial-gradient(500px 300px at 50% 30%, rgba(245, 215, 110, 0.05), transparent 50%),
    #03050c;
  color: #f4f7ff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient orbs */
.blog-body::before,
.blog-body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.blog-body::before {
  width: min(44vw, 440px);
  height: min(44vw, 440px);
  top: 10%;
  left: -10%;
  background: rgba(167, 139, 250, 0.28);
  animation: blog-orb-a 18s ease-in-out infinite alternate;
}
.blog-body::after {
  width: min(38vw, 380px);
  height: min(38vw, 380px);
  bottom: 6%;
  right: -8%;
  background: rgba(251, 113, 133, 0.2);
  animation: blog-orb-b 22s ease-in-out infinite alternate;
}

@keyframes blog-orb-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8%, 12%) scale(1.12); }
}
@keyframes blog-orb-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-10%, -8%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-body::before,
  .blog-body::after { animation: none; }
  .blog-card:hover,
  .blog-card:hover .blog-card-media img,
  .blog-feature:hover img,
  .blog-related-card:hover { transform: none !important; }
}

.blog-body .site-chrome-header.site-header { z-index: 200; }

.blog-main {
  position: relative;
  z-index: 1;
  padding: 0 0 5rem;
  background: #03050c;
}
/* Soft blend under blog photo hero */
.blog-photo-hero.has-media {
  position: relative;
}
.blog-photo-hero.has-media::after,
.blog-photo-hero .blog-photo-hero-fade {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(3, 5, 12, 0.25) 40%,
    rgba(3, 5, 12, 0.75) 75%,
    #03050c 100%) !important;
}
.blog-main > .blog-photo-hero + .blog-article-shell,
.blog-main > .blog-photo-hero + * {
  margin-top: clamp(-2rem, -4vw, -1rem);
  position: relative;
  z-index: 2;
}
.blog-main > .blog-wrap,
.blog-main > .blog-article-shell {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}
.blog-main > .blog-photo-hero + .blog-wrap,
.blog-main > .blog-photo-hero + .blog-article-shell {
  padding-top: 0.35rem;
}
.blog-empty-state {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.blog-wrap {
  width: min(100% - 2rem, var(--blog-max));
  margin: 0 auto;
}

/* ---------- Full-width photographic heroes (index + article) ---------- */
.blog-photo-hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: clamp(340px, 50vw, 560px);
  margin: 0 0 2rem;
  padding: 0;
  border-radius: 0;
  border: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #05080f;
  isolation: isolate;
}
.blog-photo-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.blog-photo-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: saturate(1.08) contrast(1.06) brightness(0.7);
  transform: scale(1.02);
}
.blog-photo-hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg,
      rgba(3, 5, 12, 0.93) 0%,
      rgba(3, 5, 12, 0.8) 34%,
      rgba(3, 5, 12, 0.45) 62%,
      rgba(3, 5, 12, 0.58) 100%),
    linear-gradient(180deg,
      rgba(3, 5, 12, 0.28) 0%,
      transparent 38%,
      rgba(3, 5, 12, 0.78) 100%),
    radial-gradient(700px 280px at 12% 90%, rgba(0, 161, 255, 0.18), transparent 60%);
}
.blog-photo-hero-inner {
  position: relative;
  z-index: 1;
  /* Left-align with content column — not centred mid-photo */
  width: min(42rem, calc(100% - 2rem));
  max-width: min(42rem, calc(100% - 2rem));
  margin: 0 auto 0 max(1rem, calc((100% - var(--blog-max, 1180px)) / 2));
  padding: clamp(2.2rem, 6vw, 3.75rem) 0 clamp(2rem, 5vw, 3.2rem);
  text-align: left;
}
.blog-photo-hero .blog-crumb {
  color: #9aa8c7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  margin-bottom: 1rem;
}
.blog-photo-hero .blog-crumb a {
  color: #dbe7ff;
  text-decoration: none;
}
.blog-photo-hero .blog-crumb a:hover {
  color: #7dd3fc;
}
.blog-photo-hero .eyebrow {
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 161, 255, 0.14);
  border: 1px solid rgba(0, 161, 255, 0.32);
  color: #7dd3fc !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: none;
}
.blog-photo-hero .eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #00a1ff;
  box-shadow: 0 0 10px #00a1ff;
}
.blog-photo-hero h1 {
  font-size: clamp(2.15rem, 5.6vw, 3.55rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 18ch;
  font-weight: 800;
  filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.55));
}
.blog-photo-hero h1 .grad {
  background: linear-gradient(115deg, #e8f1ff 0%, #67e8f9 22%, #00a1ff 48%, #a78bfa 72%, #fb7185 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: blog-grad-shift 10s ease infinite;
}
.blog-photo-hero .blog-index-lead,
.blog-photo-hero .blog-dek {
  color: #e2eaf8;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.65;
  max-width: 42rem;
}
.blog-photo-hero .blog-index-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.blog-photo-hero .blog-index-stats li {
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 5, 12, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 8.5rem;
}
.blog-photo-hero .blog-index-stats strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: #e8f4ff;
}
.blog-photo-hero .blog-index-stats span {
  font-size: 0.78rem;
  color: #a8b6d4;
}
.blog-photo-hero .blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.blog-photo-hero .blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  color: #c5d0e8;
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.blog-photo-hero .blog-author-chip {
  background: rgba(3, 5, 12, 0.4);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.blog-article-shell {
  padding-top: 0.25rem;
}
@media (max-width: 640px) {
  .blog-photo-hero {
    min-height: clamp(300px, 78vw, 420px);
    margin-bottom: 1.35rem;
  }
  .blog-photo-hero-inner {
    padding: 1.5rem 0 1.65rem;
    width: calc(100% - 2rem);
    max-width: none;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .blog-photo-hero h1 {
    max-width: none;
  }
  .blog-photo-hero-media img {
    object-position: 68% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-photo-hero-media img {
    transform: none;
  }
}

/* ---------- Topic chips ---------- */
.blog-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(0, 161, 255, 0.1);
  color: #7dd3fc;
  width: fit-content;
  white-space: nowrap;
}
.blog-topic.tone-blue { background: rgba(0, 161, 255, 0.12); border-color: rgba(0, 161, 255, 0.28); color: #7dd3fc; }
.blog-topic.tone-violet { background: rgba(167, 139, 250, 0.14); border-color: rgba(167, 139, 250, 0.3); color: #c4b5fd; }
.blog-topic.tone-coral { background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.28); color: #fda4af; }
.blog-topic.tone-mint { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.28); color: #6ee7b7; }
.blog-topic.tone-gold { background: rgba(245, 215, 110, 0.12); border-color: rgba(245, 215, 110, 0.28); color: #fde68a; }
.blog-topic.tone-cyan { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.28); color: #67e8f9; }
.blog-topic.tone-pink { background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.28); color: #f9a8d4; }

.blog-readtime {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #7a8bab;
  text-transform: uppercase;
}

/* ---------- Legacy index hero tokens (stats colours etc.) ---------- */
@keyframes blog-grad-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.blog-index-lead {
  color: #b0bdd6;
  margin: 0 0 1.35rem;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.65;
  max-width: 42rem;
}
.blog-index-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.blog-index-stats li {
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 161, 255, 0.18);
  background: rgba(0, 161, 255, 0.07);
  min-width: 8.5rem;
}
.blog-index-stats strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: #e8f4ff;
}
.blog-index-stats span {
  font-size: 0.8rem;
  color: #8ba0c4;
}

.blog-crumb {
  font-size: 0.82rem;
  color: #6b7a99;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.blog-crumb a {
  color: #9aa8c7;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-crumb a:hover { color: #67e8f9; }
.blog-crumb [aria-current="page"] {
  color: #c7d2e8;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Filters ---------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  background: rgba(8, 12, 24, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.blog-filter {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: #9aa8c7;
  background: transparent;
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.blog-filter:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.blog-filter.is-active {
  color: #041018;
  background: linear-gradient(120deg, #33b4ff, #00a1ff 50%, #0077cc);
  box-shadow: 0 8px 22px rgba(0, 161, 255, 0.35);
}

/* ---------- Card grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.blog-grid .blog-card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 340px;
}
.blog-grid .blog-card.is-featured .blog-card-media {
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
}
.blog-grid .blog-card.is-featured .blog-card-body {
  padding: clamp(1.6rem, 3.2vw, 2.4rem);
  justify-content: center;
}
.blog-grid .blog-card.is-featured .blog-card-body h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  letter-spacing: -0.035em;
}
.blog-grid .blog-card.is-featured .blog-card-body p {
  font-size: 1.08rem;
  -webkit-line-clamp: 4;
}

.blog-card {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(17, 26, 48, 0.96), rgba(8, 12, 24, 0.9));
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}
.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.blog-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 161, 255, 0.42);
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.42),
    0 0 50px rgba(0, 161, 255, 0.16);
}
.blog-card[hidden] { display: none !important; }

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c1224;
  position: relative;
}
.blog-card-media-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 2;
}
.blog-card:hover .blog-card-media-shine { transform: translateX(120%); }
.blog-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(3, 5, 12, 0.6) 100%);
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.blog-card:hover .blog-card-media::after { opacity: 0.5; }
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  filter: saturate(1.06) contrast(1.04);
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.07);
  filter: saturate(1.14) contrast(1.06);
}

.blog-card-body {
  padding: 1.2rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.blog-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.15rem;
}
.blog-card-meta-row time {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8ba0c4;
}
.blog-card-body h2 {
  font-size: 1.2rem;
  margin: 0.1rem 0 0.35rem;
  line-height: 1.28;
  letter-spacing: -0.025em;
  font-weight: 750;
}
.blog-card-body h2 a {
  color: #f4f7ff;
  text-decoration: none;
  background-image: linear-gradient(90deg, #67e8f9, #00a1ff);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.blog-card-body h2 a:hover {
  color: #e0f2fe;
  background-size: 100% 2px;
}
.blog-card-body p {
  margin: 0 0 1rem;
  color: #9aa8c7;
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 750;
  font-size: 0.9rem;
  color: #67e8f9;
  text-decoration: none;
  margin-top: auto;
  width: fit-content;
  transition: gap 0.25s ease, color 0.2s ease;
}
.blog-read::after {
  content: "→";
  transition: transform 0.25s ease;
}
.blog-card:hover .blog-read { color: #a5f3fc; gap: 0.65rem; }
.blog-card:hover .blog-read::after { transform: translateX(3px); }

/* Index bottom CTA */
.blog-index-cta {
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 3vw, 1.85rem) clamp(1.35rem, 3vw, 2rem);
  border-radius: 1.4rem;
  border: 1px solid rgba(0, 161, 255, 0.22);
  background:
    radial-gradient(500px 180px at 0% 0%, rgba(0, 161, 255, 0.18), transparent 60%),
    radial-gradient(400px 160px at 100% 100%, rgba(167, 139, 250, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(17, 26, 48, 0.95), rgba(8, 12, 24, 0.92));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.blog-index-cta h2 {
  margin: 0.25rem 0 0.4rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.03em;
}
.blog-index-cta p {
  margin: 0;
  color: #a8b6d0;
  max-width: 40ch;
  line-height: 1.55;
}
.blog-index-cta .eyebrow {
  margin: 0 0 0.35rem;
  color: #00a1ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Single article ---------- */
.blog-article-shell {
  width: min(100% - 2rem, 920px);
  margin: 0 auto;
}
.blog-article-head { margin-bottom: 1.75rem; }
.blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 0 1rem;
}
.blog-article-head h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0 0 1.1rem;
  font-weight: 800;
  max-width: 18ch;
  background: linear-gradient(125deg, #ffffff 0%, #e8f1ff 40%, #a5d8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  color: #8ba0c4;
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}
.blog-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(12, 18, 36, 0.75);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.88rem;
}
.blog-author-chip .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a1ff, #67e8f9 55%, #a78bfa);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #041018;
  box-shadow: 0 0 18px rgba(0, 161, 255, 0.45);
}
.blog-dek {
  font-size: clamp(1.14rem, 2.2vw, 1.32rem);
  color: #b6c3de;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 40rem;
  font-weight: 450;
}
.blog-feature {
  margin: 0 0 2.5rem;
  border-radius: 1.45rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 161, 255, 0.08) inset;
}
.blog-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 5, 12, 0.35) 100%);
  pointer-events: none;
}
.blog-feature img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-feature:hover img { transform: scale(1.03); }

/* Prose */
.blog-content.prose {
  width: min(100%, var(--blog-read));
  margin: 0 auto;
  font-size: clamp(1.08rem, 1.4vw, 1.18rem);
  line-height: 1.82;
  color: #c9d4ea;
}
.prose h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.8rem);
  color: #f4f7ff;
  margin: 2.6rem 0 0.9rem;
  letter-spacing: -0.03em;
  line-height: 1.18;
  font-weight: 800;
  position: relative;
  padding-left: 0.85rem;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, #67e8f9, #00a1ff 50%, #a78bfa);
}
.prose h3 {
  font-size: 1.22rem;
  color: #e8eefc;
  margin: 1.85rem 0 0.55rem;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.prose p { margin: 0 0 1.2rem; }
.prose ul, .prose ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}
.prose li { margin: 0.5rem 0; padding-left: 0.2rem; }
.prose li::marker { color: #00a1ff; }
.prose a {
  color: #67e8f9;
  text-decoration: none;
  background-image: linear-gradient(90deg, rgba(103, 232, 249, 0.55), rgba(0, 161, 255, 0.55));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}
.prose a:hover { color: #a5f3fc; }
.prose strong { color: #f4f7ff; font-weight: 700; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: rgba(0, 161, 255, 0.12);
  border: 1px solid rgba(0, 161, 255, 0.2);
  color: #bae6fd;
}
.prose pre {
  margin: 1.35rem 0 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(0, 161, 255, 0.06), transparent 40%),
    #0a1020;
  border: 1px solid rgba(0, 161, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  -webkit-overflow-scrolling: touch;
}
.prose pre code {
  border: 0;
  background: transparent;
  padding: 0;
  color: #e0f2fe;
  font-size: 0.86rem;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre;
  tab-size: 2;
}
.prose h3 {
  margin-top: 1.85rem;
}
/* Label-ish feel above example blocks */
.prose h3 + pre {
  margin-top: 0.65rem;
}
.prose p code,
.prose li code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(0, 161, 255, 0.12);
  border: 1px solid rgba(0, 161, 255, 0.22);
  color: #bae6fd;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.35rem 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}
.blog-inline-figure {
  margin: 2rem 0 2.25rem;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #0c1224;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.blog-inline-figure img {
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.blog-inline-figure figcaption {
  padding: 0.75rem 1.1rem 0.95rem;
  font-size: 0.86rem;
  color: #6b7a99;
  line-height: 1.45;
  background: rgba(8, 12, 24, 0.85);
}
.prose blockquote {
  margin: 2.1rem 0;
  padding: 1.2rem 1.3rem 1.2rem 1.4rem;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #67e8f9, #00a1ff, #a78bfa) 1;
  border-radius: 0 1rem 1rem 0;
  background: linear-gradient(90deg, rgba(0, 161, 255, 0.12), rgba(12, 18, 36, 0.25));
  color: #d7e0f4;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.65;
}

/* CTA foot */
.blog-article-foot {
  width: min(100%, var(--blog-read));
  margin: 3rem auto 0;
  padding: clamp(1.45rem, 3vw, 1.9rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(500px 160px at 0% 0%, rgba(0, 161, 255, 0.22), transparent 60%),
    radial-gradient(400px 140px at 100% 100%, rgba(167, 139, 250, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(17, 26, 48, 0.95), rgba(8, 12, 24, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.blog-article-foot-copy { flex: 1 1 12rem; min-width: 0; }
.blog-article-foot-copy strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.blog-article-foot-copy span { color: #9aa8c7; font-size: 0.92rem; }
.blog-article-foot-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Related */
.blog-related {
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.blog-related-head { margin-bottom: 1.15rem; }
.blog-related-head .eyebrow {
  margin: 0 0 0.4rem;
  color: #00a1ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.blog-related-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.blog-related-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(17, 26, 48, 0.95), rgba(8, 12, 24, 0.9));
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}
.blog-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 161, 255, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}
.blog-related-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c1224;
}
.blog-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-related-card:hover .blog-related-media img { transform: scale(1.05); }
.blog-related-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.blog-related-title {
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #f1f5ff;
}

/* Empty */
.blog-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #9aa8c7;
  border-radius: 1.4rem;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  background: rgba(12, 18, 36, 0.5);
  max-width: 36rem;
  margin: 2rem auto;
}
.blog-empty-state h1 { color: #f4f7ff; margin: 0.5rem 0 0.75rem; }
.blog-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Responsive */
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid .blog-card.is-featured {
    grid-template-columns: 1fr;
  }
  .blog-grid .blog-card.is-featured .blog-card-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .blog-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-grid,
  .blog-related-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .blog-filters {
    border-radius: 1rem;
    width: 100%;
  }
  .blog-article-foot,
  .blog-index-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Shared chrome footer spacing on blog */
.blog-body .site-chrome-footer {
  margin-top: 2rem;
}
