:root {
  --article-bg: #01030f;
  --article-ink: #f7fbff;
  --article-soft: rgba(197, 206, 231, 0.76);
  --article-muted: rgba(197, 206, 231, 0.52);
  --article-faint: rgba(247, 251, 255, 0.14);
  --article-blue: #4ea8ff;
  --article-orange: #c7663d;
  --article-panel: #080a10;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--article-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--article-soft);
  background: var(--article-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page-shell,
.article-main {
  width: 100%;
  min-height: 100vh;
  background: var(--article-bg);
}

.article-main {
  margin: 0;
  padding: 0;
}

/* ==============================
   ARTICLE HERO + LAYOUT
   ============================== */

.article-hero {
  width: 100%;
  margin: 0;
  padding:
    calc(var(--cb-header-offset, 0px) + 18px)
    24px
    clamp(96px, 10vw, 152px);
  background: var(--article-bg);
}

.article-hero-shell {
  width: min(1440px, calc(100vw - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 900px) minmax(220px, 300px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.article-content {
  grid-column: 2;
  min-width: 0;
}

.article-rail {
  grid-column: 1;
  padding-top: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--article-muted);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.article-breadcrumb:hover,
.article-breadcrumb:focus-visible {
  color: var(--article-ink);
}

.article-head {
  min-width: 0;
}

.article-date {
  margin: 0 0 10px;
  color: var(--article-muted);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.article-head h1 {
  max-width: 100%;
  margin: 0;
  color: var(--article-ink);
  font-size: clamp(24px, 2vw, 40px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.article-author-row {
  margin-top: 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--article-muted);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.018em;
}

.article-author-avatar {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(247, 251, 255, 0.08);
}

.article-author-name {
  color: var(--article-muted);
}

.article-side {
  grid-column: 3;
  position: sticky;
  top: calc(var(--cb-header-offset, 0px) + 32px);
  align-self: start;
  padding-top: 118px;
}


.article-toc {
  display: grid;
  gap: 13px;
}

.article-toc p {
  margin: 0 0 4px;
  color: var(--article-ink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.article-toc a {
  width: fit-content;
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.article-toc a:hover,
.article-toc a:focus-visible,
.article-toc a.is-active {
  color: var(--article-blue);
}

.article-toc a:focus-visible {
  outline: 1px solid rgba(78, 168, 255, 0.58);
  outline-offset: 4px;
}

/* ==============================
   COVER IMAGE
   ============================== */

.article-cover {
  width: 100%;
  margin: 0 0 52px;
}

.article-cover-art {
  width: 100%;
  min-height: clamp(400px, 39vw, 520px);
}

.cb-article-thumb {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(250px, 0.82fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(34px, 5vw, 64px);
  background: var(--article-orange);
  isolation: isolate;
}

.cb-article-thumb::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(247, 251, 255, 0.18);
  pointer-events: none;
  z-index: 2;
}

.cb-article-thumb-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: start;
  min-width: 0;
}

.cb-article-thumb-title {
  max-width: 440px;
  color: #ffffff;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 0.98;
  font-weight: 650;
  letter-spacing: -0.07em;
}

.cb-article-thumb-note {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.22;
  font-weight: 520;
  letter-spacing: -0.035em;
}

.cb-article-route-panel {
  position: relative;
  z-index: 3;
  width: min(350px, 100%);
  justify-self: end;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(1, 3, 15, 0.18);
}

.cb-article-window-dots {
  display: flex;
  gap: 8px;
}

.cb-article-window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.cb-article-route-state {
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(1, 3, 15, 0.12);
}

.cb-article-route-state span,
.cb-article-route-grid span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.cb-article-route-state strong {
  max-width: 220px;
color: #ffffff;
font-size: clamp(12px, 1vw, 16px);
line-height: 0.98;
font-weight: 600;
letter-spacing: -0.06em;
}

.cb-article-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cb-article-route-grid div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(1, 3, 15, 0.10);
}

.cb-article-route-grid strong {
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.cb-article-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cb-article-actions span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cb-article-route-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-align: right;
}

.cb-article-brand-logo {
  position: absolute;
  left: clamp(34px, 5vw, 64px);
  bottom: clamp(28px, 3.6vw, 44px);
  z-index: 5;
  width: clamp(22px, 1vw, 30px);
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
}

/* ==============================
   PROSE
   ============================== */

.article-prose {
  color: var(--article-soft);
}

.article-prose p {
  margin: 0 0 24px;
  color: var(--article-soft);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -0.034em;
}

.article-prose .article-lede {
  color: var(--article-ink);
}

.article-prose .article-lede::first-letter {
  float: left;
  margin: 0.04em 0.11em 0 0;
  color: var(--article-ink);
  font-size: 5.6em;
  line-height: 0.82;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.article-prose h2 {
  margin: 64px 0 18px;
  color: var(--article-ink);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ==============================
   EXAMPLES
   ============================== */

.article-examples {
  margin-top: 74px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 28px;
}

.article-example {
  margin: 0;
  min-width: 0;
}

.article-example img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: var(--article-panel);
}


.article-example-video {
  width: 100%;
  display: block;
  object-fit: cover;
  background: var(--article-panel);
}

.article-example figcaption {
  margin-top: 14px;
  color: var(--article-muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.024em;
}

.article-example figcaption strong {
  color: var(--article-ink);
  font-weight: 520;
}

.article-ending {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--article-faint);
}

.article-ending p {
  max-width: 620px;
  margin: 0;
  color: var(--article-ink);
  font-size: clamp(20px, 2.5vw, 34px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 1120px) {
  .article-hero {
    padding:
      calc(var(--cb-header-offset, 0px) + 18px)
      24px
      clamp(96px, 10vw, 152px);
  }

  .article-hero-shell {
    width: min(920px, calc(100vw - 48px));
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .article-rail,
  .article-content,
  .article-side {
    grid-column: 1;
  }

  .article-head h1 {
    white-space: normal;
    max-width: 780px;
  }

.article-side {
  position: static;
  padding-top: 0;
}


  .article-toc {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 18px;
    padding: 12px 0 0;
  }

  .article-toc p {
    grid-column: 1 / -1;
  }

  .cb-article-thumb {
    grid-template-columns: 1fr;
  }

  .cb-article-route-panel {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .article-hero {
    padding:
      calc(var(--cb-header-offset, 0px) + 14px)
      18px
      clamp(96px, 10vw, 152px);
  }

  .article-hero-shell {
    width: min(100%, 620px);
  }

  .article-rail {
    padding-top: 0;
    font-size: 14px;
  }

  .article-head h1 {
    font-size: clamp(36px, 11vw, 54px);
    white-space: normal;
  }

  .article-author-row {
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .article-toc {
    grid-template-columns: 1fr 1fr;
  }

  .article-cover {
    margin-bottom: 44px;
  }

  .article-cover-art {
    min-height: 340px;
  }

  .cb-article-thumb {
    padding: 26px;
  }

  .cb-article-thumb-title {
    font-size: clamp(38px, 11vw, 56px);
  }

  .cb-article-route-panel {
    display: none;
  }

  .cb-article-brand-logo {
    left: 26px;
    bottom: 24px;
    width: 42px;
  }

  .article-prose p {
    font-size: 17px;
    line-height: 1.6;
  }

  .article-prose .article-lede::first-letter {
    font-size: 4.4em;
  }

  .article-prose h2 {
    margin-top: 52px;
  }

  .article-examples {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
