/*
Theme Name: NX Digest
Description: Editorial developer-publication theme: monochrome, grid-lined, card based. Blog, tutorials, guides, tool directory and comparisons.
Version: 1.0.8
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: nx-digest
*/

:root {
  --bg: #fff;
  --fg: #0a0a0a;
  --muted: #737373;
  --faint: #a1a1a1;
  --border: #e5e5e5;
  --sunken: #f5f5f5;
  --ink: #000;
  --link: #155dfc;
  --radius: 10px;
  --grid-line: rgba(0, 0, 0, 0.04);
  --grid-size: 24px;
  --wrap: 884px;
  --wrap-wide: 1340px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Geist", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
main { flex: 1; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap-wide { width: 100%; max-width: var(--wrap-wide); margin: 0 auto; padding: 0 16px; }
.eyebrow { font: 500 10px/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.grid-bg {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: calc(var(--grid-size) * 2) calc(var(--grid-size) * 2);
}
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section--sunken { background: #fafafa; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 10px; }
.section-head--rule { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.arrow-link { font: 500 13px/1 var(--font-head); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.arrow-link::after { content: "\2192"; transition: transform 0.15s; }
.arrow-link:hover::after { transform: translateX(3px); }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius);
  font: 600 13px/1 var(--font-head); border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: opacity 0.15s; white-space: nowrap; flex-shrink: 0; }
.btn:hover { opacity: 0.85; }
.btn--ghost { background: #fff; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { opacity: 1; border-color: var(--fg); }
.btn--square { border-radius: 0; height: 48px; padding: 0 32px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px;
  font: 500 12px/1 var(--font-head); background: #fff; transition: border-color 0.15s; }
a.chip:hover { border-color: var(--fg); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag-solid { display: inline-block; padding: 5px 8px; background: var(--ink); color: #fff; font: 700 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.tag-outline { display: inline-block; padding: 4px 8px; border: 1px solid var(--faint); font: 600 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Announcement bar */
.announce { background: var(--ink); color: #fff; position: relative; }
.announce__in { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 48px; font: 500 13px/1.3 var(--font-head); text-align: center; }
.announce__label { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font: 500 10px/1 var(--font-mono); letter-spacing: 0.22em; color: rgba(255,255,255,0.6); }
.announce__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; }
.announce[hidden] { display: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: stretch; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--font-head); letter-spacing: -0.02em; text-transform: uppercase; margin-right: 28px; }
.brand__mark { width: 28px; height: 28px; background: var(--ink); display: grid; place-items: center; color: #fff; font: 700 14px/1 var(--font-mono); }
.brand img { max-height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav a { font: 500 13px/1 var(--font-head); color: #404040; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav .current-menu-item > a, .nav a.is-current { color: var(--fg); border-bottom-color: var(--fg); }
.header-actions { display: flex; align-items: stretch; }
.header-cell { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-left: 1px solid var(--border); font: 500 13px/1 var(--font-head); background: none; border-top: 0; border-bottom: 0; border-right: 0; cursor: pointer; }
.header-cell:hover { background: var(--sunken); }
.header-cell kbd { font: 500 10px/1 var(--font-mono); border: 1px solid var(--border); border-radius: 4px; padding: 3px 5px; color: var(--muted); }
.header-cell--cta { background: var(--ink); color: #fff; font-weight: 600; padding: 0 26px; border-left-color: var(--ink); }
.header-cell--cta:hover { background: #262626; }
.nav-toggle { display: none; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.4); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; }
.search-overlay.is-open { display: flex; }
.search-overlay form { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--fg); border-radius: var(--radius); display: flex; }
.search-overlay input[type="search"] { flex: 1; border: 0; outline: 0; padding: 16px 18px; font-size: 16px; background: none; }

/* Hero */
.hero { padding: 0 0 48px; }
.hero__card { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: #fff; overflow: hidden; }
.hero__top { display: grid; grid-template-columns: 1.35fr 1fr; }
.hero__main { padding: 40px; }
.hero__main h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); line-height: 1.02; letter-spacing: -0.035em; margin-top: 16px; }
.hero__main h1 span { color: #737373; }
.hero__lede { margin-top: 20px; color: #525252; max-width: 44ch; line-height: 1.75; }
.subscribe { display: flex; gap: 8px; margin-top: 28px; max-width: 430px; }
.subscribe input[type="email"] { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius); background: var(--sunken); outline: 0; }
.subscribe input[type="email"]:focus { border-color: var(--fg); background: #fff; }
.subscribe__note { margin-top: 10px; font-size: 11px; color: var(--muted); }
.subscribe__ok { margin-top: 28px; padding: 12px 14px; border: 1px solid var(--fg); border-radius: var(--radius); font: 500 13px/1.4 var(--font-head); max-width: 430px; }
.hp-field { position: absolute; left: -9999px; }
.hero__links { display: flex; align-items: center; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.hero__side { border-left: 1px solid var(--border); background: #fafafa; }
.hero__side-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.hero__side-head .eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12); margin-right: 11px; vertical-align: middle; }
.side-link { font: 500 12px/1 var(--font-head); color: #404040; }
.side-link:hover { color: var(--fg); }
.latest-item { display: grid; grid-template-columns: 52px 1fr; gap: 0 8px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.latest-item:last-child { border-bottom: 0; }
.latest-item:hover { background: #fff; }
.latest-item time { font: 500 10px/1.8 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.latest-item strong { font: 600 13px/1.4 var(--font-head); display: block; }
.latest-item em { font: 500 9px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-style: normal; margin-top: 6px; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.stat { padding: 18px 26px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 600 24px/1.2 var(--font-head); letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: #a3a3a3; transform: translateY(-2px); }
.card__media { aspect-ratio: 16 / 9; background: var(--sunken); border-bottom: 1px solid var(--border); overflow: hidden; }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 16px 14px 18px; }
.card__meta { font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card__meta b { color: var(--fg); font-weight: 600; }
.card__title { font: 600 15px/1.35 var(--font-head); margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__excerpt { margin-top: 8px; font-size: 13px; color: #525252; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card--feature .card__body { padding: 20px; }
.card--feature .card__title { font-size: 20px; -webkit-line-clamp: 3; }
.card--dark-border { border-color: var(--fg); }

/* Value props */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prop { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: #fff; display: flex; flex-direction: column; }
.prop__icon { width: 34px; height: 34px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.prop__icon svg { width: 18px; height: 18px; }
.prop h3 { font-size: 16px; margin-top: 22px; }
.prop p { margin: 10px 0 18px; font-size: 13px; color: #525252; flex: 1; }

/* Topic marquee */
.topics { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.topics__label { display: flex; gap: 14px; align-items: baseline; padding: 18px 0 14px; font-size: 13px; color: #525252; }
.topics__row { display: flex; overflow: hidden; border-top: 1px solid var(--border); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.topics__track { display: flex; flex-shrink: 0; animation: nxd-marquee 40s linear infinite; }
.topics__row:hover .topics__track { animation-play-state: paused; }
.topic { display: flex; align-items: center; gap: 8px; padding: 0 28px; height: 52px; border-right: 1px solid var(--border); font: 500 13px/1 var(--font-head); white-space: nowrap; }
.topic::before { content: ""; width: 10px; height: 10px; background: var(--fg); transform: rotate(45deg); }
@keyframes nxd-marquee { to { transform: translateX(-100%); } }

/* Media grid (tutorials) */
.media-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.media-grid__side { display: grid; gap: 20px; align-content: start; }
.media-grid__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.play { position: relative; }
.play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* Blog list block */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.rows { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.rows__head { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.row { display: grid; grid-template-columns: 78px 1fr auto; gap: 8px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row:hover { background: #fafafa; }
.row time, .row span { font: 500 10px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.row strong { font: 600 13px/1.3 var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split__copy h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 10px 0 14px; }
.split__copy p { color: #525252; max-width: 40ch; }
.split__copy .btn-row { display: flex; gap: 8px; margin-top: 24px; align-items: center; flex-wrap: wrap; }

/* Cell grids */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cells--4 { grid-template-columns: repeat(4, 1fr); }
.cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px; background: #fff; display: flex; flex-direction: column; min-height: 126px; transition: background 0.15s; }
a.cell:hover { background: #fafafa; }
.cell h3 { font-size: 15px; }
.cell p { margin-top: 8px; font-size: 13px; color: #525252; flex: 1; }
.cell .tag-solid { align-self: flex-start; margin-bottom: 18px; }
.cell--tall { min-height: 210px; }
.cell--tall h3 { font-size: 17px; }
.cell .arrow-link { margin-top: 18px; }

/* Banner */
.banner { border: 1px solid var(--fg); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; }
.banner h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 18px 0 12px; }
.banner p { color: #525252; max-width: 46ch; }
.banner__tags { display: flex; gap: 8px; }

/* Mini feature cards */
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 14px; }
.mini h3 { font-size: 13px; }
.mini p { font-size: 13px; color: #525252; margin-top: 6px; }

/* Archive */
.page-hero { border: 1px solid var(--border); border-top: 0; background: #fff; }
.page-hero__in { padding: 36px 32px 44px; }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3rem); margin-top: 22px; }
.page-hero p { margin-top: 14px; color: #525252; max-width: 60ch; }
.page-hero__foot { border-top: 1px solid var(--border); padding: 12px 18px; background: #fafafa; }
.crumbs { font-size: 12px; color: var(--muted); padding: 18px 0; }
.crumbs a:hover { color: var(--fg); }
.crumbs span { color: var(--fg); }
.filter { justify-content: center; margin: 20px 0 32px; }
.list-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hcard { display: grid; grid-template-columns: 148px 1fr; gap: 16px; border: 1px solid var(--border); padding: 20px; background: #fff; transition: border-color 0.15s; }
.hcard:hover { border-color: #a3a3a3; }
.hcard__media { aspect-ratio: 16 / 9; background: var(--sunken); overflow: hidden; align-self: start; }
.hcard__media img, .hcard__media svg { width: 100%; height: 100%; object-fit: cover; }
.hcard__meta { display: flex; align-items: center; gap: 10px; font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hcard h2 { font-size: 18px; line-height: 1.25; margin-top: 12px; }
.hcard p { margin-top: 12px; font-size: 13px; color: #525252; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 16px; }
.read-more { font: 700 11px/1 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); white-space: nowrap; padding-bottom: 8px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 40px 0 0; }
.pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); font: 500 13px/1 var(--font-head); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }
.subnav { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fafafa; }
.subnav__in { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; padding: 14px 16px; }
.subnav a { font: 500 10px/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.subnav a:hover { color: var(--fg); }

/* Single */
.article-head { padding: 6px 0 22px; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; padding-left: 20px; border-left: 8px solid var(--ink); border-radius: 4px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px 28px; font-size: 12px; color: #525252; }
.article-meta .avatar { width: 20px; height: 20px; border-radius: 50%; }
.article-meta .dot::before { content: "\2022"; margin-right: 10px; color: var(--faint); }
.article-head .chips { margin-left: 28px; }
.article-cover { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.article-cover img, .article-cover svg { width: 100%; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 164px; gap: 32px; margin: 52px 0 64px; align-items: start; }
.article-layout--full { grid-template-columns: minmax(0, 1fr); }
.article-body { border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; background: #fff; }
.tldr { border: 1px solid var(--border); border-radius: 8px; background: #fafafa; padding: 18px 16px; margin-bottom: 30px; font-size: 14px; }
.tldr .eyebrow { display: block; margin-bottom: 12px; }
.prose { font-size: 15px; line-height: 1.75; color: #333; }
.prose > * + * { margin-top: 1.25em; }
.prose > p:first-of-type { font: 400 17px/1.55 var(--font-head); color: var(--fg); }
.prose h2 { font-size: 22px; margin-top: 2em; padding-left: 12px; border-left: 3px solid var(--ink); color: var(--fg); }
.prose h3 { font-size: 18px; margin-top: 1.8em; color: var(--fg); }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--border); color: #525252; }
.prose code { font: 500 0.88em var(--font-mono); background: var(--sunken); padding: 2px 5px; border-radius: 4px; }
.prose pre { background: #0a0a0a; color: #fafafa; padding: 18px; border-radius: 8px; overflow-x: auto; font: 13px/1.6 var(--font-mono); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border: 1px solid var(--border); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: #fafafa; font: 600 12px/1.3 var(--font-head); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.toc { position: sticky; top: 76px; font-size: 12px; }
.toc ol { list-style: none; margin: 16px 0 0; padding: 0 0 0 12px; }
.toc li { margin-bottom: 9px; line-height: 1.35; }
.toc li.lvl-3 { padding-left: 8px; }
.toc a { color: #525252; }
.toc a:hover, .toc a.is-active { color: var(--fg); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #fafafa; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding: 56px 0 40px; }
.footer-brand p { margin-top: 14px; color: #a3a3a3; max-width: 34ch; font-size: 13px; }
.brand__mark--logo { width: auto; padding: 0 6px; }
.brand__mark--logo img { height: 18px; width: auto; }
.footer-logo { height: 26px; width: auto; }
.site-footer h4 { font: 500 10px/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: #737373; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { font-size: 13px; color: #d4d4d4; }
.site-footer li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.12); font: 500 10px/1.6 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #737373; }
.footer-word { text-align: center; font: 900 min(15rem, calc(96vw / (var(--chars, 10) * 0.62)))/0.8 var(--font-head); letter-spacing: -0.06em; color: rgba(255,255,255,0.08); text-transform: uppercase; white-space: nowrap; margin-bottom: -0.06em; user-select: none; }
.to-top { position: fixed; right: 24px; bottom: 24px; width: 34px; height: 34px; border-radius: 6px; background: var(--ink); color: #fff; border: 0; cursor: pointer; display: none; place-items: center; z-index: 40; }
.to-top.is-visible { display: grid; }

/* Responsive */
@media (max-width: 960px) {
  .hero__top, .media-grid, .split, .article-layout { grid-template-columns: 1fr; }
  .hero__side { border-left: 0; border-top: 1px solid var(--border); }
  .cards, .props, .media-grid__row { grid-template-columns: repeat(2, 1fr); }
  .cells, .cells--4, .minis { grid-template-columns: repeat(2, 1fr); }
  .list-2 { grid-template-columns: 1fr; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner { flex-direction: column; align-items: flex-start; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { display: block; padding: 10px 0; font-size: 15px; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .header-cell--hide { display: none; }
  .brand { margin-right: 0; }
}
@media (max-width: 600px) {
  .cards, .props, .media-grid__row, .cells, .cells--4, .minis { grid-template-columns: 1fr; }
  .stat { padding: 16px 14px; }
  .stat b { font-size: 19px; }
  .stat span { display: block; font-size: 11px; line-height: 1.4; }
  .hero__side .latest-item:nth-child(n+5) { display: none; }
  .latest-item { grid-template-columns: 56px 1fr; padding: 18px 20px; }
  .latest-item strong { font-size: 14px; }
  .hero__links { flex-direction: column; align-items: flex-start; gap: 14px; }
  .subscribe input[type="email"] { flex: none; width: 100%; border-color: var(--border); height: 44px; font-size: 16px; }
  .subscribe .btn { height: 42px; width: 100%; }
  .site-header__in { height: 60px; align-items: center; }
  .brand > span:last-child { display: none; }
  .brand__mark--logo { width: 36px; height: 36px; padding: 0 5px; }
  .brand__mark--logo img { height: auto; width: 100%; }
  .header-actions { align-items: center; gap: 4px; }
  .header-cell { border-left: 0; padding: 0 10px; height: 42px; }
  .header-cell:hover { background: none; }
  .header-cell svg { width: 20px; height: 20px; }
  .header-cell--cta { border-radius: var(--radius); padding: 0 22px; font-size: 14px; }
  .header-cell--cta:hover { background: #262626; }
  .hero__main { padding: 28px 20px; }
  .subscribe { flex-direction: column; }
  .hcard { grid-template-columns: 1fr; }
  .article-body { padding: 22px 18px; }
  .article-head h1 { padding-left: 14px; border-left-width: 6px; }
  .article-meta, .article-head .chips { margin-left: 0; }
  .section { padding: 44px 0; }
  .announce__label { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .row time { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cell kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .topics__track { animation: none; }
  html { scroll-behavior: auto; }
}
