/* =========================================================================
   PopTheme — main stylesheet
   Editorial / magazine blog. Mobile-first. CSS Grid + Flexbox.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
	--bg: #F5F2EC;
	--surface: #FFFFFF;
	--ink: #16181D;
	--ink-2: #26282E;
	--text: #33312C;
	--muted: #6E6B65;
	--muted-2: #8A8782;
	--muted-on-dark: #A9A69E;
	--muted-on-dark-2: #8A8E99;
	--accent: #FF6A45;
	--accent-press: #E8542F;
	--accent-light: #FF8A6B;
	--accent-2: #FFD24A;
	--border: #E6E2DA;
	--border-card: #EBE7DF;
	--border-pill: #E3DED4;
	--border-dark: #2A2D34;

	/* category color sets (eyebrow + 2 stripe tints) — assigned by term id */
	--cat-1: #3B6EF6; --cat-1a: #e6f0ff; --cat-1b: #eff5ff;
	--cat-2: #7C5CFC; --cat-2a: #f1e9ff; --cat-2b: #f6f0ff;
	--cat-3: #FF6A45; --cat-3a: #ffe8df; --cat-3b: #fff1ec;
	--cat-4: #1F8A5B; --cat-4a: #e3f6ec; --cat-4b: #eefaf2;
	--cat-5: #B5562F; --cat-5a: #fff4d6; --cat-5b: #fff9e8;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--radius-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(22, 24, 29, .04), 0 1px 3px rgba(22, 24, 29, .06);
	--shadow: 0 4px 16px rgba(22, 24, 29, .06);

	--container: 1180px;
	--gap: clamp(1rem, 2.5vw, 1.75rem);

	--font: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-display: "Space Grotesk", var(--font);
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--step-0: 1.125rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.4rem, 1.1rem + 1.5vw, 1.9rem);
	--step-3: clamp(1.9rem, 1.4rem + 2.5vw, 2.75rem);
	--step-4: clamp(2.4rem, 1.6rem + 4vw, 3.75rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--step-0);
	line-height: 1.72;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.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: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--tight { padding-block: clamp(1.25rem, 3vw, 2rem); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section__title { font-size: var(--step-2); margin: 0; }
.section__link { color: var(--accent); font-weight: 600; font-size: .9rem; }
.section__link:hover { color: var(--accent-press); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font: inherit; font-weight: 700; line-height: 1; cursor: pointer;
	padding: .8rem 1.25rem; border-radius: var(--radius-pill);
	border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
	text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-press); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--pill-accent { background: var(--accent-2); color: var(--ink); }

/* ---------- Announcement / utility strip ---------- */
.announce {
	background: var(--ink); color: var(--muted-on-dark);
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
}
.announce__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; padding-block: .5rem; }
.announce__date { color: var(--muted-on-dark); white-space: nowrap; text-transform: uppercase; font-weight: 500; }
.announce__msg { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.announce__label { color: var(--muted-on-dark); white-space: nowrap; }
.announce__text { color: var(--accent-light); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce__text a { color: inherit; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.site-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.site-brand:hover { text-decoration: none; }
.site-brand img, .site-brand svg { height: 30px; width: auto; }
.site-brand__name { font-size: 1.15rem; letter-spacing: -0.02em; }
.site-brand__name .brand-strong { font-weight: 700; color: var(--ink); }
.site-brand__name .brand-rest { font-weight: 500; color: var(--muted); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--text); font-weight: 600; font-size: .98rem; }
.primary-nav a:hover { color: var(--accent); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn--dark { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; padding: .55rem 1.1rem; }
.search-link { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
	border: 1.5px solid var(--border-pill); border-radius: 50%; color: var(--muted); }
.search-link:hover { border-color: var(--ink); color: var(--ink); }
.search-link svg { width: 15px; height: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Reading progress (article) */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 60; }
.reading-progress__bar { height: 100%; width: 0; background: var(--accent); transition: width .05s linear; }

/* ---------- Category pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.pill {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .5rem 1rem; border-radius: var(--radius-pill);
	background: var(--surface); border: 1px solid var(--border-pill);
	color: #3a3833; font-weight: 600; font-size: .84rem;
}
.pill:hover, .pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.pill--accent { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Eyebrow / kicker (mono) ---------- */
.kicker {
	display: inline-block; font-family: var(--font-mono);
	text-transform: uppercase; letter-spacing: .12em;
	font-size: 11px; font-weight: 500; color: var(--accent);
}
.badge {
	display: inline-block; font-family: var(--font-mono);
	background: var(--accent-2); color: var(--ink);
	font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
	padding: .35rem .7rem; border-radius: 6px;
}

/* ---------- Placeholder stripes (no featured image) ----------
   Tint comes from the post's category color set (--ph-a / --ph-b),
   assigned via .cat-c{1..5}. Falls back to a neutral warm tint. */
.placeholder { display: block; width: 100%; height: 100%; min-height: 158px; border-radius: inherit;
	--ph-a: #EBE7DF; --ph-b: #F3EFE7;
	background: repeating-linear-gradient(135deg, var(--ph-a) 0 11px, var(--ph-b) 11px 22px); }

/* Category color sets — eyebrow text + placeholder stripe tint */
.cat-c1 .card__cat, .cat-c1 .post-row__cat { color: var(--cat-1); }
.cat-c1 .placeholder { --ph-a: var(--cat-1a); --ph-b: var(--cat-1b); }
.cat-c2 .card__cat, .cat-c2 .post-row__cat { color: var(--cat-2); }
.cat-c2 .placeholder { --ph-a: var(--cat-2a); --ph-b: var(--cat-2b); }
.cat-c3 .card__cat, .cat-c3 .post-row__cat { color: var(--cat-3); }
.cat-c3 .placeholder { --ph-a: var(--cat-3a); --ph-b: var(--cat-3b); }
.cat-c4 .card__cat, .cat-c4 .post-row__cat { color: var(--cat-4); }
.cat-c4 .placeholder { --ph-a: var(--cat-4a); --ph-b: var(--cat-4b); }
.cat-c5 .card__cat, .cat-c5 .post-row__cat { color: var(--cat-5); }
.cat-c5 .placeholder { --ph-a: var(--cat-5a); --ph-b: var(--cat-5b); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); }
.card { background: var(--surface); border-color: var(--border-card); }
.card__media { position: relative; height: 158px; overflow: hidden; background: var(--border); }
.card__media .post-image,
.card__media .placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__cat { font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.card__title { font-size: 1rem; line-height: 1.2; margin: 0; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--accent); text-decoration: none; }
.card__excerpt { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 0; }
.card__meta { margin-top: auto; color: #9B9890; font-size: .78rem; }

/* Featured (hero) — gradient image block, text sits on the page below it */
.featured { display: flex; flex-direction: column; }
.featured__media {
	position: relative; min-height: 340px; flex: 1;
	border-radius: 16px; overflow: hidden;
	background: linear-gradient(135deg, var(--accent), var(--accent-light));
	display: flex; align-items: flex-end; padding: 26px;
}
.featured__media::before { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: repeating-linear-gradient(135deg, rgba(0,0,0,.05) 0 14px, transparent 14px 28px); }
.featured__media .post-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured__media .badge { position: relative; z-index: 1; }
.featured__title { font-weight: 700; font-size: 2rem; line-height: 1.06; letter-spacing: -.025em; margin: 1.25rem 0 0; max-width: 20ch; }
.featured__title a { color: var(--ink); }
.featured__title a:hover { color: var(--accent); text-decoration: none; }
.featured__excerpt { color: #56534D; font-size: .97rem; line-height: 1.55; margin: .75rem 0 .9rem; max-width: 58ch; }

/* Compact story (numbered list, dark panel) */
.story-panel { background: var(--ink); color: #fff; border-radius: 16px; padding: 24px; }
.story-panel__title { font-family: var(--font-mono); color: var(--accent-light); font-size: 11px; font-weight: 500;
	text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.1rem; }
.story-panel__title .accent { color: var(--accent); }
.story-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.story-list__item { display: flex; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--border-dark); }
.story-list__item:first-child { border-top: 0; padding-top: 0; }
.story-list__num { font-family: var(--font-display); color: var(--accent); font-weight: 700; font-size: 18px; min-width: 1.4rem; }
.story-list__link { font-family: var(--font-display); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.25; }
.story-list__link:hover { color: var(--accent-2); text-decoration: none; }
.story-list__meta { display: block; color: var(--muted-on-dark-2); font-size: 12px; margin-top: .25rem; }

/* ---------- Byline ---------- */
.byline { display: flex; align-items: center; gap: .65rem; }
.byline__avatar { border-radius: 50%; width: 36px; height: 36px; }
.byline__text { display: flex; flex-direction: column; line-height: 1.2; }
.byline__name { color: var(--ink); font-weight: 700; font-size: .92rem; }
.byline__name:hover { color: var(--accent); text-decoration: none; }
.byline__meta { color: var(--muted); font-size: .8rem; }

/* ---------- Homepage grids ---------- */
.home-hero { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.posts-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }

/* ---------- Newsletter CTA bar ---------- */
.cta {
	background: var(--ink); color: #fff; border-radius: var(--radius-lg);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	display: grid; gap: 1.25rem; align-items: center; grid-template-columns: 1fr;
}
.cta__title { color: #fff; font-size: var(--step-2); margin: 0 0 .25rem; }
.cta__text { color: var(--muted-on-dark); margin: 0; }
.cta__form { display: flex; gap: .5rem; flex-wrap: wrap; }
.cta__form input[type="email"] {
	flex: 1; min-width: 0; padding: .85rem 1rem; border-radius: var(--radius-pill);
	border: 1px solid var(--border-dark); background: var(--ink-2); color: #fff; font: inherit;
}
.cta__form input::placeholder { color: var(--muted-on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); margin-top: clamp(2.5rem, 6vw, 4rem); }
.site-footer__inner { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
.footer-brand { max-width: 22rem; }
.footer-brand .site-brand__name .brand-strong { color: #fff; }
.footer-brand .site-brand__name .brand-rest { color: var(--muted-on-dark); }
.footer-brand img, .footer-brand svg { height: 28px; }
.footer-brand p { margin-top: .75rem; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.footer-col h4 { font-family: var(--font-mono); color: #6B6F79; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: #C9C6BE; font-size: .85rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.site-footer__bottom { border-top: 1px solid var(--border-dark); padding-block: 1.25rem; font-family: var(--font-mono); font-size: 12px; color: #6B6F79;
	display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; }

/* ---------- Breadcrumb (mono) ---------- */
.crumbs { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 1rem; }
.crumbs a { color: var(--muted-2); }
.crumbs a:hover { color: var(--accent); text-decoration: none; }
.crumbs .sep { margin: 0 .4rem; opacity: .6; }

/* ---------- Category / topic hero ---------- */
.topic-hero { padding: clamp(2rem, 5vw, 2.75rem) 0 clamp(1.5rem, 4vw, 1.9rem);
	background: linear-gradient(180deg, #FFEDE6, var(--bg)); border-bottom: 1px solid #EBE5DB;
	margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.topic-hero .container { padding-inline: clamp(1rem, 4vw, 2rem); }
.topic-hero__title { font-weight: 700; font-size: var(--step-4); letter-spacing: -.03em; margin: .25rem 0 0; }
.topic-hero__desc { color: #56534D; font-size: 1rem; line-height: 1.55; max-width: 60ch; margin-top: .9rem; }
.topic-hero__row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; justify-content: space-between; margin-top: 1.25rem; }
.topic-stats { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); }
.topic-stats li { font-size: 12px; color: var(--muted-2); }
.topic-stats b { color: var(--ink); font-size: 15px; font-weight: 700; }
.topic-stats span { margin-left: .3rem; }
.topic-follow { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink);
	background: var(--accent-2); padding: 11px 20px; border-radius: var(--radius-pill); white-space: nowrap; }
.topic-follow:hover { text-decoration: none; filter: brightness(.97); }

/* Big read panel */
.bigread { background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden;
	display: grid; grid-template-columns: 1fr; }
.bigread__media { position: relative; aspect-ratio: 16/9; background: var(--border-dark); }
.bigread__media .post-image, .bigread__media .placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.bigread__media .placeholder { --ph-a: #23262d; --ph-b: #2b2f37; }
.bigread .kicker { color: var(--accent-light); }
.bigread__body { padding: clamp(1.25rem, 3vw, 2rem); }
.bigread__title { font-weight: 700; color: #fff; font-size: var(--step-2); letter-spacing: -.02em; margin: .5rem 0; }
.bigread__title a { color: #fff; }
.bigread__title a:hover { color: var(--accent-2); text-decoration: none; }
.bigread__excerpt { color: var(--muted-on-dark); }

/* ---------- Tabs (server-rendered links) ---------- */
.tabs { display: flex; gap: .35rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tabs a { padding: .65rem 1rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Topic layout (list + sidebar) ---------- */
.with-sidebar { display: grid; gap: var(--gap); grid-template-columns: 1fr; }

/* Post list (compact rows = horizontal cards) */
.post-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.post-row { display: grid; gap: 0; grid-template-columns: 1fr; background: var(--surface);
	border: 1px solid var(--border-card); border-radius: 14px; overflow: hidden; }
.post-row__media { position: relative; overflow: hidden; min-height: 160px; background: var(--border); }
.post-row__media .post-image, .post-row__media .placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.post-row__body { padding: 1.1rem 1.1rem 1.2rem; }
.post-row__cat { font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.post-row__title { font-size: 1.12rem; line-height: 1.2; margin: .45rem 0 .4rem; }
.post-row__title a { color: var(--ink); }
.post-row__title a:hover { color: var(--accent); text-decoration: none; }
.post-row__excerpt { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 0 0 .6rem; }

/* Sidebar widgets */
.sidebar { display: flex; flex-direction: column; gap: 1.4rem; }
.widget { background: var(--surface); border: 1px solid var(--border-card); border-radius: 14px; padding: 1.4rem; }
.widget__title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 1rem; }
.widget--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.widget--dark .widget__title { color: #fff; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.widget--dark p { color: var(--muted-on-dark); font-size: .85rem; line-height: 1.55; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.mini-list a { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.25; font-size: .9rem; }
.mini-list a:hover { color: var(--accent); text-decoration: none; }
.mini-list .meta { display: block; color: var(--muted); font-size: .78rem; margin-top: .2rem; }
.contributors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.contributors li { display: flex; align-items: center; gap: .7rem; }
.contributors img { border-radius: 50%; width: 34px; height: 34px; }
.contributors a { font-family: var(--font-display); color: var(--ink); font-weight: 600; font-size: .85rem; }

/* ---------- Single article ---------- */
.article { max-width: 720px; margin-inline: auto; }
.article__header { padding-top: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
.article__title { font-weight: 700; font-size: var(--step-3); line-height: 1.08; letter-spacing: -.025em; margin: .5rem 0 0; }
.article__dek { font-size: 1.18rem; color: #56534D; line-height: 1.5; margin-top: 1rem; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-top: 1.25rem; }
.share { display: flex; gap: .5rem; }
.share a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
	border: 1px solid var(--border); border-radius: 50%; color: var(--ink); }
.share a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share svg { width: 18px; height: 18px; }
.article__hero { max-width: 720px; margin: 1.75rem auto 0; }
.article__hero img, .article__hero .placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.article__hero figcaption { font-family: var(--font-mono); font-size: 12px; color: #9B9890; padding: .6rem .1rem 0; text-align: left; }

/* Article body (Gutenberg content) */
.article__body { max-width: 680px; margin-inline: auto; font-size: 1.125rem; line-height: 1.72; }
.article__body > p:first-of-type::first-letter {
	float: left; font-family: var(--font-display); font-size: 3.6em; line-height: .8; font-weight: 700;
	padding: .05em .12em 0 0; color: var(--accent);
}
.article__body h2 { font-size: var(--step-2); margin: 2rem 0 .75rem; }
.article__body h3 { font-size: 1.4rem; margin: 1.75rem 0 .6rem; }
.article__body img { border-radius: var(--radius); }
.article__body figure { margin: 1.75rem 0; }
.article__body figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.article__body blockquote {
	margin: 1.9rem 0; padding: .4rem 0 .4rem 1.5rem; border-left: 4px solid var(--accent);
	font-family: var(--font-display); font-size: 1.55rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
}
.article__body blockquote p { margin-bottom: .3em; }
.article__body blockquote cite { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); font-style: normal; }
.article__body pre { background: var(--ink); color: #f3f3f3; padding: 1.1rem 1.25rem; border-radius: var(--radius);
	overflow: auto; font-size: .92rem; line-height: 1.6; }
.article__body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.article__body :not(pre) > code { background: #efe9e0; padding: .15em .4em; border-radius: 6px; }
.article__body table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .98rem; }
.article__body th, .article__body td { border: 1px solid var(--border); padding: .65rem .85rem; text-align: left; }
.article__body th { background: #f3ede4; }
.article__body a { text-decoration: underline; text-underline-offset: 2px; }

/* Inline author callout */
.author-callout { display: flex; gap: 1rem; align-items: center; background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 2rem 0; }
.author-callout img { border-radius: 50%; width: 52px; height: 52px; }
.author-callout .name { font-weight: 700; color: var(--ink); }
.author-callout .role { color: var(--muted); font-size: .85rem; }

/* Tags (mono) */
.tag-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0 0; }
.tag-pills a { font-family: var(--font-mono); padding: 6px 13px; border-radius: var(--radius-pill);
	background: var(--surface); border: 1px solid var(--border-pill); color: var(--muted);
	font-size: 12px; }
.tag-pills a:hover { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }

/* Author box */
.author-box { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface);
	border: 1px solid var(--border-card); border-radius: 16px; padding: 1.5rem; margin: 1.75rem 0 0; }
.author-box img { border-radius: 50%; width: 56px; height: 56px; flex: none; }
.author-box__eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.author-box__name { font-size: 1.12rem; color: var(--ink); margin: .3rem 0 0; }
.author-box__bio { color: var(--muted); font-size: .85rem; line-height: 1.55; margin: .4rem 0 0; }
.author-box__link { display: inline-block; margin-top: .6rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* Related posts */
.related { margin-top: 2.5rem; }

/* ---------- Newsletter landing page ---------- */
.nl-hero { text-align: center; padding: clamp(3rem, 8vw, 4rem) 1rem clamp(2.5rem, 7vw, 3.5rem);
	background: linear-gradient(180deg, #FFEDE6, var(--bg)); }
.nl-hero__pill { font-family: var(--font-mono); background: var(--accent-2); color: var(--ink); font-weight: 500; font-size: 11px;
	letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill); display: inline-block; }
.nl-hero__title { font-weight: 700; font-size: var(--step-4); line-height: 1.02; letter-spacing: -.03em; margin: 1.1rem auto .25rem; max-width: 16ch; }
.nl-hero__sub { color: #56534D; font-size: 1.12rem; line-height: 1.55; max-width: 52ch; margin: 1rem auto 0; }
.nl-form { display: flex; gap: .5rem; max-width: 30rem; margin: 1.5rem auto 0; flex-wrap: wrap; justify-content: center; }
.nl-form input[type="email"] { flex: 1; min-width: 0; padding: .9rem 1.25rem; border-radius: var(--radius-pill);
	border: 1px solid var(--border-pill); background: var(--surface); font: inherit; }
.nl-fineprint { font-family: var(--font-mono); color: var(--muted); font-size: 11.5px; margin-top: .9rem; }
.nl-benefits { display: grid; gap: var(--gap); grid-template-columns: 1fr; max-width: 920px; margin-inline: auto; }
.benefit { background: var(--surface); border: 1px solid var(--border-card); border-radius: 14px; padding: 1.6rem; }
.benefit__icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
	background: var(--accent-3-bg, #FFE2D8); margin-bottom: 1rem; font-size: 20px; }
.benefit__icon svg { width: 20px; height: 20px; color: var(--accent); }
.benefit:nth-child(2) .benefit__icon { background: #EFE6FF; }
.benefit:nth-child(3) .benefit__icon { background: #FFF1C9; }
.benefit h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.benefit p { color: var(--muted); margin: 0; font-size: .85rem; line-height: 1.55; }
.issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; max-width: 920px; margin-inline: auto; }
.issue { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; padding: 1.1rem 1.4rem;
	background: var(--surface); border: 1px solid var(--border-card); border-radius: 12px; }
.issue__no { font-family: var(--font-mono); color: #9B9890; font-size: 12px; white-space: nowrap; }
.issue__title { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); flex: 1; min-width: 12rem; }
.issue__title:hover { color: var(--accent); text-decoration: none; }
.issue__read { color: var(--accent); font-weight: 600; font-size: .85rem; white-space: nowrap; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center;
	padding: 0 .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; background: var(--surface); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .page-numbers:hover { border-color: var(--ink); text-decoration: none; }
.loadmore-wrap { display: flex; justify-content: center; margin-top: 2rem; }

/* ---------- Comments ---------- */
.comments { max-width: 760px; margin: 3rem auto 0; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ul.children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.25rem 0; border-top: 1px solid var(--border); }

/* ---------- Search / 404 ---------- */
.page-hero { padding-block: clamp(2rem, 5vw, 3rem); }
.page-hero h1 { font-weight: 700; font-size: var(--step-3); letter-spacing: -.025em; }
.search-form { display: flex; gap: .5rem; max-width: 28rem; }
.search-form input[type="search"] { flex: 1; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-pill); font: inherit; background: var(--surface); }
.notfound { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.notfound h1 { font-weight: 700; font-size: var(--step-4); }

/* ---------- Generic page ---------- */
.page-content { max-width: 760px; margin-inline: auto; font-size: 1.1rem; line-height: 1.75; }
.entry-title { font-weight: 700; font-size: var(--step-3); letter-spacing: -.025em; }

/* =========================================================================
   Responsive — progressive enhancement upward
   ========================================================================= */
@media (min-width: 600px) {
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
	.nl-benefits { grid-template-columns: repeat(3, 1fr); }
	.post-row { grid-template-columns: 200px 1fr; }
	.related .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.home-hero { grid-template-columns: 1.6fr 1fr; align-items: start; }
	.posts-grid { grid-template-columns: repeat(3, 1fr); }
	.cta { grid-template-columns: 1.4fr 1fr; }
	.with-sidebar { grid-template-columns: 1fr 320px; align-items: start; }
	.bigread { grid-template-columns: 1.2fr 1fr; }
	.bigread__media { aspect-ratio: auto; height: 100%; }
	.author-box { grid-template-columns: auto 1fr; align-items: center; }
	.site-footer__inner { grid-template-columns: 1.4fr 2fr; }
}

/* Mobile nav */
@media (max-width: 859px) {
	.site-header__inner { gap: .6rem; }
	/* Right cluster: [search] [Subscribe] [hamburger]; nothing overflows. */
	.header-actions { margin-left: auto; gap: .5rem; }
	.nav-toggle { display: inline-flex; margin-left: 0; order: 1; }
	.primary-nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); background: var(--surface);
		box-shadow: -8px 0 30px rgba(0,0,0,.12); transform: translateX(100%); transition: transform .2s ease;
		padding: 5rem 1.5rem 2rem; z-index: 60; overflow-y: auto; margin-left: 0; }
	.primary-nav.is-open { transform: translateX(0); }
	.primary-nav ul { flex-direction: column; gap: .1rem; }
	.primary-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--border); }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
	.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
	body.nav-open { overflow: hidden; }
}

/* Phones */
@media (max-width: 480px) {
	html { overflow-x: hidden; }
	.site-brand__name { font-size: 1.02rem; }
	.site-brand img, .site-brand svg { height: 26px; }
	.search-link { display: none; }
	.header-actions .btn--dark { padding: .5rem .85rem; font-size: 13px; }

	.section { padding-block: clamp(1.5rem, 6vw, 2rem); }
	.section__title { font-size: 1.3rem; }

	.featured__media { min-height: 240px; padding: 18px; }
	.featured__title { font-size: 1.6rem; }
	.story-panel { padding: 20px; }
	.cta { padding: 1.5rem; }
	.bigread__body { padding: 1.5rem 1.4rem; }
	.topic-hero { padding: 1.75rem 0 1.4rem; }
	.topic-hero__title { font-size: 2rem; }
	.topic-stats { flex-wrap: wrap; gap: .75rem 1.2rem; }
	.nl-hero { padding: 2.5rem 1rem 2rem; }
	.nl-hero__title { font-size: 2rem; }
	.author-box { padding: 1.25rem; }
	.issue { padding: 1rem 1.1rem; }
	.article__title { font-size: 1.9rem; }
	.article__body { font-size: 1.06rem; }

	/* Wide tables scroll instead of breaking the layout */
	.article__body table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }

	/* Forms: button drops full-width below the input */
	.cta__form .btn, .nl-form .btn { flex: 1 0 100%; }

	/* Announce: stack date + announcement, centered, unclipped */
	.announce__label { display: none; }
	.announce__inner { justify-content: center; }
	.announce__date { white-space: normal; }
	.announce__text { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
