/* ============================================================
   Blog — ported from the Claude Design handoff (blog.css).
   Design vars are aliased to the project's globals.css tokens on .scope.
   Theme flips automatically with the project's .dark class.
   ============================================================ */

.scope {
  --blue: var(--brand-blue);
  --orange: var(--brand-orange);
  --yellow: var(--brand-yellow);
  --green: var(--brand-success);

  --bg: var(--background);
  --bg-2: #eef2f8;
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --panel-hi: var(--surface-hi);
  --line: var(--hairline);
  --line-2: var(--hairline-2);

  --ink: var(--ink-1);
  /* --ink-2/3/4 inherited from globals */

  --brand: var(--gradient-brand);

  --glow-1: rgba(0, 123, 255, 0.16);
  --glow-2: rgba(255, 87, 34, 0.14);
  --glow-3: rgba(251, 192, 45, 0.12);

  --t-mint-a: rgba(46, 201, 138, 0.42);
  --t-mint-b: #d6f5e8;
  --t-coral-a: rgba(255, 87, 34, 0.42);
  --t-coral-b: #ffe4da;
  --t-blue-a: rgba(0, 123, 255, 0.42);
  --t-blue-b: #dbe9ff;
  --t-violet-a: rgba(139, 92, 246, 0.42);
  --t-violet-b: #e9e2fd;
  --t-amber-a: rgba(251, 192, 45, 0.5);
  --t-amber-b: #fcefcb;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --maxw: 1200px;

  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 26px 50px -28px rgba(15, 23, 42, 0.22);

  --font-disp: var(--font-manrope), system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", monospace;
}

:global(.dark) .scope {
  --bg-2: #0c0e12;
  --glow-1: rgba(0, 123, 255, 0.28);
  --glow-2: rgba(255, 87, 34, 0.26);
  --glow-3: rgba(251, 192, 45, 0.16);

  --t-mint-a: rgba(46, 201, 138, 0.5);
  --t-mint-b: #0e2722;
  --t-coral-a: rgba(255, 87, 34, 0.5);
  --t-coral-b: #2a1410;
  --t-blue-a: rgba(0, 123, 255, 0.5);
  --t-blue-b: #0c1830;
  --t-violet-a: rgba(139, 92, 246, 0.5);
  --t-violet-b: #1a1233;
  --t-amber-a: rgba(251, 192, 45, 0.5);
  --t-amber-b: #2a2208;

  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.scope :is(h1, h2, h3, h4) {
  font-family: var(--font-disp);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}
.wrapArt {
  max-width: 1080px;
}
.wrapNarrow {
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btnPrimary {
  color: #fff;
  background: var(--brand);
  background-size: 160% 100%;
  background-position: 0% 0%;
  box-shadow:
    0 8px 30px -8px rgba(255, 87, 34, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.btnPrimary:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px -10px rgba(255, 87, 34, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.btnGhost {
  color: var(--ink-2);
  background: rgba(125, 135, 150, 0.06);
  border-color: var(--line-2);
}
.btnGhost:hover {
  color: var(--ink);
  background: rgba(125, 135, 150, 0.12);
}
.btnSm {
  padding: 9px 15px;
  font-size: 13.5px;
}

/* thumbnails */
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  flex: none;
  background:
    radial-gradient(120% 130% at 22% 14%, var(--ta), transparent 60%),
    radial-gradient(
      90% 110% at 86% 96%,
      color-mix(in srgb, var(--ta) 55%, transparent),
      transparent 62%
    ),
    var(--tb);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}
.thumb[data-tint="mint"] {
  --ta: var(--t-mint-a);
  --tb: var(--t-mint-b);
}
.thumb[data-tint="coral"] {
  --ta: var(--t-coral-a);
  --tb: var(--t-coral-b);
}
.thumb[data-tint="blue"] {
  --ta: var(--t-blue-a);
  --tb: var(--t-blue-b);
}
.thumb[data-tint="violet"] {
  --ta: var(--t-violet-a);
  --tb: var(--t-violet-b);
}
.thumb[data-tint="amber"] {
  --ta: var(--t-amber-a);
  --tb: var(--t-amber-b);
}
.thumb svg {
  width: 54%;
  height: 54%;
  overflow: visible;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}
.illG {
  color: #fff;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 100px;
  color: #fff;
  background: rgba(8, 9, 12, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* cat tag */
.catTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.catTag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cc, var(--blue));
}
.catTag[data-c="mint"] {
  --cc: var(--green);
}
.catTag[data-c="coral"] {
  --cc: var(--orange);
}
.catTag[data-c="blue"] {
  --cc: var(--blue);
}
.catTag[data-c="violet"] {
  --cc: #8b5cf6;
}
.catTag[data-c="amber"] {
  --cc: var(--yellow);
}

/* post card */
.pcard {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.pcard .thumb {
  aspect-ratio: 16 / 10;
}
.pcard:hover .thumb {
  transform: translateY(-4px);
}
.pcard h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  transition: color 0.18s;
  text-wrap: pretty;
}
.pcard:hover h3 {
  color: var(--orange);
}
.pcFoot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-disp);
}
.avatarLg {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.dotSep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-4);
}

/* ranked mini list */
.mini {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mini:last-child {
  border-bottom: none;
}
.rk {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-4);
  width: 18px;
  flex: none;
  padding-top: 1px;
}
.mtxt h4 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.18s;
}
.mini:hover .mtxt h4 {
  color: var(--orange);
}
.mc {
  margin-top: 6px;
}
.arrow {
  margin-left: auto;
  color: var(--ink-4);
  transition:
    transform 0.2s,
    color 0.2s;
  flex: none;
}
.mini:hover .arrow {
  transform: translate(2px, -2px);
  color: var(--ink-2);
}

/* featured hero */
.blogHero {
  padding-top: 40px;
  padding-bottom: 40px;
}
.blogHero .eyebrow {
  margin-bottom: 16px;
}
.blogHero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 0.98;
}
.lede {
  margin-top: 18px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-3);
  max-width: 560px;
  line-height: 1.55;
}
.featGrid {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  gap: 22px;
  margin-top: 44px;
  align-items: start;
}
.featCol {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.featSm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.featSm .thumb {
  aspect-ratio: 16 / 9;
}
.featSm:hover .thumb {
  transform: translateY(-3px);
}
.featSm h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.18s;
}
.featSm:hover h3 {
  color: var(--orange);
}
.featBig .thumb {
  aspect-ratio: 16 / 11;
}
.featBig:hover .thumb {
  transform: translateY(-4px);
}
.featBig h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 18px;
  letter-spacing: -0.025em;
  transition: color 0.2s;
  text-wrap: pretty;
}
.featBig:hover h2 {
  color: var(--orange);
}
.featBig p {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
  max-width: 92%;
}
.featBig .pcFoot {
  margin-top: 16px;
}
.featList {
  border-top: 2px solid var(--ink);
  padding-top: 6px;
}
.flHead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 0 4px;
}
@media (max-width: 1040px) {
  .featGrid {
    grid-template-columns: 1fr 1fr;
  }
  .featColRight {
    grid-column: 1 / -1;
  }
  .featList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
  }
  .flHead {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .featGrid {
    grid-template-columns: 1fr;
  }
  .featColRight {
    grid-column: auto;
  }
  .featList {
    grid-template-columns: 1fr;
  }
}

/* category chip nav */
.catNav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.catNavInner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-block: 14px;
  scrollbar-width: none;
}
.catNavInner::-webkit-scrollbar {
  display: none;
}
.chip {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: rgba(125, 135, 150, 0.05);
  transition: all 0.18s;
}
.chip:hover {
  color: var(--ink);
  background: rgba(125, 135, 150, 0.12);
}
.chipActive {
  color: #fff;
  background: var(--brand);
  border-color: transparent;
}

/* topic row carousel */
.block {
  padding: 70px 0;
}
.rowHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.rhL {
  max-width: 540px;
}
.rowHead h2 {
  font-size: clamp(26px, 3vw, 34px);
}
.rowHead p {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.5;
}
.rowCtrl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.more {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
}
.more:hover {
  color: var(--orange);
}
.navBtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  border: 1px solid var(--line-2);
  background: rgba(125, 135, 150, 0.05);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s;
}
.navBtn:hover {
  color: var(--ink);
  background: rgba(125, 135, 150, 0.14);
}
.navBtn:disabled {
  opacity: 0.35;
  cursor: default;
}
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel > * {
  scroll-snap-align: start;
}
@media (min-width: 921px) {
  .carousel {
    grid-auto-columns: calc((100% - 44px) / 3);
  }
}

/* youtube band */
.ytBand {
  background: #060708;
  border-block: 1px solid var(--line);
  padding: 56px 0;
}
.ytBand .rowHead h2,
.ytBand .rowHead p {
  color: #f4f6fa;
}
.ytBand .navBtn {
  color: #cbd2dd;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
.ytBand .navBtn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ytThumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 22% 14%, var(--ta), transparent 60%), var(--tb);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
  display: grid;
  place-items: center;
}
.ytThumb[data-tint="mint"] {
  --ta: var(--t-mint-a);
  --tb: var(--t-mint-b);
}
.ytThumb[data-tint="coral"] {
  --ta: var(--t-coral-a);
  --tb: var(--t-coral-b);
}
.ytThumb[data-tint="blue"] {
  --ta: var(--t-blue-a);
  --tb: var(--t-blue-b);
}
.ytThumb[data-tint="violet"] {
  --ta: var(--t-violet-a);
  --tb: var(--t-violet-b);
}
.ytThumb[data-tint="amber"] {
  --ta: var(--t-amber-a);
  --tb: var(--t-amber-b);
}
.ytThumb svg.ill {
  width: 50%;
  height: 50%;
  overflow: visible;
}
.ytCard:hover .ytThumb {
  transform: translateY(-4px);
}
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: #fff;
}
.dur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 7px;
  border-radius: 6px;
}
.ytCard h4 {
  margin-top: 13px;
  font-size: 15px;
  font-weight: 700;
  color: #f4f6fa;
  line-height: 1.3;
}
.ytMeta {
  margin-top: 7px;
  font-size: 12px;
  color: #7b8494;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* tabs */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 34px;
  margin-top: 30px;
}
.tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.18s;
  background: none;
}
.tab:hover {
  color: var(--ink);
}
.tabActive {
  color: var(--ink);
  background: rgba(125, 135, 150, 0.1);
  border-color: var(--line-2);
}
.tabGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 22px;
}
@media (max-width: 920px) {
  .tabGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .tabGrid {
    grid-template-columns: 1fr;
  }
}

/* newsletter band */
.nlBand {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: linear-gradient(120deg, #0c0e12, #14181f);
  position: relative;
  padding: 46px clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.nlBand .glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--glow-2), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.nlIc {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 18px;
}
.nlBand h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  color: #f4f6fa;
  position: relative;
}
.nlBand p {
  margin-top: 12px;
  color: #9aa3b2;
  font-size: 15px;
  line-height: 1.55;
  max-width: 460px;
  position: relative;
}
.nlForm {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nlForm input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f6fa;
  font-size: 14.5px;
  outline: none;
}
.nlForm input::placeholder {
  color: #6b7484;
}
.nlForm input:focus {
  border-color: var(--orange);
}
.nlNote {
  margin-top: 14px;
  font-size: 12px;
  color: #6b7484;
}
@media (max-width: 820px) {
  .nlBand {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* cta band */
.ctaBand {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  padding: clamp(40px, 6vw, 72px) 28px;
  text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-card);
}
.ctaBand .glow {
  position: absolute;
  left: 50%;
  top: -160px;
  transform: translateX(-50%);
  width: 700px;
  height: 420px;
  background:
    radial-gradient(circle, var(--glow-1), transparent 60%),
    radial-gradient(circle at 60% 50%, var(--glow-2), transparent 62%);
  filter: blur(14px);
  pointer-events: none;
}
.ctaBand h2 {
  position: relative;
  font-size: clamp(28px, 3.6vw, 44px);
}
.ctaBand p {
  position: relative;
  margin: 16px auto 0;
  max-width: 520px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.55;
}
.ctaRow {
  position: relative;
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal[data-in="true"] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* article */
.artHead {
  padding-top: 8px;
  padding-bottom: 8px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-4);
  margin-bottom: 22px;
}
.crumb a:hover {
  color: var(--ink-2);
}
.crumb svg {
  width: 13px;
  height: 13px;
}
.artTags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.artHead h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
  max-width: 900px;
  text-wrap: balance;
}
.artByline {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 26px;
}
.who {
  line-height: 1.3;
}
.nm {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.mtline {
  font-size: 12.5px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.artHero {
  margin-top: 34px;
}
.artHero .thumb {
  aspect-ratio: 21 / 8;
}
.artHero .thumb svg {
  width: 30%;
  height: 56%;
}
@media (max-width: 720px) {
  .artHero .thumb {
    aspect-ratio: 16 / 10;
  }
}
.artLayout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 52px;
  padding-bottom: 20px;
}
.artRail {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.tocH,
.shareH {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
  font-family: var(--font-disp);
}
.toc {
  list-style: none;
  border-left: 1px solid var(--line);
  padding: 0;
  margin: 0;
}
.toc a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.4;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  transition:
    color 0.18s,
    border-color 0.18s;
}
.toc a:hover {
  color: var(--ink-2);
}
.tocActive {
  color: var(--ink) !important;
  border-left-color: var(--orange) !important;
  font-weight: 600;
}
.tocSub {
  padding-left: 28px !important;
  font-size: 13px;
}
.shareRow {
  display: flex;
  gap: 9px;
}
.shareBtn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(125, 135, 150, 0.05);
  color: var(--ink-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s;
}
.shareBtn:hover {
  color: #fff;
  background: var(--brand);
  border-color: transparent;
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .artLayout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .artRail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px 44px;
    padding: 18px 0;
    border-block: 1px solid var(--line);
  }
  .tocBox {
    display: none;
  }
}

/* prose */
.prose {
  max-width: 720px;
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-2);
}
.prose > p {
  margin: 0 0 24px;
}
.prose > p:first-child {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 28px;
}
.prose h2 {
  font-size: clamp(24px, 2.6vw, 31px);
  color: var(--ink);
  margin: 48px 0 18px;
  scroll-margin-top: 88px;
  letter-spacing: -0.025em;
}
.prose h3 {
  font-size: 21px;
  color: var(--ink);
  margin: 34px 0 14px;
  scroll-margin-top: 88px;
}
.prose a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 87, 34, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s;
}
.prose a:hover {
  text-decoration-color: var(--orange);
}
.prose strong {
  color: var(--ink);
  font-weight: 700;
}
.prose ul,
.prose ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.prose li {
  margin-bottom: 10px;
}
.prose li::marker {
  color: var(--orange);
}
.prose blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid;
  border-image: var(--brand) 1;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(125, 135, 150, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink);
}

/* figure */
.figure {
  margin: 32px 0;
}
.figThumb {
  aspect-ratio: 16 / 9;
}
.figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-4);
  text-align: center;
}

/* code block */
.codeBlock {
  margin: 30px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0a0c10;
}
.cbBar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.d {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.lang {
  margin-left: auto;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #6b7484;
}
.copyBtn {
  color: #6b7484;
  background: none;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 2px;
}
.copyBtn:hover {
  color: #c9d2de;
}
.cbBar .copyBtn {
  margin-left: 8px;
}
.codeBlock pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #c9d2de;
}
.codeBlock code {
  font-family: var(--font-mono);
  background: none;
  padding: 0;
  white-space: pre;
}

/* callout */
.callout {
  margin: 32px 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: linear-gradient(
    120deg,
    rgba(0, 123, 255, 0.07),
    rgba(255, 87, 34, 0.06)
  );
  padding: 24px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.coIc {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.callout h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.callout p {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 8px 0 0;
  line-height: 1.55;
}
.callout .btn {
  margin-top: 16px;
}

/* stat strip */
.statStrip {
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.st {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  padding: 20px;
}
.stV {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  display: inline-block;
}
.stL {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}
@media (max-width: 620px) {
  .statStrip {
    grid-template-columns: 1fr;
  }
}

/* author box */
.authorBox {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 720px;
}
.abBody h4 {
  font-size: 17px;
  font-weight: 700;
}
.abRole {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  margin-top: 2px;
}
.abBody p {
  font-size: 14.5px;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: 1.6;
}
.abSocial {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.abSocial a {
  color: var(--ink-4);
  transition: color 0.18s;
}
.abSocial a:hover {
  color: var(--ink);
}

/* related */
.related {
  padding-top: 30px;
}
.relGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 22px;
  margin-top: 28px;
}
@media (max-width: 820px) {
  .relGrid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* category page grid */
.catGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 22px;
  margin-top: 40px;
}
@media (max-width: 920px) {
  .catGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .catGrid {
    grid-template-columns: 1fr;
  }
}

.sectionHead {
  max-width: 640px;
}
.gradText {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroSearch {
  margin-top: 24px;
  max-width: 520px;
}
