/* ═══════════════════════════════════════════════════════
   EmetIntel stylesheet
   Built under DESIGN-BRIEF.md (build authority).
   Tokens: brief section 5. Signature: the Lantern Line
   (nav top border, article provenance hairline, nav-link
   hover underline) and nowhere else. All other rules use
   --line. Banned: R2 acid / glow / glass, R5 metallic
   gradient / serif display (brief section 3).
   ═══════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════
   Fonts (self-hosted WOFF2, no CDN)
   ═══════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Inter';
    src: url('fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ═══════════════════════════════════════════════════════
   Tokens (DESIGN-BRIEF section 5)
   ═══════════════════════════════════════════════════════ */

:root {
    /* Colour: six named hexes, no others. */
    --ground: #0a0f1c;
    --raised: #16203a;
    --ink: #f2f0ea;
    --ink-2: #9fb0c8;
    --gold: #e6b24e;
    --line: #22304d;
    --line-strong: #5a719c; /* identifying UI boundaries (form inputs): 3.90:1 on ground, 3.29:1 on raised */
    /* Derived washes of --gold (badge fill, link underline), not new hues. */
    --gold-wash: rgba(230, 178, 78, 0.10);
    --gold-quiet: rgba(230, 178, 78, 0.40);

    /* Type */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

    /* Major-third scale from 1rem */
    --step--1: 0.8rem;
    --step-0: 1rem;
    --step-1: 1.25rem;
    --step-2: 1.563rem;
    --step-3: 1.953rem;
    --step-4: 2.441rem;
    --step-5: 3.052rem;
    --step-6: 3.815rem;  /* hero only, above 1024px */

    --max-width: 1100px;
    --measure: 70ch;
}

/* ═══════════════════════════════════════════════════════
   Base typography
   ═══════════════════════════════════════════════════════ */

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--step-0);
    line-height: 1.65;
    background: var(--ground);
    color: var(--ink-2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}

h1 { font-weight: 700; letter-spacing: -0.01em; }
h2, h3 { letter-spacing: -0.01em; }

a { color: var(--gold); }

/* Visible keyboard focus on every interactive element. */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════
   Nav: carries the Lantern Line (gold 2px top border)
   ═══════════════════════════════════════════════════════ */

.nav {
    border-top: 2px solid var(--gold);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 2rem;
    background: var(--raised);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--step-1);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-brand:hover {
    color: var(--gold);
}

/* The wordmark's terminal period, per brief section 5 type plan. */
.brand-period {
    color: var(--gold);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

/* Lantern Line, second appearance: the underline that ignites on hover. */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════════ */

.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════
   Buttons (hero CTAs, subscribe submit)
   ═══════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--gold);
    color: var(--ground);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--ground);
    color: var(--gold);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   Hero: flat ground, solid ink headline, mono gold kicker
   (brief section 6: gradient clip and radial glow removed)
   ═══════════════════════════════════════════════════════ */

.hero {
    padding: 2.5rem 0 3.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}

.hero-kicker {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--step--1);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: var(--step-4);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
    max-width: 17ch;
    margin-bottom: 1.25rem;
}

.hero-mission {
    font-size: var(--step-1);
    color: var(--ink-2);
    max-width: 46ch;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 900px) {
    .hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        column-gap: 3rem;
    }

    .hero h1 {
        font-size: var(--step-5);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 0;
        min-width: 13rem;
    }
}

@media (min-width: 1025px) {
    .hero h1 {
        font-size: var(--step-6);
    }
}

/* ═══════════════════════════════════════════════════════
   Category cards (the NN // LABEL index devices)
   ═══════════════════════════════════════════════════════ */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    display: block;
    text-decoration: none;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.card-icon {
    display: block;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--step--1);
    color: var(--gold);
    letter-spacing: 0.14em;
    margin-bottom: 0.9rem;
}

.feature-card h3 {
    color: var(--ink);
    font-size: var(--step-1);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--ink-2);
}

/* ═══════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════ */

.footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 2rem;
    margin-top: auto;
    background: var(--raised);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-company {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.footer p {
    font-size: 0.9rem;
    color: var(--ink-2);
}

.footer-contact {
    margin-top: 0.5rem;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.footer-contact a:hover {
    border-bottom-color: var(--gold);
}

.footer-disclosure {
    max-width: 62ch;
    margin: 0.75rem auto 0;
    font-size: var(--step--1);
    line-height: 1.6;
    color: var(--ink-2);
}

.footer-meta {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--ink-2);
}

/* ═══════════════════════════════════════════════════════
   Badges
   ═══════════════════════════════════════════════════════ */

.badge {
    display: inline-block;
    padding: 0.35em 1em;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: var(--gold-wash);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   Articles index
   ═══════════════════════════════════════════════════════ */

.articles-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.articles-header h1 {
    font-size: var(--step-3);
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.articles-subtitle {
    color: var(--ink-2);
    font-size: var(--step-0);
    max-width: 62ch;
}

/* ── Category filter chips (mono) ── */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 4.5rem;
    padding: 0.35em 1.15em;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.category-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.category-tag.active {
    border-color: var(--gold);
    background: var(--gold-wash);
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   Ledger rows (articles index + home "latest")
   Brief layout: single-column rows, not a card wall.
   ═══════════════════════════════════════════════════════ */

.article-list {
    display: flex;
    flex-direction: column;
}

.article-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
    background: none;
    border-radius: 0;
}

.article-title {
    font-size: var(--step-1);
    line-height: 1.3;
    margin: 0;
}

.article-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card:hover .article-title a,
.article-title a:hover {
    color: var(--gold);
}

.article-summary {
    color: var(--ink-2);
    font-size: var(--step-0);
    line-height: 1.65;
    max-width: var(--measure);
    margin: 0;
}

/* ── Mono meta line (shared: rows, provenance) ── */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: var(--step--1);
    line-height: 1.4;
    color: var(--ink-2);
    margin: 0;
}

.article-meta time,
.reading-time,
.source-agent {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--ink-2);
}

.article-category {
    display: inline-block;
    padding: 0.25em 0.7em;
    border-radius: 4px;
    background: var(--gold-wash);
    color: var(--gold);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}

a.article-category {
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
    /* 44px hit target without growing the visual badge */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin: -10px 0;
}

a.article-category:hover {
    border-color: var(--gold);
}

/* ── Tags ── */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
}

.tag {
    display: inline-block;
    padding: 0.2em 0.6em;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-2);
}

/* Ledger rows put the mono meta in a right-hand rail on wide screens. */
@media (min-width: 768px) {
    .article-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
        column-gap: 2.5rem;
    }

    .article-card .article-meta {
        grid-column: 2;
        grid-row: 1 / span 3;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.4rem;
        text-align: right;
    }

    .article-card .article-title { grid-column: 1; grid-row: 1; }
    .article-card .article-summary { grid-column: 1; grid-row: 2; }
    .article-card .article-tags { grid-column: 1; grid-row: 3; }
}

/* ── Empty state ── */
.no-articles {
    color: var(--ink-2);
    padding: 2.5rem 0;
    font-size: var(--step-0);
}

/* ═══════════════════════════════════════════════════════
   Pagination
   ═══════════════════════════════════════════════════════ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.pagination a:hover {
    border-bottom-color: var(--gold);
}

.pagination-next {
    margin-left: auto;
}

.page-info {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--ink-2);
}

/* ═══════════════════════════════════════════════════════
   Article detail
   ═══════════════════════════════════════════════════════ */

.article-detail {
    max-width: var(--measure);
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-header h1 {
    font-size: var(--step-4);
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

/* Lantern Line, third appearance: the gold hairline the
   provenance block sits on. No other gold rules exist. */
.article-provenance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--gold);
}

.article-provenance .article-meta {
    gap: 0.75rem;
}

/* ── Article body typography (70ch measure) ──
   Body h1 sits a step below the page h1: bodies arriving from the
   publish API sometimes repeat their own title, and the page title
   must stay dominant. */
.article-body {
    max-width: var(--measure);
    color: var(--ink-2);
    font-size: var(--step-0);
    line-height: 1.75;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: var(--ink);
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.article-body h1 { font-size: var(--step-3); }
.article-body h2 { font-size: var(--step-2); border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; }
.article-body h3 { font-size: var(--step-1); }
.article-body h4 { font-size: var(--step-0); }

.article-body p {
    margin-bottom: 1.1rem;
}

.article-body strong {
    color: var(--ink);
    font-weight: 600;
}

.article-body a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: var(--gold-quiet);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.article-body a:hover {
    text-decoration-color: var(--gold);
}

.article-body ul,
.article-body ol {
    margin: 0.75rem 0 1.1rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.35rem;
}

.article-body blockquote {
    border-left: 2px solid var(--line);
    padding: 0.5rem 1.25rem;
    margin: 1.25rem 0;
    background: var(--raised);
    border-radius: 0 4px 4px 0;
    color: var(--ink-2);
}

.article-body pre {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 0.1em 0.4em;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

.article-body table {
    /* block + overflow keeps wide markdown tables scrollable inside their own
       box at 375px instead of panning the whole page (quality floor). */
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.article-body th,
.article-body td {
    border: 1px solid var(--line);
    padding: 0.55rem 0.85rem;
    text-align: left;
}

.article-body th {
    background: var(--raised);
    color: var(--ink);
    font-weight: 600;
}

.article-body hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2rem 0;
}

.article-footer {
    max-width: var(--measure);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.article-nav {
    max-width: var(--measure);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.article-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-nav a:hover {
    border-bottom-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   Latest articles (homepage band)
   ═══════════════════════════════════════════════════════ */

.latest-articles {
    margin-top: 3.5rem;
}

.latest-articles-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.latest-articles-header h2 {
    font-size: var(--step-2);
    color: var(--ink);
    margin: 0;
}

.view-all {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.view-all:hover {
    border-bottom-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   Contact
   ═══════════════════════════════════════════════════════ */

.contact-page {
    max-width: 720px;
    margin: 0 auto;
}

.contact-page > h1 {
    font-size: var(--step-3);
    margin-bottom: 0.5rem;
}

.contact-intro {
    color: var(--ink-2);
    margin-bottom: 2rem;
    max-width: 60ch;
}

.contact-panel {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.contact-panel h2 {
    font-size: var(--step-1);
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.contact-panel p {
    color: var(--ink-2);
    margin-bottom: 0.75rem;
    max-width: 60ch;
}

.contact-panel p:last-of-type {
    margin-bottom: 0;
}

.contact-panel a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: var(--gold-quiet);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.contact-panel a:hover {
    text-decoration-color: var(--gold);
}

/* ── Subscribe form ── */
.subscribe-form {
    margin-top: 1.25rem;
    max-width: 26rem;
}

.subscribe-form label {
    display: block;
    font-size: var(--step--1);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.subscribe-form input[type="email"] {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    background: var(--ground);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    transition: border-color 0.2s ease;
}

.subscribe-form input[type="email"]:hover {
    border-color: var(--gold);
}

.subscribe-form input[type="email"]:focus-visible {
    border-color: var(--gold);
}

.subscribe-form button {
    margin-top: 0.85rem;
}

/* Honeypot: removed from view without display:none, so assistive
   tech and autofill treat it the way the API expects. */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.subscribe-status {
    margin-top: 0.85rem;
    min-height: 1.5rem;
    font-size: 0.9rem;
    color: var(--ink-2);
}

/* ═══════════════════════════════════════════════════════
   Error pages
   ═══════════════════════════════════════════════════════ */

.error-page {
    max-width: 60ch;
    margin: 0 auto;
    padding: 3rem 0;
}

/* Rendered as <p class="error-code">: the selector must out-rank
   .error-page p or the gold and margin silently lose to it. */
.error-page p.error-code,
.error-code {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--step-4);
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.error-page h1 {
    font-size: var(--step-2);
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--ink-2);
    margin-bottom: 0.75rem;
}

.error-page a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: var(--gold-quiet);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.error-page a:hover {
    text-decoration-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   Motion
   No entrance reveals: content is never opacity-0 while waiting for an
   animation (headless capture, including the site's own verify pipeline,
   shoots before entrances complete). Motion here is hover/focus
   transitions only; DESIGN-BRIEF amendment 2026-08-08.
   ═══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .nav { padding: 0.5rem 1rem; }
    .nav-inner { gap: 0.5rem; }
    .nav-links { gap: 1rem; }
    .content { padding: 2rem 1rem; }
    .footer { padding: 2rem 1rem; }

    .hero { padding: 1.5rem 0 2.5rem; margin-bottom: 2rem; }
    .hero h1 { font-size: var(--step-3); max-width: none; }
    .hero-mission { font-size: var(--step-0); }
    .hero-actions .btn { width: 100%; }

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

    .articles-header h1 { font-size: var(--step-2); }
    .article-header h1 { font-size: var(--step-2); }
    .article-title { font-size: var(--step-0); }
    .article-detail { padding: 0; }
    .article-body pre { font-size: 0.8rem; }
    .contact-panel { padding: 1.25rem; }
    .error-code { font-size: var(--step-3); }
}

/* ── CVE section (stack-class coverage map) ── */
.cve-disclaimer {
    max-width: 70ch;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--ink-2);
}

.cve-map .feature-card h2 {
    font-size: var(--step-1);
    margin: 0.5rem 0;
}

.class-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold);
}

.class-empty {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--ink-2);
}

.cve-all {
    margin: 2rem 0;
}

.stack-filter {
    margin-top: 0.5rem;
}
