/*
Theme Name: Nosalov Archive
Theme URI: https://nosalov.eu/
Author: Codex
Description: A quiet editorial archive theme for the history and present-day life of Nosalov. The theme preserves original article content and changes only presentation, navigation, and reading experience.
Version: 1.0.16
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: nosalov-archive
*/

:root {
	--paper: #f8f3e8;
	--paper-soft: #fffaf0;
	--ink: #1d2521;
	--muted: #69746e;
	--green: #173824;
	--green-2: #286344;
	--blue: #15548d;
	--blue-deep: #0f386a;
	--line: #dfd4c2;
	--gold: #d3a31f;
	--shadow: 0 20px 60px rgba(29, 37, 33, 0.12);
	--radius: 8px;
	--content: min(1120px, calc(100vw - 40px));
	--reading: 760px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 18px;
	line-height: 1.72;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(24, 63, 52, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
		linear-gradient(rgba(24, 63, 52, 0.035) 1px, transparent 1px) 0 0 / 72px 72px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
}

a {
	color: var(--green-2);
	text-decoration-color: rgba(47, 94, 75, 0.35);
	text-underline-offset: 0.18em;
}

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

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

figure {
	margin: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	display: block;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	white-space: normal;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 14px;
	background: var(--ink);
	color: #fff;
	border-radius: 4px;
	transition: top 160ms ease;
}

.skip-link:focus {
	top: 16px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(247, 241, 230, 0.92);
	border-bottom: 1px solid rgba(223, 212, 194, 0.82);
	backdrop-filter: blur(16px);
}

.site-header__inner {
	position: relative;
	width: var(--content);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 70px;
}

.site-branding {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--ink);
	text-decoration: none;
}

.site-branding__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 48px;
	padding: 3px;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.site-branding__mark img {
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}

.site-branding__name {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 25px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.site-branding__tagline {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-transform: uppercase;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 96px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper-soft);
	color: var(--green);
	font-size: 14px;
	font-weight: 850;
	cursor: pointer;
}

.site-navigation {
	display: block;
}

.primary-menu,
.primary-menu ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 4px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 750;
	line-height: 1.15;
	text-decoration: none;
}

.submenu-toggle {
	display: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	background: rgba(21, 84, 141, 0.08);
	color: var(--blue-deep);
}

.primary-menu .sub-menu,
.primary-menu .children {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 60;
	display: none;
	gap: 2px;
	width: 300px;
	max-height: min(70vh, 560px);
	overflow: auto;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-soft);
	box-shadow: var(--shadow);
}

.primary-menu .sub-menu::before,
.primary-menu .children::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -8px;
	height: 8px;
}

.primary-menu li:focus-within > .sub-menu,
.primary-menu li.is-submenu-open > .sub-menu,
.primary-menu li:focus-within > .children,
.primary-menu li.is-submenu-open > .children {
	display: grid;
}

.primary-menu .sub-menu a,
.primary-menu .children a {
	width: 100%;
	justify-content: flex-start;
	white-space: normal;
	min-height: 34px;
	padding: 6px 10px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.site-main {
	min-height: 60vh;
}

.front-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(430px, 58vw, 650px);
	display: grid;
	align-items: end;
	overflow: hidden;
	background: var(--green);
	border-bottom: 5px solid var(--gold);
}

.front-hero__image,
.front-hero__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.front-hero__image {
	z-index: -2;
	object-fit: cover;
	object-position: center 54%;
	filter: saturate(0.92) contrast(0.96);
}

.front-hero__shade {
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(15, 56, 106, 0.74), rgba(23, 56, 36, 0.36) 45%, rgba(23, 56, 36, 0.04)),
		linear-gradient(0deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.02) 48%);
}

.front-hero__content {
	width: var(--content);
	margin: 0 auto;
	padding: clamp(56px, 8vw, 92px) 0;
	color: #fffaf0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.front-hero__kicker {
	margin: 0 0 10px;
	color: #f4c84e;
	font-size: 13px;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.front-hero h1 {
	max-width: 720px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(56px, 8vw, 112px);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 0.9;
}

.front-hero p:not(.front-hero__kicker) {
	max-width: 650px;
	margin: 18px 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(21px, 2.4vw, 32px);
	line-height: 1.32;
}

.front-pillars {
	width: var(--content);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	padding: 44px 0 50px;
	border-bottom: 1px solid var(--line);
}

.pillar {
	display: grid;
	justify-items: center;
	padding: 8px clamp(20px, 4vw, 52px);
	color: var(--ink);
	text-align: center;
	text-decoration: none;
	border-right: 1px solid var(--line);
}

.pillar:last-child {
	border-right: 0;
}

.pillar__icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin-bottom: 16px;
	color: var(--green);
}

.pillar__icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pillar h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.04;
}

.pillar p {
	max-width: 280px;
	margin: 14px 0 22px;
	color: #425149;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	line-height: 1.48;
}

.pillar__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 22px;
	background: var(--green);
	color: #fffaf0;
	font-size: 14px;
	font-weight: 780;
	line-height: 1.1;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.pillar__link:hover,
.pillar__link:focus-visible {
	background: var(--blue-deep);
	color: #fff;
}

.archive-feature {
	width: var(--content);
	margin: 54px auto 68px;
	display: grid;
	grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 48px);
	align-items: stretch;
	border: 1px solid var(--line);
	background: rgba(255, 250, 240, 0.72);
}

.archive-feature__image {
	background: #e2d7c6;
}

.archive-feature__image img {
	width: 100%;
	height: 100%;
	min-height: 430px;
	object-fit: cover;
	filter: sepia(0.12) contrast(0.94);
}

.archive-feature__copy {
	align-self: center;
	padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 56px) clamp(28px, 5vw, 56px) 0;
}

.archive-feature__copy h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(36px, 4.5vw, 62px);
	line-height: 1.02;
}

.archive-feature__copy p:not(.entry-kicker) {
	margin: 22px 0;
	color: #33433a;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(20px, 2vw, 25px);
	font-style: italic;
	line-height: 1.62;
}

.photo-rail {
	width: var(--content);
	margin: 0 auto 54px;
}

.photo-rail__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.photo-rail figure {
	margin: 0;
}

.photo-rail img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid var(--line);
}

.photo-rail figcaption {
	margin-top: 8px;
	color: #3f4c45;
	font-size: 14px;
	line-height: 1.35;
}

.text-link {
	color: var(--green);
	font-size: 15px;
	font-weight: 780;
	text-decoration: none;
}

.text-link::after {
	content: " ->";
	color: var(--gold);
}

.lower-links {
	width: var(--content);
	margin: 0 auto 78px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border: 1px solid var(--line);
	background: rgba(255, 250, 240, 0.68);
}

.lower-links a {
	display: grid;
	gap: 8px;
	min-height: 150px;
	padding: 24px 22px;
	color: var(--ink);
	text-align: center;
	text-decoration: none;
	border-right: 1px solid var(--line);
}

.lower-links a:last-child {
	border-right: 0;
}

.lower-links a:hover,
.lower-links a:focus-visible {
	background: rgba(21, 84, 141, 0.07);
	color: var(--blue-deep);
}

.lower-links strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.12;
}

.lower-links span {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.45;
}

.hero {
	width: var(--content);
	margin: 28px auto 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
	gap: 34px;
	align-items: stretch;
}

.hero__copy {
	padding: clamp(24px, 4vw, 50px) 0 34px;
}

.hero__title {
	max-width: 770px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(44px, 6.4vw, 82px);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 0.96;
}

.hero__lead {
	max-width: 650px;
	margin: 20px 0 0;
	color: #3a463f;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(20px, 2.1vw, 27px);
	line-height: 1.38;
}

.hero__search {
	max-width: 560px;
	margin-top: 24px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	border: 1px solid var(--green);
	border-radius: 4px;
	background: var(--green);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none;
}

.button:hover,
.button:focus-visible {
	background: var(--gold);
	border-color: var(--gold);
	color: #fff;
}

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

.button--ghost:hover,
.button--ghost:focus-visible {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.hero__media {
	position: relative;
	min-height: 410px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--green);
	box-shadow: var(--shadow);
}

.hero__media img {
	width: 100%;
	height: 100%;
	min-height: 410px;
	object-fit: cover;
}

.hero__caption {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 22px;
	padding: 12px 14px;
	background: rgba(247, 241, 230, 0.9);
	color: var(--green);
	border-left: 3px solid var(--gold);
	font-size: 13px;
	font-weight: 760;
	line-height: 1.35;
}

.hero__media--plain .hero__caption {
	display: none;
}

.section {
	width: var(--content);
	margin: 66px auto;
}

.section--wide {
	width: 100%;
	padding: 78px max(20px, calc((100vw - 1120px) / 2));
	background: var(--green);
	color: #f7f1e6;
}

.section__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 18px;
}

.section--wide .section__header {
	border-color: rgba(247, 241, 230, 0.2);
}

.section__title,
.entry-title,
.page-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 4.5vw, 58px);
	font-weight: 700;
	line-height: 1.05;
}

.section__text {
	max-width: 640px;
	margin: 0;
	color: var(--muted);
}

.section--wide .section__text,
.section--wide a {
	color: rgba(247, 241, 230, 0.8);
}

.pathways {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.pathway {
	min-height: 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(251, 248, 241, 0.78);
	color: var(--ink);
	text-decoration: none;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pathway:hover,
.pathway:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(24, 63, 52, 0.45);
	box-shadow: 0 14px 36px rgba(29, 37, 33, 0.1);
	color: var(--ink);
}

.pathway h3 {
	margin: 0 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.1;
}

.pathway p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.45;
}

.featured-grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
	gap: 36px;
	align-items: center;
}

.featured-image {
	overflow: hidden;
	border-radius: var(--radius);
	background: #ddd3c5;
	box-shadow: var(--shadow);
}

.featured-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: sepia(0.12) contrast(0.96);
}

.article-preview {
	max-width: 700px;
}

.article-preview__label,
.entry-kicker {
	margin: 0 0 14px;
	color: var(--gold);
	font-size: 13px;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.article-preview h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 4vw, 56px);
	line-height: 1.06;
}

.article-preview p {
	margin: 22px 0 0;
	color: #435048;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	line-height: 1.55;
}

.archive-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.archive-strip img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	filter: saturate(0.9);
}

.archive-strip figure {
	margin: 0;
}

.archive-strip figcaption {
	margin-top: 10px;
	color: rgba(247, 241, 230, 0.75);
	font-size: 13px;
	line-height: 1.35;
}

.content-shell {
	width: var(--content);
	margin: 56px auto 96px;
	display: grid;
	grid-template-columns: minmax(0, var(--reading)) minmax(260px, 1fr);
	gap: 64px;
	align-items: start;
}

.content-shell--single {
	display: block;
	max-width: var(--reading);
}

.entry-header {
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}

.entry-meta {
	margin-top: 16px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 650;
}

.entry-content {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 21px;
	line-height: 1.78;
}

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

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table,
.entry-content .ngg-galleryoverview {
	margin-top: 0;
	margin-bottom: 1.45em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.6em 0 0.55em;
	color: var(--green);
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.15;
}

.entry-content h2 {
	font-size: 34px;
}

.entry-content h3 {
	font-size: 28px;
}

.entry-content blockquote {
	margin-left: 0;
	padding: 8px 0 8px 24px;
	border-left: 3px solid var(--gold);
	color: #3e4943;
	font-style: italic;
}

.entry-content figure,
.wp-caption {
	max-width: 100%;
	margin: 1.8em 0;
}

.entry-content img,
.wp-caption img {
	border-radius: 4px;
}

.wp-caption-text,
.entry-content figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 15px;
}

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

.entry-content .ngg-galleryoverview {
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.entry-footer {
	margin-top: 42px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

.section-index {
	margin-top: 46px;
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

.section-index h2 {
	margin: 0 0 18px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.08;
}

.section-index__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.section-index__grid a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 58px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	background: rgba(255, 250, 240, 0.76);
	color: var(--ink);
	font-size: 15px;
	font-weight: 780;
	line-height: 1.28;
	text-decoration: none;
}

.section-index__grid a::after {
	content: "->";
	color: var(--gold);
	flex: 0 0 auto;
}

.section-index__grid a:hover,
.section-index__grid a:focus-visible {
	border-color: rgba(21, 84, 141, 0.32);
	background: rgba(21, 84, 141, 0.07);
	color: var(--blue-deep);
}

.reading-aside {
	position: sticky;
	top: 110px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(251, 248, 241, 0.72);
}

.reading-aside h2 {
	margin: 0 0 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.15;
}

.reading-aside p,
.reading-aside li {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

.reading-aside ul {
	margin: 0;
	padding-left: 18px;
}

.post-list {
	display: grid;
	gap: 18px;
}

.post-card {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(251, 248, 241, 0.76);
}

.post-card h2 {
	margin: 0 0 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 31px;
	line-height: 1.15;
}

.post-card h2 a {
	color: var(--ink);
	text-decoration: none;
}

.post-card h2 a:hover {
	color: var(--green-2);
}

.post-card p {
	margin: 0;
	color: var(--muted);
}

.pagination {
	margin-top: 34px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper-soft);
	text-decoration: none;
}

.pagination .current {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

.site-footer {
	padding: 54px 0;
	background: #132f28;
	color: rgba(247, 241, 230, 0.78);
}

.site-footer__inner {
	width: var(--content);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 30px;
	align-items: start;
}

.site-footer h2 {
	margin: 0 0 10px;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 32px;
	line-height: 1;
}

.site-footer p {
	max-width: 620px;
	margin: 0;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	justify-content: end;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a {
	color: rgba(247, 241, 230, 0.86);
	font-size: 14px;
	font-weight: 760;
	text-decoration: none;
}

.footer-links a:hover {
	color: #fff;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper-soft);
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

.search-submit {
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--green);
	border-radius: 4px;
	background: var(--green);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.not-found {
	max-width: 720px;
	margin: 80px auto;
	text-align: center;
}

@media (max-width: 920px) {
	body {
		font-size: 17px;
	}

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

	.site-navigation {
		position: absolute;
		left: 20px;
		right: 20px;
		top: calc(100% + 8px);
		z-index: 50;
		display: none;
		width: auto;
		max-height: calc(100vh - 120px);
		overflow: auto;
		padding: 12px;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--paper-soft);
		box-shadow: var(--shadow);
	}

	.site-navigation.is-open {
		display: block;
	}

	.primary-menu,
	.primary-menu ul {
		display: grid;
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.primary-menu li {
		position: relative;
		display: block;
	}

	.primary-menu li > a {
		display: flex;
		width: 100%;
		min-height: 44px;
		padding: 10px 12px;
	}

	.primary-menu li.has-submenu > a {
		padding-right: 56px;
	}

	.submenu-toggle {
		position: absolute;
		top: 2px;
		right: 0;
		z-index: 2;
		display: inline-grid;
		place-items: center;
		width: 48px;
		height: 40px;
		border: 0;
		border-radius: 4px;
		background: transparent;
		color: var(--green);
		font: inherit;
		font-size: 22px;
		font-weight: 850;
		line-height: 1;
		cursor: pointer;
	}

	.submenu-toggle span {
		display: block;
		transform-origin: center;
		transition: transform 160ms ease;
	}

	.submenu-toggle[aria-expanded="true"] span {
		transform: rotate(180deg);
	}

	.submenu-toggle:hover,
	.submenu-toggle:focus-visible {
		background: rgba(21, 84, 141, 0.08);
		color: var(--blue-deep);
	}

	.primary-menu .sub-menu,
	.primary-menu .children {
		position: static;
		display: none;
		width: auto;
		min-width: 0;
		max-width: none;
		margin-left: 12px;
		padding: 2px 0 2px 10px;
		border: 0;
		border-left: 1px solid var(--line);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		pointer-events: auto;
	}

	.primary-menu .sub-menu li,
	.primary-menu .children li {
		display: block;
	}

	.primary-menu .sub-menu a,
	.primary-menu .children a {
		position: relative;
		z-index: 3;
		min-height: 44px;
		padding: 10px 12px;
		pointer-events: auto;
	}

	.primary-menu li:focus-within > .sub-menu,
	.primary-menu li:focus-within > .children,
	.primary-menu li:not(.is-submenu-open) > .sub-menu,
	.primary-menu li:not(.is-submenu-open) > .children {
		display: none;
	}

	.primary-menu li.is-submenu-open > .sub-menu,
	.primary-menu li.is-submenu-open > .children {
		display: grid;
	}
	.hero,
	.featured-grid,
	.content-shell,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.front-pillars,
	.archive-feature,
	.lower-links {
		grid-template-columns: 1fr;
	}

	.pillar {
		padding: 30px 18px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.pillar:last-child {
		border-bottom: 0;
	}

	.archive-feature__image img {
		min-height: 300px;
	}

	.archive-feature__copy {
		padding: 0 24px 30px;
	}

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

	.lower-links a {
		min-height: 0;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.lower-links a:last-child {
		border-bottom: 0;
	}

	.hero {
		gap: 18px;
	}

	.hero__media,
	.hero__media img {
		min-height: 320px;
	}

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

	.reading-aside {
		position: static;
	}

	.footer-links {
		justify-content: start;
	}
}

@media (max-width: 640px) {
	:root {
		--content: calc(100vw - 28px);
	}

	.site-header__inner {
		min-height: 70px;
	}

	.site-branding__mark {
		width: 38px;
		height: 42px;
	}

	.site-branding__name {
		font-size: 23px;
	}

	.site-branding__tagline {
		display: none;
	}

	.hero {
		margin-top: 20px;
	}

	.front-hero {
		min-height: 430px;
	}

	.front-hero__shade {
		background:
			linear-gradient(90deg, rgba(15, 56, 106, 0.78), rgba(23, 56, 36, 0.44)),
			linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
	}

	.front-hero__content {
		padding: 48px 0;
	}

	.hero__copy {
		padding: 26px 0 18px;
	}

	.hero__lead,
	.article-preview p,
	.entry-content {
		font-size: 19px;
	}

	.hero__lead,
	.section__text,
	.pathway p {
		max-width: 100%;
		overflow-wrap: normal;
		word-break: normal;
	}

	.hero__media,
	.hero__media img {
		min-height: 260px;
	}

	.section {
		margin: 58px auto;
	}

	.section--wide {
		padding-top: 54px;
		padding-bottom: 54px;
	}

	.section__header {
		display: block;
	}

	.section__text {
		margin-top: 12px;
	}

	.pathways,
	.archive-strip,
	.photo-rail__grid,
	.section-index__grid {
		grid-template-columns: 1fr;
	}

	.archive-feature {
		margin-top: 34px;
	}

	.pathway {
		min-height: 0;
	}

	.pathway h3 {
		margin-top: 24px;
	}

	.content-shell {
		margin-top: 38px;
		margin-bottom: 68px;
		gap: 34px;
	}

	.search-form {
		display: grid;
	}
}
