/*
Theme Name: Nirast Journal
Theme URI: https://news.nirast.co/
Description: A lightweight editorial theme for the Nirast Journal.
Version: 1.2.0
Author: Nirast
Text Domain: nirast-news
*/

:root {
	color-scheme: light;
	--nrst-green: #0e3a2c;
	--nrst-green-link: #085946;
	--nrst-lime: #d2fa99;
	--nrst-cream: #f4f9e9;
	--nrst-ink: #12281f;
	--nrst-muted: #5b6b62;
	--nrst-border: #e2e8e0;
	--nrst-white: #fff;
	--nrst-body: "Satoshi", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--nrst-display: "Sentient", Georgia, "Times New Roman", serif;
	--nrst-content: 42rem;
	--nrst-wide: 72rem;
	--nrst-gutter: clamp(1.125rem, 4vw, 2rem);
	--nrst-focus: #085946;
}

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

html {
	background: var(--nrst-white);
	color: var(--nrst-ink);
	font-family: var(--nrst-body);
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 6rem;
}

body {
	min-width: 20rem;
	margin: 0;
	background: var(--nrst-white);
	color: var(--nrst-ink);
	font-family: var(--nrst-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img,
video {
	height: auto;
	vertical-align: middle;
}

button,
input,
select,
textarea {
	font: inherit;
}

a {
	color: var(--nrst-green-link);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--nrst-green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--nrst-focus);
	outline-offset: 4px;
}

::selection {
	background: var(--nrst-lime);
	color: var(--nrst-green);
}

.screen-reader-text,
.nrst-skip:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	clip-path: inset(50%);
}

.nrst-skip:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.7rem 1rem;
	margin: 0;
	border: 1px solid var(--nrst-green);
	border-radius: 0.25rem;
	background: var(--nrst-white);
	color: var(--nrst-green);
	clip: auto;
	clip-path: none;
	font-weight: 700;
}

/* The shared three-column shop header, with a native details menu. */
.nrst-header {
	position: sticky;
	top: 0;
	z-index: 30;
	width: 100%;
	border-bottom: 1px solid var(--nrst-border);
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(12px);
}

.nrst-header-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	width: min(100%, 82rem);
	min-height: 4.25rem;
	padding-inline: var(--nrst-gutter);
	margin-inline: auto;
}

.nrst-menu {
	position: relative;
	justify-self: start;
}

.nrst-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.4rem 0.55rem 0.4rem 0;
	border-radius: 0.2rem;
	color: var(--nrst-ink);
	cursor: pointer;
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.015em;
	list-style: none;
}

.nrst-menu-toggle::-webkit-details-marker {
	display: none;
}

.nrst-menu-toggle::marker {
	content: "";
}

.nrst-menu-toggle::before {
	width: 1.35rem;
	height: 0.8rem;
	background: linear-gradient(
		to bottom,
		var(--nrst-ink) 0 1.5px,
		transparent 1.5px 5px,
		var(--nrst-ink) 5px 6.5px,
		transparent 6.5px 10px,
		var(--nrst-ink) 10px 11.5px,
		transparent 11.5px 100%
	);
	content: "";
}

.nrst-menu-panel {
	position: absolute;
	top: calc(100% + 0.75rem);
	left: calc(-1 * var(--nrst-gutter));
	z-index: 40;
	display: grid;
	gap: 0.1rem;
	width: min(20rem, calc(100vw - 2rem));
	max-height: min(70vh, 34rem);
	padding: 0.6rem;
	overflow-y: auto;
	border: 1px solid var(--nrst-border);
	border-radius: 0.3rem;
	background: var(--nrst-white);
}

.nrst-menu-panel a {
	display: block;
	padding: 0.72rem 0.8rem;
	border-radius: 0.2rem;
	color: var(--nrst-ink);
	font-size: 0.94rem;
	text-decoration: none;
}

.nrst-menu-panel a:hover,
.nrst-menu-panel a:focus-visible {
	background: var(--nrst-cream);
	color: var(--nrst-green);
}

.nrst-logo {
	display: inline-flex;
	grid-column: 2;
	align-items: center;
	justify-self: center;
	color: var(--nrst-ink);
	text-decoration: none;
}

.nrst-logo img {
	display: block;
	width: auto;
	max-width: min(12rem, 42vw);
	max-height: 1.9rem;
	object-fit: contain;
}

.nrst-shop-link {
	display: inline-flex;
	grid-column: 3;
	align-items: center;
	justify-self: end;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0.4rem 0 0.4rem 0.55rem;
	color: var(--nrst-ink);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
}

.nrst-shop-link:hover {
	color: var(--nrst-green-link);
}

.nrst-shop-link svg {
	width: 1.35rem;
	height: 1.35rem;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

/* Page frame and the Journal's warm editorial introduction. */
.nrst-main {
	min-height: 60vh;
	overflow-x: clip;
}

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

.nrst-page-intro {
	position: relative;
	isolation: isolate;
	padding-block: clamp(4.25rem, 9vw, 8.5rem) clamp(3.75rem, 7vw, 6.75rem);
	overflow: hidden;
	border-bottom: 1px solid var(--nrst-border);
	background: var(--nrst-cream);
}

.nrst-page-intro::after {
	position: absolute;
	top: -20rem;
	right: max(-11rem, calc((100vw - 90rem) / 2));
	z-index: -1;
	width: clamp(24rem, 45vw, 42rem);
	height: clamp(24rem, 45vw, 42rem);
	border: 1px solid rgba(14, 58, 44, 0.12);
	border-radius: 50%;
	box-shadow: 0 0 0 2.4rem rgba(14, 58, 44, 0.025), 0 0 0 5rem rgba(14, 58, 44, 0.018);
	content: "";
	pointer-events: none;
}

.nrst-kicker {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1.2rem;
	color: var(--nrst-green-link);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.2;
	text-transform: uppercase;
}

.nrst-kicker::before {
	width: 1.6rem;
	height: 1px;
	background: currentColor;
	content: "";
}

.nrst-page-title,
.nrst-article-title {
	margin: 0;
	color: var(--nrst-green);
	font-family: var(--nrst-display);
	font-size: clamp(3.1rem, 8.2vw, 7.5rem);
	font-weight: 400;
	letter-spacing: -0.055em;
	line-height: 0.96;
	text-wrap: balance;
}

.nrst-page-title {
	max-width: 10ch;
}

.nrst-page-subtitle {
	max-width: 39rem;
	margin: 1.6rem 0 0;
	color: var(--nrst-muted);
	font-size: clamp(1.02rem, 1.8vw, 1.2rem);
	line-height: 1.7;
}

.nrst-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.15rem, 2.5vw, 2rem);
	padding-block: clamp(2.5rem, 5.5vw, 5rem) clamp(3.5rem, 7vw, 6rem);
}

.nrst-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	border: 1px solid var(--nrst-border);
	background: var(--nrst-white);
	transition: border-color 180ms ease, transform 180ms ease;
}

.nrst-card:hover {
	transform: translateY(-2px);
	border-color: #b7c7bd;
}

.nrst-card--featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
	min-height: 25rem;
	border-color: #cfdbd1;
	background: var(--nrst-cream);
}

.nrst-card-media {
	position: relative;
	display: block;
	min-width: 0;
	aspect-ratio: 1.52 / 1;
	overflow: hidden;
	background: #eaf0e3;
}

.nrst-card--featured .nrst-card-media {
	height: 100%;
	min-height: 25rem;
	aspect-ratio: auto;
}

.nrst-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.nrst-card:hover .nrst-card-media img {
	transform: scale(1.025);
}

.nrst-card-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(ellipse at 50% 50%, rgba(210, 250, 153, 0.32) 0 18%, transparent 18.5%),
		radial-gradient(ellipse at 50% 50%, transparent 0 33%, rgba(14, 58, 44, 0.12) 33.3% 33.7%, transparent 34%),
	linear-gradient(145deg, #f4f9e9 5%, #e2e8e0 100%);
}

.nrst-card-placeholder::before,
.nrst-card-placeholder::after {
	position: absolute;
	width: 42%;
	height: 1px;
	background: rgba(14, 58, 44, 0.2);
	content: "";
}

.nrst-card-placeholder::before {
	transform: rotate(35deg);
}

.nrst-card-placeholder::after {
	transform: rotate(-35deg);
}

.nrst-card-body {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(1.2rem, 2.6vw, 2rem);
}

.nrst-card--featured .nrst-card-body {
	justify-content: center;
	padding: clamp(1.6rem, 4vw, 3.5rem);
}

.nrst-card-meta,
.nrst-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.8rem;
	margin: 0;
	color: var(--nrst-muted);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.045em;
	line-height: 1.5;
}

.nrst-card-title {
	max-width: 24ch;
	margin: 0.7rem 0 0;
	color: var(--nrst-green);
	font-family: var(--nrst-display);
	font-size: clamp(1.55rem, 2.6vw, 2.2rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.12;
	text-wrap: balance;
}

.nrst-card--featured .nrst-card-title {
	max-width: 15ch;
	font-size: clamp(2.2rem, 4.25vw, 4rem);
	line-height: 1.03;
}

.nrst-card-title a {
	color: inherit;
	text-decoration: none;
}

.nrst-card-title a:hover {
	color: var(--nrst-green-link);
}

.nrst-card-excerpt {
	max-width: 39rem;
	margin: 0.9rem 0 1.2rem;
	color: var(--nrst-muted);
	font-size: 0.96rem;
	line-height: 1.7;
}

.nrst-card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: auto;
	padding-top: 0.4rem;
	color: var(--nrst-green-link);
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
}

.nrst-card-link > span {
	font-size: 1.1rem;
	line-height: 1;
	transition: transform 160ms ease;
}

.nrst-card-link:hover > span {
	transform: translateX(3px);
}

.nrst-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0 0 var(--nrst-gutter);
	margin: 0 auto clamp(3rem, 7vw, 6rem);
}

.nrst-pagination a,
.nrst-pagination span {
	display: inline-grid;
	min-width: 2.8rem;
	min-height: 2.8rem;
	place-items: center;
	padding: 0.25rem 0.7rem;
	border: 1px solid var(--nrst-border);
	border-radius: 0.2rem;
	background: var(--nrst-white);
	color: var(--nrst-ink);
	font-size: 0.88rem;
	text-decoration: none;
}

.nrst-pagination a:hover,
.nrst-pagination .current {
	border-color: var(--nrst-green);
	background: var(--nrst-green);
	color: var(--nrst-white);
}

/* Article pages use a calm title block and a narrow reading measure. */
.nrst-article {
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.nrst-article-header {
	width: min(calc(100% - 2 * var(--nrst-gutter)), 56rem);
	padding-block: clamp(3.6rem, 8vw, 7rem) clamp(2rem, 4vw, 3.5rem);
	margin-inline: auto;
}

.nrst-article-header .nrst-kicker {
	margin-bottom: 1.4rem;
}

.nrst-article-title {
	max-width: 15ch;
	font-size: clamp(2.8rem, 7.2vw, 6.4rem);
}

.nrst-article-dek {
	max-width: 42rem;
	margin: 1.35rem 0 1.4rem;
	color: var(--nrst-muted);
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	line-height: 1.65;
}

.nrst-article-meta {
	padding-top: 1.1rem;
	border-top: 1px solid var(--nrst-border);
}

.nrst-article-image {
	width: min(calc(100% - 2 * var(--nrst-gutter)), 78rem);
	max-height: min(68vw, 48rem);
	margin: 0 auto clamp(2.6rem, 6vw, 5rem);
	background: var(--nrst-cream);
	object-fit: cover;
}

.nrst-prose {
	width: min(calc(100% - 2 * var(--nrst-gutter)), var(--nrst-content));
	margin-inline: auto;
	color: var(--nrst-ink);
	font-size: clamp(1.02rem, 1.4vw, 1.12rem);
	line-height: 1.82;
	overflow-wrap: anywhere;
}

.nrst-prose > * {
	margin-block: 0 1.5em;
}

.nrst-prose h2,
.nrst-prose h3,
.nrst-prose h4 {
	margin-block: 2.3em 0.65em;
	color: var(--nrst-green);
	font-family: var(--nrst-display);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.18;
	text-wrap: balance;
}

.nrst-prose h2 {
	font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.nrst-prose h3 {
	font-size: clamp(1.55rem, 3.2vw, 2.1rem);
}

.nrst-prose h4 {
	font-size: 1.35rem;
}

.nrst-prose p,
.nrst-prose ul,
.nrst-prose ol {
	margin-block: 0 1.45em;
}

.nrst-prose ul,
.nrst-prose ol {
	padding-left: 1.4em;
}

.nrst-prose li + li {
	margin-top: 0.45em;
}

.nrst-prose blockquote,
.nrst-prose .wp-block-quote {
	padding: 1.25rem 1.5rem;
	border-left: 3px solid var(--nrst-green-link);
	background: var(--nrst-cream);
	color: var(--nrst-green);
	font-family: var(--nrst-display);
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	line-height: 1.5;
}

.nrst-prose .nrst-disclaimer {
	padding: 1rem 1.2rem;
	border-left: 3px solid var(--nrst-green-link);
	background: var(--nrst-cream);
	color: var(--nrst-muted);
	font-size: 0.92em;
	line-height: 1.7;
}

.nrst-prose blockquote p:last-child,
.nrst-prose .wp-block-quote p:last-child {
	margin-bottom: 0;
}

.nrst-prose blockquote cite,
.nrst-prose .wp-block-quote cite,
.nrst-prose .wp-block-pullquote cite {
	display: block;
	margin-top: 0.8rem;
	color: var(--nrst-muted);
	font-family: var(--nrst-body);
	font-size: 0.76rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nrst-prose figure {
	max-width: 100%;
	margin-inline: 0;
}

.nrst-prose figure img {
	display: block;
	width: auto;
	max-width: 100%;
	margin-inline: auto;
}

.nrst-prose figcaption,
.nrst-prose .wp-element-caption {
	margin-top: 0.6rem;
	color: var(--nrst-muted);
	font-size: 0.82rem;
	line-height: 1.5;
	text-align: center;
}

.nrst-prose table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 0.9em;
	line-height: 1.5;
}

.nrst-prose th,
.nrst-prose td {
	min-width: 7rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--nrst-border);
	text-align: left;
	vertical-align: top;
}

.nrst-prose th {
	background: var(--nrst-cream);
	color: var(--nrst-green);
	font-weight: 700;
}

.nrst-prose pre,
.nrst-prose .wp-block-code {
	max-width: 100%;
	padding: 1.1rem 1.25rem;
	overflow: auto;
	border: 1px solid var(--nrst-border);
	border-radius: 0.25rem;
	background: #f6f8f5;
	color: var(--nrst-ink);
	font-size: 0.84rem;
	line-height: 1.65;
	tab-size: 2;
}

.nrst-prose code,
.nrst-prose kbd {
	padding: 0.12em 0.35em;
	border-radius: 0.15rem;
	background: #eef2ed;
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
	font-size: 0.86em;
}

.nrst-prose pre code,
.nrst-prose .wp-block-code code {
	padding: 0;
	background: transparent;
	font-size: inherit;
}

.nrst-prose hr,
.nrst-prose .wp-block-separator {
	width: 100%;
	margin-block: 2.5rem;
	border: 0;
	border-top: 1px solid var(--nrst-border);
}

.nrst-prose .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.nrst-prose .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.9rem;
	padding: 0.7rem 1.15rem;
	border: 1px solid var(--nrst-green);
	border-radius: 0.2rem;
	background: var(--nrst-green);
	color: var(--nrst-white);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.nrst-prose .wp-block-button__link:hover {
	background: var(--nrst-green-link);
}

.nrst-prose .alignwide {
	width: min(calc(100vw - 2 * var(--nrst-gutter)), 60rem);
	max-width: none;
	margin-inline: 50%;
	transform: translateX(-50%);
}

.nrst-prose .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: 50%;
	transform: translateX(-50%);
}

.nrst-prose .wp-block-columns {
	display: flex;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nrst-prose .wp-block-column {
	min-width: 0;
	flex: 1;
}

.nrst-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	width: min(calc(100% - 2 * var(--nrst-gutter)), 56rem);
	padding: 1.5rem 0 clamp(3rem, 6vw, 5rem);
	margin: clamp(2rem, 5vw, 3rem) auto 0;
	border-top: 1px solid var(--nrst-border);
}

.nrst-post-nav a {
	display: flex;
	min-height: 6.5rem;
	flex-direction: column;
	justify-content: center;
	padding: 1rem 1.2rem;
	border: 1px solid var(--nrst-border);
	color: var(--nrst-green);
	text-decoration: none;
}

.nrst-post-nav a:hover {
	border-color: var(--nrst-green-link);
	background: var(--nrst-cream);
}

.nrst-post-nav span {
	color: var(--nrst-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nrst-post-nav strong {
	margin-top: 0.3rem;
	font-family: var(--nrst-display);
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.25;
}

.nrst-empty {
	width: min(calc(100% - 2 * var(--nrst-gutter)), 48rem);
	padding: clamp(2rem, 6vw, 4.5rem);
	margin: clamp(3rem, 8vw, 7rem) auto;
	border: 1px solid var(--nrst-border);
	background: var(--nrst-cream);
	text-align: center;
}

.nrst-empty h1,
.nrst-empty h2 {
	margin: 0;
	color: var(--nrst-green);
	font-family: var(--nrst-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.nrst-empty p {
	max-width: 34rem;
	margin: 0.8rem auto 0;
	color: var(--nrst-muted);
}

.nrst-search {
	display: grid;
	width: min(100%, 32rem);
	gap: 0.45rem;
	padding-bottom: clamp(3rem, 6vw, 5rem);
	margin: 1.4rem auto 0;
}

.nrst-search > label {
	color: var(--nrst-ink);
	font-size: 0.84rem;
	font-weight: 700;
}

.nrst-search > div {
	display: flex;
	gap: 0.5rem;
}

.nrst-search input[type="search"],
.nrst-search input[type="text"] {
	width: 100%;
	min-width: 0;
	min-height: 3rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid #b9c8bd;
	border-radius: 0.2rem;
	background: var(--nrst-white);
	color: var(--nrst-ink);
}

.nrst-search > div button,
.nrst-search > div input[type="submit"] {
	flex: 0 0 auto;
	min-height: 3rem;
	padding: 0.65rem 1rem;
	border: 1px solid var(--nrst-green);
	border-radius: 0.2rem;
	background: var(--nrst-green);
	color: var(--nrst-white);
	cursor: pointer;
	font-size: 0.87rem;
	font-weight: 700;
}

.nrst-search > div button:hover,
.nrst-search > div input[type="submit"]:hover {
	background: var(--nrst-green-link);
}

/* Homepage hierarchy: one split lead story, two image-led companions, then a compact reading list. */
.nrst-page-intro--home {
	width: 100vw;
	padding: clamp(4.25rem, 8vw, 7rem) max(var(--nrst-gutter), calc((100vw - var(--nrst-wide)) / 2));
	margin-inline: calc(50% - 50vw);
	border-bottom-color: rgba(14, 58, 44, 0.14);
}

.nrst-page-intro--home::after {
	display: none;
}

.nrst-page-intro--home .nrst-kicker {
	margin-bottom: 1.15rem;
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
}

.nrst-page-intro--home .nrst-kicker::before {
	display: none;
}

.nrst-intro-copy {
	max-width: 52rem;
}

.nrst-page-intro--home .nrst-page-title {
	max-width: 11ch;
	font-size: clamp(3.55rem, 8vw, 7.1rem);
	line-height: 0.94;
}

.nrst-page-intro--home .nrst-page-subtitle {
	max-width: 37rem;
	margin-top: 1.35rem;
	font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

.nrst-intro-action {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 3rem;
	padding: 0.68rem 1.05rem;
	margin-top: 1.55rem;
	border: 1px solid var(--nrst-green);
	background: var(--nrst-green);
	color: var(--nrst-white);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.nrst-intro-action:hover {
	background: var(--nrst-green-link);
	color: var(--nrst-white);
}

.nrst-intro-action > span {
	font-size: 1.1rem;
	line-height: 1;
}

.nrst-topics {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0.75rem 1.4rem;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--nrst-border);
}

.nrst-topics-label {
	color: var(--nrst-muted);
	font-size: 0.83rem;
	font-weight: 600;
}

.nrst-topics-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.15rem;
}

.nrst-topic-link {
	padding-block: 0.2rem;
	border-bottom: 1px solid transparent;
	color: var(--nrst-green-link);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.nrst-topic-link:hover {
	border-bottom-color: currentColor;
}

.nrst-latest {
	padding-top: clamp(2.75rem, 5vw, 4.5rem);
	scroll-margin-top: 6rem;
}

.nrst-section-title {
	padding-bottom: 0.8rem;
	margin: 0;
	border-bottom: 1px solid var(--nrst-border);
	color: var(--nrst-green);
	font-family: var(--nrst-display);
	font-size: clamp(1.8rem, 3.3vw, 2.7rem);
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 1.12;
}

.nrst-featured {
	margin-top: clamp(1.35rem, 2.6vw, 2.1rem);
}

.nrst-card--featured {
	grid-column: auto;
	grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
	min-height: 0;
	border: 0;
	background: var(--nrst-cream);
}

.nrst-card--featured .nrst-card-media {
	min-height: clamp(21rem, 35vw, 30rem);
}

.nrst-card--featured .nrst-card-body {
	padding: clamp(1.7rem, 4vw, 4rem);
}

.nrst-card--featured .nrst-card-title {
	font-size: clamp(2rem, 4vw, 3.8rem);
	line-height: 1.04;
}

.nrst-supporting {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.1rem, 2.5vw, 2rem);
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.nrst-card--supporting {
	border: 0;
	background: transparent;
}

.nrst-card--supporting .nrst-card-media {
	aspect-ratio: 1.52 / 1;
}

.nrst-card--supporting .nrst-card-body {
	padding: 1.1rem 0 0;
}

.nrst-card--supporting .nrst-card-title {
	font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.nrst-card--supporting .nrst-card-excerpt {
	margin-top: 0.7rem;
}

.nrst-card--supporting .nrst-card-link {
	margin-top: 0.35rem;
}

.nrst-latest .nrst-list--compact {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	padding-block: 0 clamp(3rem, 6vw, 5rem);
	margin-top: clamp(2.8rem, 5.5vw, 4.5rem);
	border-top: 1px solid var(--nrst-border);
}

.nrst-card--compact {
	display: block;
	min-height: 5.5rem;
	padding-block: 1rem;
	border: 0;
	border-bottom: 1px solid var(--nrst-border);
	background: transparent;
}

.nrst-card--compact .nrst-card-body {
	padding: 0.2rem 0;
}

.nrst-card--compact .nrst-card-title {
	max-width: 36ch;
	margin-top: 0.25rem;
	font-size: clamp(1.2rem, 2vw, 1.65rem);
	line-height: 1.2;
}

.nrst-card--compact .nrst-card-title a {
	display: flex;
	width: 100%;
	min-height: 2.75rem;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.nrst-latest .nrst-card:hover {
	transform: none;
	border-color: var(--nrst-border);
}

.nrst-latest .nrst-card-media img {
	transition: none;
}

.nrst-latest .nrst-card-meta > span[aria-hidden="true"],
.nrst-latest .nrst-card-link > span {
	display: none;
}

.home .nrst-footer-col h2,
.home .nrst-footer-col h3,
.home .nrst-footer-col h4 {
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	text-transform: none;
}

/* Quiet, consistent footer shared across journal pages. */
.nrst-footer {
	padding: clamp(2.8rem, 6vw, 4.75rem) var(--nrst-gutter) 1.25rem;
	background: var(--nrst-green);
	color: #cfe0d7;
}

.nrst-footer-grid {
	display: grid;
	grid-template-columns: minmax(14rem, 1.45fr) repeat(3, minmax(8rem, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	width: min(100%, var(--nrst-wide));
	margin-inline: auto;
}

.nrst-footer a {
	color: #cfe0d7;
	text-decoration: none;
}

.nrst-footer a:hover {
	color: var(--nrst-white);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.nrst-footer-brand > a {
	display: inline-block;
	color: var(--nrst-white);
	font-family: var(--nrst-display);
	font-size: 1.45rem;
	font-weight: 400;
	letter-spacing: 0.13em;
	text-decoration: none;
}

.nrst-footer-brand p {
	max-width: 18rem;
	margin: 0.85rem 0 0;
	color: #a9c4b8;
	font-size: 0.91rem;
	line-height: 1.65;
}

.nrst-footer-col h2,
.nrst-footer-col h3,
.nrst-footer-col h4 {
	margin: 0 0 0.8rem;
	color: var(--nrst-lime);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	line-height: 1.4;
	text-transform: uppercase;
}

.nrst-footer-col a {
	display: block;
	width: fit-content;
	max-width: 100%;
	padding-block: 0.3rem;
	font-size: 0.88rem;
	line-height: 1.45;
}

.nrst-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.45rem 1.5rem;
	width: min(100%, var(--nrst-wide));
	padding-top: 1.1rem;
	margin: clamp(2.3rem, 5vw, 3.6rem) auto 0;
	border-top: 1px solid rgba(207, 224, 215, 0.2);
	color: #a9c4b8;
	font-size: 0.77rem;
}

@media (max-width: 760px) {
	.nrst-header-inner {
		min-height: 3.9rem;
	}

	.nrst-menu-toggle {
		width: 2.75rem;
		gap: 0;
		font-size: 0;
	}

	.nrst-menu-toggle::before {
		width: 1.3rem;
	}

	.nrst-menu-panel {
		top: calc(100% + 0.6rem);
	}

	.nrst-page-intro {
		padding-block: 4.25rem 3.8rem;
	}

	.nrst-page-intro::after {
		top: -15rem;
		right: -16rem;
	}

	.nrst-list {
		grid-template-columns: 1fr;
		gap: 1.2rem;
	}

	.nrst-card--featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.nrst-card--featured .nrst-card-media {
		min-height: 0;
		aspect-ratio: 1.45 / 1;
	}

	.nrst-card--featured .nrst-card-body {
		padding: clamp(1.4rem, 5vw, 2.2rem);
	}

	.nrst-card--featured .nrst-card-title {
		font-size: clamp(2rem, 7vw, 3.2rem);
	}

	.nrst-card-media {
		aspect-ratio: 1.6 / 1;
	}

	.nrst-article-header {
		padding-block: 3.8rem 2.1rem;
	}

	.nrst-article-image {
		max-height: none;
		aspect-ratio: 1.35 / 1;
	}

	.nrst-prose .wp-block-columns {
		flex-direction: column;
	}

	.nrst-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.8rem 1.2rem;
	}

	.nrst-footer-brand {
		grid-column: 1 / -1;
	}

	.nrst-footer-bottom {
		justify-content: flex-start;
	}
}

@media (max-width: 620px) {
	.nrst-page-intro--home {
		padding-block: 3.75rem 3.4rem;
		padding-inline: var(--nrst-gutter);
	}

	.nrst-page-intro--home .nrst-page-title {
		font-size: clamp(3.1rem, 13vw, 4.35rem);
	}

	.nrst-topics {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.35rem;
		padding-block: 0.95rem;
	}

	.nrst-supporting {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.nrst-card--featured .nrst-card-body {
		padding: 1.35rem var(--nrst-gutter) 1.6rem;
	}

	.nrst-card--compact {
		padding-block: 0.9rem;
	}

	.nrst-card--compact .nrst-card-meta {
		font-size: 0.7rem;
		letter-spacing: 0.015em;
	}

	.nrst-card--compact .nrst-card-title {
		font-size: 1.12rem;
	}
}

@media (max-width: 420px) {
	:root {
		--nrst-gutter: 1.125rem;
	}

	.nrst-header-inner {
		min-height: 3.65rem;
	}

	.nrst-logo img {
		max-width: 9.5rem;
		max-height: 1.65rem;
	}

	.nrst-shop-link {
		gap: 0.25rem;
		font-size: 0.76rem;
	}

	.nrst-shop-link svg {
		width: 1.2rem;
		height: 1.2rem;
	}

	.nrst-page-title {
		font-size: clamp(2.85rem, 15vw, 4rem);
	}

	.nrst-card-body {
		padding: 1.15rem;
	}

	.nrst-article-title {
		font-size: clamp(2.5rem, 13vw, 3.6rem);
	}

	.nrst-post-nav {
		grid-template-columns: 1fr;
	}

	.nrst-search {
		grid-template-columns: 1fr;
	}

	.nrst-search > div {
		flex-direction: column;
	}

	.nrst-search > div button,
	.nrst-search > div input[type="submit"] {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
