/* Riso Press — a Ghost theme printed in two inks.
   Ink one prints text, rules and photo shadows; ink two prints offset outlines and accents. */

:root {
    --ink-1: #2F4DA0;
    --ink-2: #F15A24;
    --paper: #F7F5EF;
    --ink: color-mix(in oklab, var(--ink-1) 62%, #000);
    --ink-2-text: color-mix(in oklab, var(--ink-2) 74%, #000);
    --ink-2-tint: color-mix(in oklab, var(--ink-2) 36%, var(--paper));
    --wash: color-mix(in srgb, var(--ink-1) 8%, transparent);
    --display: var(--gh-font-heading, "Archivo"), "Noto Sans TC", "Noto Sans SC", sans-serif;
    --serif: var(--gh-font-body, "Source Serif 4"), "Noto Serif TC", "Noto Serif SC", Georgia, serif;
    --zh: "Noto Serif TC", "Noto Serif SC", "Songti TC", serif;
    --zh-display: "Noto Sans TC", "Noto Sans SC", sans-serif;
    --gutter: max(16px, 3vw);
    color-scheme: light;
}
:lang(zh-Hans) { --zh: "Noto Serif SC", "Noto Serif TC", "Songti SC", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    background-color: var(--paper);
    background-image: var(--grain, none);
    background-size: 180px 180px;
    color: var(--ink);
    font-family: var(--serif);
    font-optical-sizing: auto;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink-2); color: var(--paper); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
[lang|="zh"] { font-family: var(--zh); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 999px; }
.skip-link:focus { top: 12px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.pill, .btn, .issue, .fig, .hero-cap, .foot, .nb-k, .nb-none, .index-head h2, .row-meta, .lead-m, .pg {
    font-family: var(--display);
    font-stretch: 125%;
    text-transform: uppercase;
}
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border: 2px solid var(--ink-1);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-1);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
a.pill, button.pill { min-height: 42px; padding: 0 18px; cursor: pointer; }
.pill[aria-current="page"] { background: var(--ink-1); color: var(--paper); }
.pill.is-fill { background: var(--ink-1); color: var(--paper); }
.pill.is-or { border-color: var(--ink-2); color: var(--ink-2-text); }
/* Hover colours apply on devices with a pointer. */
@media (hover: hover) {
    a.pill:hover, button.pill:hover { background: var(--ink-1); color: var(--paper); }
    .pill.is-fill:hover { background: var(--ink); border-color: var(--ink); }
    a.pill.is-or:hover { background: var(--ink-2); color: var(--paper); }
}
button.pill[aria-pressed="true"] { background: var(--ink-1); color: var(--paper); }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    cursor: pointer;
}
@media (hover: hover) { .btn:hover { background: var(--paper); color: var(--ink); } }

/* Misregistration: the second ink prints an outline a hair off the first. */
.mis { position: relative; display: inline-block; isolation: isolate; }
.mis::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: max(1.5px, .02em) var(--ink-2);
    pointer-events: none;
    transform: translate(.045em, .05em);
    animation: register .9s cubic-bezier(.3, 1.4, .5, 1) .15s both;
}
@keyframes register { from { transform: translate(.16em, -.07em); } to { transform: translate(.045em, .05em); } }

/* Duotone photos (rendered once by main.js) and crop marks */
.duo { position: relative; overflow: hidden; background: var(--paper); }
.duo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo img:not(.is-duo) { filter: grayscale(1) contrast(1.1); }
.duo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle, rgba(247, 245, 239, .4) 0 .9px, transparent 1.3px) 0 0 / 4px 4px; }
.print {
    --c: var(--ink-1);
    display: block;
    padding: 16px;
    background-image: linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
    background-repeat: no-repeat;
    background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px;
    background-position: 0 15px, 15px 0, 100% 15px, calc(100% - 15px) 0, 0 calc(100% - 15px), 15px 100%, 100% calc(100% - 15px), calc(100% - 15px) 100%;
}
.print img { display: block; width: 100%; height: auto; }

/* ---------- Navigation ---------- */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 14px; border-bottom: 2px solid var(--ink-1); }
.logo { display: block; line-height: 0; text-decoration: none; }
.logo img { height: 64px; width: auto; margin: -12px 0 -12px -12px; }
.logo-text { display: block; overflow: hidden; font-family: var(--display); font-stretch: 125%; font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.issue { white-space: nowrap; }
@media (max-width: 979px) { .nav:has(.logo-text) .issue { display: none; } .logo-text { font-size: 20px; } }
.issue { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-1); }
.navlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.nav-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 640px) { .issue { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(440px, 52vw, 640px); margin-top: 32px; }
.hero-img { position: absolute; top: 0; bottom: 0; left: var(--gutter); right: var(--gutter); }
.hero-img img { object-position: 50% 74%; }
.crop { position: absolute; z-index: 2; width: 18px; height: 18px; border: 0 solid var(--ink-2); }
.crop-tl { top: -10px; left: calc(var(--gutter) - 10px); border-top-width: 2px; border-left-width: 2px; }
.crop-br { bottom: -10px; right: calc(var(--gutter) - 10px); border-bottom-width: 2px; border-right-width: 2px; }
.hero-in { position: relative; z-index: 2; padding: clamp(20px, 4vw, 56px); }
.quote { margin: 0; color: var(--paper); font-family: var(--display); font-stretch: 125%; font-size: clamp(40px, 7vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.quote[lang|="zh"] { font-family: "Noto Serif TC", "Noto Serif SC", serif; font-size: clamp(min(54px, (100vw - 76px) / (var(--chars, 5) * 1.04)), 11.4vw, 164px); font-weight: 900; line-height: 1.04; letter-spacing: .02em; text-transform: none; }
.quote .mis { display: block; width: fit-content; }
.quote[lang|="zh"] .mis { white-space: nowrap; }
.hero-cap { margin: 16px 0 0; color: var(--paper); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; }
/* No cover image: the masthead prints straight onto the paper. */
.hero.hero-plain { min-height: 0; }
.hero-plain .hero-in { padding-inline: 0; }
.hero-plain .quote { color: var(--ink); }
.hero-plain .hero-cap { color: var(--ink-1); }
.hero-plain .crop { display: none; }

/* ---------- Lead story ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 80px; }
.lead.no-img { grid-template-columns: minmax(0, 1fr); }
.lead-img { text-decoration: none; }
.lead-img .duo { aspect-ratio: 4 / 3; }
.lead-img img { object-position: 50% 30%; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lead-t { margin: 22px 0 0; font-family: var(--display); font-stretch: 125%; font-size: clamp(30px, 3.7vw, 52px); font-weight: 800; line-height: .98; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.lead-t a { text-decoration: none; }
.lead-t a:hover { text-decoration: underline; text-decoration-color: var(--ink-2); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.lead-x { max-width: 32em; margin: 18px 0 26px; font-size: 19px; line-height: 1.55; }
.lead-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lead-m { color: var(--ink-1); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
@media (max-width: 820px) { .lead { grid-template-columns: 1fr; margin-top: 56px; } }

/* ---------- Index ---------- */
.index { margin-top: 104px; }
.index-head { display: flex; align-items: center; gap: 14px; }
.index-head h2 { margin: 0; color: var(--ink-1); font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.index-rule { flex: 1; height: 2px; background: var(--ink-1); }
.rows { margin: 8px 0 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) auto; gap: 8px 28px; align-items: start; padding: 22px 0 24px; border-bottom: 2px solid var(--ink-1); color: var(--ink); text-decoration: none; }
.no { color: transparent; font-family: var(--display); font-stretch: 125%; font-size: 44px; font-weight: 800; line-height: .86; -webkit-text-stroke: 1.5px var(--ink-2); font-variant-numeric: tabular-nums; transition: color .2s; }
.row:hover .no { color: var(--ink-2); }
.row-main { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.row-t { font-family: var(--display); font-stretch: 125%; font-size: clamp(20px, 2.1vw, 27px); font-weight: 800; line-height: 1.02; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; }
.row-t[lang|="zh"] { font-family: var(--zh-display); font-weight: 900; letter-spacing: .05em; }
.row:hover .row-t { text-decoration: underline; text-decoration-color: var(--ink-2); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.row-x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 44em; font-size: 16px; line-height: 1.5; }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-top: 3px; color: var(--ink-1); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; white-space: nowrap; }
.row-meta b, .row-meta .is-zh { color: var(--ink-2-text); font-weight: 800; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.pg { color: var(--ink-1); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
@media (max-width: 820px) {
    .row { grid-template-columns: 3.2rem minmax(0, 1fr); }
    .no { font-size: 30px; }
    .row-meta { grid-column: 2; flex-direction: row; gap: 14px; align-items: baseline; }
}

/* ---------- Subscribe band ---------- */
.sub { margin-top: 104px; border-block: 2px solid var(--ink-2); background-color: var(--ink-2-tint); background-image: radial-gradient(circle, color-mix(in srgb, var(--ink-2) 32%, transparent) 0 1px, transparent 1.4px); background-size: 5px 5px; }
.sub-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 56px; align-items: end; padding-block: 56px 48px; }
.sub-h { grid-column: 1; margin: 0; font-family: var(--display); font-stretch: 125%; font-size: clamp(34px, 5vw, 64px); font-weight: 800; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.sub-f { grid-column: 2; align-self: center; }
.sub-form { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-form input { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 17px; }
.note { margin: 10px 0 0 22px; font-size: 14px; display: none; }
.sub-form[data-state="success"] { display: none; }
.sub-form[data-state="success"] ~ .note-success { display: block; margin-left: 0; font-size: 17px; }
.sub-form[data-state="error"] ~ .note-error { display: block; color: var(--ink-2-text); }
.go-busy { display: none; }
[data-state="loading"] .go-idle { display: none; }
[data-state="loading"] .go-busy { display: inline; }
@media (max-width: 820px) { .sub-in { grid-template-columns: 1fr; } .sub-f { grid-column: 1; grid-row: auto; } }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-block: 28px 48px; color: var(--ink-1); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; }
.foot p { margin: 0; }
.foot > p:last-child { margin-left: auto; }

.foot .nav-list { gap: 6px; }
.foot .nav-list .pill { min-height: 32px; padding: 0 12px; font-size: 10.5px; }
.reg { flex: none; width: 22px; height: 22px; color: var(--ink-2); }

/* ---------- Post ---------- */
.phead { margin-top: 56px; }
.phead.err { margin-bottom: 80px; }
.lang { display: inline-flex; gap: 6px; }
.ptitle { max-width: 14em; margin: 24px 0 0; font-family: var(--display); font-stretch: 125%; font-size: clamp(38px, 6.4vw, 90px); font-weight: 800; line-height: .94; letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; }
.ptitle [lang|="zh"] { font-family: var(--zh-display); font-weight: 900; letter-spacing: .03em; line-height: 1.1; }
.dek { max-width: 32em; margin: 26px 0 0; font-size: clamp(19px, 2vw, 23px); font-style: italic; line-height: 1.45; }
.dek[lang|="zh"] { font-style: normal; }
.feature { margin-top: 44px; margin-bottom: 0; }
.feature .duo { aspect-ratio: 16 / 9; }
.feature .duo img { object-position: 50% 35%; }
figcaption { margin-top: 6px; font-size: 15px; font-style: italic; line-height: 1.5; }
.feature figcaption, .gh-content figcaption { padding-inline: 16px; }
.fig { margin-right: 10px; color: var(--ink-2-text); font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: .1em; }

.gh-content { max-width: 732px; margin: 56px auto 0; padding-inline: 16px; font-size: 19px; line-height: 1.62; }
.gh-content > *, .gh-content .lang-block > * { margin: 0 0 1em; }
.gh-content > p:first-child::first-letter, .gh-content .lang-block[lang="en"] > p:first-child::first-letter { float: left; margin: .08em .1em 0 0; color: var(--ink-2); font-family: var(--display); font-stretch: 125%; font-size: 3.6em; font-weight: 800; line-height: .8; }
.post[lang|="zh"] .gh-content > p:first-child::first-letter { float: none; margin: 0; color: inherit; font: inherit; }
.gh-content :is(h2, h3) { margin: 2.1em 0 .6em; font-family: var(--display); font-stretch: 125%; font-weight: 800; line-height: 1.06; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; }
.gh-content h2 { font-size: 24px; }
.gh-content h3 { font-size: 19px; }
.gh-content h2::before { content: ""; display: block; width: 44px; height: 7px; margin-bottom: 14px; background: var(--ink-2); }
.gh-content :is(h2, h3)[lang|="zh"], .gh-content .lang-block[lang|="zh"] :is(h2, h3), .post[lang|="zh"] .gh-content :is(h2, h3) { font-family: var(--zh-display); font-weight: 900; letter-spacing: .03em; line-height: 1.25; }
.gh-content a { text-decoration: underline; text-decoration-color: var(--ink-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--ink-2-text); }
.gh-content :is(em, i):lang(zh) { font-family: "Chiron Sung HK", var(--zh); font-style: italic; font-synthesis: none; }
.gh-content code { padding: .12em .4em; border-radius: 3px; background: var(--wash); color: var(--ink-1); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .8em; }
.gh-content pre { position: relative; margin: 1.6em 0; padding: 36px 22px 20px; overflow-x: auto; border: 2px solid var(--ink-1); background: var(--wash); font-size: 14px; line-height: 1.6; }
.gh-content pre code { padding: 0; background: none; color: var(--ink); font-size: inherit; }
.gh-content pre::before { content: attr(data-lang); position: absolute; top: 10px; left: 22px; color: var(--ink-1); font-family: var(--display); font-stretch: 125%; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gh-content pre:not([data-lang])::before { content: "text"; }
.gh-content blockquote:not([class]) { margin: 1.6em 0; padding-left: 1.1em; border-left: 3px solid var(--ink-2); font-style: italic; }
.gh-content blockquote:not([class]):lang(zh), .gh-content .lang-block[lang|="zh"] blockquote, .post[lang|="zh"] .gh-content blockquote { font-style: normal; }
.gh-content blockquote:not([class]) + blockquote:not([class]) { margin-top: -.9em; }
.gh-content .kg-blockquote-alt { margin: 1.8em 0; color: var(--ink-1); font-family: var(--display); font-stretch: 125%; font-size: 26px; font-style: normal; font-weight: 800; line-height: 1.1; text-align: center; text-transform: uppercase; }
.gh-content hr { width: 64px; height: 7px; margin: 2.4em auto; border: 0; background: var(--ink-2); }
.gh-content :is(ul, ol) { padding-left: 1.3em; }
.gh-content li::marker { color: var(--ink-2-text); }
.gh-content figure { margin: 2.2em 0; }
.gh-content .kg-width-wide { margin-inline: calc(50% - min(50vw - 16px, 470px)); }
.gh-content .kg-width-full { margin-inline: calc(50% - 50vw); }
.gh-content .kg-width-full .print { padding-inline: 0; }
.gh-content figure.is-small .print { max-width: 560px; margin-inline: auto; }
.gh-content figure.is-tall .print { max-width: 440px; margin-inline: auto; }
.gh-content .table-wrap { margin: 1.8em 0; overflow-x: auto; }
.gh-content table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.gh-content thead th { padding: 10px 16px 9px 0; border-block: 2px solid var(--ink-1); color: var(--ink-1); font-stretch: 125%; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.gh-content td { padding: 10px 16px 10px 0; border-bottom: 1.5px dotted var(--ink-1); vertical-align: top; }
.gh-content tbody tr:last-child td { border-bottom: 2px solid var(--ink-1); }
.gh-content td:first-child { font-weight: 700; }
.gh-content .kg-bookmark-card a.kg-bookmark-container { border: 2px solid var(--ink-1); border-radius: 0; background: var(--paper); color: var(--ink); text-decoration: none; }
.gh-content .kg-bookmark-title { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; }
.gh-content .kg-bookmark-description, .gh-content .kg-bookmark-metadata { color: var(--ink-1); }
.gh-content .kg-button-card a.kg-btn { border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--display); font-stretch: 125%; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.gh-content .lang-block[lang|="zh"], .post[lang|="zh"] .gh-content { font-family: var(--zh); font-size: 18.5px; line-height: 1.95; letter-spacing: .04em; text-align: justify; }
.end { display: inline-block; width: .6em; height: .6em; margin-left: .35em; background: var(--ink-2); }

.pfoot { max-width: 732px; margin: 72px auto 0; padding-inline: 16px; }
.author { padding-top: 22px; border-top: 2px solid var(--ink-1); }
.author-n { margin: 0; font-family: var(--display); font-stretch: 125%; font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.author-n a { text-decoration: none; }
.author-x { margin: 4px 0 0; font-size: 16px; }
.comments { margin-top: 28px; }
.nb { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.nb > * { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; border: 2px solid var(--ink-1); border-radius: 24px; text-decoration: none; }
.nb > span:empty { border: 0; }
.nb a:hover { background: var(--ink-1); color: var(--paper); }
.nb a:hover .nb-k { color: var(--paper); }
.nb .is-next { align-items: flex-end; text-align: right; }
.nb-k { color: var(--ink-2-text); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.nb-t { font-family: var(--display); font-stretch: 125%; font-size: 18px; font-weight: 800; line-height: 1.06; text-transform: uppercase; }
.nb-t[lang|="zh"] { font-family: var(--zh-display); font-weight: 900; letter-spacing: .04em; }
.nb-none { justify-content: center; color: var(--ink-1); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
@media (max-width: 640px) { .nb { grid-template-columns: 1fr; } .gh-content { font-size: 18px; } }
/* ---------- Search: a printed index sheet ---------- */
.search-open { overflow: hidden; }
.search { position: fixed; inset: 0; z-index: 100; overflow-y: auto; padding: clamp(16px, 6vh, 72px) 16px; }
.search-backdrop { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.search-box { position: relative; max-width: 860px; margin: 0 auto; padding: 26px clamp(20px, 4vw, 40px) 30px; border: 2px solid var(--ink-1); background-color: var(--paper); background-image: var(--grain, none); background-size: 180px 180px; }
.search-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink-1); }
.search-h { margin: 0; font-family: var(--display); font-stretch: 125%; font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1; text-transform: uppercase; }
.search-line { margin-top: 20px; }
.search-line input { width: 100%; min-height: 56px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 19px; outline: none; -webkit-appearance: none; appearance: none; }
.search-line input:focus { border-color: var(--ink-2); }
.search-line input::-webkit-search-cancel-button { display: none; }
.search-status { margin: 12px 0 0 24px; color: var(--ink-1); font-family: var(--display); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.search-results { margin: 14px 0 0; padding: 0; list-style: none; }
.search-results a { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 4px 18px; padding: 16px 12px; border-bottom: 1.5px dotted var(--ink-1); color: var(--ink); text-decoration: none; }
.s-n { grid-row: span 3; color: transparent; font-family: var(--display); font-stretch: 125%; font-size: 30px; font-weight: 800; line-height: .9; -webkit-text-stroke: 1.5px var(--ink-2); }
.s-meta { color: var(--ink-1); font-family: var(--display); font-stretch: 125%; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.s-t { font-family: var(--display); font-stretch: 125%; font-size: 20px; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.s-t[lang|="zh"] { font-family: var(--zh-display); font-weight: 900; letter-spacing: .04em; }
.s-x { font-size: 15.5px; line-height: 1.5; }
.search-results [aria-selected="true"] a { background: var(--wash); }
.search-results [aria-selected="true"] .s-n { color: var(--ink-2); }
.search-results mark { padding: 0 .1em; background: var(--ink-2-tint); color: inherit; }

/* ---------- Sign in and subscribe: a sheet like the search index ---------- */
.member-open { overflow: hidden; }
.member { position: fixed; inset: 0; z-index: 100; overflow-y: auto; padding: clamp(16px, 10vh, 120px) 16px; }
.member-backdrop { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.member-box { position: relative; max-width: 560px; margin: 0 auto; padding: 26px clamp(20px, 4vw, 36px) 30px; border: 2px solid var(--ink-1); background-color: var(--paper); background-image: var(--grain, none); background-size: 180px 180px; }
.member-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink-1); }
.member-top .pill { flex: none; }
.member-x { width: 42px; padding: 0; }
.member-x svg { display: block; flex: none; margin: auto; }
.member-h { min-width: 0; margin: 0; font-family: var(--display); font-stretch: 125%; font-size: clamp(26px, 7vw, 46px); font-weight: 800; line-height: 1; text-transform: uppercase; }
.member-ask { display: grid; gap: 10px; margin-top: 22px; }
.member-ask input { width: 100%; min-height: 54px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none; }
input::placeholder { color: color-mix(in srgb, var(--ink) 70%, var(--paper)); opacity: 1; }
.member-ask input:focus { border-color: var(--ink-2); outline: none; }
.member-error { display: none; margin: 0 0 0 22px; color: var(--ink-2-text); font-size: 15px; }
.member-form[data-state="error"] .member-error { display: block; }
.member-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 10px; }
.member-switch { margin: 0; font-size: 15px; }
.member-switch button { padding: 0; border: 0; background: none; color: var(--ink-2-text); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.member-sent { display: none; margin-top: 22px; }
.member-sent p { margin: 0 0 10px; font-size: 17px; }
.member-big { color: var(--ink-1); font-family: var(--display); font-stretch: 125%; font-size: 22px !important; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.member-form[data-state="success"] .member-ask { display: none; }
.member-form[data-state="success"] .member-sent { display: block; }
.member-form[data-state="loading"] .btn { opacity: .7; }

/* After a magic link: a printed slip at the foot of the page. */
.member-note { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); padding: 10px 10px 10px 22px; border-radius: 999px; background: var(--ink-1); color: var(--paper); font-family: var(--display); font-stretch: 125%; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; transform: translateX(-50%); }
.member-note[data-kind="fail"] { background: var(--ink-2-text); }
.member-note p { margin: 0; }
.member-note p button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.member-note-x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.member-note-x:hover { background: var(--paper); color: var(--ink-1); }
html.has-member-note iframe[title="portal-notification"] { display: none !important; }
/* Portal's floating button is hidden; the theme has its own sign-in and subscribe. */
#ghost-portal-root iframe[title="portal-trigger"] { display: none !important; }

/* Below 980px search shows as an icon and the links move into a menu that drops over the page. */
.nav-search svg, .nav-menu, .menu { display: none; }
@media (max-width: 979px) {
    .nav { position: relative; flex-wrap: nowrap; }
    .logo { flex: 0 1 auto; min-width: 0; }
    .logo img { max-width: 100%; object-fit: contain; object-position: left; }
    .navlinks { flex: none; flex-wrap: nowrap; gap: 6px; }
    .nav .nav-list, .nav-signin, .nav-search-t { display: none; }
    .nav-search, .nav-menu { display: inline-flex; width: 42px; padding: 0; }
    .nav-search svg, .nav-menu svg { display: block; flex: none; }
    .nav-menu .m-close, .nav-menu[aria-expanded="true"] .m-open { display: none; }
    .nav-menu[aria-expanded="true"] .m-close { display: inline; }
    .menu { position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 30; display: block; padding: 0 var(--gutter); border-bottom: 2px solid var(--ink-1); background-color: var(--paper); background-image: var(--grain, none); background-size: 180px 180px; counter-reset: menu; }
    .menu[hidden] { display: none; }
    .menu-list { max-width: 1180px; margin: 0 auto; padding: 0; list-style: none; }
    .menu-list li + li { border-top: 1.5px dotted var(--ink-1); }
    .menu-list a { display: flex; align-items: baseline; gap: 16px; padding: 14px 2px; color: var(--ink); font-family: var(--display); font-stretch: 125%; font-size: 24px; font-weight: 800; line-height: 1.05; text-decoration: none; text-transform: uppercase; }
    .menu-list a:focus-visible { background: var(--wash); outline: none; }
    .menu-list a[aria-current="page"] .menu-n { color: var(--ink-2); }
    .menu-n { width: 2.2ch; color: transparent; font-size: 20px; -webkit-text-stroke: 1.2px var(--ink-2); }
    .menu-n::before { counter-increment: menu; content: counter(menu, decimal-leading-zero); }
}
@media (max-width: 979px) and (hover: hover) { .menu-list a:hover { background: var(--wash); } }
@media (max-width: 640px) {
    .nav { gap: 10px; }
    .logo img { height: 46px; margin: -8px 0 -8px -8px; }
    a.pill.is-fill { padding: 0 13px; }
}

/* Ghost cards: keep them in the theme's type, and let video embeds fill the column. */
.gh-content :is(.kg-bookmark-content, .kg-button-card a.kg-btn, .kg-file-card a.kg-file-card-container, .kg-product-card-container, .kg-audio-card, .kg-video-player, .kg-header-card a.kg-header-card-button, a.kg-cta-button, .kg-cta-sponsor-label, .kg-nft-card a.kg-nft-card-container) { font-family: inherit; }
.gh-content .kg-embed-card iframe.is-fluid { width: 100%; height: auto; }
.member-terms { margin-top: 14px; font-size: 13px; opacity: .8; }
.member-terms p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .mis::after { animation: none; } .no { transition: none; } }
