/*
Theme Name: I'm The People
Description: Marketing site and blog for I'm The People. Lightweight, no page builder. Pairs with the I'm The People app (Next.js), which holds sign-in, convictions, introductions and conversations.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: imthepeople
*/

/* ---------- Fonts (self-hosted copies of Geist and Newsreader, SIL Open Font License) ---------- */
@font-face {
	font-family: "Geist";
	src: url("assets/fonts/geist-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist";
	src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Newsreader";
	src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
	font-weight: 200 800;
	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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-latin-ext.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Newsreader";
	src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens. Founding-document paper and iron-gall ink, not party colors. ---------- */
:root {
	color-scheme: light dark;
	--bg: #f5f1e8;
	--bg-deep: #ece6d8;
	--surface: #fffdf8;
	--ink: #17212b;
	--ink-soft: #33414f;
	--muted: #5c6670;
	--line: #d9d1bf;
	--line-strong: #17212b;
	--accent: #1d4e74;
	--accent-ink: #ffffff;
	--accent-soft: #e3e8e6;
	--warm: #a4602a;
	--warm-soft: #f1e3cf;
	--band-bg: #14293b;
	--band-ink: #f5f1e8;
	--font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--wrap: 1160px;
	--prose: 41rem;
	--radius: 4px;
	--shadow: 0 1px 0 rgba(23, 33, 43, .04), 0 12px 32px -20px rgba(23, 33, 43, .28);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #12171c;
		--bg-deep: #0d1115;
		--surface: #1a2026;
		--ink: #eeeae0;
		--ink-soft: #cdcbc3;
		--muted: #a0a9b1;
		--line: #2e363d;
		--line-strong: #eeeae0;
		--accent: #86b6d8;
		--accent-ink: #0c1620;
		--accent-soft: #1b262e;
		--warm: #e0a95e;
		--warm-soft: #2b2319;
		--band-bg: #0b1a26;
		--band-ink: #eeeae0;
		--shadow: 0 1px 0 rgba(0, 0, 0, .2);
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; z-index: 100; top: .5rem; left: .5rem; width: auto; height: auto; margin: 0;
	padding: .6rem 1rem; clip: auto; background: var(--accent); color: var(--accent-ink);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--narrow { max-width: calc(var(--prose) + 2.5rem); }

.eyebrow {
	display: inline-block; margin-bottom: 1rem; color: var(--warm);
	font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: .55rem 1.4rem; border-radius: var(--radius);
	border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
	font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--on-band { background: var(--band-ink); color: var(--band-bg); border-color: var(--band-ink); }
.btn--on-band:hover { background: transparent; color: var(--band-ink); }
.btn--ghost-on-band { background: transparent; color: var(--band-ink); border-color: var(--band-ink); }
.btn--ghost-on-band:hover { background: var(--band-ink); color: var(--band-bg); }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; min-height: 68px; }
.brand { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--accent); text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; font-size: .97rem; }
.nav__list { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav__list a, .site-nav__signin { color: var(--ink); text-decoration: none; padding-block: .5rem; display: inline-block; }
.nav__list a:hover, .site-nav__signin:hover { color: var(--accent); text-decoration: underline; }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a, .nav__list .current_page_parent > a { color: var(--accent); font-weight: 600; }
.site-nav .btn { min-height: 42px; padding: .3rem 1.1rem; font-size: .95rem; }

/* Mobile menu needs no script: a details element holds the panel. */
.nav-toggle { display: none; }
.nav-toggle summary { list-style: none; cursor: pointer; display: grid; place-items: center; min-width: 48px; min-height: 48px; margin-right: -.6rem; }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: var(--ink); content: ""; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[open] .nav-toggle__bars { background: transparent; }
.nav-toggle[open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.site-nav--wide { display: none; }
	.nav-toggle { display: block; }
	.nav-toggle__panel {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--surface); border-bottom: 1px solid var(--line);
		padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
	}
	.nav-toggle__panel .nav__list { flex-direction: column; gap: 0; }
	.nav-toggle__panel .nav__list a, .nav-toggle__panel .site-nav__signin { display: block; padding-block: .8rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
	.nav-toggle__panel .btn { width: 100%; margin-top: 1rem; min-height: 48px; }
}
@media (min-width: 861px) { .nav-toggle__panel { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.hero h1 {
	position: relative; margin: 0 0 .4em; padding-top: .95em;
	font-size: clamp(3.2rem, 8.2vw, 6.2rem); line-height: .98; letter-spacing: -.03em;
}
/* The brand idea as a typographic mark: the first word of the Preamble, struck through and handed to you.
   Decorative and in CSS, so the heading text reads "I'm the people." to search engines and screen readers. */
.hero h1::before {
	content: "We"; position: absolute; top: 0; left: .04em;
	font-size: .5em; font-style: italic; font-weight: 400; color: var(--muted);
}
.hero h1::after {
	content: ""; position: absolute; top: .3em; left: -.02em; width: .72em; height: .04em;
	background: var(--warm); transform-origin: left center; transform: rotate(-6deg);
}
@media (prefers-reduced-motion: no-preference) {
	.hero h1::after { animation: strike .7s .35s cubic-bezier(.65, 0, .35, 1) both; }
	@keyframes strike { from { transform: rotate(-6deg) scaleX(0); } to { transform: rotate(-6deg) scaleX(1); } }
}
.hero__lede { font-family: var(--font-serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ink-soft); max-width: 35rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__note { margin: 1.1rem 0 0; color: var(--muted); font-size: .95rem; }
.hero__figure { position: relative; margin: 0; }
.hero__img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- The "not" strip ---------- */
.notstrip { border-block: 1px solid var(--line-strong); }
.notstrip__list { display: grid; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .notstrip__list { grid-template-columns: repeat(3, 1fr); } }
.notstrip__list li { padding: 1.1rem 0; font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -.01em; text-align: center; border-bottom: 1px solid var(--line); }
.notstrip__list li:last-child { border-bottom: 0; }
@media (min-width: 720px) {
	.notstrip__list li { border-bottom: 0; border-right: 1px solid var(--line); }
	.notstrip__list li:last-child { border-right: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--bg-deep); }
.section__head { max-width: 44rem; margin-bottom: 2.5rem; }
.section__head p { color: var(--muted); font-size: 1.15rem; margin-bottom: 0; }
.section__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; max-width: none; }
.section__row h2 { margin-bottom: 0; }

/* Feed versus this */
.contrast { display: grid; gap: 0; border: 1px solid var(--line-strong); background: var(--surface); }
@media (min-width: 760px) { .contrast { grid-template-columns: 1fr 1fr; } }
.contrast > div { padding: clamp(1.5rem, 3vw, 2.25rem); }
.contrast > div + div { border-top: 1px solid var(--line-strong); }
@media (min-width: 760px) { .contrast > div + div { border-top: 0; border-left: 1px solid var(--line-strong); } }
.contrast h3 { font-size: 1.5rem; }
.contrast ul { margin: 0; padding: 0; list-style: none; }
.contrast li { padding-block: .7rem; border-top: 1px solid var(--line); }
.contrast__them { color: var(--muted); }
.contrast__us { background: var(--warm-soft); }

/* Steps */
.steps { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; border-top: 2px solid var(--line-strong); padding-top: 1rem; }
.steps li::before {
	content: counter(step); display: block; margin-bottom: .75rem;
	font-family: var(--font-serif); font-size: 3.2rem; line-height: 1; font-style: italic; color: var(--warm);
}
.steps p { color: var(--muted); margin: 0; }

/* Introductions */
.compare { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { color: var(--accent); }
.card ul { margin: 0; padding-left: 1.2rem; }
.card li { margin-bottom: .5em; }
.card li:last-child { margin-bottom: 0; }
.fineprint { margin: 1.5rem 0 0; color: var(--muted); font-size: .97rem; max-width: 46rem; }

/* The empty record */
.ground { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .ground { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.record { margin: 0; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.record__label { display: block; padding: .7rem 1.25rem; border-bottom: 1px solid var(--line-strong); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.record__body { padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem; }
.record__chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-size: .9rem; color: var(--muted); }
.chip { padding: .15rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-weight: 500; }
.record__line { min-height: 3.5rem; margin: 0; font-family: var(--font-serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-style: italic; line-height: 1.3; color: var(--muted); border-bottom: 2px dashed var(--line); padding-bottom: 1rem; }
.record__foot { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }

.values { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.values > div { border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.values p { margin: 0; color: var(--muted); }

.home-faq { max-width: var(--prose); }

.band { background: var(--band-bg); color: var(--band-ink); padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.band h2 { color: inherit; max-width: 40rem; margin-inline: auto; }
.band p { max-width: 34rem; margin-inline: auto; opacity: .88; font-size: 1.1rem; }
.band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }

/* ---------- Inner pages ---------- */
.page__head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; }
.page__head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page__lede { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.4; color: var(--ink-soft); max-width: var(--prose); margin: 0; }
.page__figure { margin: 1rem 0 2rem; }
.page__figure img { display: block; width: 100%; border-radius: var(--radius); }
.page__body { padding-bottom: clamp(3rem, 7vw, 5rem); }
.page__notice { margin: 0 0 1.75rem; }

/* ---------- Prose: long reading is in the serif ---------- */
.prose { max-width: var(--prose); }
.prose--read { font-family: var(--font-serif); font-size: 1.24rem; line-height: 1.6; color: var(--ink); }
.prose h2 { margin-top: 2.25em; font-size: clamp(1.55rem, 2.8vw, 2rem); }
.prose--read h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.75em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .5em; }
.prose strong { font-weight: 600; }
.prose a { overflow-wrap: anywhere; }
.prose blockquote {
	margin: 1.75em 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--warm);
	font-family: var(--font-serif); font-size: 1.3em; line-height: 1.35; font-style: italic;
}
.prose blockquote p { margin-bottom: .5em; }
.prose blockquote cite { display: block; font-family: var(--font-sans); font-size: .62em; line-height: 1.4; font-style: normal; color: var(--muted); }
.prose details, .faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.prose details:last-of-type, .faq details:last-of-type { border-bottom: 1px solid var(--line); }
.prose summary, .faq summary { cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; }
.prose details p, .faq details p { margin: .6rem 0 0; color: var(--ink-soft); }
.prose--read details p { font-family: var(--font-sans); font-size: 1rem; }

/* Tables scroll inside their own box, so the page itself never scrolls sideways on a phone. */
.wp-block-table { margin: 1.75em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 36rem; border-collapse: collapse; font-family: var(--font-sans); font-size: .88rem; line-height: 1.4; }
.prose th { text-align: left; font-weight: 600; border-bottom: 2px solid var(--line-strong); padding: .55rem .7rem .55rem 0; vertical-align: bottom; }
.prose td { border-bottom: 1px solid var(--line); padding: .6rem .7rem .6rem 0; vertical-align: top; }
.prose th:first-child, .prose td:first-child { min-width: 11rem; }
.prose td a { overflow-wrap: normal; white-space: nowrap; }

/* ---------- Blog index ---------- */
.blog-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; border-bottom: 1px solid var(--line-strong); }
.blog-head h1 { margin-bottom: .3em; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.blog-head p { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.4; color: var(--ink-soft); max-width: 42rem; margin: 0; }

.feature { display: grid; gap: 1.5rem 3rem; padding-block: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 820px) { .feature { grid-template-columns: 1.1fr .9fr; } }
.feature img { display: block; width: 100%; border-radius: var(--radius); }
.feature h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.feature h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.feature h2 a:hover, .post-card h3 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }

.post-grid { display: grid; gap: 2.5rem 2rem; padding-block: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.post-grid--flush { padding-block: 0; }
.post-card { display: flex; flex-direction: column; }
.post-card__img { display: block; margin-bottom: 1rem; overflow: hidden; border-radius: var(--radius); background: var(--bg-deep); aspect-ratio: 16 / 9; }
.post-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__img img { transform: scale(1.02); }
.post-card h3 { font-size: 1.45rem; margin-bottom: .4em; }
.post-card p { color: var(--muted); font-size: 1rem; margin-bottom: .75rem; }
.post-kicker { display: block; margin-bottom: .5rem; color: var(--warm); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.post-meta { margin: 0; color: var(--muted); font-size: .88rem; }

.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; padding-bottom: 3rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: .75rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.empty-state { padding-block: clamp(3rem, 8vw, 6rem); max-width: 40rem; }

/* ---------- Single post ---------- */
.crumbs { padding-top: 1.25rem; font-size: .88rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--muted); }

.article-head { padding-block: clamp(1.5rem, 4vw, 3rem) 1.75rem; max-width: 52rem; }
.article-head h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.025em; }
.article-dek { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.4; color: var(--ink-soft); margin: 0 0 1.25rem; }
.article-byline { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: 0; color: var(--muted); font-size: .92rem; }
.article-figure { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.article-figure img { display: block; width: 100%; max-height: 460px; object-fit: cover; object-position: center top; border-radius: var(--radius); }
.article-figure figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }

.article-grid { display: grid; gap: 2rem; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 1020px) { .article-grid { grid-template-columns: minmax(0, var(--prose)) 15rem; justify-content: space-between; gap: 4rem; } }
.article-main { min-width: 0; }

.toc { font-size: .92rem; }
.toc--side { display: none; }
@media (min-width: 1020px) {
	.toc--side { display: block; position: sticky; top: 6rem; align-self: start; order: 2; max-height: calc(100vh - 7rem); overflow: auto; }
	.toc--inline { display: none; }
}
.toc--inline { margin: 0 0 2rem; background: var(--surface); border: 1px solid var(--line); padding: .85rem 1.1rem; }
.toc--inline summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.toc--inline ol { margin-top: .75rem; }
.toc__title { margin: 0 0 .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .35rem 0 .35rem .85rem; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.answer { margin: 0 0 1.75rem; padding: 1.35rem 1.5rem; background: var(--surface); border: 1px solid var(--line-strong); border-top-width: 3px; }
.answer__label { display: block; margin-bottom: .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--warm); }
.answer p { margin: 0; font-family: var(--font-serif); font-size: 1.32rem; line-height: 1.42; }

.takeaways { margin: 0 0 2.5rem; }
.takeaways h2 { margin: 0 0 .6rem; font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.takeaways ul { margin: 0; padding: 0; list-style: none; }
.takeaways li { position: relative; padding: .6rem 0 .6rem 1.4rem; border-top: 1px solid var(--line); line-height: 1.45; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: .5rem; height: .5rem; background: var(--warm); border-radius: 50%; }

.article-section { margin-top: 3rem; }
.article-section h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); }
.sources { margin: 0; padding-left: 1.3rem; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.sources li { margin-bottom: .55rem; }
.sources a { overflow-wrap: anywhere; }
.disclosure { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); font-size: .92rem; color: var(--muted); }
.disclosure p:last-child { margin-bottom: 0; }

.related { background: var(--bg-deep); padding-block: clamp(3rem, 6vw, 4.5rem); }
.related__title { margin-bottom: 2rem; }

/* ---------- Glossary ---------- */
.glossary { margin: 0; }
.glossary dt { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
.glossary dt:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.glossary dd { margin: .4rem 0 0; color: var(--ink-soft); }
.glossary__source { display: block; margin-top: .35rem; font-size: .88rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: var(--prose); margin-top: 1.5rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.form input[type="text"], .form input[type="email"], .form textarea {
	width: 100%; min-height: 48px; padding: .6rem .8rem; background: var(--surface); color: var(--ink);
	border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit;
}
.form input:focus-visible, .form textarea:focus-visible { border-color: var(--accent); outline-offset: 0; }
.form__hint { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); margin: 1.25rem 0 0; max-width: var(--prose); }
.alert--ok { background: var(--warm-soft); color: var(--ink); border-left: 3px solid var(--warm); }
.alert--ok a { color: inherit; font-weight: 600; }
.alert--err { border: 1px solid #b3261e; color: #b3261e; }
@media (prefers-color-scheme: dark) { .alert--err { border-color: #f2766e; color: #f2766e; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding-block: 3rem 2rem; color: var(--muted); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr 1fr; }
.site-footer__about { grid-column: 1 / -1; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.8fr 1fr 1fr; } .site-footer__about { grid-column: auto; } }
.site-footer .brand { display: inline-block; margin-bottom: .4rem; }
.site-footer__about p { max-width: 24rem; margin: 0; }
.site-footer h2 { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .1rem; }
.site-footer a:not(.brand) { color: var(--ink); text-decoration: none; display: inline-block; padding-block: .3rem; }
.site-footer a:not(.brand):hover { color: var(--accent); text-decoration: underline; }
.site-footer__legal { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(3rem, 10vw, 6rem); max-width: 40rem; }
.notfound__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .site-footer, .band, .related, .toc { display: none; }
	body { background: #fff; color: #000; }
}
