/* Self-hosted Roboto variable font (no Google Fonts request) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('assets/fonts/roboto/Roboto.woff2') format('woff2');
}

/*
Theme Name: Neon Control
Theme URI: https://neoncontrol.local
Author: Neon Control
Description: A nocturnal editorial theme for hardware, software, and the systems underneath.
Version: 1.3.0
Text Domain: neon-control
*/

:root {
    --void: #090d18;
    --void-soft: #0d1424;
    --ink: #111a2c;
    --ink-lift: #172239;
    --paper: #e9edf3;
    --muted: #8e9aaf;
    --faint: #8493aa;
    --cyan: #67f7ff;
    --magenta: #ff2bd6;
    --lime: #d6ff4b;
    --orange: #ff9f43;
    --violet: #b08cff;
    --line: rgba(233, 237, 243, 0.14);
    --line-bright: rgba(103, 247, 255, 0.36);
    --max-width: 1180px;
    --wide-width: 1440px;
    --mono: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    --sans: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --serif: 'Roboto', Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--void);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(103, 247, 255, 0.026) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 247, 255, 0.026) 1px, transparent 1px);
    background-size: 68px 68px;
    content: "";
}

body::after {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.17;
    background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.5px, transparent 0.8px);
    background-size: 5px 5px;
    content: "";
    mix-blend-mode: soft-light;
}

body.is-article::before {
    background-size: 116px 116px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

::selection {
    background: var(--magenta);
    color: var(--void);
}

.screen-reader-text,
.screen-reader-text:focus {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 14px 18px;
    clip: auto;
    background: var(--paper);
    color: var(--void);
}

.skip-link {
    position: absolute;
    z-index: 100;
    top: -100px;
    left: 20px;
    padding: 10px 16px;
    background: var(--cyan);
    color: var(--void);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.skip-link:focus {
    top: 20px;
}

.site-frame {
    min-height: 100vh;
    overflow: clip;
}

.container {
    width: min(calc(100% - 48px), var(--max-width));
    margin-right: auto;
    margin-left: auto;
}

.eyebrow,
.story-meta,
.section-count,
.footer-eyebrow,
.footer-status,
.article-breadcrumb,
.article-byline,
.art-corner,
.hero-coordinates,
.hero-visual-label,
.channel-index,
.search-label,
.search-key,
.nav-toggle-label,
.button,
.text-link,
.rail-note-label,
.error-code,
.empty-state-mark {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.text-link {
    display: inline-block;
    padding: 8px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
}

.eyebrow-index {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid var(--line-bright);
    color: var(--cyan);
    font-size: 9px;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 13, 24, 0.82);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    min-height: 94px;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
}

.brand-mark {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-name {
    color: var(--paper);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1;
}

.brand-tagline {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.15em;
    line-height: 1.2;
    text-transform: uppercase;
}

.primary-nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 30px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    position: relative;
    display: block;
    padding: 11px 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.nav-list a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    background: var(--magenta);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--paper);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.search-toggle {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 9px;
    padding: 9px 0 9px 20px;
    min-height: 44px;
    border-left: 1px solid var(--line);
    background: transparent;
    color: var(--paper);
}

.search-icon {
    position: relative;
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
}

.search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 1px;
    background: var(--cyan);
    content: "";
    transform: rotate(48deg);
}

.search-key {
    color: var(--faint);
    font-size: 9px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    min-height: 44px;
    min-width: 44px;
    background: transparent;
    color: var(--cyan);
}

.nav-toggle-line {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
}

.search-drawer {
    position: relative;
    z-index: 19;
    border-bottom: 1px solid var(--line-bright);
    background: var(--ink);
}

.search-drawer[hidden] {
    display: none;
}

.search-drawer-inner {
    padding: 24px 0;
}

.search-form {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line-bright);
    background: var(--void);
}

.search-form input {
    min-width: 0;
    flex: 1;
    padding: 16px 18px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 14px;
}

.search-form input::placeholder {
    color: var(--faint);
}

.search-form button {
    padding: 0 20px;
    background: var(--cyan);
    color: var(--void);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.hero-section {
    padding: clamp(78px, 11vw, 150px) 0 106px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(370px, 1.12fr);
    align-items: center;
    gap: clamp(44px, 7vw, 110px);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy h1 {
    max-width: 700px;
    margin: 25px 0 22px;
    color: var(--paper);
    font-size: clamp(54px, 8vw, 104px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.86;
    text-transform: uppercase;
}

.hero-copy h1 span {
    color: var(--cyan);
    text-shadow: 0 0 26px rgba(103, 247, 255, 0.21);
}

.hero-deck {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.35;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    padding: 0 18px;
    font-size: 10px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--magenta);
    color: var(--void);
    box-shadow: 10px 10px 0 rgba(103, 247, 255, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--cyan);
    box-shadow: 10px 10px 0 rgba(255, 43, 214, 0.2);
}

.hero-note {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.5;
    text-transform: uppercase;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line-bright);
    background: radial-gradient(circle at 52% 48%, rgba(255, 43, 214, 0.13), transparent 25%), radial-gradient(circle at 60% 45%, rgba(103, 247, 255, 0.16), transparent 43%), var(--ink);
    box-shadow: 0 0 0 1px rgba(9, 13, 24, 0.9) inset, 25px 25px 0 rgba(255, 43, 214, 0.07);
}

.hero-visual::before,
.hero-visual::after {
    position: absolute;
    content: "";
}

.hero-visual::before {
    inset: 34px;
    border: 1px solid rgba(103, 247, 255, 0.15);
}

.hero-visual::after {
    right: 20%;
    bottom: 16%;
    width: 20%;
    height: 20%;
    border-right: 1px solid var(--magenta);
    border-bottom: 1px solid var(--magenta);
}

.hero-visual-grid {
    position: absolute;
    inset: 0;
    opacity: 0.52;
    background-image: linear-gradient(rgba(103, 247, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 247, 255, 0.1) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(135deg, transparent, #000 25%, #000 70%, transparent);
}

.hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
}

.hero-orbit::before,
.hero-orbit::after {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 17px currentColor;
    content: "";
}

.hero-orbit::before {
    top: -4px;
    left: 22%;
}

.hero-orbit::after {
    right: 18%;
    bottom: -4px;
}

.hero-orbit-one {
    width: 65%;
    aspect-ratio: 1;
    color: var(--cyan);
    transform: translate(-50%, -50%) rotate(30deg);
}

.hero-orbit-two {
    width: 48%;
    aspect-ratio: 1;
    color: var(--magenta);
    transform: translate(-50%, -50%) rotate(-42deg);
}

.hero-orbit-three {
    width: 31%;
    aspect-ratio: 1;
    color: var(--lime);
    transform: translate(-50%, -50%) rotate(68deg);
}

.hero-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--void);
    box-shadow: 0 0 20px currentColor;
}

.hero-node-one {
    top: 18%;
    left: 17%;
    color: var(--magenta);
}

.hero-node-two {
    right: 14%;
    bottom: 24%;
    color: var(--cyan);
}

.hero-node-three {
    bottom: 14%;
    left: 31%;
    color: var(--lime);
}

.hero-coordinates {
    position: absolute;
    top: 52px;
    right: 50px;
    color: var(--faint);
    font-size: 9px;
}

.hero-visual-label {
    position: absolute;
    bottom: 48px;
    left: 50px;
    color: var(--cyan);
    font-size: 9px;
}

.hero-visual-label::before {
    display: inline-block;
    width: 26px;
    height: 1px;
    margin: 0 10px 3px 0;
    background: var(--cyan);
    content: "";
}

.homepage-intro {
    padding-top: clamp(46px, 7vw, 88px);
    padding-bottom: 28px;
}

.homepage-intro h1 {
    margin: 19px 0 8px;
    color: var(--paper);
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.88;
    text-transform: uppercase;
}

.homepage-intro h1 span {
    color: var(--cyan);
    text-shadow: 0 0 26px rgba(103, 247, 255, 0.21);
}

.homepage-intro p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.4;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.section-rule {
    height: 1px;
    flex: 1;
    background: var(--line);
}

.section-count {
    color: var(--faint);
    white-space: nowrap;
}

.section-link {
    color: var(--cyan);
    display: inline-block;
    padding: 8px 0;
    transition: color 180ms ease;
}

.section-link:hover,
.section-link:focus-visible {
    color: var(--magenta);
}

.featured-section,
.latest-section,
.category-signal-section {
    padding-bottom: 48px;
}

.featured-section {
    padding-top: 0;
}

/* ------------------------------------------------------- practical tools */
/* One compact row so the two maintained tools are reachable from the feed
   without adding another full-height hero or a second marketing block. */
.tool-strip {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 22px 0 30px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 44px;
}

.tool-strip-label {
    margin: 0;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tool-strip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-strip-list a {
    display: inline-block;
    padding: 4px 0;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tool-strip-list a:hover,
.tool-strip-list a:focus-visible {
    border-bottom-color: var(--cyan);
    color: var(--cyan);
}

.featured-story {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    min-height: 340px;
    border: 1px solid var(--line);
    background: var(--ink);
}

.featured-art,
.story-card-art {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--void-soft);
}

.featured-art {
    height: 340px;
    min-height: 0;
}

.featured-art::after,
.story-card-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 45%, rgba(9, 13, 24, 0.38));
    content: "";
    pointer-events: none;
}

.featured-art img,
.story-card-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.featured-art img {
    object-fit: cover;
    transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 650ms ease;
}

.featured-art:hover img,
.featured-art:focus-visible img,
.story-card-art:hover img,
.story-card-art:focus-visible img {
    filter: saturate(1.2) contrast(1.05);
    transform: scale(1.045);
}

/* Photo labels sit on unpredictable backgrounds (including bright product shots),
   so they carry an opaque backing instead of relying on the photo's contrast. */
.art-corner {
    position: absolute;
    z-index: 1;
    padding: 5px 9px;
    background: rgba(9, 13, 24, 0.92);
    color: var(--paper);
    font-size: 9px;
}

.art-corner-top {
    top: 18px;
    left: 18px;
}

.art-corner-bottom {
    right: 18px;
    bottom: 18px;
    color: var(--cyan);
}

.featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 2.5vw, 32px);
    border-left: 3px solid var(--accent);
}

.story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--accent, var(--cyan));
    font-size: 9px;
}

.category-mark {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.meta-divider {
    color: var(--faint);
}

.featured-copy h2 {
    margin: 23px 0 18px;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.93;
}

.featured-copy h2 a,
.story-card h2 a {
    transition: color 180ms ease;
}

.featured-copy h2 a:hover,
.featured-copy h2 a:focus-visible,
.story-card h2 a:hover,
.story-card h2 a:focus-visible {
    color: var(--accent, var(--cyan));
}

.featured-copy p {
    max-width: 400px;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.42;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    width: fit-content;
    margin-top: 32px;
    color: var(--paper);
    font-size: 10px;
    transition: color 180ms ease, gap 180ms ease;
}

.text-link span {
    color: var(--cyan);
    font-size: 18px;
    line-height: 0;
}

.text-link:hover,
.text-link:focus-visible {
    gap: 23px;
    color: var(--cyan);
}

.story-grid {
    display: grid;
    gap: 14px;
}

.story-grid-four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card {
    min-width: 0;
}

.story-card-art {
    aspect-ratio: 1.46 / 1;
    border-bottom: 2px solid var(--accent);
}

.story-card-arrow {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 11px;
    color: var(--paper);
    font-size: 23px;
    line-height: 1;
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.story-card-art:hover .story-card-arrow,
.story-card-art:focus-visible .story-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.story-card-copy {
    padding-top: 17px;
}

.story-card h2 {
    margin: 12px 0 9px;
    color: var(--paper);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.98;
}

.story-card p {
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.43;
}

.category-signal-section {
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.channel-card {
    position: relative;
    display: flex;
    min-height: 205px;
    flex-direction: column;
    padding: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(17, 26, 44, 0.35);
    transition: background 180ms ease, transform 180ms ease;
}

.channel-card:hover,
.channel-card:focus-visible {
    z-index: 2;
    background: rgba(17, 26, 44, 0.85);
    transform: translateY(-4px);
}

.channel-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--channel-color);
    box-shadow: 0 0 16px color-mix(in srgb, var(--channel-color), transparent 50%);
    content: "";
}

.channel-index {
    color: var(--channel-color);
    font-size: 9px;
}

.channel-name {
    margin-top: auto;
    color: var(--paper);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.channel-description {
    max-width: 145px;
    margin-top: 13px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.25;
}

.channel-arrow {
    position: absolute;
    right: 17px;
    bottom: 15px;
    color: var(--channel-color);
    font-size: 21px;
}

.manifesto-section {
    display: grid;
    grid-template-columns: 0.3fr 1fr auto;
    align-items: center;
    gap: 36px;
    padding-bottom: 138px;
}

.manifesto-mark {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0;
}

.manifesto-mark span {
    color: var(--magenta);
}

.manifesto-copy {
    margin: 0;
    font-size: clamp(30px, 4vw, 55px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
    text-transform: uppercase;
}

.manifesto-copy em {
    color: var(--lime);
    font-family: var(--serif);
    font-size: 0.84em;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 8, 16, 0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.8fr;
    gap: 60px;
    padding-top: 58px;
    padding-bottom: 52px;
}

.footer-eyebrow {
    color: var(--cyan);
    font-size: 9px;
}

.footer-note {
    max-width: 340px;
    margin: 22px 0 20px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.36;
}

.footer-mail {
    display: inline-flex;
    gap: 18px;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 11px;
}

.footer-mail span {
    color: var(--magenta);
}

.footer-nav-block .nav-list {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-items: start;
    gap: 8px 26px;
    margin-top: 20px;
}

.footer-nav-block .nav-list a {
    padding: 8px 0;
    min-height: 24px;
    font-size: 9px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: var(--lime);
    font-size: 9px;
}

.footer-status-block p {
    max-width: 180px;
    margin: 18px 0 0;
    color: var(--faint);
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.35;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 18px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Article pages */
.article-main {
    padding-top: 72px;
}

.article-shell {
    max-width: 1050px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--faint);
    font-size: 9px;
}

.article-breadcrumb a {
    color: var(--cyan);
}

.article-header {
    max-width: 920px;
    padding: 70px 0 54px;
}

.article-header h1 {
    max-width: 960px;
    margin: 22px 0 22px;
    color: var(--paper);
    font-size: clamp(48px, 8vw, 102px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.87;
}

.article-dek {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: clamp(19px, 2.2vw, 25px);
    line-height: 1.34;
}

.article-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 33px;
    color: var(--faint);
    font-size: 9px;
}

.article-byline span:first-child {
    color: var(--paper);
}

.article-art {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--ink);
}

.article-art img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.article-art figcaption {
    display: block;
    margin-top: 6px;
    padding: 0;
    border-top: 0;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: none;
}

.article-credit {
    color: var(--muted);
    text-transform: none;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 90px;
    max-width: 910px;
    margin: 70px auto 0;
}

.entry-content {
    color: #c3cad5;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.68;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content p {
    margin: 0 0 26px;
}

.entry-content .lede {
    color: var(--paper);
    font-size: 24px;
    line-height: 1.42;
}

.entry-content h2 {
    margin: 60px 0 18px;
    color: var(--cyan);
    font-family: var(--sans);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.entry-content a {
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-color: rgba(103, 247, 255, 0.38);
    text-underline-offset: 4px;
}

.entry-content strong {
    color: var(--paper);
    font-family: var(--sans);
}

.x-post-embed {
    margin: 42px 0;
    overflow: hidden;
    background: #fff;
}

.x-post-embed iframe {
    display: block;
    width: 100%;
    max-width: 550px;
    height: 613px;
    margin: 0 auto;
    border: 0;
}

.x-post-embed-fallback {
    margin: 0 !important;
    padding: 11px 15px;
    background: #171717;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.article-rail {
    align-self: start;
    padding-top: 8px;
}

.rail-stamp {
    display: inline-block;
    padding: 10px 12px;
    border: 1px solid var(--magenta);
    color: var(--magenta);
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.9;
    transform: rotate(-5deg);
}

.rail-stamp span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

.rail-note {
    margin-top: 90px;
    padding-top: 14px;
    border-top: 1px solid var(--line-bright);
}

.rail-note-label {
    color: var(--lime);
    font-size: 9px;
}

.rail-note p {
    margin: 14px 0 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.35;
}

.related-section {
    margin-top: 120px;
    padding-bottom: 126px;
}

/* Archives and pages */
.archive-main,
.page-main,
.error-main {
    padding-top: 80px;
}

.archive-intro {
    padding-bottom: 80px;
}

.archive-intro-compact {
    padding-bottom: 55px;
}

.archive-intro h1,
.page-shell h1,
.error-shell h1 {
    max-width: 800px;
    margin: 24px 0 18px;
    color: var(--paper);
    font-size: clamp(58px, 8vw, 106px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.86;
    text-transform: uppercase;
}

.archive-intro h1 span {
    color: var(--magenta);
}

.archive-intro h1 .archive-title {
    color: var(--paper);
}

.archive-intro p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.4;
}

.archive-topics {
    padding-bottom: 54px;
}

.news-topic-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.news-topic-label {
    margin-right: 7px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-topic-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.news-topic-link:hover,
.news-topic-link:focus-visible,
.news-topic-link.is-active {
    border-color: var(--cyan);
    background: rgba(103, 247, 255, 0.08);
    color: var(--cyan);
}

.news-topic-count {
    color: var(--faint);
    font-size: 9px;
}

.news-topic-link.is-active .news-topic-count,
.news-topic-link:hover .news-topic-count,
.news-topic-link:focus-visible .news-topic-count {
    color: inherit;
}

.archive-listing {
    padding-bottom: 120px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-shell {
    max-width: 900px;
    padding-bottom: 150px;
}

.page-shell h1 {
    max-width: 750px;
}

.page-content {
    max-width: 650px;
    margin: 68px 0 0;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 50px 0;
    border-top: 1px solid var(--line);
}

.empty-state-mark {
    color: var(--magenta);
}

.empty-state p {
    color: var(--muted);
    font-family: var(--serif);
    font-size: 19px;
}

.error-shell {
    min-height: 560px;
    padding-top: 40px;
}

.error-code {
    color: var(--cyan);
    font-size: 14px;
}

.error-code span {
    color: var(--magenta);
}

.error-shell h1 {
    margin-top: 42px;
}

.error-shell p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 20px;
}

.error-shell .button {
    margin-top: 34px;
}

@media (max-width: 1020px) {
    .site-header-inner {
        gap: 22px;
    }

    .nav-list {
        gap: 15px;
    }

    .story-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .channel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .channel-card:last-child {
        grid-column: span 3;
    }

    .channel-card:last-child .channel-description {
        max-width: 320px;
    }
}

@media (max-width: 780px) {
    .container {
        width: min(calc(100% - 34px), var(--max-width));
    }

    .site-header-inner {
        min-height: 78px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-tagline {
        font-size: 7px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 14px 17px 20px;
        border-bottom: 1px solid var(--line-bright);
        background: rgba(9, 13, 24, 0.98);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .nav-list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .primary-nav .nav-list a {
        padding: 13px 0;
        border-bottom: 1px solid var(--line);
    }

    .search-toggle {
        padding-left: 12px;
    }

    .search-label,
    .search-key {
        display: none;
    }

    .hero-section {
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .hero-visual {
        min-height: min(112vw, 500px);
    }

    .featured-story {
        grid-template-columns: 1fr;
    }

    .featured-art {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .featured-copy {
        padding: 26px 22px 30px;
        border-top: 3px solid var(--accent);
        border-left: 0;
    }

    .story-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .channel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .channel-card:last-child {
        grid-column: span 2;
    }

    .manifesto-section {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 22px;
        padding-bottom: 100px;
    }

    .manifesto-section .text-link {
        margin-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 46px 28px;
    }

    .footer-brand-block {
        grid-column: span 2;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .article-rail {
        display: flex;
        align-items: flex-start;
        gap: 32px;
    }

    .rail-note {
        max-width: 230px;
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: clamp(52px, 17vw, 86px);
    }

    .homepage-intro h1 {
        font-size: clamp(49px, 15vw, 78px);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-note {
        display: block;
    }

    .section-heading {
        gap: 10px;
    }

    .section-count {
        font-size: 8px;
    }

    .story-grid-four,
    .story-grid-three {
        grid-template-columns: 1fr;
    }

    .channel-grid {
        grid-template-columns: 1fr;
    }

    .channel-card:last-child {
        grid-column: auto;
    }

    .featured-art {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    /* A flat 43px headline pushed long product titles to six or seven lines on a
       phone. Scale with the viewport, inside bounds, and keep the tight leading. */
    .featured-copy h2 {
        font-size: clamp(24px, 7.2vw, 31px);
        line-height: 1.02;
        margin: 16px 0 12px;
    }

    .article-main,
    .archive-main,
    .page-main,
    .error-main {
        padding-top: 45px;
    }

    .article-header {
        padding-top: 50px;
        padding-bottom: 40px;
    }

    .article-header h1 {
        font-size: clamp(49px, 15vw, 78px);
    }

    .article-art figcaption {
        flex-direction: column;
    }

    .article-layout {
        margin-top: 50px;
    }

    .entry-content {
        font-size: 18px;
    }

    .entry-content .lede {
        font-size: 21px;
    }

    .entry-content h2 {
        margin-top: 45px;
        font-size: 27px;
    }

    .article-rail {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand-block {
        grid-column: auto;
    }

    .footer-status-block {
        padding-top: 10px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        line-height: 1.4;
    }
}

/* ------------------------------------------------ large-screen scale */
/* Scale the layout on large viewports so 1440p+ screens aren't dominated by
   empty margins, and grow the nav menu. */
@media (min-width: 1600px) {
    :root {
        --max-width: 1298px;
        --content-width: 800px;
    }
    .primary-nav .nav-list a, nav .nav-list a {
        font-size: clamp(10px, 0.85vw + 5px, 15px);
    }
}
@media (min-width: 1920px) {
    :root {
        --max-width: 1416px;
        --content-width: 850px;
    }
}
@media (min-width: 2560px) {
    :root {
        --max-width: 1593px;
        --content-width: 900px;
    }
}


/* Responsive video embeds: full article width, 16:9 */
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="youtube-nocookie"],
.entry-content iframe[src*="vimeo"],
.entry-content iframe[src*="dailymotion"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-width: 100%;
}

/* Byline author link -> editorial desk page */
.article-byline a {
    color: inherit;
}
.article-byline a:hover {
    color: var(--accent);
    text-decoration: underline;
}
