/* Headline — original black-and-white news theme for Ghost (big headlines, big images). MIT.
   Layout patterns inspired by modern newsroom indexes; all CSS written from scratch. */

/* Inter (OFL), self-hosted. Unicode-range excludes CJK punctuation so Chinese text keeps full-width marks from the CJK font. */
@font-face { font-family: "Headline Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-2013, U+2015-2017, U+201A, U+201E-2025, U+2027-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Headline Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }

:root {
    --bg: #ffffff;
    --ink: #000000;
    --ink-2: #5e5e5e;
    --ink-3: #8a8a8a;
    --line: #e5e5e5;
    --soft: #f3f3f3;
    --soft-2: #ebebeb;
    --media: #f3f3f3; /* letterbox colour behind images shown with object-fit: contain */
    --code: #111111;
    --accent: #000000;

    --sans: "Headline Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    --font-heading: var(--gh-font-heading, var(--sans));
    --font-body: var(--gh-font-body, var(--sans));
    --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, "Noto Sans Mono CJK SC", monospace;

    --w-container: 1376px;
    --w-text: 780px;
    --w-media: 1200px;
    --gutter: clamp(24px, 2.25vw, 32px);
    --radius: 6px;
    --header-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --card-ratio: 16 / 9;
}
.ratio-43 { --card-ratio: 4 / 3; }
.ratio-11 { --card-ratio: 1 / 1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
    font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(0, 0, 0, .14); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { width: 100%; max-width: calc(var(--w-container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 40px; font-size: 13px; font-weight: 500; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; }
.wordmark-logo { display: block; flex: none; width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.wordmark-logo--full { width: auto; height: 28px; max-width: 180px; border-radius: 0; }
.wordmark-text { overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; align-items: center; min-width: 0; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 7px 12px; border-radius: 40px; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background-color .15s, color .15s; }
.nav a:hover { background: var(--soft); }
.nav .is-current a { background: var(--soft); }
.nav-cta { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: rgba(0, 0, 0, .72); transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 40px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; white-space: nowrap; transition: background-color .15s, color .15s, opacity .15s; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #2b2b2b; }
.btn-soft, .btn-outline { background: var(--soft); color: var(--ink); }
.btn-soft:hover, .btn-outline:hover { background: var(--soft-2); }
.btn-block { width: 100%; height: 48px; font-size: 15px; }
.menu-toggle { display: none; position: relative; }
.menu-toggle span { position: absolute; left: 11px; top: 50%; width: 18px; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform .2s var(--ease); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }

/* ---------- Shared bits ---------- */
.kicker { display: flex; gap: 8px; margin: 0 0 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.kicker a { color: var(--ink); }
.kicker a:hover { text-decoration: underline; text-underline-offset: .2em; }
.kicker span { color: var(--ink-3); }
.meta-line { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink-2); letter-spacing: 0; }
.meta-tag { color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.text-link:hover { color: var(--ink-2); }
.page-title { margin: 0; font-family: var(--font-heading); font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1.16; letter-spacing: -0.03em; }
.page-title--xl { font-size: clamp(40px, 5vw, 72px); line-height: 1.06; letter-spacing: -0.035em; }
.page-desc { margin: 18px 0 0; max-width: 720px; font-size: 17px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.page-desc .count { color: var(--ink); font-weight: 500; white-space: nowrap; }
.page-desc a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Hero (featured story) ---------- */
.hero { padding-top: clamp(32px, 5vw, 72px); }
.hero-link { display: block; }
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); grid-template-areas: "meta meta" "title side" "title cta"; column-gap: clamp(32px, 5vw, 96px); align-items: end; }
.hero-text .meta-line { grid-area: meta; margin-bottom: 20px; }
.hero-title { grid-area: title; grid-row: 2 / span 2; margin: 0; font-family: var(--font-heading); font-size: clamp(38px, 5vw, 76px); font-weight: 500; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.hero-excerpt { grid-area: side; margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-cta { grid-area: cta; justify-self: start; margin-top: 20px; }
.hero-media { margin: clamp(32px, 4vw, 48px) 0 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--media); }
/* Images are never cropped: fixed 16:9 frames use contain + light-grey letterbox */
.hero-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-link:hover .hero-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.hero-link:hover .hero-cta { background: #2b2b2b; }

/* Chinese word-aware wrapping (set by main.js when Intl.Segmenter exists) */
.is-segmented { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- Listing: title + category tabs + grid ---------- */
.listing { padding-top: clamp(72px, 9vw, 128px); }
.listing--page { padding-top: clamp(40px, 6vw, 88px); }
.page-intro { margin-bottom: clamp(36px, 4vw, 56px); }
.listing-head { margin-bottom: clamp(36px, 4.5vw, 64px); }
.listing-head .page-title { margin-bottom: 20px; }
.listing-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tabs { position: relative; display: flex; gap: 6px 26px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 6px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: rgba(0, 0, 0, .55); white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tool-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 40px; font-size: 14px; font-weight: 500; color: var(--ink); transition: background-color .15s; }
.tool-btn:hover { background: var(--soft); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) 24px; }
.card-link { display: block; }
.card-media { margin: 0 0 16px; aspect-ratio: var(--card-ratio); overflow: hidden; border-radius: var(--radius); background: var(--media); }
.card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: opacity .2s; }
.card-link:hover .card-media img { opacity: .92; }
.card-title { margin: 0 0 10px; font-family: var(--font-heading); font-size: 18px; font-weight: 500; line-height: 1.38; letter-spacing: -0.015em; text-wrap: pretty; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.pagination { margin-top: clamp(56px, 6vw, 88px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pagination > :first-child { justify-self: start; }
.pagination > :last-child { justify-self: end; }

/* ---------- Article ---------- */
.article { padding-top: clamp(40px, 6vw, 88px); }
.article-header { max-width: calc(1040px + var(--gutter) * 2); text-align: center; }
.article-meta { margin: 0 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.article-meta a { color: var(--ink-2); }
.article-meta a:hover { color: var(--ink); }
.article-title { margin: 0; font-family: var(--font-heading); font-weight: 500; font-size: clamp(34px, 4.8vw, 68px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.article-dek { margin: 24px auto 0; max-width: 680px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.article-byline { margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 14px; color: var(--ink-2); }
.article-byline a { color: var(--ink); font-weight: 500; }
.article-byline a:hover { text-decoration: underline; text-underline-offset: .2em; }
.sep { color: var(--ink-3); }
.article-image { margin: clamp(40px, 5vw, 64px) auto 0; max-width: calc(var(--w-media) + var(--gutter) * 2); }
.article-image img { width: 100%; height: auto; border-radius: var(--radius); background: var(--media); } /* natural aspect ratio */
.article-image figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* Prose — Chinese-first sans reading */
.prose { max-width: calc(var(--w-text) + var(--gutter) * 2); margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gutter); font-family: var(--font-body); font-size: 17px; line-height: 1.85; color: #161616; letter-spacing: .005em; overflow-wrap: break-word; line-break: strict; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.3em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-heading); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.prose h2 { margin-top: 2.2em; font-size: 28px; line-height: 1.32; }
.prose h3 { margin-top: 1.9em; font-size: 21px; line-height: 1.42; letter-spacing: -0.01em; }
.prose h4 { margin-top: 1.7em; font-size: 17px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(0, 0, 0, .35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote:not([class]) { margin: 2em 0; padding: 0 0 0 1.2em; border-left: 2px solid var(--ink); font-size: 1.1em; line-height: 1.75; color: var(--ink); }
.prose hr { border: 0; margin: 3em 0; height: 1px; background: var(--line); }
.prose code:not(pre code) { font-family: var(--mono); font-size: .84em; padding: .14em .4em; border-radius: 4px; background: var(--soft); letter-spacing: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose pre { font-family: var(--mono); font-size: 14px; line-height: 1.7; padding: 20px 22px; border-radius: var(--radius); background: var(--code); color: #ededed; overflow-x: auto; letter-spacing: 0; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { border-radius: var(--radius); }
.prose img { height: auto; max-width: 100%; }
/* Galleries: Ghost lays rows out with object-fit: cover — show whole images instead */
.prose .kg-gallery-image img { object-fit: contain; background: var(--media); }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-2); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { border-bottom-color: var(--ink); font-weight: 600; }
.prose .kg-callout-card, .prose .kg-toggle-card { border-radius: var(--radius); }
.prose .kg-bookmark-container { border-radius: var(--radius); color: var(--ink); text-decoration: none; }

/* Koenig widths (required by Ghost) */
.kg-width-wide { position: relative; width: min(1200px, calc(100vw - var(--gutter) * 2)); left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full img { border-radius: 0 !important; }

.article-footer { max-width: calc(var(--w-text) + var(--gutter) * 2); margin: 64px auto 0; padding: 0 var(--gutter); }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.article-tags span { margin-right: 6px; }
.article-tags a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 40px; background: var(--soft); color: var(--ink); font-weight: 500; transition: background-color .15s; }
.article-tags a:hover { background: var(--soft-2); }
.article-comments { max-width: calc(var(--w-text) + var(--gutter) * 2); margin: 48px auto 0; padding: 0 var(--gutter); }

.related { margin-top: clamp(80px, 9vw, 128px); }
.related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.related-head h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }

.page-article .prose { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Footer (light) ---------- */
.site-footer { margin-top: clamp(96px, 11vw, 160px); background: var(--bg); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; padding: 56px 0 64px; }
.footer-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.footer-desc { margin: 10px 0 0; max-width: 360px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-col h3 { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col ul + ul { margin-top: 12px; }
.footer-col .nav { flex-direction: column; gap: 12px; }
.footer-col .nav a, .footer-col a { display: inline; padding: 0; border-radius: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink); transition: color .15s; }
.footer-col a:hover, .footer-col .nav a:hover { color: var(--ink-2); background: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.footer-bottom a { color: var(--ink-2); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Error ---------- */
.error-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.error-page .btn { margin-top: 24px; }

/* ---------- Reading progress ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.reading-progress-bar { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform .12s linear; will-change: transform; }

/* ---------- Table of contents ---------- */
.article-body { position: relative; margin-top: clamp(40px, 5vw, 64px); --toc-w: clamp(180px, calc((100vw - var(--w-text)) / 2 - 72px), 240px); }
.article-body > .prose { margin-top: 0; }
.toc[hidden] { display: none !important; }
.toc-title { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.toc-nav ol { list-style: none; margin: 0; padding: 0; }
.toc-nav li { margin: 0; }
.toc-nav a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; transition: color .15s, border-color .15s; }
.toc-nav a:hover { color: var(--ink); }
.toc-nav .toc-h3 a { padding-left: 28px; font-size: 13px; color: var(--ink-3); }
.toc-nav a.is-active { color: var(--ink); font-weight: 500; border-left-color: var(--ink); }
.toc-side { display: none; position: absolute; top: 0; bottom: 0; width: var(--toc-w); left: calc(50% - var(--w-text) / 2 - var(--toc-w) - 40px); }
.toc-sticky { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; scrollbar-width: thin; }
.toc-sticky .toc-title { margin-bottom: 12px; }
.toc-sticky .toc-nav ol { border-left: 1px solid var(--line); }
.toc-inline { max-width: calc(var(--w-text) + var(--gutter) * 2); margin: 0 auto 32px; padding: 0 var(--gutter); }
.toc-inline summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; height: 48px; border-radius: var(--radius); background: var(--soft); cursor: pointer; list-style: none; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary .toc-title { font-size: 14px; color: var(--ink); }
.toc-chevron { width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.toc-inline[open] .toc-chevron { transform: translateY(2px) rotate(-135deg); }
.toc-inline .toc-nav { padding: 12px 0 4px 4px; }
.toc-inline .toc-nav ol { border-left: 1px solid var(--line); }
@media (min-width: 1240px) {
    .toc-side { display: block; }
    .toc-inline { display: none !important; }
    .has-toc .kg-width-wide { width: max(var(--w-text), min(1200px, calc(100vw - (var(--toc-w) + 56px) * 2))); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-text { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "side" "cta"; }
    .hero-title { grid-row: auto; }
    .hero-excerpt { margin-top: 20px; max-width: 680px; }
}
@media (max-width: 960px) {
    :root { --header-h: 56px; }
    .header-cta { display: none; }
    /* backdrop-filter would make the header the containing block of the fixed menu overlay */
    .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .menu-toggle { display: inline-block; }
    .header-actions { gap: 0; margin-right: -8px; }
    .site-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0; padding: 20px var(--gutter) 40px;
        flex-direction: column; align-items: stretch; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
        opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .18s var(--ease), visibility .18s;
    }
    .nav-open { overflow: hidden; }
    .nav-open .site-header { border-bottom-color: transparent; background: var(--bg); }
    .nav-open .site-nav { opacity: 1; pointer-events: auto; visibility: visible; }
    .site-nav .nav { flex-direction: column; gap: 0; }
    .site-nav .nav a { display: block; padding: 10px 0; border-radius: 0; background: none; font-size: 30px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
    .site-nav .nav .is-current a { background: none; color: var(--ink); }
    .site-nav .nav a:hover { background: none; color: var(--ink-2); }
    .site-nav .nav li:not(.is-current) a { color: var(--ink); }
    .nav-cta { display: block; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
    .nav-open .menu-toggle span:first-child { transform: rotate(45deg); }
    .nav-open .menu-toggle span:last-child { transform: rotate(-45deg); }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .wordmark { font-size: 16px; }
    .hero-cta { display: none; }
    .listing-tools { gap: 12px; }
    .listing-tools .tool-btn span { display: none; }
    .listing-tools .tool-btn { width: 40px; padding: 0; justify-content: center; }
    .tabs { margin-left: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: 8px; gap: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
    .listing-tools { align-items: flex-start; }
    .tab { font-size: 16px; }
    .grid { grid-template-columns: 1fr; gap: 48px; }
    .card-title { font-size: 17px; }
    .article-header { text-align: left; }
    .article-meta, .article-byline { justify-content: flex-start; }
    .article-dek { margin-left: 0; }
    .prose { font-size: 16.5px; line-height: 1.85; }
    .prose h2 { font-size: 23px; }
    .prose h3 { font-size: 19px; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .pagination { grid-template-columns: 1fr 1fr; }
    .pagination .page-number { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto !important; } }
