:root {
  --zb-bg: #0a0a0a;
  --zb-panel: #141414;
  --zb-panel-2: #1c1c1c;
  --zb-line: #2a2a2a;
  --zb-line-bright: #3a3a3a;
  --zb-text: #f1f1f1;
  --zb-text-soft: #d4d4d4;
  --zb-text-dim: #9a9a9a;
  --zb-text-faint: #666;
  --zb-red: #dc1f1f;
  --zb-red-hot: #ff2b2b;
  --zb-glow: rgba(220, 31, 31, 0.35);

  /* Height of the sticky site header (announcement bar + mast + nav).
     Used by sticky sidebar and anchor scroll-margin so they clear it.
     Override per-breakpoint below. */
  --zb-header-offset: 166px;
}

.zb-page,
.zb-preview-root {
  color: var(--zb-text);
  font-family: "EB Garamond", "Garamond", Georgia, serif;
}

.zb-page {
  position: relative;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: clip;
  display: block;
}
.zb-page > .zb-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(
    ellipse 85% 90% at 50% 50%,
    #000 45%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 85% 90% at 50% 50%,
    #000 45%,
    transparent 100%
  );
}
.zb-page > .zb-brightness {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.02) 35%,
    rgba(255, 255, 255, 0.03) 55%,
    rgba(255, 255, 255, 0.015) 80%,
    rgba(255, 255, 255, 0) 100%
  );
}
.zb-page::before {
  content: "";
  position: fixed;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: -20%;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  background: radial-gradient(
    circle,
    rgba(220, 31, 31, 0.08) 0%,
    rgba(220, 31, 31, 0.04) 30%,
    transparent 60%
  );
}
/* Desktop only: opt back into the heavy CSS blur for the original look. */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .zb-page::before {
    filter: blur(170px);
    background: radial-gradient(
      circle,
      rgba(220, 31, 31, 0.08),
      transparent 60%
    );
  }
}
.zb-page > * {
  position: relative;
  z-index: 1;
}
.zb-crumb {
  padding: 26px 24px 0;
}
.zb-crumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zb-text-faint);
}
.zb-crumb a {
  color: var(--zb-text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.zb-crumb a:hover {
  color: var(--zb-red);
}
.zb-crumb-sep {
  color: var(--zb-text-faint);
}
.zb-crumb-current {
  color: var(--zb-text);
}
.zb-hero {
  padding: 60px 24px 50px;
  position: relative;
  overflow: hidden;
}
.zb-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1100px, 88%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 100%
  );
}
.zb-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    ellipse 60% 80% at 50% 35%,
    #000 30%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 60% 80% at 50% 35%,
    #000 30%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}
.zb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.zb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--zb-red);
  margin-bottom: 22px;
}
.zb-kicker-dot {
  width: 6px;
  height: 6px;
}
@keyframes zbPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.zb-title {
  font-family: "Oswald", "Bebas Neue", sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 38px;
  max-width: 1000px;
}
.zb-title span {
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  font-family: "EB Garamond", serif;
  font-size: 0.6em;
  line-height: 1.18;
  display: block;
  margin-top: 14px;
  letter-spacing: -0.005em;
  color: var(--zb-text-dim);
}

.zb-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--zb-line);
  border-bottom: 1px solid var(--zb-line);
  max-width: 720px;
}
.zb-byline-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.zb-byline-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--zb-red);
}
.zb-byline-value {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--zb-text);
  font-weight: 500;
}
.zb-byline-divider {
  width: 1px;
  align-self: stretch;
  background: var(--zb-line-bright);
}

.zb-body {
  padding: 50px 24px 0;
}
.zb-body-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
}

.zb-article {
  font-size: 20px;
  line-height: 1.7;
  color: var(--zb-text-soft);
  max-width: 680px;
}
.zb-article p {
  margin: 0 0 1.3em;
}
.zb-article p:first-of-type::first-line {
  letter-spacing: 0.005em;
}
.zb-article strong {
  color: var(--zb-text);
  font-weight: 600;
}
.zb-article em {
  color: var(--zb-text);
  font-style: italic;
}
.zb-article ul,
.zb-article ol {
  margin: 0 0 1.3em;
  padding-left: 1.6em;
}
.zb-article li {
  margin-bottom: 0.4em;
}

.zb-h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--zb-text);
  margin: 56px 0 22px;
  line-height: 1.05;
  position: relative;
  padding-left: 18px;
  scroll-margin-top: calc(var(--zb-header-offset) + 16px);
}
.zb-h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 3px;
  background: var(--zb-red);
  box-shadow: 0 0 12px var(--zb-glow);
}
.zb-article > .zb-h2:first-child {
  margin-top: 0;
}

.zb-h3 {
  font-family: "Oswald", sans-serif;
  font-size: 21px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--zb-text);
  margin: 38px 0 14px;
  line-height: 1.15;
  scroll-margin-top: calc(var(--zb-header-offset) + 16px);
}

.zb-link {
  color: var(--zb-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 31, 31, 0.4);
  transition: all 0.15s;
}
.zb-link:hover {
  color: var(--zb-red-hot);
  border-bottom-color: var(--zb-red-hot);
}

.zb-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86em;
  color: var(--zb-text);
  background: rgba(220, 31, 31, 0.08);
  border: 1px solid rgba(220, 31, 31, 0.2);
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Pull quote */
.zb-pull {
  position: relative;
  margin: 40px 0;
  padding: 26px 28px 26px 60px;
  border: 1px solid var(--zb-line);
  border-left: 3px solid var(--zb-red);
  background: linear-gradient(90deg, rgba(220, 31, 31, 0.04), transparent 60%);
  border-radius: 0 8px 8px 0;
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--zb-text);
  font-weight: 400;
}
.zb-pull-mark {
  position: absolute;
  top: 8px;
  left: 18px;
  font-family: "EB Garamond", serif;
  font-size: 70px;
  line-height: 1;
  color: var(--zb-red);
  opacity: 0.6;
  font-style: normal;
}

/* Horizontal rule */
.zb-rule {
  border: none;
  height: 1px;
  margin: 50px auto;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--zb-red), transparent);
  position: relative;
}
.zb-rule::before,
.zb-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--zb-red);
  transform: translateY(-50%);
  box-shadow: 0 0 6px var(--zb-glow);
}
.zb-rule::before {
  left: -8px;
}
.zb-rule::after {
  right: -8px;
}

/* Featured figure */
.zb-fig {
  margin: 40px -20px;
}
.zb-fig-frame {
  position: relative;
  border: 1px solid var(--zb-line);
  background: var(--zb-panel);
  border-radius: 10px;
  overflow: hidden;
  padding: 6px;
}
.zb-fig-frame::before,
.zb-fig-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--zb-red);
  pointer-events: none;
  opacity: 0.7;
}
.zb-fig-frame::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}
.zb-fig-frame::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}
.zb-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.zb-fig figcaption {
  text-align: center;
  margin-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zb-text-faint);
}

/* Sign-off */
.zb-signoff {
  margin: 60px 0 30px;
  padding-top: 28px;
  border-top: 1px dashed var(--zb-line);
  display: flex;
  align-items: center;
  gap: 18px;
}
.zb-signoff-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--zb-line), transparent);
}
.zb-signoff-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.zb-signoff-name {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zb-text);
}
.zb-signoff-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zb-text-faint);
}

/* Bottom nav */
.zb-bottom-nav {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 0;
  border-top: 1px solid var(--zb-line);
}
.zb-bn-back,
.zb-bn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.zb-bn-back svg,
.zb-bn-cta svg {
  width: 16px;
  height: 16px;
}
.zb-bn-back {
  background: transparent;
  color: var(--zb-text-dim);
  border: 1px solid var(--zb-line-bright);
}
.zb-bn-back:hover {
  color: var(--zb-text);
  border-color: var(--zb-text);
}
.zb-bn-cta {
  background: var(--zb-red);
  color: #fff;
  border: 1px solid var(--zb-red);
  box-shadow: 0 8px 24px -8px var(--zb-glow);
}
@media (hover: hover) and (pointer: fine) {
  .zb-bn-cta:hover {
    background: var(--zb-red-hot);
    border-color: var(--zb-red-hot);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -8px var(--zb-glow);
  }
  .zb-bn-cta:hover svg {
    transform: translateX(3px);
  }
  .zb-bn-cta svg {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}

.zb-side {
  font-family: "Inter", sans-serif;
}
.zb-side-sticky {
  position: sticky;
  top: calc(var(--zb-header-offset) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.zb-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 22, 0.92),
    rgba(14, 14, 14, 0.92)
  );
  border: 1px solid var(--zb-line);
  border-radius: 10px;
  padding: 22px 22px 20px;
  /* backdrop-filter removed: card bg is 92%-opaque so the blur was
     not visible, but it forced a compositor layer + repaint cost. */
}
@media (hover: hover) and (pointer: fine) {
  .zb-card {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
.zb-card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--zb-red);
  pointer-events: none;
  opacity: 0.7;
}
.zb-card-corner-tl {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}
.zb-card-corner-tr {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
}
.zb-card-corner-bl {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
}
.zb-card-corner-br {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.zb-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--zb-red);
  margin-bottom: 14px;
}
.zb-tag-dot {
  width: 5px;
  height: 5px;
}
.zb-author-name {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.zb-author-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zb-text-dim);
  margin-bottom: 12px;
}
.zb-author-bio {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--zb-text-dim);
  margin: 0;
}
.zb-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.zb-toc li a {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--zb-text-dim);
  text-decoration: none;
  padding: 6px 10px 6px 14px;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.35;
}
.zb-toc li a:hover {
  color: var(--zb-text);
  border-left-color: var(--zb-red);
  background: rgba(220, 31, 31, 0.04);
}
.zb-toc-sub a {
  font-size: 12px !important;
  padding-left: 28px !important;
  color: var(--zb-text-faint) !important;
}
.zb-share-row {
  display: flex;
  gap: 8px;
}
.zb-share-btn {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--zb-line);
  background: var(--zb-panel-2);
  color: var(--zb-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}
.zb-share-btn svg {
  width: 16px;
  height: 16px;
}
.zb-share-btn:hover {
  border-color: var(--zb-red);
  color: var(--zb-red);
  background: rgba(220, 31, 31, 0.05);
}
.zb-share-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zb-red);
  margin-top: 10px;
  height: 14px;
  transition: opacity 0.2s;
  opacity: 0;
}
.zb-share-status.show {
  opacity: 1;
}

@media (max-width: 1024px) {
  .zb-body-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .zb-side-sticky {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .zb-card {
    flex: 1;
    min-width: 260px;
  }
  .zb-fig {
    margin: 40px 0;
  }
}
@media (max-width: 700px) {
  .zb-hero {
    padding: 40px 18px 36px;
  }
  .zb-byline {
    gap: 14px;
  }
  .zb-byline-divider {
    display: none;
  }
  .zb-body {
    padding: 36px 18px 0;
  }
  .zb-article {
    font-size: 18px;
  }
  .zb-pull {
    font-size: 20px;
    padding: 22px 22px 22px 50px;
  }
  .zb-pull-mark {
    font-size: 56px;
    left: 14px;
  }
  .zb-bottom-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .zb-bn-back,
  .zb-bn-cta {
    justify-content: center;
  }

  .zb-page > .zb-grid-overlay {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.35;
  }
  .zb-page::before {
    width: 480px;
    height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zb-kicker-dot {
    animation: none;
  }
}