/* ==========================================================================
   Bauguide – Rohbau (Light / Dark / System)
   ========================================================================== */

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/oswald-latin-400.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;
}

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/oswald-latin-500.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;
}

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/oswald-latin-600.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;
}

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/oswald-latin-700.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;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-sans-3-variable.woff2") format("woff2-variations");
}

:root,
html[data-color-scheme="light"] {
	--bg: #e8e6e3;
	--ink: #1a1a1a;
	--muted: #5c5c5c;
	--surface: #f4f3f1;
	--surface-2: #ffffff;
	--border: #cfcbc6;
	--accent: #ad3f00;
	--accent-hover: #8f3300;
	--accent-ink: #ffffff;
	--header: #1a1a1a;
	--header-ink: #f2f0ed;
	--on-hero: #ffffff;
	--hero-scrim: linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.72) 100%);
	--drawer: #121212;
	--drawer-ink: #f2f0ed;
	--focus: color-mix(in srgb, var(--accent) 55%, transparent);
	--grain-opacity: 0.04;
}

html[data-color-scheme="dark"] {
	--bg: #121212;
	--ink: #f2f0ed;
	--muted: #a8a29e;
	--surface: #1c1c1c;
	--surface-2: #242424;
	--border: #33302e;
	--accent: #e85d04;
	--accent-hover: #ff7a2e;
	--accent-ink: #171717;
	--header: #0a0a0a;
	--header-ink: #f2f0ed;
	--on-hero: #ffffff;
	--hero-scrim: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.82) 100%);
	--drawer: #0a0a0a;
	--drawer-ink: #f2f0ed;
	--focus: color-mix(in srgb, var(--accent) 55%, transparent);
	--grain-opacity: 0.06;
}

:root {
	--font-display: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "Source Sans 3", "Helvetica Neue", sans-serif;
	--space-xs: 0.5rem;
	--space-sm: 0.75rem;
	--space-md: 1.25rem;
	--space-lg: 2rem;
	--space-xl: 3.5rem;
	--space-2xl: 5rem;
	--radius: 0;
	--content: 42rem;
	--wide: 72rem;
	--header-h: 4.25rem;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--ink);
	background-color: var(--bg);
	background-image: var(--grain);
	background-blend-mode: soft-light;
	background-size: 180px 180px;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	opacity: var(--grain-opacity);
	background-image: var(--grain);
	z-index: 0;
}

.site {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
}

::selection {
	background: color-mix(in srgb, var(--accent) 35%, var(--bg));
	color: var(--ink);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.2s var(--ease);
}

a:hover,
a:focus-visible {
	color: var(--accent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 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;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	background: var(--accent);
	color: var(--accent-ink);
	text-decoration: none;
}

.wrap {
	width: min(100% - 2rem, var(--wide));
	margin-inline: auto;
}

.wrap--narrow {
	width: min(100% - 2rem, var(--content));
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.35rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.button--accent {
	background: var(--accent);
	color: var(--accent-ink);
	border-color: var(--accent);
}

.button--accent:hover,
.button--accent:focus-visible {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	color: var(--accent-ink);
}

.button--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--border);
}

.button--ghost-light {
	background: transparent;
	color: var(--on-hero);
	border-color: color-mix(in srgb, var(--on-hero) 55%, transparent);
}

.button--ghost-light:hover,
.button--ghost-light:focus-visible {
	color: var(--on-hero);
	border-color: var(--on-hero);
	background: color-mix(in srgb, var(--on-hero) 10%, transparent);
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--header) 92%, transparent);
	color: var(--header-ink);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
	--accent: #ff7a2e;
	--accent-hover: #ff934f;
	--accent-ink: #171717;
}

.site-header.is-scrolled {
	border-bottom-color: color-mix(in srgb, var(--header-ink) 12%, transparent);
	background: var(--header);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--header-h);
}

.site-branding {
	flex: 0 0 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.site-logo {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: lowercase;
	line-height: 1;
	white-space: nowrap;
}

.site-logo__link {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--header-ink);
	text-decoration: none;
}

.site-logo__link:hover,
.site-logo__link:focus-visible {
	color: var(--accent);
}

.site-logo__mark {
	width: 2.25rem;
	height: 2.25rem;
	object-fit: contain;
	flex: 0 0 auto;
}

.site-header .site-logo__mark,
.nav-drawer .site-logo__mark,
.site-footer .site-logo__mark {
	padding: 0.12rem;
	background: #f2f0ed;
}

.site-logo__text {
	display: block;
}

.site-branding__claim {
	display: none;
	padding-left: 0.85rem;
	border-left: 1px solid color-mix(in srgb, var(--header-ink) 28%, transparent);
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--header-ink) 67%, transparent);
	max-width: 9rem;
}

.primary-nav {
	display: none;
	flex: 1 1 auto;
	min-width: 0;
	margin-left: 0.5rem;
}

.primary-nav .menu,
.primary-nav .sub-menu,
.nav-drawer .menu,
.nav-drawer .sub-menu,
.footer-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav .menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.15rem 0.85rem;
}

.primary-nav .menu > .menu-item {
	position: relative;
	flex: 0 0 auto;
}

.primary-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--header-ink);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	padding: 0.55rem 0.15rem;
	cursor: pointer;
}

.primary-nav a:not([href]) {
	cursor: default;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
	color: var(--accent);
}

.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% - 0.15rem);
	left: 0;
	min-width: 13.5rem;
	max-height: min(70vh, 28rem);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0.45rem 0;
	background: var(--header);
	border: 1px solid color-mix(in srgb, var(--header-ink) 16%, transparent);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
	z-index: 220;
}

.primary-nav .sub-menu .menu-item {
	display: block;
	width: 100%;
}

.primary-nav .sub-menu a {
	display: block;
	width: 100%;
	padding: 0.55rem 0.9rem;
	font-size: 0.78rem;
	white-space: normal;
	line-height: 1.3;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu,
.primary-nav .menu-item-has-children.is-open > .sub-menu {
	display: block;
}

.primary-nav .menu-item-has-children > a::after {
	content: "";
	width: 0.35rem;
	height: 0.35rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	opacity: 0.75;
}

/* Wide dropdown for the last top-level item (Weitere Themen). */
.primary-nav .menu > .menu-item-has-children:last-child > .sub-menu {
	left: auto;
	right: 0;
	min-width: min(22rem, 70vw);
	column-count: 2;
	column-gap: 0;
}

.primary-nav .menu > .menu-item-has-children:last-child > .sub-menu .menu-item {
	break-inside: avoid;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
	flex: 0 0 auto;
}

.theme-toggle {
	display: none;
	align-items: stretch;
	border: 1px solid color-mix(in srgb, var(--header-ink) 22%, transparent);
}

.theme-toggle__btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: color-mix(in srgb, var(--header-ink) 70%, transparent);
	font-family: var(--font-display);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.4rem 0.45rem;
	cursor: pointer;
	line-height: 1;
}

.theme-toggle__btn.is-active,
.theme-toggle__btn[aria-pressed="true"] {
	background: var(--accent);
	color: var(--accent-ink);
}

.theme-toggle--drawer {
	display: flex;
	width: 100%;
	margin-bottom: 1.25rem;
	border-color: color-mix(in srgb, var(--drawer-ink) 22%, transparent);
}

.theme-toggle--drawer .theme-toggle__btn {
	flex: 1;
	color: color-mix(in srgb, var(--drawer-ink) 70%, transparent);
}

.search-toggle,
.nav-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--header-ink);
	padding: 0.5rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.nav-toggle__bars {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 22px;
}

.nav-toggle__bars span {
	display: block;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

body.nav-open .nav-toggle__bars span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

body.nav-open .nav-toggle__bars span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.header-search {
	display: none;
	padding: 0 0 1rem;
	border-top: 1px solid color-mix(in srgb, var(--header-ink) 12%, transparent);
}

.header-search.is-open {
	display: block;
}

.nav-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s var(--ease);
	z-index: 110;
}

body.nav-open .nav-backdrop {
	opacity: 1;
	pointer-events: auto;
}

.nav-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(22rem, 88vw);
	height: 100%;
	background: var(--drawer);
	color: var(--drawer-ink);
	padding: 1.25rem;
	transform: translateX(100%);
	transition: transform 0.28s var(--ease), visibility 0.28s;
	z-index: 120;
	overflow-y: auto;
	visibility: hidden;
	pointer-events: none;
	--accent: #ff7a2e;
	--accent-hover: #ff934f;
	--accent-ink: #171717;
}

body.nav-open .nav-drawer {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

.nav-drawer .menu {
	display: grid;
	gap: 0.15rem;
}

.nav-drawer a {
	display: block;
	color: var(--drawer-ink);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.65rem 0;
}

.nav-drawer a:not([href]) {
	cursor: default;
}

.nav-drawer .sub-menu {
	display: none;
	padding: 0 0 0.35rem 0.85rem;
	margin: 0 0 0.35rem;
	border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

.nav-drawer .menu-item-has-children.is-open > .sub-menu {
	display: grid;
	gap: 0.1rem;
}

.nav-drawer .sub-menu a {
	font-size: 0.92rem;
	font-weight: 500;
	padding: 0.45rem 0;
	color: color-mix(in srgb, var(--drawer-ink) 82%, transparent);
}

.nav-drawer .menu-item-has-children > .menu-item__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.nav-drawer .menu-item__toggle {
	appearance: none;
	border: 1px solid color-mix(in srgb, var(--drawer-ink) 28%, transparent);
	background: transparent;
	color: var(--drawer-ink);
	width: 2.1rem;
	height: 2.1rem;
	flex: 0 0 auto;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}

.nav-drawer .menu-item-has-children.is-open > .menu-item__row .menu-item__toggle {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}

.nav-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.site-logo--drawer .site-logo__mark {
	width: 2.6rem;
	height: 2.6rem;
}

.nav-drawer__close {
	margin: 0;
	color: var(--drawer-ink);
	border-color: color-mix(in srgb, var(--drawer-ink) 30%, transparent);
}

/* Search form */

.search-form {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.search-field {
	flex: 1;
	min-width: 0;
	padding: 0.85rem 1rem;
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--ink);
	font: inherit;
	border-radius: var(--radius);
}

.site-header .search-field {
	background: color-mix(in srgb, var(--header-ink) 8%, transparent);
	border-color: color-mix(in srgb, var(--header-ink) 22%, transparent);
	color: var(--header-ink);
}

.search-submit {
	appearance: none;
	border: 0;
	background: var(--accent);
	color: var(--accent-ink);
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.85rem 1.1rem;
	cursor: pointer;
}

/* Cover hero */

.cover-hero {
	position: relative;
	min-height: min(88vh, 52rem);
	display: grid;
	align-items: end;
	color: var(--on-hero);
	overflow: hidden;
	background: #0a0a0a;
	--accent: #ff7a2e;
	--accent-hover: #ff934f;
	--accent-ink: #171717;
}

.cover-hero__media {
	position: absolute;
	inset: 0;
}

.cover-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	animation: cover-zoom 18s var(--ease) both;
}

.cover-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hero-scrim);
}

.cover-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 2rem;
	padding-block: clamp(4rem, 12vh, 7rem) clamp(2.5rem, 7vh, 4.5rem);
	animation: cover-fade 0.9s var(--ease) both;
}

.cover-hero__wordmark {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: 0.01em;
	text-transform: lowercase;
}

.cover-hero__wordmark .site-logo__link {
	gap: clamp(0.8rem, 2vw, 1.4rem);
	font-size: clamp(3rem, 10vw, 6.5rem);
	color: var(--on-hero);
}

.cover-hero__wordmark .site-logo__mark {
	width: clamp(4.3rem, 11vw, 7.5rem);
	height: clamp(4.3rem, 11vw, 7.5rem);
	padding: 0;
	background: transparent;
}

.cover-hero__brand-kicker,
.section-kicker {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--accent);
}

.cover-hero__tagline {
	margin: 0.75rem 0 0;
	max-width: 28rem;
	font-size: 1rem;
	color: color-mix(in srgb, var(--on-hero) 85%, transparent);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-family: var(--font-display);
	font-weight: 500;
}

.cover-hero__eyebrow {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 0.75rem;
}

.cover-hero__label,
.cover-hero__category,
.teaser__category {
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
}

.cover-hero h1.cover-hero__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 4.5vw, 3.2rem);
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
	max-width: 18ch;
	color: var(--on-hero);
}

.cover-hero h1.cover-hero__title a {
	color: var(--on-hero);
	text-decoration: none;
}

.cover-hero h1.cover-hero__title a:hover,
.cover-hero h1.cover-hero__title a:focus-visible {
	color: var(--accent);
}

.cover-hero__excerpt {
	margin: 1rem 0 0;
	max-width: 36rem;
	color: color-mix(in srgb, var(--on-hero) 88%, transparent);
}

.cover-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.cover-hero--empty {
	background:
		linear-gradient(135deg, #1a1a1a 0%, #2a211c 50%, #121212 100%);
}

/* Homepage search compass */

.home-compass {
	position: relative;
	background: var(--header);
	color: var(--header-ink);
	border-top: 1px solid color-mix(in srgb, var(--header-ink) 12%, transparent);
	--accent: #ff7a2e;
	--accent-hover: #ff934f;
	--accent-ink: #171717;
}

.home-compass__inner {
	display: grid;
	gap: 2rem;
	padding-block: clamp(2.5rem, 7vw, 5rem);
}

.home-compass__intro h2 {
	margin: 0;
	max-width: 14ch;
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3.8rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.home-compass__intro > p:last-child {
	margin: 1.1rem 0 0;
	max-width: 34rem;
	color: color-mix(in srgb, var(--header-ink) 72%, transparent);
}

.home-compass .search-field {
	background: color-mix(in srgb, var(--header-ink) 9%, transparent);
	border-color: color-mix(in srgb, var(--header-ink) 24%, transparent);
	color: var(--header-ink);
}

.home-compass .search-field::placeholder,
.site-header .search-field::placeholder {
	color: color-mix(in srgb, var(--header-ink) 60%, transparent);
}

.topic-nav {
	margin-top: 1.25rem;
}

.topic-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.topic-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--surface-2) 70%, transparent);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
}

.home-compass .topic-nav__list a {
	border-color: color-mix(in srgb, var(--header-ink) 22%, transparent);
	background: transparent;
	color: var(--header-ink);
}

.topic-nav__list a:hover,
.topic-nav__list a:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

@keyframes cover-zoom {
	from { transform: scale(1.08); }
	to { transform: scale(1.02); }
}

@keyframes cover-fade {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Sections / grid */

.section {
	padding-block: var(--space-xl);
}

.section--flush-top {
	padding-top: 0;
}

.section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: var(--space-lg);
	border-bottom: 1px solid var(--border);
	padding-bottom: 0.75rem;
}

.section__title,
.archive-title,
.entry-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.15;
	color: var(--ink);
}

.section__title {
	font-size: clamp(1.4rem, 3vw, 2rem);
}

.section__link {
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--muted);
	white-space: nowrap;
}

.section__link:hover {
	color: var(--accent);
}

.post-grid {
	display: grid;
	gap: var(--space-lg);
}

.teaser {
	display: grid;
	gap: 0.85rem;
	margin: 0;
}

.teaser__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
}

.teaser__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s var(--ease);
}

.teaser:hover .teaser__media img {
	transform: scale(1.04);
}

.teaser__media--empty {
	background:
		linear-gradient(135deg, var(--surface) 0%, var(--border) 100%);
}

.teaser__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	font-size: 0.85rem;
	color: var(--muted);
}

.teaser__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
}

.teaser__title a {
	text-decoration: none;
	color: inherit;
}

.teaser__title a:hover,
.teaser__title a:focus-visible {
	color: var(--accent);
}

.teaser__excerpt {
	margin: 0.35rem 0 0;
	color: var(--muted);
	font-size: 1rem;
}

.archive-header {
	margin-bottom: var(--space-lg);
}

.breadcrumbs {
	margin-bottom: 1.1rem;
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
}

.breadcrumbs li:not(:last-child) {
	flex: 0 0 auto;
}

.breadcrumbs li:last-child {
	flex: 1 1 auto;
	overflow: hidden;
}

.breadcrumbs a,
.breadcrumbs span[aria-current="page"] {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumbs span[aria-current="page"] {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
	color: var(--accent);
}

.breadcrumbs__separator {
	color: var(--accent);
	font-weight: 700;
	margin-left: 0.1rem;
}

.archive-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.archive-description {
	margin-top: 0.75rem;
	color: var(--muted);
	max-width: 40rem;
}

.archive-count,
.search-hero__count {
	margin: 0.85rem 0 0;
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.search-hero {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--surface);
	border-top: 4px solid var(--accent);
	border-bottom: 1px solid var(--border);
}

.search-hero .search-form {
	max-width: 48rem;
	margin-top: 1.5rem;
}

.search-hero .topic-nav {
	max-width: 54rem;
}

.empty-state,
.error-actions {
	margin-top: 1.5rem;
}

.empty-state {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--border);
	background: var(--surface);
}

.empty-state .search-form {
	max-width: 42rem;
}

.section--error .wrap--narrow {
	position: relative;
	padding: clamp(1.5rem, 5vw, 3rem);
	background: var(--surface);
	border-top: 4px solid var(--accent);
}

.error-code {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(3rem, 12vw, 6rem);
	font-weight: 700;
	line-height: 1;
	color: var(--accent);
}

/* Single / reading */

.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 130;
	background: transparent;
}

.reading-progress__bar {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.1s linear;
}

.entry-header {
	padding-block: var(--space-xl) var(--space-md);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 0.85rem;
	font-size: 0.9rem;
	color: var(--muted);
}

.entry-meta a {
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
}

.entry-title {
	font-size: clamp(2rem, 5vw, 3.2rem);
}

.entry-dek {
	margin: 1.25rem 0 0;
	font-size: clamp(1.15rem, 2.5vw, 1.4rem);
	line-height: 1.5;
	color: var(--muted);
}

.entry-byline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.entry-byline img {
	width: 2.75rem;
	height: 2.75rem;
	object-fit: contain;
}

.entry-byline p {
	margin: 0;
	display: grid;
	line-height: 1.25;
}

.entry-byline span {
	font-size: 0.8rem;
	color: var(--muted);
}

.entry-byline strong {
	font-family: var(--font-display);
	font-size: 0.88rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.entry-featured {
	margin: 0 auto var(--space-lg);
}

.entry-featured img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 1px solid var(--border);
}

.entry-layout {
	position: relative;
}

.article-utility {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: var(--space-lg);
	padding-block: 0.85rem;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.reading-status {
	display: grid;
	line-height: 1.2;
}

.reading-status__label {
	font-family: var(--font-display);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.reading-status strong {
	font-size: 0.95rem;
}

.article-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.article-actions button {
	appearance: none;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.article-actions button:hover,
.article-actions button:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

.entry-content {
	padding-bottom: var(--space-xl);
	overflow-wrap: anywhere;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.2;
	margin-top: 2rem;
}

.entry-content h2 {
	font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	max-width: 65ch;
}

.entry-content a {
	color: var(--accent);
}

.entry-content blockquote {
	margin: 1.75rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-size: 1.15rem;
}

.entry-content figure,
.entry-content .wp-block-image {
	margin-block: 2rem;
}

.entry-content figcaption {
	margin-top: 0.55rem;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--muted);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
	padding: 0.75rem;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--surface);
	font-family: var(--font-display);
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.entry-footer {
	padding-bottom: var(--space-xl);
	color: var(--muted);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.entry-tags > span {
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.entry-tags a {
	display: inline-flex;
	padding: 0.4rem 0.55rem;
	border: 1px solid var(--border);
	font-size: 0.78rem;
	text-decoration: none;
}

.editorial-note {
	padding: 1.25rem;
	border-left: 3px solid var(--accent);
	background: var(--surface);
}

.editorial-note p:last-child {
	margin: 0;
	font-size: 0.95rem;
}

.toc {
	display: none;
}

.toc__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.55rem;
}

.toc__list a {
	text-decoration: none;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.35;
}

.toc__list a.is-active,
.toc__list a:hover,
.toc__list a:focus-visible {
	color: var(--accent);
}

.toc-fab {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	appearance: none;
	border: 0;
	background: var(--accent);
	color: var(--accent-ink);
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.9rem 1.15rem;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.toc-fab[hidden] {
	display: none;
}

.toc-sheet-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 140;
}

.toc-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 150;
	background: var(--surface-2);
	color: var(--ink);
	border-top: 1px solid var(--border);
	padding: 1.25rem;
	max-height: min(70vh, 28rem);
	overflow: auto;
	transform: translateY(100%);
	transition: transform 0.28s var(--ease);
}

body.toc-open .toc-sheet {
	transform: translateY(0);
}

.toc-sheet[aria-hidden="true"] {
	visibility: hidden;
}

.toc-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

@media (min-width: 1200px) {
	.toc-fab,
	.toc-sheet,
	.toc-sheet-backdrop {
		display: none !important;
	}

	.entry-layout--with-toc {
		display: grid;
		grid-template-columns: minmax(0, var(--content)) 14rem;
		gap: 2.5rem;
		width: min(100% - 2rem, calc(var(--content) + 16.5rem));
		margin-inline: auto;
		align-items: start;
	}

	.entry-layout--with-toc .wrap--narrow {
		width: 100%;
	}

	.toc--rail {
		display: block;
		position: sticky;
		top: calc(var(--header-h) + 1.5rem);
		padding-top: 0.25rem;
	}
}

.related-posts {
	padding-block: 0 var(--space-xl);
}

.post-navigation {
	display: grid;
	gap: 1px;
	margin-bottom: var(--space-xl);
	background: var(--border);
	border: 1px solid var(--border);
}

.post-navigation__item {
	display: grid;
	gap: 0.4rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
}

.post-navigation__item span {
	font-family: var(--font-display);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

.post-navigation__item strong {
	font-family: var(--font-display);
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.25;
	text-transform: uppercase;
}

.post-navigation__item:hover strong,
.post-navigation__item:focus-visible strong {
	color: var(--accent);
}

/* Ads */

.ad-slot {
	padding-block: var(--space-md);
}

.ad-slot__label {
	margin: 0 0 0.4rem;
	font-family: var(--font-display);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.ad-slot__frame {
	min-height: 90px;
	display: grid;
	place-items: center;
	background: var(--surface);
	border: 1px dashed var(--border);
}

.ad-slot--billboard .ad-slot__frame {
	min-height: 180px;
}

.ad-slot--rectangle .ad-slot__frame {
	min-height: 250px;
}

.ad-slot__placeholder {
	display: grid;
	gap: 0.35rem;
	text-align: center;
	padding: 1rem;
	color: var(--muted);
}

.ad-slot__placeholder span {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ad-slot__inner--flush {
	width: min(100%, var(--content));
	margin: 1.5rem auto;
}

/* Footer */

.site-footer {
	margin-top: auto;
	background: var(--header);
	color: var(--header-ink);
	padding-block: var(--space-xl) var(--space-lg);
	--accent: #ff7a2e;
	--accent-hover: #ff934f;
	--accent-ink: #171717;
}

.site-footer a {
	color: var(--header-ink);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--accent);
}

.site-footer__inner {
	display: grid;
	gap: 1.5rem;
}

.site-footer__brand a {
	color: var(--header-ink);
}

.site-footer__tagline {
	margin: 0.75rem 0 0;
	color: color-mix(in srgb, var(--header-ink) 72%, transparent);
	max-width: 28rem;
}

.site-footer__editorial {
	margin: 0.45rem 0 0;
	font-size: 0.86rem;
	color: color-mix(in srgb, var(--header-ink) 58%, transparent);
}

.footer-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.footer-nav a {
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer__copy {
	margin-top: var(--space-lg);
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--header-ink) 14%, transparent);
	color: color-mix(in srgb, var(--header-ink) 65%, transparent);
	font-size: 0.95rem;
}

/* Pagination */

.pagination {
	margin-top: var(--space-lg);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--border);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--surface);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Responsive */

@media (min-width: 768px) {
	.theme-toggle {
		display: inline-flex;
	}

	.cover-hero__inner {
		grid-template-columns: 1fr 1.1fr;
		align-items: end;
		gap: 3rem;
	}

	.home-compass__inner {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		align-items: center;
		gap: clamp(2rem, 6vw, 5rem);
	}

	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__inner {
		grid-template-columns: 1.4fr 1fr;
		align-items: start;
	}

	.post-navigation {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-navigation__item--next {
		text-align: right;
	}
}

@media (min-width: 1100px) {
	.primary-nav {
		display: block;
	}

	.nav-toggle {
		display: none;
	}

	.site-branding__claim {
		display: block;
	}

	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) and (max-width: 1099px) {
	.primary-nav {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}
}

@media (max-width: 767px) {
	.cover-hero {
		min-height: min(78vh, 40rem);
	}

	.cover-hero__wordmark .site-logo__link {
		font-size: clamp(2.5rem, 13vw, 4rem);
	}

	.cover-hero__wordmark .site-logo__mark {
		width: clamp(3.8rem, 17vw, 5rem);
		height: clamp(3.8rem, 17vw, 5rem);
	}

	.search-form {
		flex-direction: column;
	}

	.site-header .search-form {
		flex-direction: row;
	}

	.article-utility {
		align-items: flex-start;
	}

	.article-actions {
		width: 100%;
	}

	.article-actions button {
		flex: 1 1 auto;
	}

	.entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

body.menu-open,
body.nav-open,
body.toc-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.reading-progress,
	.article-utility,
	.toc,
	.toc-fab,
	.toc-sheet,
	.toc-sheet-backdrop,
	.ad-slot,
	.related-posts,
	.post-navigation,
	.breadcrumbs {
		display: none !important;
	}

	body {
		background: #ffffff;
		color: #000000;
		font-size: 11pt;
	}

	.entry-content,
	.entry-header,
	.entry-featured {
		width: 100%;
		max-width: none;
	}

	a {
		color: inherit;
		text-decoration: underline;
	}
}
