/* Inter variable (Latin subset), self-hosted. SIL Open Font License 1.1. */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("../fonts/inter-latin-var.woff2") format("woff2");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}
/* Metric-matched fallback so text does not shift when Inter loads. */
@font-face{font-family:"Inter Fallback";src:local("Arial");size-adjust:107.64%;ascent-override:89.79%;descent-override:22.36%;line-gap-override:0%}
/* ==========================================================================
   STORS theme. Mobile-first. Tokens first, then base, layout, components.
   ========================================================================== */

:root {
	--bg: #ffffff;
	--surface: #f7f8fa;
	--text: #171717;
	--muted: #6e6e6e;
	--border: #e5e7eb;
	--accent: #5b5ce2;
	--accent-contrast: #ffffff;
	--accent-text: var(--accent);
	--overlay: rgb(16 17 20 / 0.55);

	--font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--fs-hero: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem);
	--fs-article: clamp(2rem, 1.25rem + 3vw, 3.5rem);
	--fs-lead: clamp(1.625rem, 1.2rem + 1.7vw, 2.5rem);
	--fs-section: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--fs-card: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--fs-body: 1.0625rem;
	--fs-article-body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.15rem);
	--fs-meta: 0.8125rem;

	--container: 1280px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 6px;
	--header-h: 64px;
	--adminbar: 0px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #101114;
	--surface: #191b20;
	--text: #ececee;
	--muted: #9ba1ac;
	--border: #2b2e36;
	--accent-text: #9a9bee;
	--accent-text: color-mix(in srgb, var(--accent) 60%, #fff);
	--overlay: rgb(0 0 0 / 0.65);
	color-scheme: dark;
}

/* No-JavaScript fallback: follow the device or the Customizer default. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]):not([data-theme-default="light"]) {
		--bg: #101114;
		--surface: #191b20;
		--text: #ececee;
		--muted: #9ba1ac;
		--border: #2b2e36;
		--accent-text: #9a9bee;
		--accent-text: color-mix(in srgb, var(--accent) 60%, #fff);
		color-scheme: dark;
	}
}
:root:not([data-theme])[data-theme-default="dark"] {
	--bg: #101114;
	--surface: #191b20;
	--text: #ececee;
	--muted: #9ba1ac;
	--border: #2b2e36;
	--accent-text: #9a9bee;
	--accent-text: color-mix(in srgb, var(--accent) 60%, #fff);
	color-scheme: dark;
}

.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar: 46px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
	overflow-x: clip;
}
img, svg, video, canvas { max-width: 100%; height: auto; }
img { display: block; }
svg { height: auto; }
.icon-btn svg, .mark, .brand svg { height: auto; flex: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 2px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; word-wrap: normal;
}
.screen-reader-text:focus, .skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; overflow: visible; white-space: normal;
	position: fixed; top: calc(var(--adminbar) + 0.5rem); left: 0.5rem; z-index: 100000;
	background: var(--text); color: var(--bg); padding: 0.75rem 1rem; border-radius: var(--radius);
	font-weight: 600; text-decoration: none;
}
#content:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 48rem; }

.button, .wp-element-button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 44px; padding: 0.65rem 1.15rem; border: 0; border-radius: var(--radius);
	background: var(--accent); color: var(--accent-contrast); font-weight: 600; font-size: 0.9375rem;
	line-height: 1.2; text-decoration: none; cursor: pointer;
}
.button:hover, .wp-element-button:hover, input[type="submit"]:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.button:disabled, input:disabled { opacity: 0.55; cursor: not-allowed; }

input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], textarea, select {
	width: 100%; min-height: 44px; padding: 0.6rem 0.85rem; background: var(--bg); color: var(--text);
	border: 1px solid color-mix(in srgb, var(--text) 28%, var(--bg)); border-radius: var(--radius);
}
textarea { min-height: 8rem; }
::placeholder { color: var(--muted); opacity: 1; }

/* ---------- Announcement ---------- */
.announce { background: var(--surface); border-bottom: 1px solid var(--border); font-size: var(--fs-meta); }
.announce p { padding-block: 0.5rem; color: var(--muted); text-align: center; }
.announce a { color: var(--text); font-weight: 600; margin-left: 0.5rem; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.has-sticky-header .site-header { position: sticky; top: var(--adminbar); }
.site-header__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--text); }
.brand__word { font-weight: 800; font-size: 1.125rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; }
.brand__logo { max-height: 36px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; order: 2; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	background: transparent; border: 0; border-radius: var(--radius); color: var(--text); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle .cross { display: none; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-toggle[aria-expanded="true"] .cross { display: inline; }
.theme-toggle { display: none; }
.js .theme-toggle { display: inline-flex; }

/* Primary navigation. Without JavaScript it simply wraps below the logo. */
.primary-nav { order: 3; width: 100%; padding-bottom: 0.75rem; }
.menu, .footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.primary-nav .menu a { display: block; padding: 0.4rem 0; font-weight: 500; font-size: 0.9375rem; color: var(--text); text-decoration: none; }
.primary-nav .menu a:hover, .primary-nav .menu .current-menu-item > a, .primary-nav .menu .current-cat > a, .primary-nav .menu .current-menu-ancestor > a { color: var(--accent-text); }
.primary-nav .menu a[aria-current="page"] { color: var(--accent-text); }
.menu .sub-menu { list-style: none; padding-left: 1rem; }

.js .primary-nav {
	display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; padding: 0.5rem var(--gutter) 1.25rem;
	background: var(--bg); border-bottom: 1px solid var(--border);
}
.js .primary-nav.is-open { display: block; }
.js .primary-nav .menu { flex-direction: column; gap: 0; }
.js .primary-nav .menu a { padding: 0.8rem 0; font-size: 1.0625rem; border-bottom: 1px solid var(--border); }
.js .nav-toggle { display: inline-flex; }

@media (min-width: 900px) {
	.site-header__inner { flex-wrap: nowrap; gap: 2.5rem; }
	.primary-nav, .js .primary-nav { order: 1; display: block; position: static; width: auto; padding: 0; border: 0; background: none; flex: 1; }
	.js .primary-nav .menu, .primary-nav .menu { flex-direction: row; gap: 0.25rem 1.5rem; }
	.js .primary-nav .menu a { padding: 0.4rem 0; font-size: 0.9375rem; border: 0; }
	.js .nav-toggle { display: none; }
	.header-actions { margin-left: 0; }
	.menu .menu-item-has-children { position: relative; }
	.menu .sub-menu {
		position: absolute; top: 100%; left: -1rem; min-width: 13rem; padding: 0.5rem; display: none;
		background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); z-index: 10;
	}
	.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; }
	.menu .sub-menu a { padding: 0.5rem 0.75rem; }
}

/* Search dialog */
.search-dialog {
	width: min(100% - 2rem, 40rem); margin: 12vh auto auto; padding: 0.75rem; background: var(--bg); color: var(--text);
	border: 1px solid var(--border); border-radius: 10px;
}
.search-dialog::backdrop { background: var(--overlay); }
.search-dialog__inner { display: flex; align-items: center; gap: 0.5rem; }
.search-dialog .search-form { flex: 1; }
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field { flex: 1; min-width: 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section--band { background: var(--surface); border-block: 1px solid var(--border); }
.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	border-top: 2px solid var(--text); padding-top: 0.875rem; margin-bottom: 1.75rem;
}
.section-head h2 { font-size: var(--fs-section); }
.section-head__link { font-size: 0.9375rem; font-weight: 600; color: var(--accent-text); text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem); }
.hero__head { display: grid; gap: 1rem; }
.hero__title { font-size: var(--fs-hero); font-weight: 750; letter-spacing: -0.04em; line-height: 1.02; max-width: 16ch; }
.hero__intro { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); max-width: 34rem; }
.hero__grid { display: grid; gap: 2rem; margin-top: clamp(1.75rem, 4vw, 3rem); border-top: 2px solid var(--text); padding-top: 1.75rem; }
.hero__side { display: flex; flex-direction: column; gap: 1.25rem; }
.hero__side .card + .card { border-top: 1px solid var(--border); padding-top: 1.25rem; }
@media (min-width: 900px) {
	.hero__head { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
	.hero__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 3rem; }
}

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 0.875rem; min-width: 0; }
.card__media { aspect-ratio: 16 / 10; }
.media { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.media__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.card:hover .media__img { transform: scale(1.03); }
.media__ph {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
	border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); font-size: var(--fs-meta); font-weight: 600; text-align: center; padding: 0.5rem;
}
.media__ph .mark { opacity: 0.85; }
.card__body { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.card__title { font-size: var(--fs-card); font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; }
.card__link { text-decoration: none; color: var(--text); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link { text-decoration: underline; text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: var(--radius); }
.card__excerpt { color: var(--muted); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.cat-label {
	position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: var(--fs-meta); font-weight: 650; color: var(--accent-text); text-decoration: none; line-height: 1.2; min-height: 24px;
}
.cat-label::before { content: ""; width: 0.5rem; height: 0.5rem; background: currentColor; flex: none; }
a.cat-label:hover { text-decoration: underline; text-underline-offset: 3px; }

.meta, .byline__dates { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0; font-size: var(--fs-meta); color: var(--muted); }
.meta > * + *::before, .byline__dates > * + *::before {
	content: ""; display: inline-block; width: 1px; height: 0.85em; margin-inline: 0.75rem; background: var(--border); vertical-align: -0.1em;
	background: color-mix(in srgb, var(--muted) 45%, transparent);
}
.meta__author { color: var(--text); font-weight: 600; }

/* Variants */
.card--lead .card__title { font-size: var(--fs-lead); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.card--lead .card__excerpt { font-size: 1.0625rem; -webkit-line-clamp: 4; }
.card--lead .card__body { gap: 0.75rem; }
.card--lead { gap: 1.25rem; }

.card--side, .card--row, .card--tool { flex-direction: row; align-items: flex-start; gap: 1rem; }
.card--side .card__body, .card--row .card__body, .card--tool .card__body { flex: 1; }
.card--side .card__media { order: 2; width: 6.5rem; flex: none; }
.card--side .card__title { font-size: 1.0625rem; }
.card--row .card__media { width: 38%; max-width: 15rem; flex: none; }
.card--tool { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); align-items: flex-start; transition: border-color 0.2s; }
.card--tool:hover, .card--tool:focus-within { border-color: var(--accent); }
.card--tool .card__media { width: 3.5rem; aspect-ratio: 1; flex: none; }
.card--tool .media__ph .mark { width: 24px; height: 24px; }
.card--tool .media__ph-text, .card--side .media__ph-text, .rail .media__ph-text { display: none; }
.card--side .media__ph .mark { width: 24px; height: 24px; }
.card--tool .card__title { font-size: 1.0625rem; }
.card--tool .card__excerpt { -webkit-line-clamp: 2; }

/* Grids */
.grid { display: grid; gap: 2.25rem 1.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.picks-grid { display: grid; gap: 2rem 2.5rem; }
@media (min-width: 760px) { .picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tools-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cat-grid { list-style: none; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat-tile__link {
	display: flex; flex-direction: column; gap: 0.375rem; height: 100%; padding: 1rem 1.125rem; text-decoration: none;
	border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s, background-color 0.2s;
}
.cat-tile__link:hover { border-color: var(--accent); background: var(--surface); }
.cat-tile__name { font-weight: 650; font-size: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.cat-tile__name::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--accent-text); flex: none; }
.cat-tile__desc { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; display: none; }
@media (min-width: 760px) { .cat-tile__desc { display: block; } }
.cat-tile__count { color: var(--muted); font-size: var(--fs-meta); margin-top: auto; }

/* ---------- Newsletter ---------- */
.newsletter--home { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4.5rem); }
.newsletter__box {
	display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius);
}
.newsletter--article { margin-top: 3rem; }
.newsletter__title { font-size: var(--fs-section); }
.newsletter__copy p { color: var(--muted); margin-top: 0.5rem; max-width: 32rem; }
.nl-form label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; }
.nl-form__row { display: flex; flex-direction: column; gap: 0.5rem; }
.nl-form__note, .nl-form__admin { margin-top: 0.6rem; font-size: var(--fs-meta); color: var(--muted); }
.nl-form__admin { padding: 0.6rem 0.8rem; border: 1px dashed var(--border); border-radius: var(--radius); }
.nl-form__admin a { color: var(--accent-text); }
@media (min-width: 560px) { .nl-form__row { flex-direction: row; } .nl-form__row input { flex: 1; min-width: 0; } }
@media (min-width: 860px) { .newsletter--home .newsletter__box { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 2rem; border-top: 1px solid var(--border); background: var(--surface); padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-desc { color: var(--muted); font-size: 0.9375rem; max-width: 26rem; margin-top: 1rem; }
.footer-title { font-size: 0.875rem; font-weight: 650; letter-spacing: 0; margin-bottom: 0.875rem; }
.footer-menu { flex-direction: column; gap: 0.5rem; list-style: none; display: flex; }
.footer-menu a, .social a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; display: inline-block; padding-block: 0.125rem; }
.footer-menu a:hover, .social a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (min-width: 760px) {
	.footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem 3rem; }
	.footer-brand { grid-column: auto; }
	.footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Archives ---------- */
.archive-header { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; }
.archive-title { font-size: var(--fs-article); letter-spacing: -0.035em; line-height: 1.08; }
.archive-desc { color: var(--muted); font-size: 1.125rem; max-width: 42rem; }
.archive-search { max-width: 30rem; }
.archive-grid { padding-bottom: 1rem; }
.author-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.avatar { border-radius: 50%; width: auto; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0.25rem 0.9rem; font-size: 0.875rem; font-weight: 550;
	text-decoration: none; border: 1px solid var(--border); border-radius: 999px; color: var(--text);
}
.chips a:hover { border-color: var(--accent); color: var(--accent-text); }
.empty { padding-block: 2rem 4rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; max-width: 36rem; }
.empty h2 { font-size: var(--fs-section); }
.empty p { color: var(--muted); }

.breadcrumbs { font-size: var(--fs-meta); color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.breadcrumbs a { color: var(--muted); text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs [aria-current] { color: var(--text); overflow-wrap: anywhere; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.9rem;
	border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; font-weight: 550; font-size: 0.9375rem;
}
a.page-numbers:hover { border-color: var(--accent); color: var(--accent-text); }
.page-numbers.current { background: var(--text); border-color: var(--text); color: var(--bg); }
.page-numbers.dots { border: 0; }

/* ---------- Single article ---------- */
.entry-header { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.entry-header__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 52rem; }
.entry-title { font-size: var(--fs-article); font-weight: 750; letter-spacing: -0.035em; line-height: 1.08; }
.entry-dek { font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--muted); max-width: 44rem; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.25rem; }
.byline__author { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 600; font-size: 0.9375rem; }
.byline__author a { text-decoration: none; }
.byline__author a:hover { text-decoration: underline; text-underline-offset: 3px; }
.entry-figure { margin-top: 2rem; margin-bottom: 0; }
.entry--page .entry-figure { width: auto; }
.entry-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.entry-figure figcaption, .wp-caption-text, .wp-element-caption { font-size: 0.8125rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.5; }
.entry-figure .credit { display: block; }

.entry-layout { display: grid; gap: 0; margin-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.entry--page .entry-content, .entry--page .entry-header { padding-bottom: 1rem; }
.entry-main { min-width: 0; }
.no-rail .entry-main { width: 100%; max-width: 46.5rem; margin-inline: auto; }
@media (min-width: 1024px) {
	.has-rail { grid-template-columns: minmax(0, 46.5rem) 17.5rem; justify-content: space-between; column-gap: 3rem; }
	.rail__inner { position: sticky; top: calc(var(--adminbar) + 1.5rem); }
	.has-sticky-header .rail__inner { top: calc(var(--adminbar) + var(--header-h) + 1.5rem); }
}

/* Table of contents */
.toc--rail { display: none; }
@media (min-width: 1024px) {
	.has-rail .toc--rail { display: block; }
	.has-rail .toc--inline { display: none; }
}
.toc--inline { margin-bottom: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc--inline summary { cursor: pointer; padding: 0.875rem 1.125rem; font-weight: 650; font-size: 0.9375rem; min-height: 44px; }
.toc--inline nav { padding: 0 1.125rem 1rem; }
.toc__list { list-style: none; display: flex; flex-direction: column; font-size: 0.875rem; max-height: 55vh; overflow-y: auto; }
.toc__item a { display: block; padding: 0.4rem 0 0.4rem 0.875rem; color: var(--muted); text-decoration: none; border-left: 2px solid var(--border); line-height: 1.4; }
.toc__item--l3 a { padding-left: 1.75rem; }
.toc__item a:hover { color: var(--text); }
.toc__item a.is-active { color: var(--text); border-left-color: var(--accent); font-weight: 600; }
.rail-block { margin-bottom: 2rem; }
.rail-title { font-size: 0.875rem; font-weight: 650; letter-spacing: 0; margin-bottom: 0.875rem; padding-top: 0.75rem; border-top: 2px solid var(--text); }
.rail-list { display: flex; flex-direction: column; gap: 1.25rem; }
.rail .card--side .card__media { width: 5rem; }
.rail .card--side .card__title { font-size: 0.9375rem; }
@media (max-width: 1023px) { .rail { margin-top: 2.5rem; } }

/* Article body typography */
.entry-content { font-size: var(--fs-article-body); line-height: 1.75; }
.entry-content > * { margin-block: 0; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 1.875rem); line-height: 1.25; margin-top: 2.2em; }
.entry-content h3 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.4375rem); line-height: 1.3; margin-top: 1.9em; }
.entry-content h4 { font-size: 1.125rem; margin-top: 1.6em; }
.entry-content :is(h2, h3, h4) + * { margin-top: 0.7em; }
.entry-content :is(h2, h3) { scroll-margin-top: calc(var(--adminbar) + var(--header-h) + 1rem); }
.entry-content a, .comment-content a, .archive-desc a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content :is(ul, ol) { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content li > :is(ul, ol) { margin-top: 0.4em; }
.entry-content strong { font-weight: 650; }
.entry-content blockquote, .wp-block-quote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--accent); font-size: 1.1em; line-height: 1.6; }
.entry-content blockquote p + p { margin-top: 0.75em; }
.entry-content cite, .wp-block-quote cite { display: block; margin-top: 0.6rem; font-size: 0.875rem; color: var(--muted); font-style: normal; }
.wp-block-pullquote { border-block: 2px solid var(--text); padding: 1.5rem 0; text-align: left; }
.wp-block-pullquote blockquote { border: 0; padding: 0; font-size: 1.4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-inline: 0; }
.entry-content :is(code, kbd, samp) { font-family: var(--mono); font-size: 0.875em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 0.1em 0.35em; }
.entry-content pre, .wp-block-code { font-family: var(--mono); font-size: 0.875rem; line-height: 1.65; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.125rem; overflow-x: auto; tab-size: 2; }
.entry-content pre code, .wp-block-code code { background: none; border: 0; padding: 0; font-size: inherit; }
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.wp-block-table, .entry-content .table-wrap { overflow-x: auto; }
.entry-content th, .entry-content td { padding: 0.65rem 0.875rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.entry-content thead th { border-bottom: 2px solid var(--text); font-weight: 650; }
.entry-content .wp-block-separator, .entry-content hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.5em; max-width: none; }
.entry-content .wp-block-button__link { text-decoration: none; }
.entry-content .wp-block-embed iframe, .entry-content iframe { max-width: 100%; }
.entry-content .wp-block-details { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; }
.entry-content .wp-block-details summary { cursor: pointer; font-weight: 600; }
.entry-content .has-drop-cap:not(:focus)::first-letter { font-weight: 750; }
.entry-content mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; padding: 0 0.15em; }
.alignleft { float: left; margin: 0.25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.25rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.entry-content::after { content: ""; display: table; clear: both; }
.has-ink-color { color: #171717; } .has-ink-background-color { background-color: #171717; }
.has-slate-color { color: #6e6e6e; } .has-slate-background-color { background-color: #6e6e6e; }
.has-surface-color { color: #f7f8fa; } .has-surface-background-color { background-color: #f7f8fa; }
.has-indigo-color { color: #5b5ce2; } .has-indigo-background-color { background-color: #5b5ce2; }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }
.entry-content .has-text-color a { color: inherit; }

/* Wide and full alignment when there is no sidebar */
@media (min-width: 900px) {
	.no-rail .entry-content > .alignwide { width: min(1080px, calc(100vw - 2 * var(--gutter))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
	.no-rail .entry-content > .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
}

.page-links { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.page-links .post-page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.page-links .current { background: var(--text); color: var(--bg); border-color: var(--text); }
.entry-tags { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.entry-tags__label { font-size: 0.875rem; font-weight: 650; }

.author-box { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 3rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.author-box__name { font-weight: 650; }
.author-box__name a { text-decoration: none; }
.author-box__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.author-box__bio { color: var(--muted); font-size: 0.9375rem; margin-top: 0.25rem; }
.avatar--md, .avatar--lg { flex: none; }

.post-navigation { margin-top: 3rem; }
.post-navigation .nav-links { display: grid; gap: 1rem; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 1rem 1.125rem; text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius); }
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
@media (max-width: 639px) { .post-navigation .nav-next { grid-column: auto; } }
.post-nav__label { font-size: var(--fs-meta); color: var(--muted); }
.post-nav__title { font-weight: 650; line-height: 1.35; }

.section--related { background: var(--surface); border-top: 1px solid var(--border); }
.back-link a { color: var(--accent-text); }

/* Reading progress */
.reading-progress { position: fixed; top: var(--adminbar); left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.reading-progress__bar { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Comments ---------- */
.comments { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 2px solid var(--text); }
.comments__title, .comment-reply-title { font-size: var(--fs-section); margin-bottom: 1.25rem; }
.comment-list { list-style: none; }
.comment-list .children { list-style: none; margin-left: 1.25rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.comment-body { padding-block: 1.25rem; border-top: 1px solid var(--border); font-size: 0.9375rem; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin-bottom: 0.5rem; }
.comment-author { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 650; }
.comment-author .avatar { width: 40px; height: 40px; }
.comment-metadata, .comment-metadata a { font-size: var(--fs-meta); color: var(--muted); text-decoration: none; }
.reply a { font-size: 0.875rem; font-weight: 600; color: var(--accent-text); }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.3rem; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent input { margin-top: 0.3rem; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-notes, .logged-in-as { font-size: 0.875rem; color: var(--muted); }
.comments-pagination, .comment-navigation { margin-block: 1rem; }

/* ---------- WordPress core blocks (outside the article body) ---------- */
.widget ul { list-style: none; display: grid; gap: 0.4rem; font-size: 0.9375rem; }
.widget a { text-decoration: none; color: var(--muted); }
.widget a:hover { color: var(--accent-text); }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
	.card:hover .media__img { transform: none; }
}
@media print {
	.site-header, .announce, .site-footer, .rail, .newsletter, .reading-progress, .post-navigation, .section--related, .comments, .toc { display: none !important; }
	body { background: #fff; color: #000; }
	.entry-content a { color: inherit; text-decoration: underline; }
}
