/* ==========================================================================
   The Humanism Project — additions to the original design (see base.css)

   1. WordPress basics      5. Videos            9. Pagination, empty states
   2. Navigation            6. Gallery + viewer  10. Forms
   3. Inner page header     7. Article pages     11. Comments
   4. Blog cards            8. Video pages
   ========================================================================== */

/* 1. WordPress basics
   ========================================================================== */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	display: block;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	color: var(--paper);
	background: var(--ink-deep);
	clip: auto;
	clip-path: none;
}

/* Logged-in toolbar sits above the floating navigation bar. */
.admin-bar .site-header {
	top: 48px;
}

.admin-bar .skip-link {
	top: 40px;
}

html:has(body.admin-bar) {
	scroll-padding-top: 144px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 56px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 10px;
	}
}

/* Safety net: if the script cannot start, nothing stays hidden. */
.reveal-all .reveal {
	opacity: 1 !important;
	transform: none !important;
}

.section-more {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: clamp(36px, 4.5vw, 60px);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-deep);
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.text-link:hover {
	color: var(--orange);
}

.about-image-placeholder {
	min-height: 620px;
	background: #b9bfd0;
}

/* The original page showed the About photo 1200px tall on every screen size; keep that look. */
.about-image img,
.about-image-placeholder {
	height: 1200px;
}

@media (min-width: 901px) {
	.principles {
		grid-template-columns: repeat(var(--hp-cols, 5), 1fr);
	}
}

/* 2. Navigation
   ========================================================================== */

.desktop-nav {
	min-width: 0;
}

.desktop-nav a {
	white-space: nowrap;
}

.brand-name,
.brand-line {
	white-space: nowrap;
}

/* The menu now holds eight links, so it tightens up earlier. */
@media (max-width: 1500px) {
	.desktop-nav {
		gap: clamp(14px, 1.5vw, 24px);
	}
}

@media (max-width: 1280px) {
	.desktop-nav {
		gap: 15px;
	}

	.desktop-nav a {
		font-size: 0.75rem;
	}

	.nav-donate {
		display: none;
	}
}

.nav-compact .desktop-nav {
	gap: 14px;
}

.nav-compact .desktop-nav a {
	font-size: 0.75rem;
}

.nav-compact .nav-donate {
	display: none;
}

/* Full-screen menu panel (phones, tablets, and any width where the links do not fit). */
.mobile-menu {
	position: fixed;
	z-index: 90;
	inset: 0;
	display: none;
	align-content: start;
	padding: 116px 24px 34px;
	overflow-y: auto;
	color: var(--paper);
	background: var(--ink-deep);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-16px);
	transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.admin-bar .mobile-menu {
	padding-top: 150px;
}

.menu-open .mobile-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mobile-menu nav {
	display: grid;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 62px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	font-family: var(--display);
	font-size: 1.45rem;
	font-weight: 600;
	text-decoration: none;
}

.mobile-menu nav a::after {
	color: var(--orange-light);
	content: "↘";
	font-family: var(--sans);
	font-size: 1rem;
}

.mobile-menu nav a.active {
	color: var(--orange-light);
}

.mobile-menu-actions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 26px;
}

@media (max-width: 1120px) {
	.nav-shell {
		grid-template-columns: 1fr auto;
	}

	.desktop-nav,
	.nav-actions {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

	.mobile-menu {
		display: grid;
	}
}

.nav-collapsed .nav-shell {
	grid-template-columns: 1fr auto;
}

.nav-collapsed .desktop-nav,
.nav-collapsed .nav-actions {
	display: none;
}

.nav-collapsed .menu-toggle {
	display: flex;
}

.nav-collapsed .mobile-menu {
	display: grid;
}

@media (max-width: 640px) {
	.mobile-menu {
		padding-top: 100px;
	}

	.mobile-menu nav a {
		min-height: 54px;
		font-size: 1.25rem;
	}

	.brand-name,
	.brand-line {
		white-space: normal;
	}
}

/* 3. Inner page header
   ========================================================================== */

.page-hero {
	--overlap: clamp(70px, 9vw, 130px);
	position: relative;
	overflow: hidden;
	color: var(--paper);
	background: var(--ink);
}

.page-hero::before {
	position: absolute;
	top: -300px;
	right: -180px;
	width: 660px;
	height: 660px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
	content: "";
}

.page-hero::after {
	position: absolute;
	top: -240px;
	right: -120px;
	width: 540px;
	height: 540px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	content: "";
}

.page-hero-inner {
	position: relative;
	z-index: 2;
	padding-top: clamp(150px, 15vw, 204px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

.page-hero.has-image .page-hero-inner {
	padding-bottom: calc(var(--overlap) + clamp(44px, 5vw, 72px));
}

.page-hero.is-flush .page-hero-inner {
	padding-bottom: clamp(36px, 4vw, 56px);
}

.page-hero .hero-kicker a {
	color: inherit;
	text-decoration: none;
}

.page-hero .hero-kicker a:hover {
	color: var(--orange-light);
}

.page-title {
	max-width: 1000px;
	margin-bottom: 0;
	font-family: var(--display);
	font-size: clamp(2.6rem, 5.6vw, 5.25rem);
	font-weight: 600;
	line-height: 0.96;
	letter-spacing: -0.045em;
}

.single .page-title {
	font-size: clamp(2.4rem, 4.8vw, 4.4rem);
	line-height: 1;
}

.page-intro {
	max-width: 660px;
	margin: 26px 0 0;
	color: #e4e6f1;
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	line-height: 1.65;
}

.page-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 0;
	margin-top: 28px;
	color: #d6d9ec;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.page-meta > * + *::before {
	margin-inline: 14px;
	color: var(--orange-light);
	content: "/";
}

/* 4. Blog cards
   ========================================================================== */

.blog-teaser,
.posts-index {
	background: var(--paper);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--ink-deep);
}

.post-card {
	display: flex;
	flex-direction: column;
	padding: 34px clamp(20px, 2.4vw, 34px) 40px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.post-card:nth-child(3n) {
	border-right: 0;
}

.post-card-media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	margin-bottom: 26px;
	overflow: hidden;
	background: var(--mist);
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85) contrast(1.02);
	transition: transform 600ms ease, filter 300ms ease;
}

.post-card:hover .post-card-media img {
	filter: none;
	transform: scale(1.03);
}

.post-card-media.is-empty {
	background: var(--ink);
}

.post-card-media.is-empty::before,
.post-card-media.is-empty::after {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	content: "";
	transform: translate(-50%, -50%);
}

.post-card-media.is-empty::before {
	width: 64%;
	aspect-ratio: 1;
}

.post-card-media.is-empty::after {
	width: 38%;
	aspect-ratio: 1;
	border-color: var(--orange-light);
}

.post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
}

.post-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.post-card-meta span {
	color: var(--ink-deep);
	font-weight: 800;
}

.post-card-meta > * + *::before {
	margin-inline: 10px;
	color: var(--orange);
	content: "/";
}

.post-card h3 {
	margin-bottom: 12px;
	font-family: var(--display);
	font-size: clamp(1.45rem, 2vw, 1.9rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.post-card h3 a {
	text-decoration: none;
}

.post-card h3 a:hover {
	text-decoration: underline;
	text-decoration-color: var(--orange);
	text-decoration-thickness: 2px;
}

.post-card-body > p {
	margin-bottom: 24px;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

.post-card .text-link {
	margin-top: auto;
}

/* One post: a wide feature. Two posts: two columns. */
.post-grid.count-1 {
	grid-template-columns: 1fr;
}

.post-grid.count-1 .post-card {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
	padding-inline: 0;
	border-right: 0;
}

.post-grid.count-1 .post-card-media {
	margin-bottom: 0;
}

.post-grid.count-1 .post-card h3 {
	font-size: clamp(1.9rem, 3.2vw, 3rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.post-grid.count-1 .post-card-body > p {
	font-size: 1.02rem;
}

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

.post-grid.count-2 .post-card:nth-child(n) {
	border-right: 1px solid var(--line);
}

.post-grid.count-2 .post-card:nth-child(even) {
	border-right: 0;
}

@media (max-width: 900px) {
	.post-grid,
	.post-grid.count-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-card:nth-child(n),
	.post-grid.count-2 .post-card:nth-child(n) {
		padding-inline: 22px;
		border-right: 1px solid var(--line);
	}

	.post-card:nth-child(even),
	.post-grid.count-2 .post-card:nth-child(even) {
		border-right: 0;
	}

	.post-grid.count-1 .post-card:nth-child(n) {
		grid-template-columns: 1fr;
		gap: 26px;
		padding-inline: 0;
		border-right: 0;
	}
}

@media (max-width: 640px) {
	.post-grid,
	.post-grid.count-2 {
		grid-template-columns: 1fr;
	}

	.post-card:nth-child(n),
	.post-grid.count-2 .post-card:nth-child(n) {
		padding: 28px 0 32px;
		border-right: 0;
	}
}

/* 5. Videos
   ========================================================================== */

.videos {
	position: relative;
	overflow: hidden;
	color: var(--paper);
	background: var(--ink);
}

.videos::after {
	position: absolute;
	right: -230px;
	bottom: -270px;
	width: 620px;
	height: 620px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.02);
	content: "";
	pointer-events: none;
}

.videos .container {
	position: relative;
	z-index: 2;
}

.videos .eyebrow {
	color: #c6cae0;
}

.videos .section-title {
	color: var(--paper);
}

.videos .section-intro {
	color: #d7d9e7;
}

.video-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.74fr);
	align-items: start;
	gap: clamp(36px, 5vw, 76px);
}

.video-layout.is-single {
	grid-template-columns: 1fr;
}

.video-layout.is-single .video-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.74fr);
	align-items: center;
	gap: clamp(36px, 5vw, 76px);
}

.video-frame {
	position: relative;
	padding: 0 18px 18px 0;
}

.video-frame::before {
	position: absolute;
	right: 0;
	bottom: 0;
	width: calc(100% - 18px);
	height: calc(100% - 18px);
	border: 1px solid rgba(255, 255, 255, 0.4);
	content: "";
}

.video-embed {
	position: relative;
	z-index: 1;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #05071c;
}

.video-embed img,
.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-embed img {
	object-fit: cover;
	filter: saturate(0.9);
	transition: transform 600ms ease, filter 300ms ease;
}

.video-play {
	position: absolute;
	inset: 0;
	display: block;
	color: var(--ink-deep);
}

.video-play::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 12, 44, 0) 45%, rgba(10, 12, 44, 0.55) 100%);
	content: "";
}

.video-play-icon {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	display: grid;
	width: clamp(60px, 7vw, 92px);
	height: clamp(60px, 7vw, 92px);
	place-items: center;
	border-radius: 50%;
	background: var(--orange-light);
	box-shadow: 0 18px 50px rgba(4, 6, 26, 0.45);
	transform: translate(-50%, -50%);
	transition: transform 180ms ease, background 180ms ease;
}

.video-play-icon svg {
	width: 38%;
	height: 38%;
	margin-left: 6%;
}

.video-play:hover .video-play-icon {
	background: #ffc16e;
	transform: translate(-50%, -50%) scale(1.06);
}

.video-play:hover img {
	filter: none;
	transform: scale(1.03);
}

.video-feature-copy {
	margin-top: 30px;
}

.video-layout.is-single .video-feature-copy {
	margin-top: 0;
	padding-top: 24px;
	border-top: 7px solid var(--orange);
}

.video-feature-copy h3 {
	margin-bottom: 12px;
	font-family: var(--display);
	font-size: clamp(1.6rem, 2.5vw, 2.4rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.video-feature-copy p {
	max-width: 640px;
	margin-bottom: 0;
	color: #d7d9e7;
	font-size: 0.98rem;
}

.video-rail {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.video-rail-item {
	display: grid;
	grid-template-columns: 150px 1fr;
	align-items: center;
	gap: 18px;
	padding-block: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	text-decoration: none;
}

.video-rail-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #05071c;
}

.video-rail-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85);
	transition: transform 400ms ease;
}

.video-rail-item:hover .video-rail-thumb img {
	transform: scale(1.05);
}

.video-rail-play {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 50%;
	color: var(--ink-deep);
	background: var(--orange-light);
}

.video-rail-play svg {
	width: 12px;
	height: 12px;
	margin-left: 1px;
}

.video-rail-copy {
	display: grid;
	gap: 7px;
}

.video-rail-copy strong {
	font-family: var(--display);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.2;
}

.video-rail-item:hover strong {
	color: var(--orange-light);
}

.video-rail-copy span {
	color: #c6cae0;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (max-width: 900px) {
	.video-layout,
	.video-layout.is-single .video-feature {
		grid-template-columns: 1fr;
	}

	.video-layout.is-single .video-feature-copy {
		margin-top: 4px;
	}
}

@media (max-width: 640px) {
	.video-frame {
		padding: 0 10px 10px 0;
	}

	.video-frame::before {
		width: calc(100% - 10px);
		height: calc(100% - 10px);
	}

	.video-rail-item {
		grid-template-columns: 116px 1fr;
		gap: 14px;
	}
}

/* 6. Gallery and photo viewer
   ========================================================================== */

.gallery {
	background: var(--soft);
}

.gallery-page {
	background: var(--paper);
}

.gallery-wrap {
	container-type: inline-size;
}

/* Rows are as tall as one column is wide, so tiles are square whatever the screen size. */
.gallery-grid {
	--gap: 12px;
	--cols: 4;
	--ratio: 1;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	grid-auto-rows: 22vw;
	grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * var(--ratio));
	grid-auto-flow: dense;
	gap: var(--gap);
}

.gallery-grid.n-1 {
	--cols: 1;
	--ratio: 0.5625;
}

.gallery-grid.n-2 {
	--cols: 2;
	--ratio: 0.75;
}

.gallery-grid.n-3,
.gallery-grid.n-6 {
	--cols: 3;
	--ratio: 0.75;
}

.gallery-grid.lead-big .gallery-item:first-child {
	grid-row: span 2;
	grid-column: span 2;
}

.gallery-grid.lead-wide .gallery-item:first-child,
.gallery-grid.pair-wide .gallery-item:first-child,
.gallery-grid.pair-wide .gallery-item:nth-child(6) {
	grid-column: span 2;
}

.gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--mist);
	cursor: zoom-in;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.86) contrast(1.02);
	transition: transform 600ms ease, filter 300ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
	filter: none;
	transform: scale(1.04);
}

.gallery-caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 36px 14px 12px;
	color: var(--paper);
	background: linear-gradient(180deg, rgba(10, 12, 44, 0), rgba(10, 12, 44, 0.8));
	font-size: 0.76rem;
	font-weight: 650;
	line-height: 1.35;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 200ms ease, transform 200ms ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 900px) {
	.gallery-grid,
	.gallery-grid.n-3,
	.gallery-grid.n-6 {
		--cols: 2;
		--ratio: 1;
		--gap: 8px;
		grid-auto-rows: 46vw;
		grid-auto-rows: calc((100cqw - var(--gap)) / 2);
	}

	.gallery-grid.n-2 {
		--ratio: 0.75;
		grid-auto-rows: calc((100cqw - var(--gap)) / 2 * 0.75);
	}

	.gallery-grid.n-1 {
		--cols: 1;
		grid-auto-rows: 56vw;
		grid-auto-rows: calc(100cqw * 0.5625);
	}

	.gallery-grid.n-3 .gallery-item:first-child {
		grid-column: span 2;
	}
}

dialog.lightbox {
	width: min(1240px, calc(100% - 24px));
	max-width: none;
	max-height: none;
	overflow: visible;
	color: var(--paper);
	background: transparent;
	box-shadow: none;
}

dialog.lightbox::backdrop {
	background: rgba(5, 8, 31, 0.92);
}

.lightbox-figure {
	display: flex;
	min-height: 160px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0;
}

.lightbox-figure img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 150px);
	background: #05071c;
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-figure figcaption {
	max-width: 760px;
	color: #e4e6f1;
	font-size: 0.9rem;
	text-align: center;
}

.lightbox-figure figcaption:empty {
	display: none;
}

.lightbox-nav {
	position: fixed;
	z-index: 2;
	top: 50%;
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: var(--paper);
	background: rgba(14, 18, 56, 0.6);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lightbox-prev {
	left: clamp(10px, 3vw, 40px);
}

.lightbox-next {
	right: clamp(10px, 3vw, 40px);
}

.lightbox-nav svg {
	width: 20px;
	height: 20px;
}

.lightbox-nav:hover {
	color: var(--ink-deep);
	border-color: var(--orange-light);
	background: var(--orange-light);
}

.lightbox-nav[hidden] {
	display: none;
}

.lightbox .lightbox-close {
	position: fixed;
	top: 16px;
	right: 16px;
}

.lightbox-count {
	position: fixed;
	top: 26px;
	left: 24px;
	margin: 0;
	color: #d6d9ec;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

/* 7. Article pages
   ========================================================================== */

.entry-featured {
	position: relative;
	z-index: 3;
	width: min(1080px, calc(100% - (var(--gutter) * 2)));
	margin: calc(clamp(70px, 9vw, 130px) * -1) auto 0;
}

.entry-featured img {
	width: 100%;
	height: auto;
	max-height: 640px;
	object-fit: cover;
	box-shadow: 0 30px 80px rgba(7, 10, 35, 0.22);
}

.entry-featured figcaption {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.78rem;
}

.entry-container {
	width: min(760px, calc(100% - (var(--gutter) * 2)));
	margin-inline: auto;
	padding-block: clamp(48px, 6vw, 84px) var(--section);
}

.entry-content {
	color: #2c3146;
	font-size: 1.12rem;
	line-height: 1.75;
}

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

.entry-content > * + * {
	margin-top: 1.45em;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--ink-deep);
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -0.025em;
}

.entry-content h2 {
	margin-top: 2em;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	line-height: 1.08;
}

.entry-content h3 {
	margin-top: 1.8em;
	font-size: clamp(1.45rem, 2.2vw, 1.85rem);
	line-height: 1.15;
}

.entry-content h4 {
	margin-top: 1.6em;
	font-size: 1.25rem;
	line-height: 1.2;
}

.entry-content a {
	color: var(--ink);
	font-weight: 650;
	text-decoration: underline;
	text-decoration-color: var(--orange);
	text-decoration-thickness: 2px;
}

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

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li + li {
	margin-top: 0.5em;
}

.entry-content li::marker {
	color: var(--orange);
	font-weight: 800;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-inline: 0;
	padding: 6px 0 6px 26px;
	border-left: 5px solid var(--orange);
	color: var(--ink-deep);
	font-family: var(--display);
	font-size: 1.45rem;
	line-height: 1.35;
}

.entry-content blockquote p {
	margin: 0;
}

.entry-content blockquote p + p {
	margin-top: 0.6em;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 12px;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.entry-content img {
	height: auto;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.8rem;
	line-height: 1.5;
	text-align: left;
}

.entry-content hr,
.entry-content .wp-block-separator {
	height: 0;
	margin-block: 2.4em;
	border: 0;
	border-top: 1px solid var(--line);
}

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

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

.entry-content th {
	background: var(--soft);
	font-weight: 800;
}

.entry-content pre,
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 18px 20px;
	overflow-x: auto;
	background: var(--soft);
}

.entry-content .wp-block-button__link {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	padding: 13px 22px;
	border-radius: 3px;
	color: var(--paper);
	background: var(--ink-deep);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	color: var(--paper);
	background: #282d65;
}

.entry-content .alignwide {
	width: min(1080px, calc(100vw - (var(--gutter) * 2)));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .aligncenter {
	margin-inline: auto;
	text-align: center;
}

.entry-content .alignleft {
	float: left;
	margin: 0.4em 1.6em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.4em 0 1em 1.6em;
}

.entry-content::after {
	display: block;
	clear: both;
	content: "";
}

.entry-content iframe {
	max-width: 100%;
}

.page-links {
	margin-top: 2em;
	font-weight: 800;
}

.entry-footer {
	display: grid;
	gap: 22px;
	margin-top: clamp(40px, 5vw, 64px);
	padding-top: 28px;
	border-top: 1px solid var(--ink-deep);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.entry-tags a {
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 99px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.entry-tags a:hover {
	color: var(--ink-deep);
	border-color: var(--ink-deep);
}

.entry-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.entry-share > span {
	margin-right: 8px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.entry-share .social-link {
	min-height: 38px;
	padding: 6px 13px;
	font-size: 0.7rem;
}

.entry-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	margin-top: clamp(40px, 5vw, 64px);
	padding-block: 26px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.entry-nav a {
	text-decoration: none;
}

.entry-nav-prev a,
.entry-nav-next a {
	display: grid;
	gap: 6px;
}

.entry-nav-next {
	text-align: right;
}

.entry-nav span {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.entry-nav strong {
	font-family: var(--display);
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.2;
}

.entry-nav-prev a:hover strong,
.entry-nav-next a:hover strong {
	color: var(--orange);
}

@media (max-width: 640px) {
	.entry-content {
		font-size: 1.04rem;
	}

	.entry-content blockquote,
	.entry-content .wp-block-quote {
		padding-left: 18px;
		font-size: 1.22rem;
	}

	.entry-nav {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.entry-nav-next {
		text-align: left;
	}

	.entry-nav-all {
		order: 3;
	}
}

/* 8. Video pages
   ========================================================================== */

.video-index {
	background: var(--paper);
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 36px);
}

.video-card h2 {
	margin: 18px 0 8px;
	font-family: var(--display);
	font-size: clamp(1.25rem, 1.7vw, 1.55rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.video-card h2 a {
	text-decoration: none;
}

.video-card h2 a:hover {
	text-decoration: underline;
	text-decoration-color: var(--orange);
	text-decoration-thickness: 2px;
}

.video-card p {
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

.video-card time {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Pulled up by a pixel so no hairline shows between the title band and the player. */
.video-single {
	position: relative;
	z-index: 3;
	margin-top: -1px;
	padding-top: 1px;
	padding-bottom: clamp(64px, 8vw, 112px);
	color: var(--paper);
	background: var(--ink);
}

.video-single .video-feature-copy p {
	font-size: 1.05rem;
}

.video-single .video-single-back {
	margin: 26px 0 0;
}

.video-single .text-link {
	color: var(--paper);
}

.video-single .text-link:hover {
	color: var(--orange-light);
}

@media (min-width: 901px) {
	.video-grid > .video-card:first-child {
		grid-column: span 2;
	}

	.video-grid > .video-card:first-child h2 {
		font-size: clamp(1.6rem, 2.4vw, 2.2rem);
	}
}

@media (max-width: 900px) {
	.video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.video-grid {
		grid-template-columns: 1fr;
	}
}

/* 9. Pagination and empty states
   ========================================================================== */

.hp-pagination {
	margin-top: clamp(40px, 5vw, 64px);
}

.hp-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.hp-pagination .page-numbers {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid #bfc5d2;
	border-radius: 99px;
	color: #4f566b;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
}

.hp-pagination .page-numbers.current,
.hp-pagination a.page-numbers:hover {
	color: var(--paper);
	border-color: var(--ink);
	background: var(--ink);
}

.hp-pagination .page-numbers.dots {
	border-color: transparent;
}

.hp-pagination svg {
	width: 14px;
	height: 14px;
}

.empty-state {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.empty-state h2 {
	flex-basis: 100%;
	margin-bottom: 0;
	font-family: var(--display);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.empty-state p {
	flex-basis: 100%;
	margin-bottom: 12px;
	color: var(--muted);
}

/* 10. Forms
   ========================================================================== */

.hp-trap {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.form-status.is-error {
	color: var(--red);
}

form.is-sending button[type="submit"] {
	opacity: 0.65;
	cursor: progress;
	pointer-events: none;
}

/* 11. Comments
   ========================================================================== */

.comments-area {
	margin-top: clamp(48px, 6vw, 80px);
}

.comments-title,
.comment-reply-title {
	margin-bottom: 22px;
	font-family: var(--display);
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: clamp(16px, 4vw, 44px);
}

.comment-body {
	padding-block: 22px;
	border-top: 1px solid var(--line);
	font-size: 0.98rem;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 0.78rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink-deep);
	font-weight: 800;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata a,
.comment-author a {
	text-decoration: none;
}

.reply a {
	color: var(--ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.comment-respond {
	margin-top: 36px;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--line);
	background: var(--soft);
}

.comment-form label {
	display: block;
	margin-bottom: 8px;
	color: var(--ink-deep);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 13px 14px;
	border: 1px solid #b8bfce;
	border-radius: 2px;
	color: var(--ink-deep);
	background: var(--paper);
}

.comment-form p {
	margin-bottom: 17px;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
