/* ==========================================================================
   archthread 1.2
   Drafting-white paper, ink type, a blueprint-blue accent and a highlighter yellow.
   One typeface (Archivo, variable width): expanded for display, normal for text.
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	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-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: italic;
	font-display: swap;
}

/* ---------- Tokens ----------
   One brand colour, taken from the logo: black ink with the lime-green dot.
   (Legacy names --blue*, --trace* are kept so templates stay unchanged.) */
:root {
	--dot: #9fdf28;
	--dot-ink: #111214;
	--trace: var(--dot);
	--trace-ink: var(--dot-ink);
	--blue: var(--ink);
	--blue-ink: var(--ink);
	--on-blue: var(--ink);
	--on-blue-2: var(--ink-2);
	--on-blue-3: var(--ink-3);
	--blue-line: var(--rule);

	--paper: #f6f6f4;
	--paper-2: #ebebe8;
	--surface: #ffffff;
	--ink: #111214;
	--ink-2: #46484c;
	--ink-3: #6c6e72;
	--rule: #deded9;
	--rule-2: #c4c4bf;
	--danger: #b3261e;
	--backdrop: rgba(17, 18, 20, .5);
	--shadow-pop: 0 20px 50px -14px rgba(17, 18, 20, .3), 0 2px 6px rgba(17, 18, 20, .07);
	--soft: color-mix(in oklab, var(--ink) 5%, var(--paper));

	--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1280px;
	--gutter: clamp(16px, 4vw, 48px);
	--header-h: 64px;
	--tabbar-h: 0px;
	--fs-read: 1;
	--r: 2px;
	--img-ratio: 1200 / 628;
	--r-ui: 6px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: light;
}

[data-theme="dark"] {
	--paper: #111214;
	--paper-2: #1c1d20;
	--surface: #18191b;
	--ink: #ededea;
	--ink-2: #babbb6;
	--ink-3: #8f908b;
	--rule: #2b2c2f;
	--rule-2: #3d3e41;
	--danger: #f19b92;
	--backdrop: rgba(0, 0, 0, .62);
	--shadow-pop: 0 20px 50px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05);
	--soft: color-mix(in oklab, var(--ink) 7%, var(--paper));
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--font); font-size: 16px; line-height: 1.55; font-stretch: 100%;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
	font-synthesis: none;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--trace); color: var(--trace-ink); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
kbd { font-family: var(--font); }
[hidden] { display: none !important; }

.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--trace); color: var(--trace-ink); padding: 10px 16px; border-radius: var(--r-ui); text-decoration: none; transition: top .2s; font-weight: 600; }
.skip-link:focus { top: 12px; }
.top-anchor { position: absolute; top: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { display: block; min-height: 60vh; outline: none; }

/* Sheets: plain paper, no pattern */
.blueprint { background: transparent; color: var(--ink); }

/* ---------- Buttons, chips, links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
	border-radius: var(--r-ui); border: 1px solid transparent; font-size: 15px; font-weight: 600; font-stretch: 108%;
	line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .12s;
}
.btn:active { transform: scale(.98); }
.btn--blue, .btn--accent { background: var(--ink); color: var(--paper); }
.btn--blue:hover, .btn--accent:hover { background: color-mix(in oklab, var(--ink) 82%, var(--paper)); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: color-mix(in oklab, var(--ink) 84%, var(--paper)); }
.btn--trace { background: var(--trace); color: var(--trace-ink); }
.btn--trace:hover { background: color-mix(in oklab, var(--trace) 86%, #000); }
.btn--line, .btn--ghost { background: transparent; color: inherit; border-color: currentColor; border-color: color-mix(in oklab, currentColor 40%, transparent); }
.btn--line:hover, .btn--ghost:hover { border-color: currentColor; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--dot); }
.text-link:hover { text-decoration-color: currentColor; }
.text-btn { background: none; border: 0; padding: 4px 0; color: var(--ink-3); font-size: 14px; text-decoration: underline; text-underline-offset: .2em; }
.text-btn:hover { color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: inherit; position: relative; text-decoration: none; transition: background-color .2s; }
.icon-btn:hover { background: color-mix(in oklab, currentColor 10%, transparent); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 999px;
	font-size: 14px; font-stretch: 106%; text-decoration: none; color: var(--ink); background: transparent; transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip-count { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chips--center { justify-content: center; }
.blueprint .chip, .archive-head .chip, .page-head .chip { color: var(--on-blue); border-color: var(--blue-line); }
.blueprint .chip:hover, .archive-head .chip:hover, .page-head .chip:hover { border-color: var(--ink); }
.blueprint .chip-count, .archive-head .chip-count { color: var(--on-blue-3); }

.count-dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--trace); color: var(--trace-ink); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: inline; }
[data-theme="dark"] .only-light { display: none; }
.only-touch { display: none; }
@media (hover: none) { .only-touch { display: inline; } .hide-touch { display: none !important; } }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 60; height: var(--header-h); color: var(--ink);
	background: color-mix(in oklab, var(--paper) 90%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--rule); transition: transform .32s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.admin-bar .site-header { top: 32px; }
.admin-bar .site-header.is-hidden { transform: translateY(calc(-100% - 32px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .site-header.is-hidden { transform: translateY(calc(-100% - 46px)); } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .admin-bar .site-header.is-hidden { transform: translateY(-100%); } }
.header-bar { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.brand img { width: auto; height: var(--logo-h, 30px); max-width: 240px; object-fit: contain; }
.wordmark { font-stretch: 125%; font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -.035em; }
.wordmark::after { content: ""; display: inline-block; width: .26em; height: .26em; border-radius: 50%; background: var(--dot); margin-left: .08em; vertical-align: .02em; }
.logo-night { display: none; }
[data-theme="dark"] .logo-paper.has-light { display: none; }
[data-theme="dark"] .logo-night { display: block; }
[data-theme="dark"] .logo-paper:not(.has-light):not(.no-invert) { filter: brightness(0) invert(1); }

.primary-nav { flex: 1; min-width: 0; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.nav-list > li { position: relative; display: flex; align-items: center; flex: none; }
.nav-list > li > a, .nav-parent {
	display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: var(--r-ui);
	font-size: 14.5px; font-weight: 520; font-stretch: 108%; color: var(--on-blue-2); text-decoration: none; background: none; border: 0; transition: color .2s, background-color .2s;
}
.nav-list > li > a:hover, .nav-parent:hover, .nav-list > li.is-open > .nav-parent { color: var(--ink); background: var(--paper-2); }
.nav-list > .current-menu-item > a, .nav-list > .current-menu-ancestor > a, .nav-list > .current-menu-ancestor > .nav-parent, .nav-list > .current-menu-parent > .nav-parent { color: var(--on-blue); box-shadow: inset 0 -2px 0 var(--dot); border-radius: 0; }
.sub-toggle { border: 0; background: none; width: 22px; height: 30px; margin-left: -8px; color: var(--on-blue-3); display: grid; place-items: center; border-radius: 6px; }
.nav-parent .icon, .sub-toggle .icon { transition: transform .2s; }
.is-open > .nav-parent .icon, .is-open > .sub-toggle .icon { transform: rotate(180deg); }
.primary-nav .sub-menu {
	list-style: none; position: absolute; top: calc(100% + 13px); left: -6px; min-width: 240px; padding: 8px; color: var(--ink);
	background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow-pop);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility 0s .18s; z-index: 5;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
@media (hover: hover) { .primary-nav li.menu-item-has-children:hover > .sub-menu, .primary-nav li.nav-more:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; } }
.nav-more > .sub-menu { left: auto; right: -6px; }
.primary-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 15px; color: var(--ink); text-decoration: none; }
.primary-nav .sub-menu a:hover { background: var(--soft); color: var(--blue-ink); }
.primary-nav .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; min-width: 0; background: none; }
.primary-nav .sub-menu .sub-toggle, .primary-nav .sub-menu .nav-parent .icon { display: none; }
.primary-nav .sub-menu .nav-parent { padding: 10px 12px 2px; height: auto; color: var(--ink-3); font-size: 13px; background: none; }

.header-actions { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.search-trigger {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; border-radius: var(--r-ui); min-width: 210px;
	border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink-3); font-size: 14px; font-stretch: 106%; transition: border-color .2s, color .2s;
}
.search-trigger:hover { border-color: var(--on-blue-3); color: var(--on-blue-2); }
.search-trigger-text { flex: 1; text-align: left; }
.search-trigger kbd { font-size: 11px; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--blue-line); color: var(--on-blue-3); background: transparent; }
.header-subscribe { min-height: 38px; padding: 0 16px; font-size: 14px; margin-left: 8px; }
.site-header .icon-btn { color: var(--on-blue); }
.site-header .icon-btn:hover { background: var(--paper-2); }
@media (max-width: 1200px) {
	.search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; border-color: transparent; background: transparent; color: var(--on-blue); }
	.search-trigger-text, .search-trigger kbd { display: none; }
}
@media (max-width: 899px) {
	:root { --header-h: 56px; --tabbar-h: calc(62px + env(safe-area-inset-bottom)); }
	.primary-nav, .saved-link, .header-subscribe { display: none; }
	.header-bar { gap: 12px; }
}

.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; display: none; }
.at-reading .read-progress { display: block; }
.read-progress span { display: block; height: 100%; background: var(--dot); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

/* ---------- Tab bar (phones) ---------- */
.tabbar { display: none; }
@media (max-width: 899px) {
	.tabbar {
		position: fixed; inset: auto 0 0 0; z-index: 65; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabbar-h);
		padding: 4px 6px env(safe-area-inset-bottom); color: var(--ink-3); border-top: 1px solid var(--rule);
		background: color-mix(in oklab, var(--paper) 90%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
	}
	.tab {
		position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0;
		color: inherit; text-decoration: none; font-size: 11px; font-weight: 520; font-stretch: 106%; -webkit-tap-highlight-color: transparent; transition: color .2s, transform .12s;
	}
	.tab:active { transform: scale(.92); }
	.tab.is-active { color: var(--on-blue); }
	.tab.is-active .icon { stroke-width: 2; }
	.tab.is-active::before { content: ""; position: absolute; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
	.tab .count-dot { top: 4px; right: calc(50% - 22px); }
}

/* ---------- Section heads ---------- */
.home-section { padding-block: clamp(48px, 7vw, 96px); }
.home-section + .home-section { border-top: 1px solid var(--rule); }
.home-section.wrap + .home-section.wrap { border-top: 0; background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }
.band { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--rule); }
.band + .home-section { border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head-text { max-width: 62ch; margin-right: auto; }
.section-title { font-size: clamp(28px, 3.4vw, 48px); font-stretch: 125%; font-weight: 640; line-height: 1; letter-spacing: -.028em; text-wrap: balance; }
.section-intro { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.blueprint .section-intro { color: var(--on-blue-2); }
.section-link { flex: none; font-size: 15px; font-weight: 600; font-stretch: 108%; color: var(--blue-ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); }
.section-link:hover { text-decoration-color: currentColor; }
.blueprint .section-link { color: var(--on-blue); }
.rail-arrows { display: flex; gap: 8px; flex: none; }
.rail-arrows .icon-btn { border: 1px solid var(--rule-2); }
.rail-arrows .icon-btn[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 599px) { .section-head { flex-direction: column; align-items: flex-start; gap: 10px; } .rail-arrows { display: none; } }

/* ---------- Grids & rails ---------- */
.grid { display: grid; gap: clamp(28px, 3vw, 40px) clamp(18px, 2.4vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 28px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1023px) and (min-width: 600px) { .rail { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; } }
@media (max-width: 599px) { .rail { grid-auto-columns: 84%; gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); aspect-ratio: var(--img-ratio); margin-bottom: 14px; }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.025); }
.ph { display: block; background: var(--paper-2); }
.ph svg { width: 100%; height: 100%; display: block; }
.ph path { fill: none; stroke: var(--blue-ink); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
.card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-cat { position: relative; z-index: 2; align-self: flex-start; font-size: 13px; font-weight: 600; font-stretch: 108%; color: var(--blue-ink); text-decoration: none; }
.card-cat:hover { text-decoration: underline; }
.card-title { font-size: 19px; font-stretch: 112%; font-weight: 600; line-height: 1.2; letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; text-decoration-color: var(--dot); }
.card:active { transform: scale(.992); transition: transform .12s; }
.card-excerpt { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card-meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-right: 10px; background: var(--rule-2); vertical-align: -1px; }
.card-save {
	position: absolute; z-index: 3; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
	color: var(--ink); background: color-mix(in oklab, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s, transform .12s;
}
.card:hover .card-save, .card-save:focus-visible, .card-save[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .card-save { opacity: 1; } }
.save-btn[aria-pressed="true"] .icon { fill: currentColor; }
.card-save[aria-pressed="true"] { background: var(--trace); color: var(--trace-ink); }
.save-btn:active { transform: scale(.88); }

.card--lead .card-media { margin-bottom: 18px; }
.card--lead .card-title { font-size: clamp(26px, 2.8vw, 40px); font-stretch: 122%; line-height: 1.04; letter-spacing: -.025em; }
.card--lead .card-excerpt { font-size: 17px; max-width: 60ch; }

.card--portrait .card-title { font-size: 21px; font-stretch: 118%; }

.card--wide { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.card--wide .card-media { margin: 0; }
.card--wide .card-title { font-size: clamp(26px, 2.8vw, 40px); font-stretch: 122%; line-height: 1.04; letter-spacing: -.025em; }
.card--wide .card-excerpt { font-size: 17px; }
@media (max-width: 699px) { .card--wide { display: flex; } .card--wide .card-media { margin-bottom: 14px; } }

.card--list { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; align-items: start; }
.card--list .card-media { margin: 0; }
.card--list .card-title { font-size: 15px; font-stretch: 104%; line-height: 1.35; letter-spacing: 0; }
.card--list .card-body { gap: 5px; }
.card--list .card-save { display: none; }

/* Tile: image fills, words sit on the picture */
.card--tile { overflow: hidden; border-radius: var(--r); min-height: 260px; background: #111214; }
.card--tile .card-media { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; }
.card--tile .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 13, 0) 35%, rgba(12, 12, 13, .86) 100%); }
.card--tile .card-body { position: relative; z-index: 1; margin-top: auto; padding: clamp(18px, 2.4vw, 30px); color: #fff; }
.card--tile .card-title { color: #fff; font-size: clamp(19px, 1.8vw, 24px); font-stretch: 118%; }
.card--tile .card-meta, .card--tile .card-excerpt { color: rgba(255, 255, 255, .78); }
.card--tile .card-meta > * + *::before { background: rgba(255, 255, 255, .35); }
.card--tile .card-cat { color: #fff; }

/* Ranked */
.card--ranked .card-rank {
	display: block; font-size: clamp(64px, 7vw, 104px); font-stretch: 125%; font-weight: 800; line-height: .8; letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1.4px var(--blue-ink); margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.card--ranked .card-title { font-size: 17px; }

/* Feature (first of the latest sheet) */
.card--feature .card-title { font-size: clamp(24px, 2.6vw, 36px); font-stretch: 122%; line-height: 1.05; letter-spacing: -.025em; }
.card--feature .card-excerpt { font-size: 16.5px; -webkit-line-clamp: 4; }

.card--text .card-title { font-size: 18px; }
.card--text .card-save { display: none; }
.card-rank { font-variant-numeric: tabular-nums; }

/* ---------- Homepage: cover ---------- */
.cover { position: relative; padding-block: clamp(32px, 4.5vw, 64px); border-bottom: 1px solid var(--rule); }
.cover-head { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; padding-bottom: clamp(24px, 3vw, 40px); }
.cover-title { font-size: clamp(36px, 4.6vw, 70px); font-stretch: 125%; font-weight: 650; line-height: .98; letter-spacing: -.032em; text-wrap: balance; color: var(--ink); }
.cover-intro { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.cover-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--ink); }
.cover-list { min-width: 0; }
.cover-index { list-style: none; }
.index-item { position: relative; border-bottom: 1px solid var(--rule); padding: 13px 0 13px 26px; }
.index-item:first-child { padding-top: 0; }
.index-item::before { content: ""; position: absolute; left: 0; top: 20px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink-3); transition: background-color .25s, border-color .25s; }
.index-item:first-child::before { top: 7px; }
.index-item.is-active::before { background: var(--dot); border-color: var(--dot); }
.index-media { display: none; }
.index-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cat meta" "title title"; gap: 4px 16px; }
.index-cat { grid-area: cat; font-size: 12.5px; font-weight: 600; font-stretch: 108%; color: var(--ink-3); transition: color .25s; }
.index-meta { grid-area: meta; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.index-title { grid-area: title; font-size: clamp(15px, 1.2vw, 18px); font-stretch: 110%; font-weight: 560; line-height: 1.28; letter-spacing: -.01em; color: var(--ink-2); transition: color .25s; }
.index-title a { text-decoration: none; }
.index-title a::after { content: ""; position: absolute; inset: 0; }
.index-item.is-active .index-title, .index-item:hover .index-title { color: var(--ink); }
.index-item.is-active .index-cat { color: var(--blue-ink); }

.cover-view { position: relative; margin: 8px 8px 0; }
.cover-view-frame { position: relative; display: block; overflow: hidden; background: var(--paper-2); aspect-ratio: var(--img-ratio); }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 6s linear; }
.cover-img.is-on { opacity: 1; transform: scale(1); }
.cover-view .ph { position: absolute; inset: 0; }
.crop { position: absolute; width: 16px; height: 16px; border: 0 solid var(--ink-3); z-index: 2; pointer-events: none; }
.crop--tl { top: -8px; left: -8px; border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: -8px; right: -8px; border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: 36px; left: -8px; border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: 36px; right: -8px; border-bottom-width: 1px; border-right-width: 1px; }
.cover-cap { display: flex; align-items: center; gap: 18px; height: 44px; font-size: 13.5px; color: var(--ink-2); }
.cover-cap-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-cap-progress { flex: none; width: 96px; height: 2px; background: var(--rule); overflow: hidden; }
.cover-cap-progress span { display: block; height: 100%; width: 100%; background: var(--dot); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 1023px) {
	.cover-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
}
@media (max-width: 899px) {
	.cover-body { grid-template-columns: minmax(0, 1fr); border-top: 0; padding-top: 0; }
	.cover-view { display: none; }
	.cover-title { font-size: clamp(32px, 8.6vw, 52px); }
	.cover-index {
		display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter); scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
	}
	.cover-index::-webkit-scrollbar { display: none; }
	.index-item { scroll-snap-align: start; border: 0; padding: 0 !important; }
	.index-item::before { display: none; }
	.index-media { display: block; aspect-ratio: var(--img-ratio); overflow: hidden; background: var(--paper-2); margin-bottom: 12px; border-radius: var(--r); }
	.index-media img, .index-media .ph { width: 100%; height: 100%; object-fit: cover; }
	.index-title { font-size: 19px; font-stretch: 116%; color: var(--ink); }
	.index-cat { color: var(--blue-ink); }
}
@media (min-width: 600px) and (max-width: 899px) { .cover-index { grid-auto-columns: 46%; } }

/* Topic index */
.tindex { list-style: none; border-top: 1px solid var(--ink); }
.tindex-row {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding: clamp(16px, 2vw, 24px) 0;
	border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: padding-left .35s var(--ease), color .2s;
}
.tindex-row:hover, .tindex-row:focus-visible { padding-left: 14px; color: var(--blue-ink); }
.tindex-name { font-size: clamp(24px, 3.1vw, 46px); font-stretch: 125%; font-weight: 640; line-height: 1; letter-spacing: -.03em; }
.tindex-latest { font-size: 15px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tindex-count { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tindex-float { position: fixed; top: 0; left: 0; z-index: 40; width: 300px; aspect-ratio: var(--img-ratio); overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; box-shadow: var(--shadow-pop); background: var(--paper-2); }
.tindex-float.is-on { opacity: 1; }
.tindex-float img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
	.tindex-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
	.tindex-latest { display: none; }
	.tindex-float { display: none; }
}

/* Projects */
.section-projects .card--wide .card-title { font-size: clamp(24px, 2.4vw, 36px); }
.proj-row { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--rule); }
.proj-row .card--standard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.proj-row .card--standard .card-media { margin: 0; }
@media (max-width: 1023px) { .proj-row .card--standard { display: flex; } .proj-row .card--standard .card-media { margin-bottom: 14px; } }

/* Ranked */
.ranked { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
@media (max-width: 1023px) {
	.ranked { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule); }
	.ranked li { border-bottom: 1px solid var(--rule); padding-block: 16px; }
	.card--ranked { display: grid; grid-template-columns: 56px 120px minmax(0, 1fr); gap: 16px; align-items: center; }
	.card--ranked .card-rank { font-size: 54px; margin: 0; }
	.card--ranked .card-media { margin: 0; }
	.card--ranked .card-save { display: none; }
	.card--ranked .card-author { display: none; }
	.card--ranked .card-meta > * + *::before { display: none; }
}

/* Latest sheet */
.sheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(18px, 2.2vw, 28px); }
.sheet-grid > .card--feature { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1023px) { .sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sheet-grid { grid-template-columns: minmax(0, 1fr); } .sheet-grid > .card--feature { grid-column: auto; grid-row: auto; } }

/* About on trace paper */
.trace { background: transparent; color: var(--ink); }
.about-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: start; }
.about-title { font-size: clamp(34px, 4.6vw, 68px); font-stretch: 125%; font-weight: 660; line-height: .98; letter-spacing: -.032em; }
.about-text { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; max-width: 50ch; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trace .btn--line { color: var(--ink); }
.about-plan { width: clamp(140px, 16vw, 240px); height: auto; }
.about-plan path { fill: none; stroke: var(--blue-ink); stroke-width: 2; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.about-plan circle { fill: var(--dot); }
.js .about-plan path { stroke-dasharray: 2400; stroke-dashoffset: 2400; transition: stroke-dashoffset 2.4s var(--ease); }
.js .about-plan.is-drawn path { stroke-dashoffset: 0; }
@media (max-width: 1023px) { .about-band { grid-template-columns: minmax(0, 1fr); } .about-plan { display: none; } }

.topic-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.topic-grid--large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-tile a { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.topic-media { display: block; aspect-ratio: var(--img-ratio); overflow: hidden; border-radius: var(--r); background: var(--paper-2); margin-bottom: 12px; }
.topic-media img, .topic-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.topic-tile a:hover .topic-media img { transform: scale(1.03); }
.topic-name { font-size: 22px; font-stretch: 120%; font-weight: 620; line-height: 1.05; letter-spacing: -.02em; }
.topic-count { font-size: 13px; color: var(--ink-3); }
@media (max-width: 899px) { .topic-grid, .topic-grid--large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } .topic-name { font-size: 18px; } }

.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(36px, 4vw, 56px); }
.js .pager { display: none; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--rule-2); border-radius: var(--r-ui); text-decoration: none; font-size: 14px; }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty-note { color: var(--ink-2); font-size: 17px; margin-block: 16px 24px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .55; }
.crumbs a { text-decoration: none; color: inherit; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] span { display: inline-block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.crumbs--rm .separator { margin: 0 4px; opacity: .55; }
.blueprint .crumbs, .archive-head .crumbs, .page-head .crumbs { color: var(--on-blue-3); }
@media (max-width: 599px) { .crumbs li[aria-current] { display: none; } }

/* ---------- Story ---------- */
.entry { padding-bottom: clamp(40px, 6vw, 72px); }
.entry-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: center; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(28px, 4vw, 48px); }
.cover-panel { min-width: 0; }
.cover-panel-inner { width: 100%; }
.cover-next { display: inline-block; font-size: 13px; font-weight: 600; color: var(--trace-ink); background: var(--trace); padding: 4px 10px; margin-bottom: 22px; }
.entry-cover .entry-cat { display: inline-block; font-size: 14px; font-weight: 600; font-stretch: 108%; color: var(--blue-ink); text-decoration: none; margin-bottom: 16px; }
.entry-cover .entry-cat:hover { text-decoration: underline; }
.entry-title { font-size: clamp(28px, 3.1vw, 48px); font-stretch: 116%; font-weight: 640; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; color: var(--on-blue); }
.entry-title a { text-decoration: none; }
.entry-dek { margin-top: 18px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--on-blue-2); max-width: 56ch; }
.entry-byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--blue-line); }
.byline-avatar img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue-line); }
.byline-text { min-width: 0; flex: 1; }
.byline-author { font-size: 15px; font-weight: 600; font-stretch: 106%; color: var(--on-blue); }
.byline-author a { text-decoration: none; }
.byline-author a:hover { text-decoration: underline; }
.byline-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13.5px; color: var(--on-blue-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.byline-meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-right: 10px; background: var(--blue-line); vertical-align: -1px; }
.entry-tools { display: flex; gap: 8px; margin-top: 22px; }
.tool-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--blue-line); background: transparent; color: var(--on-blue); display: grid; place-items: center; transition: border-color .2s, background-color .2s, transform .12s; }
.tool-btn:hover { border-color: var(--ink); }
.tool-btn.save-btn[aria-pressed="true"] { background: var(--trace); border-color: var(--trace); color: var(--trace-ink); }
.cover-media { position: relative; margin: 0; min-width: 0; }
.cover-media img { width: 100%; height: auto; max-height: 72vh; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.cover-media figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.entry-cover--text { grid-template-columns: minmax(0, 1fr); }
.entry-cover--text .cover-panel-inner { max-width: 900px; }
.entry-cover--text .entry-title { font-size: clamp(30px, 4.4vw, 64px); }
.entry--loaded { margin-top: clamp(32px, 5vw, 64px); }
@media (max-width: 899px) {
	.entry-cover { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 0; }
	.cover-media { order: -1; margin-inline: calc(-1 * var(--gutter)); }
	.cover-media img { border-radius: 0; max-height: none; }
	.cover-media figcaption { padding-inline: var(--gutter); }
	.entry-title { font-size: clamp(28px, 7.6vw, 42px); }
	.entry-byline { margin-top: 22px; }
}

.entry-layout { display: grid; grid-template-columns: 220px minmax(0, 680px) 270px; justify-content: space-between; gap: 40px; align-items: start; padding-top: clamp(36px, 5vw, 64px); }
.entry-rail, .entry-side { position: sticky; top: calc(var(--header-h) + 28px); }
.side-sticky { display: grid; gap: 20px; }
.side-label, .toc-label { font-size: 13px; font-weight: 600; font-stretch: 108%; color: var(--ink-3); }
.side-list { display: grid; gap: 18px; }
.side-list .card--list { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
.side-list .card--list .card-title { font-size: 14.5px; }
@media (max-width: 1279px) { .entry-layout { grid-template-columns: 200px minmax(0, 680px); justify-content: center; gap: 48px; } .entry-side { display: none; } }
@media (max-width: 959px) { .entry-layout { grid-template-columns: minmax(0, 680px); } .entry-rail { display: none; } }

/* Contents */
.toc { position: relative; }
.toc-label { margin-bottom: 14px; }
.toc-thread { position: absolute; left: 0; top: 34px; bottom: 4px; width: 1px; background: var(--rule-2); }
.toc-thread span { position: absolute; inset: 0; background: var(--dot); transform-origin: 50% 0; transform: scaleY(0); will-change: transform; }
.toc-list { list-style: none; display: grid; gap: 2px; max-height: calc(100vh - var(--header-h) - 140px); overflow: auto; scrollbar-width: thin; }
.toc-item { position: relative; padding-left: 16px; }
.toc-item--sub { padding-left: 28px; }
.toc-item a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.4; color: var(--ink-3); text-decoration: none; transition: color .2s; }
.toc-item--sub a { font-size: 13px; }
.toc-item a:hover { color: var(--ink); }
.toc-item.is-passed a { color: var(--ink-2); }
.toc-item.is-active a { color: var(--ink); font-weight: 600; }
.toc-item.is-active a span { background: linear-gradient(transparent 58%, var(--trace) 58%, var(--trace) 92%, transparent 92%); }

.toc-pill {
	position: fixed; z-index: 55; left: 50%; bottom: calc(var(--tabbar-h) + 14px); transform: translate(-50%, 140%); display: none; align-items: center; gap: 10px;
	max-width: min(92vw, 440px); height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--ink); color: var(--paper);
	border: 0; font-size: 14px; box-shadow: var(--shadow-pop); transition: transform .3s var(--ease);
}
.toc-pill.is-visible { transform: translate(-50%, 0); }
.toc-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-pill-progress { flex: none; width: 22px; height: 22px; }
.toc-pill-progress circle { fill: none; stroke-width: 2.4; }
.toc-pill-progress .bg { stroke: color-mix(in oklab, var(--paper) 28%, transparent); }
.toc-pill-progress .fg { stroke: var(--trace); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
@media (max-width: 959px) { .toc-pill { display: inline-flex; } }
.toc-sheet-list { list-style: none; display: grid; gap: 2px; }
.toc-sheet-list a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink-2); font-size: 16px; }
.toc-sheet-list .is-active a { color: var(--blue-ink); font-weight: 600; }
.toc-sheet-list .toc-item--sub a { padding-left: 18px; font-size: 15px; }
.toc-sheet-list .toc-item { padding-left: 0; }

/* Story typography */
.entry-content { font-size: calc(18.5px * var(--fs-read)); line-height: 1.72; color: var(--ink); overflow-wrap: break-word; min-width: 0; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content p:empty { display: none; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5 { scroll-margin-top: calc(var(--header-h) + 24px); text-wrap: balance; }
.entry-content h2 { font-size: calc(30px * var(--fs-read)); font-stretch: 118%; font-weight: 640; line-height: 1.12; letter-spacing: -.022em; color: var(--blue-ink); margin-top: 2em; }
.entry-content h3 { font-size: calc(21px * var(--fs-read)); font-stretch: 108%; font-weight: 650; line-height: 1.3; margin-top: 1.8em; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: calc(18px * var(--fs-read)); font-weight: 650; margin-top: 1.6em; }
.entry--loaded .entry-content h3 { font-size: calc(30px * var(--fs-read)); font-stretch: 118%; font-weight: 640; line-height: 1.12; letter-spacing: -.022em; color: var(--blue-ink); margin-top: 2em; }
.entry--loaded .entry-content h4 { font-size: calc(21px * var(--fs-read)); font-stretch: 108%; font-weight: 650; line-height: 1.3; }
.entry-content h2 + *, .entry-content h3 + *, .entry-content h4 + * { margin-top: .6em; }
.entry-content :is(h1, h2, h3, h4, h5, h6) :is(strong, b) { font-weight: inherit; }
.entry-content strong, .entry-content b { font-weight: 650; }
.entry-content a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--dot); }
.entry-content a:hover { background: color-mix(in oklab, var(--dot) 35%, transparent); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .45em; }
.entry-content ul li::marker { color: var(--dot); font-size: 1.15em; }
.entry-content ol li::marker { color: var(--blue-ink); font-weight: 650; }
.entry-content img { border-radius: var(--r); }
.entry-content figure { margin-inline: 0; }
.entry-content figure img, .entry-content > p > img, .entry-content .wp-block-image img { cursor: zoom-in; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); margin-top: 10px; text-align: left; }
.entry-content .img-credit { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin-top: .55em; padding-left: 14px; position: relative; }
.entry-content .img-credit::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--ink-3); }
.entry-content .img-credit + * { margin-top: 1.5em; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-inline: 0; padding: .3em 0 .3em 1.1em; border-left: 4px solid var(--dot);
	font-size: calc(25px * var(--fs-read)); font-stretch: 112%; font-weight: 520; line-height: 1.32; letter-spacing: -.012em; color: var(--blue-ink);
}
.entry-content blockquote p + p { margin-top: .6em; }
.entry-content blockquote cite { display: block; margin-top: .8em; font-size: 14px; font-style: normal; font-stretch: 100%; font-weight: 500; color: var(--ink-3); }
.entry-content .wp-block-pullquote { border-block: 1px solid var(--rule); padding: 1.5em 0; text-align: left; }
.entry-content .wp-block-pullquote blockquote { border: 0; padding: 0; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; height: 1px; background: var(--rule); margin-block: 2.4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .88em; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: .7em .8em; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.entry-content th { font-weight: 650; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { display: table; }
.entry-content code { font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.entry-content pre { background: var(--paper-2); padding: 1em; border-radius: var(--r-ui); overflow-x: auto; font-size: .85em; line-height: 1.6; }
.entry-content iframe, .entry-content .wp-block-embed iframe { width: 100%; border: 0; }
.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.entry-content .wp-block-embed.is-type-video iframe { height: 100%; }
.entry-content .wp-block-gallery { gap: 10px; }
.entry-content .wp-block-button__link { background: var(--ink); color: var(--paper); border-radius: var(--r-ui); text-decoration: none; padding: .7em 1.3em; font-size: 16px; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > p:first-of-type:not(.img-credit) { font-size: 1.08em; }
.entry-content .wp-block-rank-math-toc-block, .entry-content #ez-toc-container { border: 1px solid var(--rule); border-radius: var(--r-ui); padding: 1em 1.2em; font-size: .9em; }
.page-links { margin-top: 2em; display: flex; gap: 8px; font-size: 15px; }

/* Story footer */
.entry-foot { max-width: calc(680px + 2 * var(--gutter)); margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 32px; margin-inline: auto; }
@media (min-width: 1280px) { .entry-foot { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding-left: calc(var(--gutter) + 260px); padding-right: calc(var(--gutter) + 310px); } }
@media (min-width: 960px) and (max-width: 1279px) { .entry-foot { max-width: calc(928px + 2 * var(--gutter)); padding-left: calc(var(--gutter) + 248px); } }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; border-block: 1px solid var(--rule); }
.share-row-label { font-size: 15px; font-weight: 600; font-stretch: 108%; }
.share-links { list-style: none; display: flex; gap: 8px; }
.share-links a, .share-links button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; background: transparent; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.share-links a:hover, .share-links button:hover { border-color: var(--blue-ink); color: var(--blue-ink); }
.entry-tags { gap: 6px; }
.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px; background: var(--soft); border-radius: var(--r-ui); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; }
.author-kicker { font-size: 13px; color: var(--ink-3); }
.author-name { font-size: 24px; font-stretch: 118%; font-weight: 640; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 6px; }
.author-name a { text-decoration: none; }
.author-bio { color: var(--ink-2); font-size: 15.5px; margin-bottom: 8px; }
.author-job { color: var(--ink-2); font-size: 14px; font-weight: 600; margin: -2px 0 8px; }
.author-links { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; }
.author-links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .2em; }
.author-links a:hover { text-decoration-color: var(--dot); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav-link { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--rule); border-radius: var(--r-ui); text-decoration: none; font-size: 16px; font-stretch: 110%; font-weight: 600; line-height: 1.3; transition: border-color .2s; }
.post-nav-link:hover { border-color: var(--blue-ink); }
.post-nav-link span { font-size: 13px; font-weight: 500; font-stretch: 100%; color: var(--ink-3); }
.post-nav-next { text-align: right; grid-column: 2; }
@media (max-width: 599px) { .post-nav { grid-template-columns: 1fr; } .post-nav-next { grid-column: auto; text-align: left; } }
.related { padding-top: 12px; }
.related .section-title { margin-bottom: 24px; font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 899px) {
	.related .grid--3 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.related .card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; }
	.related .card-media { margin: 0; }
	.related .card-save { display: none; }
}
.next-loader { display: none; align-items: center; gap: 16px; padding-block: 8px 48px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.js .next-loader { display: flex; }
.next-loader-line { flex: 1; height: 1px; background: var(--rule-2); }
.next-loader.is-loading .next-loader-text::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; border: 1.5px solid var(--blue-ink); border-right-color: transparent; animation: at-spin .8s linear infinite; vertical-align: -1px; }
.next-loader.is-done { display: none; }
@keyframes at-spin { to { transform: rotate(360deg); } }

/* Comments (only when switched on in the Customizer) */
.comments { display: grid; gap: 24px; padding-top: 8px; }
.comment-list, .comment-list .children { list-style: none; display: grid; gap: 20px; }
.comment-list .children { padding-left: clamp(16px, 4vw, 44px); margin-top: 20px; border-left: 1px solid var(--rule); }
.comment-card { display: grid; gap: 8px; }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-author { font-weight: 600; font-size: 15px; }
.comment-date { font-size: 13px; color: var(--ink-3); text-decoration: none; }
.comment-text { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.comment-reply a { font-size: 13px; font-weight: 600; color: var(--blue-ink); text-decoration: none; }
.comment-respond { padding: clamp(18px, 3vw, 28px); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.comment-reply-title { font-size: 24px; font-stretch: 118%; font-weight: 640; margin-bottom: 8px; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--surface);
	border: 1px solid var(--rule-2); border-radius: var(--r-ui); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea { min-height: 140px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23646d80' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--blue-ink) 18%, transparent); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin: 2px 0 0; }
::placeholder { color: var(--ink-3); opacity: .8; }
.at-form { display: grid; gap: 20px; }
.at-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.at-form fieldset + fieldset { padding-top: 28px; border-top: 1px solid var(--rule); }
.at-form legend { font-size: 22px; font-stretch: 120%; font-weight: 640; letter-spacing: -.02em; margin-bottom: 4px; padding: 0; float: left; width: 100%; }
.at-form legend + * { clear: both; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; font-stretch: 104%; }
.field-hint { font-size: 13px; color: var(--ink-3); }
.field-error { font-size: 13px; color: var(--danger); }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check label { font-weight: 400; font-size: 15px; color: var(--ink-2); }
.field--check .field-error { grid-column: 2; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 14.5px; color: var(--ink-2); }
.form-status.is-ok { color: var(--blue-ink); font-weight: 600; }
.form-status.is-error { color: var(--danger); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(36px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.form-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { padding: 22px; border: 1px solid var(--rule); border-radius: var(--r-ui); display: grid; gap: 10px; background: var(--surface); }
.side-card--accent { border-top: 3px solid var(--dot); }
.side-card .btn { justify-self: start; }
.side-title { font-size: 21px; font-stretch: 118%; font-weight: 640; line-height: 1.15; letter-spacing: -.018em; }
.tick-list { list-style: none; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15px; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
@media (max-width: 899px) { .form-layout { grid-template-columns: 1fr; } .form-side { position: static; } }

.inline-search { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 24px; padding: 6px 6px 6px 16px; border: 1px solid var(--rule-2); border-radius: var(--r-ui); background: var(--surface); color: var(--ink); }
.inline-search:focus-within { border-color: var(--blue-ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--blue-ink) 18%, transparent); }
.inline-search .icon { color: var(--ink-3); flex: none; }
.inline-search input { border: 0; background: transparent; min-height: 40px; padding: 0; box-shadow: none !important; }
.inline-search .btn { min-height: 40px; background: var(--ink); color: var(--paper); }
.archive-head--center .inline-search { margin-inline: auto; }

.switch { width: 48px; height: 28px; border-radius: 999px; border: 0; background: var(--rule-2); position: relative; transition: background-color .2s; flex: none; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--dot); }
.switch[aria-checked="true"] span { transform: translateX(20px); }

/* ---------- Head bands (archives, search, pages) ---------- */
.archive-head, .page-head { position: relative; isolation: isolate; color: var(--on-blue); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(36px, 5vw, 64px); }
.archive-head::before, .page-head::before {
	content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); border-bottom: 1px solid var(--rule);
}
.archive-head--center { text-align: center; display: grid; justify-items: center; }
.archive-head--center .archive-desc { margin-inline: auto; }
.archive-title, .page-title { font-size: clamp(36px, 5.6vw, 84px); font-stretch: 125%; font-weight: 650; line-height: .98; letter-spacing: -.032em; text-wrap: balance; color: var(--on-blue); }
.archive-page { font-size: .36em; color: var(--on-blue-3); letter-spacing: 0; vertical-align: middle; font-stretch: 100%; font-weight: 500; }
.archive-desc, .page-dek { margin-top: 18px; font-size: clamp(16px, 1.5vw, 20px); color: var(--on-blue-2); max-width: 62ch; line-height: 1.5; }
.archive-count { margin-top: 16px; font-size: 14px; color: var(--on-blue-3); font-variant-numeric: tabular-nums; }
.archive-head .chips { margin-top: 20px; }
.archive-author img { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 18px; box-shadow: 0 0 0 3px var(--blue-line); }
.archive-body { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.archive-lead { padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.archive-body > .section-title { margin-bottom: 14px; }
.trending-grid { margin-top: 40px; }
.page-head { max-width: calc(720px + 2 * var(--gutter)); }
.page-head--wide { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.page-updated { margin-top: 12px; font-size: 14px; color: var(--on-blue-3); }
.page-content { max-width: calc(720px + 2 * var(--gutter)); padding-block: clamp(36px, 5vw, 56px) clamp(48px, 7vw, 96px); }
.page-comments { max-width: calc(720px + 2 * var(--gutter)); padding-bottom: 64px; }
.page-entry > .entry-media { margin: clamp(28px, 4vw, 48px) auto 0; }
.page-entry > .entry-media img { width: 100%; border-radius: var(--r); }
.builder-page { min-height: 40vh; }

.about-lede { margin-top: 22px; font-size: clamp(22px, 2.6vw, 36px); font-stretch: 118%; font-weight: 560; line-height: 1.18; letter-spacing: -.02em; max-width: 28ch; color: var(--on-blue-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 320px); justify-content: space-between; gap: 48px; padding-block: clamp(40px, 6vw, 72px); }
.about-story { font-size: 19px; }
.about-facts dl { margin: 0; display: grid; border-top: 2px solid var(--blue-ink); }
.about-facts dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.about-facts dt { font-size: 14px; color: var(--ink-3); }
.about-facts dd { margin: 0; font-size: 34px; font-stretch: 125%; font-weight: 640; line-height: 1; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.topic-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.topic-list li { padding: 18px 0; border-top: 1px solid var(--rule); }
.topic-list-name { font-size: 21px; font-stretch: 120%; font-weight: 640; line-height: 1.1; letter-spacing: -.02em; }
.topic-list-name a { text-decoration: none; }
.topic-list-name a:hover { color: var(--blue-ink); }
.topic-list-desc { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.writer-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.writer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.writer img { width: 56px; height: 56px; border-radius: 50%; }
.writer-name { font-size: 19px; font-stretch: 116%; font-weight: 640; line-height: 1.15; letter-spacing: -.015em; }
.writer-name a { text-decoration: none; }
.writer-bio { font-size: 14.5px; color: var(--ink-3); margin-top: 4px; }
.cta-band { display: grid; justify-items: start; gap: 14px; padding-block: clamp(36px, 5vw, 64px); margin-block: clamp(16px, 3vw, 32px); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.cta-title { font-size: clamp(30px, 4vw, 56px); font-stretch: 125%; font-weight: 650; line-height: 1; letter-spacing: -.03em; }
.cta-text { font-size: 18px; max-width: 58ch; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 899px) { .about-grid { grid-template-columns: 1fr; } .topic-list, .writer-grid { grid-template-columns: 1fr; } }
.empty-state { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 56px 16px; border: 1px dashed var(--rule-2); border-radius: var(--r-ui); color: var(--ink-2); }
.empty-state .icon { color: var(--blue-ink); }
.empty-state p { max-width: 42ch; }

/* ---------- Footer: title block ---------- */
.site-footer { padding-block: clamp(40px, 6vw, 72px) calc(clamp(24px, 3vw, 40px) + var(--tabbar-h)); border-top: 1px solid var(--rule); }
.tblock {
	display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.4fr);
	grid-template-areas: "brand topics links news" "badge copy copy top"; border-top: 1px solid var(--blue-line); border-left: 1px solid var(--blue-line);
}
.tb-cell { padding: clamp(20px, 2.4vw, 32px); border-right: 1px solid var(--blue-line); border-bottom: 1px solid var(--blue-line); min-width: 0; }
.tb-brand { grid-area: brand; }
.tb-topics { grid-area: topics; }
.tb-links { grid-area: links; }
.tb-news { grid-area: news; }
.tb-badge { grid-area: badge; display: flex; align-items: center; }
.tb-copy { grid-area: copy; display: flex; align-items: center; }
.tb-top { grid-area: top; display: flex; align-items: center; justify-content: flex-end; }
.tb-badge, .tb-copy, .tb-top { padding-block: 16px; }
.tb-label { font-size: 12.5px; font-weight: 600; font-stretch: 108%; color: var(--on-blue-3); margin-bottom: 14px; }
.footer-text { margin-top: 18px; color: var(--on-blue-2); font-size: 15px; line-height: 1.6; max-width: 44ch; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-links a { color: var(--on-blue); text-decoration: none; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--dot); }
.socials { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: inherit; border: 1px solid color-mix(in oklab, currentColor 30%, transparent); transition: border-color .2s, background-color .2s; }
.socials a:hover { border-color: currentColor; }
.socials--footer { margin-top: 22px; }
.footer-badge { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.footer-badge img { display: block; height: 46px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; filter: brightness(0); opacity: .9; transition: opacity .2s; }
.footer-badge:hover img { opacity: 1; }
[data-theme="dark"] .footer-badge img { filter: none; opacity: .95; }
.tb-badge { padding-block: 22px !important; }
.copyright { font-size: 13.5px; color: var(--on-blue-3); }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--on-blue); text-decoration: none; font-size: 13.5px; }
.site-footer .brand img { height: calc(var(--logo-h, 30px) * 1.25); max-width: 300px; }
@media (max-width: 1023px) {
	.tblock { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand brand" "topics links" "news news" "badge top" "copy copy"; }
}
@media (max-width: 599px) {
	.tblock { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "topics" "links" "news" "badge" "copy" "top"; }
	.tb-top { justify-content: flex-start; }
}

/* Newsletter */
.newsletter { display: grid; gap: 16px; }
.newsletter-title { font-size: clamp(22px, 2.2vw, 30px); font-stretch: 122%; font-weight: 640; line-height: 1.05; letter-spacing: -.025em; }
.newsletter-sub { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form input[type="email"] { flex: 1 1 200px; }
.newsletter-form .form-status { flex-basis: 100%; }
.site-footer .newsletter-sub { color: var(--on-blue-2); }
.site-footer .newsletter-form input[type="email"] { background: var(--surface); }
.site-footer .newsletter-form input::placeholder { color: var(--on-blue-3); }
.site-footer .form-status { color: var(--on-blue-2); }
.site-footer .form-status.is-ok { color: var(--blue-ink); }
.site-footer .form-status.is-error { color: var(--danger); }
.site-footer .btn--accent { background: var(--trace); color: var(--trace-ink); }

/* ---------- Overlays ---------- */
.search-overlay, .sheet, .lightbox { position: fixed; inset: 0; z-index: 200; }
.search-backdrop, .sheet-backdrop { position: absolute; inset: 0; background: var(--backdrop); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.is-open .search-backdrop, .is-open .sheet-backdrop { opacity: 1; }
.search-panel {
	position: relative; margin: 9vh auto 0; width: min(720px, calc(100vw - 32px)); max-height: 78vh; display: flex; flex-direction: column; background: var(--surface);
	border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; opacity: 0; transform: translateY(-8px) scale(.99); transition: opacity .2s, transform .25s var(--ease);
}
.search-overlay.is-open .search-panel { opacity: 1; transform: none; }
.search-bar { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.search-bar .icon { color: var(--on-blue-3); flex: none; }
.search-input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 64px; font-size: 18px; font-stretch: 106%; padding: 0; color: var(--on-blue) !important; }
.search-input::placeholder { color: var(--on-blue-3); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-cancel { flex: none; border: 1px solid var(--blue-line); background: transparent; color: var(--on-blue-3); border-radius: 4px; padding: 4px 8px; font-size: 12px; }
.search-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 18px; flex: 1; }
.search-group + .search-group { margin-top: 22px; }
.search-group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.search-label { font-size: 13px; font-weight: 600; font-stretch: 108%; color: var(--ink-3); margin-bottom: 10px; }
.search-group-head .search-label { margin-bottom: 0; }
.search-trending { list-style: none; display: grid; gap: 2px; }
.search-hit { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--ink); transition: background-color .15s; }
.search-hit:hover, .search-hit.is-active { background: var(--soft); }
.hit-rank { width: 28px; height: 28px; display: grid; place-items: center; font-size: 15px; font-stretch: 125%; font-weight: 700; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.hit-thumb { width: 92px; height: auto; aspect-ratio: var(--img-ratio); border-radius: var(--r); object-fit: cover; background: var(--paper-2); }
.hit-thumb--empty { display: block; }
.hit-title { font-size: 15.5px; font-weight: 600; font-stretch: 104%; line-height: 1.35; }
.hit-title mark { background: var(--trace); color: var(--trace-ink); padding: 0 1px; }
.hit-meta { display: flex; font-size: 13px; color: var(--ink-3); margin-top: 3px; font-weight: 400; }
.search-results .chips { margin-bottom: 18px; }
.search-all { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 12px 10px; border-top: 1px solid var(--rule); font-size: 14.5px; font-weight: 600; color: var(--blue-ink); text-decoration: none; }
.search-all.is-active, .search-all:hover { background: var(--soft); }
.search-empty { color: var(--ink-2); padding: 8px 4px 16px; }
.search-foot { display: flex; align-items: center; gap: 6px; padding: 10px 18px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-3); }
.search-foot kbd { font-size: 11px; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-3); margin-left: 8px; }
.search-foot kbd:first-child { margin-left: 0; }
.search-foot kbd + kbd { margin-left: -2px; }
@media (max-width: 899px) {
	.search-panel { margin: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; transform: translateY(12px); }
	.search-bar { padding: calc(8px + env(safe-area-inset-top)) 12px 8px 16px; }
	.search-input { min-height: 48px; font-size: 17px; }
	.search-cancel { border: 0; font-size: 16px; color: var(--blue-ink); font-weight: 600; padding: 8px; }
}

.sheet-panel {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface);
	border-radius: 18px 18px 0 0; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .34s var(--ease); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
.sheet.is-open .sheet-panel { transform: translateY(0); }
.sheet.is-dragging .sheet-panel { transition: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 5px; background: var(--rule-2); margin: 4px auto 12px; touch-action: none; cursor: grab; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-title { font-size: 21px; font-stretch: 118%; font-weight: 640; line-height: 1.15; letter-spacing: -.018em; margin: 4px 0 16px; }
.sheet-label { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 22px 0 10px; }
.sheet-list { list-style: none; }
.sheet-list > li { border-bottom: 1px solid var(--rule); position: relative; }
.sheet-list a, .sheet-list .nav-parent { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; font-size: 19px; font-stretch: 118%; font-weight: 600; letter-spacing: -.015em; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; height: auto; border-radius: 0; }
.sheet-list .sub-toggle { position: absolute; right: 0; top: 9px; width: 40px; height: 36px; margin: 0; color: var(--ink-3); }
.sheet-list .sub-menu { list-style: none; display: none; padding: 0 0 12px 12px; }
.sheet-list li.is-open > .sub-menu { display: block; }
.sheet-list .sub-menu a { min-height: 42px; font-size: 16px; font-stretch: 100%; font-weight: 500; color: var(--ink-2); }
.sheet-links { list-style: none; margin-top: 22px; border-top: 1px solid var(--rule); }
.sheet-links a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 16px; color: var(--ink); }
.sheet-links .icon { color: var(--ink-3); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.socials--sheet { margin-top: 20px; color: var(--ink); }
.sheet-head .brand { color: var(--ink); }
.sheet-panel--small { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: var(--r-ui); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 13px; }
.share-grid a:hover, .share-grid button:hover { border-color: var(--blue-ink); color: var(--blue-ink); }
@media (min-width: 900px) {
	.sheet { display: grid; place-items: center; }
	.sheet-panel { position: relative; left: auto; right: auto; bottom: auto; width: min(520px, 92vw); border-radius: 14px; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .2s; padding: 20px 24px 24px; }
	.sheet.is-open .sheet-panel { transform: none; opacity: 1; }
	.sheet-handle { display: none; }
}

.lightbox { background: rgba(10, 10, 11, .96); display: grid; place-items: center; opacity: 0; transition: opacity .2s; touch-action: pan-y; }
.lightbox.is-open { opacity: 1; }
.lightbox-figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 94vw; }
.lightbox-figure img { max-width: 94vw; max-height: 84vh; width: auto; object-fit: contain; }
.lightbox-figure figcaption { color: #d6d6d2; font-size: 14px; text-align: center; max-width: 70ch; }
.lightbox .icon-btn { color: #fff; background: rgba(255, 255, 255, .08); position: absolute; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .16); }
.lightbox-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) { .lightbox-nav { display: none; } }

.toast {
	position: fixed; z-index: 250; left: 50%; bottom: calc(var(--tabbar-h) + 18px); transform: translate(-50%, 12px); opacity: 0; background: var(--ink); color: var(--paper);
	border: 0; padding: 11px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-pop); transition: opacity .2s, transform .25s var(--ease); pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body.has-overlay { overflow: hidden; }

.widget { font-size: 15px; }
.widget-title { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.widget ul { list-style: none; display: grid; gap: 8px; }

/* ---------- Page transitions, motion, print ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	@view-transition { navigation: none; }
	.js .about-plan path { stroke-dasharray: none; stroke-dashoffset: 0; }
}
@media print {
	.site-header, .site-footer, .tabbar, .entry-rail, .entry-side, .entry-tools, .share-row, .related, .comments, .next-loader, .toc-pill, .post-nav, .read-progress, .search-overlay, .sheet { display: none !important; }
	body { background: #fff; color: #000; padding: 0; }
	.entry-cover { display: block; min-height: 0; background: none; color: #000; }
	.entry-title, .entry-dek, .byline-author, .byline-meta { color: #000; }
	.cover-media img { max-height: none; }
	.entry-layout { display: block; }
	.entry-content a { color: #000; }
}

/* Phone reading sizes */
@media (max-width: 599px) {
	.entry-content { font-size: calc(17.5px * var(--fs-read)); }
	.entry-content h2, .entry--loaded .entry-content h3 { font-size: calc(24px * var(--fs-read)); font-stretch: 112%; }
	.entry-content h3, .entry--loaded .entry-content h4 { font-size: calc(19px * var(--fs-read)); }
	.entry-content blockquote, .entry-content .wp-block-quote { font-size: calc(21px * var(--fs-read)); }
	.hit-meta { gap: 2px 12px; }
	.hit-meta > * + *::before { display: none; }
}
@media (max-width: 599px) { .section-projects .card--wide .card-title, .card--lead .card-title, .card--wide .card-title { font-size: 23px; } }

/* ---------- The logo's green dot as a signature ---------- */
.tdot, .tindex-name::after { display: inline-block; width: .17em; height: .17em; margin-left: .06em; border-radius: 50%; background: var(--dot); }
.tindex-name::after { content: ""; opacity: 0; transition: opacity .2s; }
.tindex-row:hover .tindex-name::after, .tindex-row:focus-visible .tindex-name::after { opacity: 1; }
.card-cat::before, .entry-cover .entry-cat::before {
	content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); margin-right: 6px; vertical-align: 1px;
}
@media (max-width: 599px) { .site-header .brand img { height: calc(var(--logo-h, 30px) * .86); } }

/* ---------- In short (quick answer) ---------- */
.entry-content .tldr { margin: 0 0 2.2em; padding: 18px 22px 20px; background: var(--soft); border-left: 4px solid var(--dot); border-radius: 0 var(--r-ui) var(--r-ui) 0; }
.entry-content .tldr-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); line-height: 1.2; }
.entry-content .tldr-text { margin: 0; font-size: 1.02em; line-height: 1.6; color: var(--ink); }
.entry-content .tldr-text + .tldr-text { margin-top: .6em; }

/* ---------- FAQs ---------- */
.entry-content .faq { margin-top: 2.8em; }
.entry-content .faq-title { margin: 0 0 .5em; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.entry-content .faq-q { margin: 0; font-size: calc(19px * var(--fs-read)); font-stretch: 106%; font-weight: 640; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.entry--loaded .entry-content .faq-title { font-size: calc(30px * var(--fs-read)); }
.entry--loaded .entry-content .faq-q { font-size: calc(19px * var(--fs-read)); font-stretch: 106%; margin: 0; }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-2); transition: background-color .2s, border-color .2s, transform .25s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 1px; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .2s; }
.faq-item[open] .faq-icon { background: var(--dot); border-color: var(--dot); }
.faq-item[open] .faq-icon::before { background: var(--dot-ink); }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-a { padding: 0 46px 20px 0; color: var(--ink-2); }
.entry-content .faq-a p { margin: 0; }
.entry-content .faq-a p + p { margin-top: .7em; }
@media (max-width: 599px) { .faq-a { padding-right: 0; } .footer-badge img { height: 42px; } }
