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

:root {
    --bg: #050608;
    --card-bg: rgba(255, 255, 255, .04);
    --card-bg-hover: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .08);
    --border-card: rgba(255, 255, 255, .07);
    --border-card-hover: rgba(255, 255, 255, .12);
    --text: #ffffff;
    --text-body: rgba(255, 255, 255, .85);
    --text-secondary: rgba(255, 255, 255, .65);
    --text-tertiary: rgba(255, 255, 255, .45);
    --accent: #e8a34c;
    --font-body: 'Space Grotesk', -apple-system, system-ui, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --max-width: 1440px;
    --gutter: 48px;
    --article-width: 720px;
    --header-height: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #f0b96e; }

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Kickers (mono data labels) ===== */
.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
}
.kicker-label {
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}
.kicker-date {
    font-weight: 500;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .6);
}
.kicker-divider {
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, .3);
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

/* On the homepage and article pages the header floats over the hero */
body.home .header {
    position: absolute;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
}

body.has-hero .header {
    position: absolute;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(5, 6, 8, .75), transparent);
    border-bottom: none;
}
body.has-hero .header-inner { height: 80px; }
body.has-hero .main { padding-top: 0; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
body.home .header-inner { height: 80px; }

.logo {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 22px;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.logo:hover { color: var(--text); }

.header-right { display: flex; align-items: center; gap: 32px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}
.nav a:hover { color: var(--text); }

.nav-cta {
    background: var(--accent);
    color: var(--bg);
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    white-space: nowrap;
    transition: filter .2s;
}
.nav-cta:hover { filter: brightness(1.08); color: var(--bg); }

.nav a.lang-switch { letter-spacing: .05em; }

/* Burger — two bars (mock 6d) folding into an X */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 10px 6px; }
.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: .3s;
}
.burger span + span { margin-top: 4px; }
.burger--open span:nth-child(1) { transform: rotate(45deg) translate(2px, 2px); }
.burger--open span:nth-child(2) { transform: rotate(-45deg) translate(2px, -2px); }

/* ===== Main ===== */
.main { flex: 1; padding: 2rem 0; }
body.home .main { padding-top: 0; }

/* ===== Home hero — Photo of the Day, full-bleed (mock 6c) ===== */
.home-hero {
    position: relative;
    height: min(88vh, 760px);
    overflow: hidden;
    background: var(--bg);
}

.home-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease-out;
}
.home-hero:hover .home-hero-img { transform: scale(1.03); }

.home-hero-scrim {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 400px;
    background: linear-gradient(to top, #050608 6%, transparent);
    pointer-events: none;
}

.home-hero-bottom {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 44px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.home-hero-caption {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Caption is the display line — the photo has no title */
.home-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -0.028em;
}
.home-hero-title a { color: var(--text); }
.home-hero-title a:hover { color: var(--text); }

.ghost-pill {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 12px 22px;
    border-radius: 100px;
    white-space: nowrap;
    transition: border-color .2s;
}
.ghost-pill:hover { border-color: rgba(255, 255, 255, .6); color: var(--text); }

/* ===== Section head ===== */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 64px 0 28px;
}
body:not(.home) .section-head { padding-top: 16px; }

.section-head-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -0.02em;
}

.section-head-meta {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* ===== Lead article card (mock 6c: the only item with an excerpt) ===== */
.lead-card {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
}

.lead-card-link {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    color: inherit;
}
.lead-card-link:hover { color: inherit; }

.lead-card-media {
    position: relative;
    min-height: 340px;
    overflow: hidden;
}

.lead-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease-out;
}
.lead-card:hover .lead-card-img { transform: scale(1.03); }

.lead-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 38px 36px;
}

.lead-card-date {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--accent);
}

.lead-card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--text);
}

.lead-card-dek {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .66);
}

.lead-card-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-top: 4px;
}

/* ===== Article list — title + date rows, two columns (mock 6c) ===== */
.article-rows {
    columns: 2;
    column-gap: var(--gutter);
    padding-top: 36px;
}

.article-row {
    break-inside: avoid;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.article-row-link {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 18px;
    align-items: baseline;
    padding: 17px 0;
    color: inherit;
}
.article-row-link:hover { color: inherit; }

.article-row-date {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}
.article-row--new .article-row-date { color: var(--accent); }

.article-row-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 17.5px;
    line-height: 1.35;
    color: var(--text);
    transition: color .2s;
}
.article-row-link:hover .article-row-title { color: var(--accent); }

.compact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    transition: background .2s, border-color .2s;
}
.compact-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-card-hover);
}

.compact-card-link {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px;
    color: inherit;
    height: 100%;
}
.compact-card-link:hover { color: inherit; }

.compact-thumb {
    flex: none;
    width: 120px;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
}

.compact-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.compact-kicker {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.compact-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    color: var(--text);
}

/* ===== More grid (older articles / inner pages) ===== */
.more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.more-grid:first-child { margin-top: 0; }

/* ===== Articles grid (tag pages) ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    transition: background .2s, border-color .2s;
}
.card:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-card-hover);
}

.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }

.card-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease-out;
}
.card:hover .card-img { transform: scale(1.03); }

.card-body { padding: 1rem 1.25rem 1.15rem; }

.card-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.tag-badge {
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

/* ===== Pagination (mock 6c: info left, amber pill right) ===== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 20px;
    padding: 30px 0 44px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-link {
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s, filter .2s;
}
.pagination-link--ghost {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .3);
    color: var(--text);
}
.pagination-link--ghost:hover { border-color: rgba(255, 255, 255, .6); color: var(--text); }
.pagination-link--solid {
    padding: 11px 22px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
}
.pagination-link--solid:hover { filter: brightness(1.08); color: var(--bg); }

.pagination-info {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-tertiary);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ===== Article Detail (mock 6a: full-bleed hero, title overlaid) ===== */
.article-hero {
    position: relative;
    height: min(70vh, 660px);
    overflow: hidden;
    background: #000;
}

.article-hero-zoom {
    position: absolute;
    inset: 0;
    display: block;
    cursor: zoom-in;
}

.article-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-scrim {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 430px;
    background: linear-gradient(to top, #050608 5%, rgba(5, 6, 8, .7) 45%, transparent);
    pointer-events: none;
}

/* Title column overlays the hero; clicks fall through to the zoom link
   except on interactive elements */
.article-hero-content {
    position: absolute;
    left: 0; right: 0; bottom: 40px;
    margin: 0 auto;
    width: 100%;
    max-width: calc(820px + 2 * var(--gutter));
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    pointer-events: none;
}
.article-hero-content a { pointer-events: auto; }

.article-hero-date {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .16em;
    color: var(--accent);
}
.article-hero-date--plain {
    font-size: 11px;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .55);
}

.article-source-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-source-label {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.source-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid rgba(232, 163, 76, .4);
    padding: 7px 14px;
    border-radius: 100px;
    transition: border-color .2s;
}
.source-pill:hover { border-color: rgba(232, 163, 76, .8); color: var(--accent); }
.source-pill-arrow { font-size: 11px; }

/* Digest hero (mock 6b): lower, amber badge, smaller title */
.article-hero--digest { height: 360px; }
.article-hero--digest .article-hero-scrim {
    height: 260px;
    background: linear-gradient(to top, #050608 6%, transparent);
}
.article-hero--digest .article-title {
    font-size: 38px;
    line-height: 1.06;
    letter-spacing: -0.028em;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.digest-badge {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--accent);
    padding: 5px 10px;
    border-radius: 4px;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 1000;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}
.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

/* 720px reading measure once the .container gutters are subtracted */
.article-container { max-width: calc(var(--article-width) + 2 * var(--gutter)); padding-top: 52px; }
/* Related + prev/next span wider than the text column (mock 6a: ~1100px canvas) */
.article-footer-container { max-width: 1100px; }

.article-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.article-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 54px;
    line-height: 1.03;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--text);
}

/* Photo page keeps a smaller headline (captions are long) + mono meta row */
.photo-page .article-title { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; }

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 12px;
    letter-spacing: .06em;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.tag-link {
    background: rgba(232, 163, 76, .1);
    color: var(--accent);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
}
.tag-link:hover { background: rgba(232, 163, 76, .2); }

.article-body {
    font-size: 17.5px;
    line-height: 1.78;
    color: rgba(255, 255, 255, .74);
}
.article-body p { margin-bottom: 20px; text-wrap: pretty; }
.article-body > p:first-child {
    font-size: 21px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
}
.article-body a { text-decoration: underline; }
.article-body b, .article-body strong { font-weight: 600; color: var(--text); }

.article-body h2, .article-body h3 {
    font-family: var(--font-display);
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.022em;
    margin: 46px 0 16px;
}
.article-body h2 { font-size: 30px; }
.article-body h3 { font-size: 24px; }
.article-body h2:first-child, .article-body h3:first-child { margin-top: 0; }

/* Science-notation chips (z=10, β_UV ≈ -2.4) */
.article-body code {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 15.5px;
    color: #f0c078;
    background: rgba(232, 163, 76, .1);
    padding: 1px 6px;
    border-radius: 4px;
}

/* Quote / key-idea callout: amber bar + display type (mock 6a) */
.article-body blockquote {
    margin: 40px 0 34px;
    padding: 2px 0 2px 20px;
    border-left: 2px solid var(--accent);
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 25px;
    line-height: 1.35;
    letter-spacing: -0.015em;
}
.article-body blockquote p { font: inherit; margin: 0; color: inherit; }
.article-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .5);
}
.article-body blockquote cite::before { content: "— "; }

/* ===== Digest body — numbered ТОП-5 (mock 6b) ===== */
.digest-body { display: block; }

.digest-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.digest-item:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .1); }

.digest-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(232, 163, 76, .85);
}

.digest-item-body h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.28;
    letter-spacing: -0.015em;
}
.digest-body .digest-item-body p {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .68);
    margin-bottom: 12px;
}
.digest-body .digest-item-body p:last-child { margin-bottom: 0; }

.digest-body p.digest-more { margin: 2px 0 0; }
.digest-more a {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 163, 76, .35);
    padding-bottom: 2px;
}
.digest-more a:hover { border-bottom-color: var(--accent); }

.explore-try-link {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}
.explore-try-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.explore-try-link a:hover { text-decoration: underline; }

/* ===== Photo Detail ===== */
.photo-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #000;
}

.photo-hero-img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.photo-credit {
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 10px;
    letter-spacing: .06em;
}

/* ===== Related articles ===== */
.related {
    margin-top: 3rem;
}

.related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
}

.related-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.related-all {
    flex: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}
.related-all-arrow { font-size: 12px; }

.related .more-grid { margin-top: 0; gap: 14px; }
.related .compact-card-link { gap: 16px; padding: 13px; }
.related .compact-thumb { width: 118px; height: 84px; }
.related .compact-body { gap: 6px; }
.related .compact-title { font-size: 16.5px; line-height: 1.32; transition: color .2s; }
.related .compact-kicker { font-weight: 500; letter-spacing: .14em; color: var(--accent); }
.related .compact-card-link:hover .compact-title { color: var(--accent); }

/* ===== Article Nav (prev/next) — one split bar ===== */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.article-nav-prev {
    padding: 24px 32px 24px 0;
    border-right: 1px solid rgba(255, 255, 255, .1);
}
.article-nav-prev:last-child { border-right: none; }

.article-nav-next {
    grid-column: 2;
    align-items: flex-end;
    text-align: right;
    padding: 24px 0 24px 32px;
}

.article-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.article-nav-arrow { color: var(--accent); }

.article-nav-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    line-height: 1.28;
    letter-spacing: -0.012em;
    color: var(--text);
    transition: color .2s;
}
.article-nav-link:hover .article-nav-title { color: var(--accent); }

/* ===== Page Header (tags, archive) ===== */
.page-header { margin-bottom: 2rem; padding-top: 1rem; }
.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.section { margin-bottom: 2.5rem; }
.section-title {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

/* ===== Archive ===== */
.archive-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.archive-chip {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color .2s, border-color .2s;
}
.archive-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .5); }
.archive-chip.active {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}
.archive-chip.active:hover { color: var(--bg); }

.archive-nav { margin-bottom: 2.5rem; }
.archive-nav-year {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.25rem 0;
}
.archive-nav-year-label {
    font-family: var(--font-display);
    font-weight: 800;
    min-width: 3rem;
}
.archive-nav-months {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.85rem;
}
.archive-nav-month {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--text-tertiary);
}
.archive-nav-month:hover { color: var(--accent); }

.archive-month {
    margin-bottom: 2rem;
    scroll-margin-top: var(--header-height);
}
.archive-month-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    background: var(--bg);
    z-index: 10;
}

.archive-list { list-style: none; }
.archive-item {
    display: flex;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.archive-date {
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 12px;
    min-width: 3.5rem;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.archive-link {
    color: var(--text);
    font-size: 0.95rem;
}
.archive-link:hover { color: var(--accent); }

.empty-state {
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem 0;
    font-size: 1.1rem;
}

/* ===== CTA Block (mock 6a: amber-tinted row) ===== */
.cta-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    margin: 48px 0 0;
    background: linear-gradient(90deg, rgba(232, 163, 76, .08), rgba(232, 163, 76, .02));
    border: 1px solid rgba(232, 163, 76, .28);
    border-radius: 16px;
}

.cta-text {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.cta-block .cta-button {
    flex: none;
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 12px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    transition: filter .2s;
}
.cta-block .cta-button:hover { filter: brightness(1.08); color: var(--bg); }

/* ===== Footer ===== */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 28px;
    padding-bottom: 28px;
}

.footer-credit {
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    font-weight: 500;
}
.footer-links a:hover { color: var(--text); }

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

/* ===== Tablet ===== */
@media (max-width: 1024px) {
    .home-hero-title { font-size: 34px; }
    .lead-card-title { font-size: 26px; }
    .lead-card-body { padding: 28px 26px; }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    :root { --gutter: 20px; --header-height: 56px; }

    .header-inner { height: var(--header-height); }
    body.home .header-inner { height: 64px; }

    .logo { font-size: 18px; }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem var(--gutter) 1.25rem;
        gap: 1rem;
    }
    .nav--open { display: flex; }
    .burger { display: block; }

    .header-right { gap: 14px; }
    .nav a { padding: 4px 0; }
    .nav-cta { font-size: 12px; padding: 8px 14px; }

    .home-hero { height: 500px; }
    .home-hero-scrim { height: 320px; }
    .home-hero-bottom {
        bottom: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 11px;
    }
    .home-hero-caption { gap: 11px; }
    .home-hero-title { font-size: 25px; line-height: 1.15; letter-spacing: -0.025em; }
    .kicker { font-size: 10px; gap: 9px; }
    .ghost-pill { font-size: 13px; padding: 11px 18px; margin-top: 4px; }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 28px 0 14px;
    }
    .section-head-title { font-size: 23px; }
    .section-head-meta { font-size: 10px; }

    .lead-card { border-radius: 14px; }
    .lead-card-link { grid-template-columns: 1fr; }
    .lead-card-media { min-height: 180px; height: 180px; }
    .lead-card-body { padding: 16px 18px 18px; gap: 9px; }
    .lead-card-date { font-size: 10px; }
    .lead-card-title { font-size: 21px; line-height: 1.18; letter-spacing: -0.02em; }
    .lead-card-dek { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .62); }
    .lead-card-more { display: none; }

    .article-rows { columns: 1; padding-top: 24px; }
    .article-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .article-row-link { grid-template-columns: 52px 1fr; gap: 14px; padding: 15px 0; }
    .article-row-date { font-size: 11px; }
    .article-row-title { font-size: 15.5px; }

    .pagination { margin-top: 0; padding: 22px 0 30px; border-top: none; }
    .pagination-info { font-size: 11px; }
    .pagination-link--solid { font-size: 13px; padding: 11px 20px; }
    .pagination-link--ghost { font-size: 13px; padding: 10px 16px; }

    .compact-card { border-radius: 12px; }
    .compact-card-link { gap: 12px; padding: 12px; }
    .compact-thumb { width: 92px; height: 72px; border-radius: 8px; }
    .compact-title { font-size: 14px; }
    .compact-kicker { font-size: 9px; }

    .more-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }

    .articles-grid { grid-template-columns: 1fr; gap: 16px; }

    body.has-hero .header-inner { height: 64px; }

    .article-hero { height: 420px; }
    .article-hero--digest { height: 300px; }
    .article-hero-scrim { height: 300px; }
    .article-hero--digest .article-hero-scrim { height: 220px; }
    .article-hero-content { bottom: 20px; gap: 12px; }

    .article-title { font-size: 28px; line-height: 1.08; letter-spacing: -0.028em; }
    .article-hero--digest .article-title { font-size: 24px; }
    .article-hero-date { font-size: 10px; }
    .source-pill { font-size: 12px; padding: 8px 14px; }

    .article-container { padding-top: 24px; }
    .article-body { font-size: 16px; line-height: 1.75; }
    .article-body > p:first-child { font-size: 18px; line-height: 1.6; }
    .article-body p { margin-bottom: 16px; }
    .article-body h2 { font-size: 23px; margin: 30px 0 12px; }
    .article-body h3 { font-size: 19px; }
    .article-body code { font-size: 14px; padding: 1px 5px; }
    .article-body blockquote { font-size: 19px; line-height: 1.32; padding-left: 16px; margin: 28px 0 24px; }

    .article-tags { margin-top: 28px; }

    .cta-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 20px;
        margin-top: 30px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(232, 163, 76, .09), rgba(232, 163, 76, .02));
    }
    .cta-text { font-size: 15px; }
    .cta-block .cta-button { font-size: 13px; padding: 11px 20px; }

    .digest-item { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; }
    .digest-num { font-size: 28px; }
    .digest-item-body h2 { font-size: 18px; margin: 0 0 8px; }
    .digest-body .digest-item-body p { font-size: 15px; }

    .related-head { padding-bottom: 18px; }
    .related-title { font-size: 24px; }
    .related .compact-thumb { width: 92px; height: 72px; }
    .related .compact-title { font-size: 14px; }
    .related .compact-body { gap: 5px; }

    .article-nav { grid-template-columns: 1fr; margin-top: 28px; }
    .article-nav-prev {
        padding: 20px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .article-nav-prev:last-child { border-bottom: none; }
    .article-nav-next { grid-column: 1; padding: 20px 0; }
    .article-nav-link { gap: 8px; }
    .article-nav-label { font-size: 9.5px; }
    .article-nav-title { font-size: 17px; }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 22px;
        padding-bottom: 28px;
    }
    .footer-links { gap: 18px; }
    .footer-links a { font-size: 12px; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
}
