/* ChainBrief — editorial layout. White paper, black ink, grey metadata. */

:root {
    --ink: #000000;
    --paper: #ffffff;
    --muted: #6b7280;
    --muted-dark: #4b5563;
    --line: #e5e7eb;
    --line-dark: #111111;
    --wash: #f7f7f5;
    --green: #047857;
    --red: #b91c1c;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --max: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* A very quiet remote atmosphere behind the editorial grid. */
.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=2000&h=1200&q=70&sat=-100");
    background-position: center 24%;
    background-size: cover;
    filter: grayscale(1) contrast(0.75) brightness(1.1);
    mix-blend-mode: multiply;
}

.has-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);
}

.has-reveal .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1),
        transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

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

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

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

::selection {
    background: #000;
    color: #fff;
}

:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
}

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

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

/* ---------------------------------------------------------------- Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(130%) blur(10px);
    transition: box-shadow 0.35s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.045);
}

.header-inner {
    max-width: var(--max);
    min-height: 70px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    display: inline-block;
    width: 11px;
    height: 11px;
    background: #000;
    flex: 0 0 auto;
}

.brand-word {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 27px;
    min-height: 70px;
}

.primary-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 70px;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: #171717;
}

.primary-nav a:hover {
    text-decoration: none;
    color: #000;
}

.primary-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #000;
}

.search-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    color: #111;
}

.search-link:hover {
    border-color: #d1d5db;
    text-decoration: none;
}

/* --------------------------------------------------------- Market ticker */

.market-strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.market-strip-inner {
    max-width: var(--max);
    height: 38px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.market-strip-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #111;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
    animation: live-pulse 2.4s ease-in-out infinite;
}

.ticker-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 110s linear infinite;
    will-change: transform;
}

.market-strip:hover .ticker-track,
.market-strip:focus-within .ticker-track {
    animation-play-state: paused;
}

.ticker-spacer {
    flex: 0 0 42px;
}

.ticker-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 17px;
    border-right: 1px solid var(--line);
    color: #111;
    font-size: 11.5px;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ticker-item:hover {
    text-decoration: none;
    background: #fafafa;
}

.ticker-symbol {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.ticker-price {
    font-weight: 600;
}

.ticker-change {
    font-size: 10.5px;
    font-weight: 650;
}

.ticker-change.is-up {
    color: var(--green);
}

.ticker-change.is-down {
    color: var(--red);
}

.market-strip-meta {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.market-strip-meta:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes image-settle {
    from { transform: scale(1.045); }
    to { transform: scale(1); }
}

/* ------------------------------------------------------------------ Home */

main {
    position: relative;
    z-index: 1;
    display: block;
}

.edition-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-lead {
    display: grid;
    grid-template-columns: minmax(0, 2.08fr) minmax(280px, 0.92fr);
    gap: 46px;
    padding: 38px 0 46px;
    border-bottom: 1px solid var(--line);
}

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

.lead-media {
    display: block;
    margin-bottom: 22px;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 16 / 9;
}

.lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: image-settle 16s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.lead-story h1 {
    margin: 10px 0 16px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.044em;
    font-weight: 790;
    max-width: 900px;
}

.lead-story h1 a:hover {
    text-decoration: none;
    text-decoration-thickness: 2px;
    text-decoration-line: underline;
    text-underline-offset: 5px;
}

.lead-dek {
    margin: 0 0 18px;
    max-width: 730px;
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.48;
    color: var(--muted-dark);
    letter-spacing: -0.01em;
}

.eyebrow {
    display: inline-block;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.115em;
    line-height: 1.2;
    text-transform: uppercase;
}

a.eyebrow:hover {
    color: #000;
    text-decoration: none;
}

.meta {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
    letter-spacing: 0.005em;
}

.meta .sep {
    display: inline-block;
    margin: 0 7px;
    color: #c4c7cd;
}

/* Right rail */

.rail {
    min-width: 0;
    border-left: 1px solid var(--line);
    padding-left: 32px;
    display: flex;
    flex-direction: column;
}

.rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
    padding-bottom: 13px;
    border-bottom: 2px solid #000;
}

.rail-head h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.rail-head span {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.rail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rail-list li {
    padding: 19px 0 20px;
    border-bottom: 1px solid var(--line);
}

.rail-list li:last-child {
    border-bottom: 0;
}

.rail-list h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.022em;
    font-weight: 700;
}

.rail-list h3 a:hover {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

.rail-list .meta {
    font-size: 11.5px;
}

.rail-note {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.rail-note p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.rail-note a {
    color: var(--muted-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Latest news grid */

.latest {
    padding: 39px 0 68px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 13px;
    border-bottom: 2px solid #000;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 820;
    letter-spacing: -0.035em;
}

.section-head a {
    font-size: 12px;
    font-weight: 650;
    color: var(--muted-dark);
    white-space: nowrap;
}

.section-head a:hover {
    color: #000;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 42px;
}

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

.card-media {
    display: block;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 16 / 9;
    margin-bottom: 15px;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.story-card:hover .card-media img {
    transform: scale(1.022);
}

.card-title {
    margin: 8px 0 9px;
    font-size: 20.5px;
    line-height: 1.24;
    letter-spacing: -0.028em;
    font-weight: 720;
}

.card-title a:hover {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

.card-dek {
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: var(--muted-dark);
    font-size: 14px;
    line-height: 1.5;
}

.story-card .meta {
    font-size: 11.5px;
}

.story-card--related .card-title {
    font-size: 18.5px;
    margin-top: 10px;
}

.explainers {
    padding: 0 0 72px;
}

.explainers .section-head {
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------- Article */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 90;
    pointer-events: none;
    background: transparent;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #000;
}

.article-header {
    max-width: 930px;
    margin: 0 auto;
    padding: 48px 0 30px;
    text-align: left;
}

.article-header h1 {
    margin: 13px 0 17px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 820;
}

.article-dek {
    margin: 0 0 26px;
    max-width: 820px;
    color: var(--muted-dark);
    font-family: var(--serif);
    font-size: 23px;
    line-height: 1.42;
    letter-spacing: -0.014em;
}

.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.article-byline {
    margin: 0;
    color: var(--muted-dark);
    font-size: 12.5px;
    line-height: 1.5;
}

.article-byline strong {
    color: var(--ink);
    font-weight: 650;
}

.share {
    display: flex;
    align-items: center;
    gap: 7px;
}

.share-label {
    margin-right: 3px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.share a,
.share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid #d7d9de;
    background: #fff;
    cursor: pointer;
}

.share a:hover,
.share button:hover {
    background: #000;
    border-color: #000;
    color: #fff;
    text-decoration: none;
}

.article-hero {
    max-width: 1120px;
    margin: 0 auto 44px;
}

.article-hero .hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f3f4f6;
    animation: image-settle 16s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.article-hero figcaption {
    margin-top: 9px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.74;
    letter-spacing: -0.003em;
}

.article-body > p:first-child {
    font-size: 21px;
    line-height: 1.63;
}

.article-body p {
    margin: 0 0 1.3em;
}

.article-body h2 {
    margin: 2.05em 0 0.62em;
    font-size: 27px;
    line-height: 1.18;
    letter-spacing: -0.033em;
    font-weight: 790;
}

.article-body h3 {
    margin: 1.8em 0 0.5em;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.article-body blockquote {
    margin: 1.9em 0;
    padding: 2px 0 2px 21px;
    border-left: 3px solid #000;
    font-size: 23px;
    line-height: 1.42;
    letter-spacing: -0.025em;
}

.article-body blockquote p {
    margin: 0;
}

.article-body ul {
    margin: 0 0 1.4em;
    padding-left: 1.25em;
}

.article-body li {
    margin-bottom: 0.45em;
}

.article-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.source-note {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted-dark);
    font-size: 13px;
    line-height: 1.55;
}

.source-note strong {
    color: #000;
    font-weight: 700;
}

.source-note a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.disclaimer {
    max-width: 720px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.related {
    padding: 54px 0 72px;
}

.related .section-head {
    margin-bottom: 24px;
}

/* ------------------------------------------------------- Category / pages */

.page-shell {
    padding: 46px 0 72px;
}

.page-header {
    max-width: 820px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

.page-header h1 {
    margin: 9px 0 10px;
    font-size: clamp(32px, 4.8vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.042em;
    font-weight: 820;
}

.page-header p {
    margin: 0;
    color: var(--muted-dark);
    font-size: 17px;
    line-height: 1.55;
    max-width: 690px;
}

.page-header .meta {
    margin-top: 15px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 42px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 50px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted-dark);
    font-size: 12.5px;
}

.pagination a {
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.empty-state {
    max-width: 660px;
    padding: 68px 0 100px;
}

.empty-state h1 {
    margin: 8px 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.empty-state p {
    color: var(--muted-dark);
    font-size: 17px;
}

.empty-state a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Search */

.search-box {
    max-width: 730px;
    padding: 20px 0 10px;
}

.search-form {
    display: flex;
    gap: 0;
    border: 1px solid #000;
}

.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 51px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000;
    font-size: 17px;
    outline: none;
    appearance: none;
}

.search-form button {
    flex: 0 0 auto;
    height: 51px;
    padding: 0 24px;
    border: 0;
    border-left: 1px solid #000;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.search-form button:hover {
    background: #262626;
}

.search-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* Static editorial pages */

.prose-page {
    max-width: 760px;
    padding: 48px 0 76px;
}

.prose-page h1 {
    margin: 8px 0 22px;
    font-size: clamp(34px, 4.5vw, 50px);
    line-height: 1.05;
    letter-spacing: -0.043em;
}

.prose-page h2 {
    margin: 2em 0 0.6em;
    font-size: 23px;
    letter-spacing: -0.025em;
}

.prose-page p,
.prose-page li {
    color: #262626;
    font-size: 17px;
    line-height: 1.7;
}

.prose-page p {
    margin: 0 0 1.2em;
}

.prose-page ul {
    padding-left: 1.2em;
}

.prose-page a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-page .lede {
    color: #111;
    font-size: 20px;
    line-height: 1.55;
}

.note-box {
    margin: 28px 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    background: var(--wash);
    font-size: 14px;
    line-height: 1.6;
}

.note-box p:last-child {
    margin-bottom: 0;
}

/* Videos / Learn */

.section-intro {
    max-width: 700px;
    margin-bottom: 34px;
    color: var(--muted-dark);
    font-size: 17px;
    line-height: 1.6;
}

.empty-panel {
    padding: 42px 34px;
    border: 1px solid var(--line);
    background: var(--wash);
    max-width: 760px;
}

.empty-panel h2 {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.empty-panel p {
    margin: 0 0 14px;
    color: var(--muted-dark);
    font-size: 15px;
    line-height: 1.6;
}

.empty-panel p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------- Footer */

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    border-top: 1px solid #000;
    padding: 45px 0 22px;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 44px;
}

.brand--footer .brand-word {
    font-size: 20px;
}

.footer-brand p {
    max-width: 360px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 22px;
    padding-top: 4px;
}

.footer-nav a {
    color: var(--muted-dark);
    font-size: 12px;
}

.footer-nav a:hover {
    color: #000;
}

.footer-bottom {
    max-width: var(--max);
    margin: 34px auto 0;
    padding: 17px 28px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    color: #8a8f98;
    font-size: 11px;
    line-height: 1.5;
}

/* -------------------------------------------------------------- Responsive */

@media (max-width: 1050px) {
    .home-lead {
        grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
        gap: 34px;
    }

    .rail {
        padding-left: 26px;
    }

    .rail-list h3 {
        font-size: 17px;
    }

    .card-grid,
    .archive-grid {
        column-gap: 24px;
        row-gap: 36px;
    }

    .card-title {
        font-size: 19px;
    }
}

@media (max-width: 900px) {
    .home-lead {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 30px;
    }

    .rail {
        border-left: 0;
        border-top: 2px solid #000;
        padding-left: 0;
        padding-top: 0;
    }

    .rail-head {
        border-bottom: 1px solid var(--line);
        padding-top: 15px;
    }

    .rail-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .rail-list li {
        border-bottom: 0;
        padding: 16px 0 0;
    }

    .rail-list h3 {
        font-size: 17px;
    }

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

    .article-header {
        padding-top: 38px;
    }
}

@media (max-width: 760px) {
    .container,
    .header-inner,
    .footer-inner,
    .footer-bottom,
    .market-strip-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .market-strip-inner {
        height: 35px;
        gap: 13px;
    }

    .market-strip-label span:last-child {
        display: none;
    }

    .market-strip-meta {
        display: inline;
        font-size: 8px;
        letter-spacing: 0.04em;
    }

    .meta-window {
        display: none;
    }

    .ticker-item {
        padding: 0 14px;
        font-size: 11px;
    }

    .atmosphere {
        display: none;
    }

    .edition-line {
        padding-top: 18px;
        font-size: 9.5px;
        letter-spacing: 0.1em;
    }

    .edition-line span:last-child {
        display: none;
    }

    .lead-dek {
        font-size: 18px;
    }

    .article-dek {
        font-size: 20px;
    }

    .explainers {
        padding-bottom: 54px;
    }

    .header-inner {
        min-height: 61px;
        gap: 16px;
        flex-wrap: wrap;
        padding-top: 11px;
        padding-bottom: 0;
    }

    .brand-word {
        font-size: 21px;
    }

    .primary-nav {
        order: 3;
        width: 100%;
        min-height: 42px;
        gap: 24px;
        overflow-x: auto;
        border-top: 1px solid var(--line);
        scrollbar-width: none;
    }

    .primary-nav::-webkit-scrollbar {
        display: none;
    }

    .primary-nav a {
        min-height: 42px;
        font-size: 12.5px;
        white-space: nowrap;
    }

    .primary-nav a.is-active::after {
        bottom: 0;
        height: 2px;
    }

    .search-link {
        width: 34px;
        height: 34px;
    }

    .home-lead {
        padding: 24px 0 36px;
    }

    .lead-story h1 {
        font-size: clamp(31px, 8.8vw, 40px);
    }

    .lead-dek {
        font-size: 16.5px;
    }

    .rail-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rail-list li {
        border-bottom: 1px solid var(--line);
        padding: 15px 0;
    }

    .rail-list li:last-child {
        border-bottom: 0;
    }

    .latest {
        padding: 30px 0 52px;
    }

    .section-head h2 {
        font-size: 20px;
    }

    .card-grid,
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .card-title {
        font-size: 21px;
    }

    .article-header {
        padding: 30px 0 24px;
    }

    .article-header h1 {
        font-size: clamp(33px, 9.4vw, 44px);
        line-height: 1.04;
    }

    .article-dek {
        font-size: 18px;
    }

    .article-meta-row {
        align-items: flex-start;
    }

    .article-hero {
        margin-bottom: 30px;
    }

    .article-hero figcaption {
        padding: 0 2px;
    }

    .article-body {
        font-size: 18px;
        line-height: 1.7;
    }

    .article-body > p:first-child {
        font-size: 19.5px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .article-body blockquote {
        font-size: 20px;
    }

    .related {
        padding: 42px 0 56px;
    }

    .page-shell {
        padding: 34px 0 56px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 26px;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .container,
    .header-inner,
    .footer-inner,
    .footer-bottom {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lead-story h1 {
        font-size: 30px;
    }

    .article-header h1 {
        font-size: 31px;
    }

    .search-form {
        flex-wrap: wrap;
        border: 0;
        gap: 8px;
    }

    .search-form input[type="search"] {
        flex-basis: 100%;
        border: 1px solid #000;
    }

    .search-form button {
        width: 100%;
        border: 1px solid #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .ticker-track {
        animation: none !important;
        transform: none !important;
    }

    .ticker-viewport {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .has-reveal .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .atmosphere {
        display: none;
    }
}

@media print {
    .site-header,
    .share,
    .site-footer,
    .related {
        display: none !important;
    }

    .article-body {
        max-width: 100%;
        font-size: 12pt;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}
