/* Middle: digital-life tech magazine. Dark chrome, light reading. */
:root {
  --night: #0F0E17;
  --night-2: #17151F;
  --night-3: #221F2E;
  --paper: #FAFAFC;
  --ink: #0F0E17;
  --text: #24222F;
  --grey: #6E6B86;
  --grey-dk: #A9A6BF;
  --violet: #7C5CFF;
  --violet-ink: #5B3FE0;
  --violet-soft: #F1EDFF;
  --coral: #FF6B6B;
  --grad: linear-gradient(100deg, #7C5CFF 0%, #B15FD6 50%, #FF6B6B 100%);
  --grad-ink: linear-gradient(100deg, #6A48F5 0%, #9B4FC9 50%, #C4416A 100%); /* same hues, AA with white text */
  --line: rgba(15, 14, 23, .09);
  --line-dk: rgba(255, 255, 255, .11);
  --r: 20px;
  --gut: clamp(16px, 4vw, 36px);
  --gap: clamp(14px, 1.8vw, 22px);
  --head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: #DCD2FF; color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gut), 1200px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 60; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ── chips & tags ─────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 500 .875rem/1.2 var(--body);
  transition: border-color .15s, background-color .15s, color .15s;
}
a.chip:hover { border-color: var(--violet); background: var(--violet-soft); }
.chip--btn { font-weight: 600; }
.chip--off { opacity: .45; }
.chip--sm { padding: 3px 10px; font-size: .75rem; }
.chip--grad { border: 0; background: var(--grad-ink); color: #fff; font-family: var(--head); font-weight: 600; letter-spacing: .02em; text-shadow: 0 1px 1px rgba(15, 14, 23, .35); }
.chip--dark, .bar .chip, .foot .chip { background: rgba(255, 255, 255, .05); border-color: var(--line-dk); color: #ECEAF7; }
.bar a.chip:hover, .foot a.chip:hover { background: rgba(124, 92, 255, .18); border-color: rgba(124, 92, 255, .7); }
.bar .chip[aria-current="page"], .bar .chip[data-in] {
  border-color: transparent; color: #fff;
  background: linear-gradient(var(--night-3), var(--night-3)) padding-box, var(--grad) border-box;
}
.chip--ghost { border-style: dashed; }

.tag {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 3px 10px 4px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink);
  font: 600 .75rem/1.3 var(--body); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
a.tag:hover { background: #E4DCFF; }
.tag--sm { font-size: .6875rem; padding: 2px 8px 3px; }
.tag--dark, .card--dark .tag { background: rgba(255, 255, 255, .08); color: #DCD5FF; }
.card--dark a.tag:hover, a.tag--dark:hover { background: rgba(124, 92, 255, .3); }

.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 .8125rem/1 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--grey); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 6px; border-radius: 6px; background: var(--grad); }
.eyebrow--dark { color: var(--grey-dk); }

.meta { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: .8125rem; color: var(--grey); font-variant-numeric: tabular-nums; }

.av {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-ink); color: #fff; font: 600 .8125rem/1 var(--head); letter-spacing: .02em;
  text-shadow: 0 1px 1px rgba(15, 14, 23, .3);
}
.av--md { width: 46px; height: 46px; font-size: .9375rem; }
.av--lg { width: 64px; height: 64px; font-size: 1.25rem; }
.av--xl { width: 120px; height: 120px; font-size: 2.5rem; box-shadow: 0 0 0 6px var(--night), 0 0 0 7px rgba(255, 255, 255, .2), 0 20px 60px -10px rgba(124, 92, 255, .7); }

/* ── sticky bar ───────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 40; background: var(--night); color: #fff; border-bottom: 1px solid var(--line-dk); }
.bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; min-height: 60px; }
.logo { display: flex; }
.logo a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; }
.logo__word { font: 700 1.625rem/1 var(--head); letter-spacing: -.04em; color: #fff; }
.mark { display: block; transition: transform .3s ease; }
.logo a:hover .mark { transform: rotate(-8deg) scale(1.06); }
.menu-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-dk); background: rgba(255, 255, 255, .05);
  font: 500 .875rem/1.2 var(--body); color: #fff; cursor: pointer;
}
.menu-btn__icon { display: grid; gap: 4px; width: 16px; }
.menu-btn__icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav { display: none; flex-basis: 100%; padding: 4px 0 16px; }
.nav.is-open { display: block; }
.nav__list { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav { display: block; flex-basis: auto; margin-left: auto; padding: 0; }
  .nav__list { flex-wrap: nowrap; gap: 6px; }
}
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 12px rgba(124, 92, 255, .7); }

/* ── placeholder (no cover) ──────────────────────────── */
.ph {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  background:
    radial-gradient(circle at 28% 30%, rgba(124, 92, 255, .6), transparent 55%),
    radial-gradient(circle at 78% 72%, rgba(255, 107, 107, .5), transparent 55%),
    var(--night-2);
}
.ph__rings { display: flex; }
.ph__rings i { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.ph__rings i + i { margin-left: -18px; border-color: rgba(255, 255, 255, .45); }
.ph__label { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(15, 14, 23, .55); color: #fff; font: 500 .75rem/1.3 var(--body); max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph--cover { aspect-ratio: 21 / 9; border-radius: 22px; height: auto; }
.ph--cover .ph__rings i { width: 110px; height: 110px; }
.ph--cover .ph__rings i + i { margin-left: -36px; }

/* ── cards ────────────────────────────────────────────── */
.card {
  --bd: linear-gradient(var(--line), var(--line));
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid transparent; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF, #FBFAFF) padding-box, var(--bd) border-box;
  box-shadow: 0 12px 32px -24px rgba(15, 14, 23, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { --bd: var(--grad); transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(124, 92, 255, .55); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: #ECEAF4; overflow: hidden; }
.card__media > img, .card__media > .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media > img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding: 16px 18px 18px; min-width: 0; }
.card__title { font: 600 1.125rem/1.25 var(--head); letter-spacing: -.015em; color: var(--ink); hyphens: auto; hyphenate-limit-chars: 9 4 4; overflow-wrap: anywhere; text-wrap: balance; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__sum { color: #4A4760; font-size: .9688rem; line-height: 1.55; text-wrap: pretty; hyphens: auto; }
.card .meta { margin-top: auto; }

.card--dark { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)) padding-box, linear-gradient(var(--line-dk), var(--line-dk)) border-box; box-shadow: none; }
.card--dark:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)) padding-box, var(--grad) border-box; box-shadow: 0 20px 50px -24px rgba(124, 92, 255, .6); }
.card--dark .card__media { background: var(--night-3); }
.card--dark .card__title { color: #fff; }
.card--dark .meta { color: var(--grey-dk); }

.card--feat { --bd: var(--grad); }
.card--wide .card__title { font-size: clamp(1.375rem, 2.6vw, 2.125rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.card--wide .card__sum { font-size: 1.0625rem; }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card--wide { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card--wide { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .card--wide .card__media { aspect-ratio: auto; min-height: 340px; }
  .card--wide .card__body { padding: 30px 30px 28px; justify-content: center; }
}
/* phones: thumbnail rows */
@media (max-width: 599px) {
  .cards .card:not(.card--feat):not(.card--wide), .hero__grid .card {
    display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch;
  }
  .cards .card:not(.card--feat):not(.card--wide) .card__media, .hero__grid .card .card__media { aspect-ratio: auto; min-height: 100%; }
  .cards .card:not(.card--feat):not(.card--wide) .card__body, .hero__grid .card .card__body { padding: 12px 14px; gap: 6px; }
  .cards .card:not(.card--feat):not(.card--wide) .card__title, .hero__grid .card .card__title { font-size: 1rem; }
  .cards .card:not(.card--feat):not(.card--wide) .ph__rings, .hero__grid .card .ph__rings,
  .cards .card:not(.card--feat):not(.card--wide) .ph__label, .hero__grid .card .ph__label { display: none; }
}

/* ── home: dark hero ─────────────────────────────────── */
.hero, .band {
  color: #fff;
  background:
    radial-gradient(55% 60% at 12% 0%, rgba(124, 92, 255, .32), transparent 70%),
    radial-gradient(45% 55% at 100% 100%, rgba(255, 107, 107, .2), transparent 70%),
    var(--night);
}
.hero { padding: 22px 0 clamp(40px, 6vw, 72px); }
.hero__date { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--grey-dk); margin-bottom: 18px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 107, .2); animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(255, 107, 107, 0); } }

.glow {
  position: relative; display: grid; border-radius: 26px; padding: 8px;
  border: 1px solid transparent;
  background: linear-gradient(160deg, #1B1826, #14121C) padding-box, var(--grad) border-box;
  box-shadow: 0 30px 90px -36px rgba(124, 92, 255, .75), 0 30px 80px -50px rgba(255, 107, 107, .7);
}
.glow__media { aspect-ratio: 16 / 10; border-radius: 19px; overflow: hidden; background: var(--night-3); }
.glow__media > img, .glow__media > .ph { width: 100%; height: 100%; object-fit: cover; }
.glow__body { display: flex; flex-direction: column; gap: 14px; padding: 20px 14px 16px; }
.glow__kick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.glow__title { font: 700 clamp(1.75rem, 3.4vw, 2.75rem)/1.06 var(--head); letter-spacing: -.035em; text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: anywhere; }
.glow__title a { background: var(--grad) 0 100% / 0 3px no-repeat; transition: background-size .35s ease; padding-bottom: 2px; }
.glow__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 26px; }
.glow:hover .glow__title a, .glow__title a:focus-visible { background-size: 100% 3px; }
.glow__sum { color: #C3C0D8; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.55; max-width: 52ch; }
.glow__by { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: .8125rem; line-height: 1.4; color: var(--grey-dk); }
@media (min-width: 960px) {
  .glow { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 8px; }
  .glow__media { aspect-ratio: auto; min-height: 430px; }
  .glow__body { padding: 30px 28px 24px; }
}

.hero__row { margin-top: clamp(32px, 5vw, 52px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 600px) { .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); } }
@media (min-width: 960px) { .hero__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── home: chat feed + picks ─────────────────────────── */
.feedwrap { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 960px) { .feedwrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; } }
.chat { display: grid; gap: 14px; }
.msg { display: flex; align-items: flex-end; gap: 10px; }
.msg__av { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-ink); color: #fff; font: 600 .75rem/1 var(--head); text-shadow: 0 1px 1px rgba(15, 14, 23, .3); margin-bottom: 22px; }
.msg__col { min-width: 0; max-width: min(88%, 560px); }
.msg__bubble {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px 22px 22px 6px;
  padding: 12px 16px 14px; box-shadow: 0 10px 26px -20px rgba(15, 14, 23, .35);
  transition: border-color .2s, transform .2s;
}
.msg__bubble:hover { border-color: rgba(124, 92, 255, .55); transform: translateY(-1px); }
.msg__title { font: 600 1.0625rem/1.3 var(--head); letter-spacing: -.01em; color: var(--ink); hyphens: auto; overflow-wrap: anywhere; }
.msg__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.msg__time { margin: 6px 6px 0; font-size: .75rem; color: var(--grey); }
.msg--out { flex-direction: row-reverse; }
.msg--out .msg__bubble { background: var(--violet-soft); border-color: #E2D9FF; border-radius: 22px 22px 6px 22px; }
.msg--out .msg__bubble .tag { background: #fff; }
.msg--out .msg__time { text-align: right; }
.msg--out .msg__av { background: linear-gradient(135deg, #C4416A, #B8456F); }

.picks { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, #FFFFFF, #F7F5FF); padding: 22px 22px 8px; }
@media (min-width: 960px) { .picks { position: sticky; top: 84px; } }
.picks__item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.picks__n { font: 700 1.875rem/1 var(--head); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.picks__title { margin-top: 8px; font: 600 1.0625rem/1.3 var(--head); color: var(--ink); hyphens: auto; overflow-wrap: anywhere; }
.picks__title a:hover { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── sections ─────────────────────────────────────────── */
.sec { margin-top: clamp(48px, 7vw, 88px); }
.sec--page { margin-top: clamp(28px, 4vw, 44px); }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.sec__title { font: 700 clamp(1.625rem, 3.4vw, 2.5rem)/1.05 var(--head); letter-spacing: -.035em; color: var(--ink); }
.sec__title a:hover { color: var(--violet-ink); }
.sec__hash { margin-right: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec__desc { margin-top: 6px; color: var(--grey); max-width: 52ch; }

/* ── bands (section / author / 404 headers) ──────────── */
.band { padding: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 60px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: .8125rem; color: var(--grey); }
.crumbs li + li::before { content: "/"; margin: 0 8px 0 4px; color: var(--violet); }
.crumbs a:hover { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs--dark ol { color: var(--grey-dk); }
.crumbs--dark li + li::before { color: var(--coral); }
.crumbs--dark a:hover { color: #fff; }
.band__title { font: 700 clamp(2.25rem, 6.4vw, 4.75rem)/1 var(--head); letter-spacing: -.045em; margin: 16px 0 12px; overflow-wrap: anywhere; hyphens: auto; }
.band__desc { font-size: clamp(1rem, 1.4vw, 1.1875rem); color: #C3C0D8; max-width: 56ch; }
.band__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.band__in--author { display: grid; gap: 26px; align-items: center; }
.band__in--author .band__title { margin-top: 14px; }
@media (min-width: 760px) { .band__in--author { grid-template-columns: auto minmax(0, 1fr); gap: 44px; } }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 36px; }
.pager__now { font-size: .875rem; color: var(--grey); }

/* ── article ──────────────────────────────────────────── */
.story__head { max-width: 820px; padding-top: clamp(22px, 3.4vw, 40px); }
.story__kick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 14px; }
.story__kick .tag { font-size: .8125rem; padding: 4px 12px 5px; }
.story__dl { font: 600 .75rem/1 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--grey); }
.story__title { font: 700 clamp(2rem, 4.8vw, 3.5rem)/1.06 var(--head); letter-spacing: -.04em; color: var(--ink); text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: anywhere; }
.story__sum { margin-top: 16px; font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.55; color: #4A4760; text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.byline__name { font-size: .9375rem; color: var(--grey); }
.byline__name a { font-weight: 600; color: var(--ink); background: var(--grad) 0 100% / 100% 2px no-repeat; padding-bottom: 1px; }
.byline__name a:hover { color: var(--violet-ink); }
.byline__role { margin-left: 8px; font-size: .8125rem; color: var(--grey); }
.byline__role::before { content: "\00B7"; margin-right: 8px; }
.byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 2px; font-size: .8125rem; color: var(--grey); }

.story__cover { max-width: 1080px; margin-top: clamp(24px, 3.6vw, 40px); }
.story__cover img { width: 100%; border-radius: 22px; }
.credit { margin-top: 10px; font-size: .75rem; color: var(--grey); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }
.credit a:hover { color: var(--violet-ink); }

.story__main { max-width: 820px; }
.story__main > * { max-width: 700px; }
.article-body { margin-top: clamp(28px, 4vw, 44px); font: 400 1.125rem/1.75 var(--body); color: var(--text); hyphens: auto; -webkit-hyphens: auto; }
.article-body p { margin: 0 0 1.25em; text-wrap: pretty; }
.article-body strong, .article-body b { font-weight: inherit; }
.article-body a { font-weight: inherit; color: var(--violet-ink); text-decoration: underline; text-decoration-color: rgba(124, 92, 255, .45); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-body a:hover { text-decoration-color: var(--coral); }
.article-body h2 { position: relative; font: 700 clamp(1.4rem, 2.4vw, 1.75rem)/1.2 var(--head); letter-spacing: -.025em; color: var(--ink); margin: 1.8em 0 .6em; padding-top: 18px; text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: anywhere; }
.article-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 5px; border-radius: 5px; background: var(--grad); }
.article-body h3 { font: 600 1.25rem/1.3 var(--head); color: var(--ink); margin: 1.5em 0 .5em; letter-spacing: -.01em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; }
.article-body li { position: relative; padding-left: 1.8em; margin-bottom: .5em; }
.article-body ul > li::before { content: ""; position: absolute; left: .35em; top: .68em; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.article-body ol { counter-reset: n; }
.article-body ol > li { counter-increment: n; }
.article-body ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .1em; font: 700 .875rem/1.75 var(--head); color: var(--violet-ink); }
.article-body blockquote {
  position: relative; margin: 2em 0 2.2em 46px; padding: 18px 22px 20px;
  background: var(--violet-soft); border: 1px solid #E2D9FF; border-radius: 24px 24px 24px 6px;
}
.article-body blockquote::before {
  content: "\201C" / ""; position: absolute; left: -46px; bottom: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; font: 700 1.75rem/46px var(--head); text-align: center;
}
.article-body blockquote p { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); margin-bottom: .6em; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin: 1.8em 0 2em; }
.article-body img { border-radius: 16px; margin-bottom: 1.2em; }
.article-body figure img { width: 100%; margin-bottom: 0; }
.article-body figcaption { margin-top: 8px; font-size: .8125rem; color: var(--grey); }
.article-body table { width: 100%; margin: .4em 0 1.8em; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.article-body th { text-align: left; background: #F3F1FA; font: 600 .8125rem/1.2 var(--head); color: var(--ink); padding: 12px 14px; letter-spacing: .01em; }
.article-body td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.article-body hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
@media (max-width: 599px) {
  .article-body { font-size: 1.0625rem; }
  .article-body table { display: block; overflow-x: auto; }
  .article-body blockquote { margin-left: 40px; }
  .article-body blockquote::before { left: -40px; width: 30px; height: 30px; font-size: 1.5rem; line-height: 40px; }
}

.files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: .875rem; color: var(--grey); }
.authorbox {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; margin-top: 30px; padding: 22px;
  border: 1px solid transparent; border-radius: 22px;
  background: linear-gradient(180deg, #FFFFFF, #F7F5FF) padding-box, var(--grad) border-box;
}
.authorbox__name { font: 700 1.25rem/1.2 var(--head); color: var(--ink); letter-spacing: -.02em; }
.authorbox__name a:hover { color: var(--violet-ink); }
.authorbox__role { font-size: .8125rem; color: var(--violet-ink); font-weight: 600; margin: 4px 0 8px; }
.authorbox__bio { font-size: .9688rem; color: #4A4760; }

/* ── static ───────────────────────────────────────────── */
.static { max-width: 760px; padding-top: clamp(22px, 3.4vw, 40px); }
.static__title { font: 700 clamp(2.25rem, 6vw, 3.75rem)/1.04 var(--head); letter-spacing: -.04em; color: var(--ink); margin-top: 16px; overflow-wrap: anywhere; hyphens: auto; }

/* ── 404 ──────────────────────────────────────────────── */
.lost { display: grid; gap: 24px; align-items: center; }
.lost__code { font: 700 clamp(5.5rem, 20vw, 11rem)/.9 var(--head); letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chat--lost { max-width: 560px; }
.band .msg__bubble { background: rgba(255, 255, 255, .06); border-color: var(--line-dk); color: #ECEAF7; box-shadow: none; }
.band .msg__av { margin-bottom: 0; background: none; }
.band .msg__av .mark { width: 34px; height: 24px; }
.msg--cont .msg__av { visibility: hidden; }
.lost__title { font: 700 1.375rem/1.2 var(--head); color: #fff; }
.band .msg--out .msg__bubble { background: #6A48F5; border-color: #6A48F5; color: #fff; font-weight: 600; }
.msg__bubble--link { flex-direction: row; gap: 8px; }
.band .msg--out .msg__bubble:hover { background: #5B3FE0; }
@media (min-width: 960px) { .lost { grid-template-columns: auto minmax(0, 1fr); gap: 56px; } }

/* ── footer ──────────────────────────────────────────── */
.foot { margin-top: clamp(64px, 9vw, 120px); background: var(--night); color: #D8D5E8; padding-top: clamp(36px, 5vw, 60px); }
.foot :focus-visible { outline-color: #B4A2FF; }
.foot__in { display: grid; gap: 32px; }
.logo--foot { margin-bottom: 12px; }
.foot__tag { max-width: 40ch; color: #C3C0D8; font-size: .9375rem; }
.foot__date { margin-top: 10px; font-size: .8125rem; color: var(--grey-dk); }
.foot__h { font: 600 .75rem/1 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--grey-dk); margin-bottom: 14px; }
.foot__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.foot__links li + li { margin-top: 8px; }
.foot__links a { color: #fff; }
.foot__links a:hover { color: #C9BDFF; text-decoration: underline; text-underline-offset: 3px; }
.foot__base { display: grid; gap: 6px; margin-top: 40px; padding: 18px 0 28px; border-top: 1px solid var(--line-dk); font-size: .8125rem; color: var(--grey-dk); }
@media (min-width: 760px) {
  .foot__in { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 44px; }
  .foot__base { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}
