/**
 * START HERE — main.css
 *
 * Design system and the pages outside the navigator.
 *
 * The visual idea is wayfinding: a route line with stations on it. Structure
 * carries the meaning — the line, the markers, the labels — so colour is never
 * the only signal. Signage green for the route, signage amber for caution.
 */

:root {
	/* Colour */
	--sh-ink: #14231e;
	--sh-ink-2: #3c4c46;
	--sh-quiet: #6a7872;
	--sh-paper: #f6f7f4;
	--sh-surface: #ffffff;
	--sh-line: #dce2db;
	--sh-line-strong: #b6c2b9;
	--sh-route: #0e5c45;
	--sh-route-deep: #0a4233;
	--sh-route-tint: #e4efe9;
	--sh-caution: #8a5a09;
	--sh-caution-tint: #fbf1dc;
	--sh-stop: #8c2f2a;
	--sh-stop-tint: #f8e7e3;

	/* Type */
	--sh-font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sh-font-read: "Iowan Old Style", Charter, "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

	--sh-size--2: 0.78rem;
	--sh-size--1: 0.875rem;
	--sh-size-0: 1rem;
	--sh-size-1: 1.15rem;
	--sh-size-2: 1.45rem;
	--sh-size-3: 1.9rem;
	--sh-size-4: 2.5rem;

	/* Space */
	--sh-space-1: 0.375rem;
	--sh-space-2: 0.75rem;
	--sh-space-3: 1.25rem;
	--sh-space-4: 2rem;
	--sh-space-5: 3rem;
	--sh-space-6: 4.5rem;

	--sh-radius: 10px;
	--sh-radius-sm: 6px;
	--sh-measure: 68ch;
	--sh-container: 1140px;
}

/* ------------------------------------------------------------------ base */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--sh-paper);
	color: var(--sh-ink);
	font-family: var(--sh-font-ui);
	font-size: var(--sh-size-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	margin: 0 0 var(--sh-space-2);
	line-height: 1.15;
	letter-spacing: -0.018em;
	font-weight: 640;
	text-wrap: balance;
}

p {
	margin: 0 0 var(--sh-space-3);
	max-width: var(--sh-measure);
}

a {
	color: var(--sh-route);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--sh-route-deep);
}

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

:focus-visible {
	outline: 3px solid var(--sh-route);
	outline-offset: 2px;
	border-radius: 2px;
}

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

.sh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--sh-ink);
	color: #fff;
	padding: var(--sh-space-2) var(--sh-space-3);
	z-index: 100;
}

.sh-skip-link:focus {
	left: var(--sh-space-3);
	top: var(--sh-space-3);
}

.sh-container {
	width: min(100% - 2.5rem, var(--sh-container));
	margin-inline: auto;
}

/* --------------------------------------------------------------- header */

.sh-header {
	background: var(--sh-surface);
	border-bottom: 1px solid var(--sh-line);
	position: sticky;
	top: 0;
	z-index: 20;
}

.sh-header__inner {
	display: flex;
	align-items: center;
	gap: var(--sh-space-4);
	min-height: 68px;
	padding-block: var(--sh-space-2);
}

.sh-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--sh-ink);
}

.sh-brand__mark {
	color: var(--sh-route);
	flex: none;
}

.sh-brand__name {
	display: block;
	font-weight: 680;
	letter-spacing: 0.02em;
	line-height: 1.1;
}

.sh-brand__sub {
	display: block;
	font-size: var(--sh-size--2);
	color: var(--sh-quiet);
	letter-spacing: 0.04em;
}

.sh-nav {
	margin-inline-start: auto;
}

.sh-nav__list,
.sh-footer__list {
	list-style: none;
	display: flex;
	gap: var(--sh-space-3);
	margin: 0;
	padding: 0;
}

.sh-nav__list a {
	color: var(--sh-ink-2);
	text-decoration: none;
	font-size: var(--sh-size--1);
}

.sh-nav__list a:hover {
	color: var(--sh-route);
	text-decoration: underline;
}

/* -------------------------------------------------------------- buttons */

.sh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.2rem;
	border-radius: var(--sh-radius-sm);
	border: 1px solid transparent;
	font: inherit;
	font-size: var(--sh-size--1);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.sh-button--primary {
	background: var(--sh-route);
	color: #fff;
}

.sh-button--primary:hover {
	background: var(--sh-route-deep);
	color: #fff;
}

.sh-button--secondary {
	background: var(--sh-surface);
	border-color: var(--sh-line-strong);
	color: var(--sh-ink);
}

.sh-button--quiet {
	background: transparent;
	border-color: var(--sh-line-strong);
	color: var(--sh-ink-2);
}

.sh-button--quiet:hover {
	border-color: var(--sh-route);
	color: var(--sh-route);
}

.sh-button[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.sh-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--sh-route);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.sh-link:hover {
	color: var(--sh-route-deep);
}

/* ----------------------------------------------------------------- hero */

.sh-hero {
	background: var(--sh-surface);
	border-bottom: 1px solid var(--sh-line);
	padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.sh-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.sh-hero__title {
	margin-bottom: var(--sh-space-3);
}

.sh-hero__title-main {
	display: block;
	font-size: clamp(2.4rem, 6.5vw, 3.9rem);
	letter-spacing: -0.03em;
	line-height: 0.98;
	font-weight: 700;
}

.sh-hero__title-sub {
	display: block;
	margin-top: 0.45rem;
	font-size: clamp(1rem, 2.2vw, 1.25rem);
	font-weight: 500;
	letter-spacing: 0.14em;
	color: var(--sh-route);
}

.sh-hero__promise {
	font-family: var(--sh-font-read);
	font-size: clamp(1.2rem, 2.6vw, 1.55rem);
	line-height: 1.4;
	color: var(--sh-ink);
	margin-bottom: var(--sh-space-3);
	max-width: 26ch;
}

.sh-hero__support {
	color: var(--sh-ink-2);
	max-width: 54ch;
}

.sh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sh-space-2);
	margin-bottom: var(--sh-space-3);
}

.sh-hero__note,
.sh-note {
	font-size: var(--sh-size--1);
	color: var(--sh-quiet);
}

.sh-hero__figure {
	margin: 0;
	background: var(--sh-paper);
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius);
	padding: var(--sh-space-4) var(--sh-space-3) var(--sh-space-3);
}

.sh-hero__caption {
	font-size: var(--sh-size--2);
	color: var(--sh-quiet);
	margin-top: var(--sh-space-3);
	text-align: center;
}

/* The route preview on the homepage. */

.sh-route {
	position: relative;
	padding-left: 1.75rem;
}

.sh-route::before {
	content: "";
	position: absolute;
	left: 0.42rem;
	top: 0.6rem;
	bottom: 0.6rem;
	width: 2px;
	background: linear-gradient(to bottom, var(--sh-route) 60%, var(--sh-line-strong));
}

.sh-route__group + .sh-route__group {
	margin-top: var(--sh-space-3);
}

.sh-route__stage {
	margin: 0 0 var(--sh-space-1);
	font-size: var(--sh-size--2);
	letter-spacing: 0.1em;
	color: var(--sh-quiet);
}

.sh-route__step {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.4rem 0;
}

.sh-route__dot {
	position: absolute;
	left: -1.52rem;
	top: 0.85rem;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--sh-surface);
	border: 2px solid var(--sh-route);
}

.sh-route__step--now .sh-route__dot {
	background: var(--sh-route);
	box-shadow: 0 0 0 3px var(--sh-route-tint);
}

.sh-route__step--waiting .sh-route__dot,
.sh-route__step--later .sh-route__dot {
	border-color: var(--sh-line-strong);
}

.sh-route__step--conditional .sh-route__dot {
	border-radius: 2px;
	transform: rotate(45deg);
	border-color: var(--sh-caution);
}

.sh-route__label {
	font-size: var(--sh-size--1);
	font-weight: 560;
}

.sh-route__meta {
	font-size: var(--sh-size--2);
	color: var(--sh-quiet);
	border: 1px solid var(--sh-line);
	border-radius: 999px;
	padding: 0.05rem 0.5rem;
	background: var(--sh-surface);
}

.sh-route__step--later .sh-route__label,
.sh-route__step--waiting .sh-route__label {
	color: var(--sh-quiet);
}

/* -------------------------------------------------------------- sections */

.sh-section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.sh-section--contrast {
	background: var(--sh-surface);
	border-block: 1px solid var(--sh-line);
}

.sh-section--rule .sh-section__title {
	border-top: 2px solid var(--sh-ink);
	padding-top: var(--sh-space-2);
}

.sh-section__title {
	font-size: var(--sh-size-3);
	margin-bottom: var(--sh-space-3);
}

.sh-lead {
	font-family: var(--sh-font-read);
	font-size: var(--sh-size-1);
	line-height: 1.55;
	color: var(--sh-ink-2);
}

.sh-lead--narrow {
	max-width: 58ch;
}

.sh-h1 {
	font-size: var(--sh-size-4);
}

.sh-h2 {
	font-size: var(--sh-size-3);
}

.sh-h4 {
	font-size: var(--sh-size-0);
	letter-spacing: 0.01em;
}

/* How it works: a real sequence, so it is numbered. */

.sh-steps {
	list-style: none;
	counter-reset: sh-step;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--sh-space-4);
}

.sh-steps__item {
	counter-increment: sh-step;
	border-top: 1px solid var(--sh-line-strong);
	padding-top: var(--sh-space-2);
}

.sh-steps__item::before {
	content: counter(sh-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--sh-route);
	color: #fff;
	font-size: var(--sh-size--2);
	font-weight: 700;
	margin-bottom: var(--sh-space-2);
}

.sh-steps__title {
	font-size: var(--sh-size-1);
}

.sh-steps__item p {
	font-size: var(--sh-size--1);
	color: var(--sh-ink-2);
	margin-bottom: 0;
}

.sh-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.sh-claims {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--sh-space-3);
}

.sh-claims__item {
	border-left: 3px solid var(--sh-route);
	padding-left: var(--sh-space-3);
}

.sh-claims__item h3 {
	font-size: var(--sh-size-1);
	margin-bottom: 0.2rem;
}

.sh-claims__item p {
	margin: 0;
	color: var(--sh-ink-2);
	font-size: var(--sh-size--1);
}

.sh-stage-list {
	list-style: none;
	counter-reset: sh-stage;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--sh-space-3) var(--sh-space-4);
}

.sh-stage-list__item {
	counter-increment: sh-stage;
	position: relative;
	padding-left: 2.1rem;
	border-top: 1px solid var(--sh-line);
	padding-top: var(--sh-space-2);
}

.sh-stage-list__item::before {
	content: counter(sh-stage);
	position: absolute;
	left: 0;
	top: var(--sh-space-2);
	width: 1.5rem;
	height: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--sh-route);
	border-radius: 50%;
	font-size: var(--sh-size--2);
	font-weight: 700;
	color: var(--sh-route);
}

.sh-stage-list__title {
	font-size: var(--sh-size-1);
	margin-bottom: 0.15rem;
}

.sh-stage-list__text {
	font-size: var(--sh-size--1);
	color: var(--sh-ink-2);
	margin: 0;
}

.sh-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--sh-space-2);
}

.sh-tags__item {
	border: 1px solid var(--sh-line-strong);
	border-radius: 999px;
	padding: 0.35rem 0.9rem;
	font-size: var(--sh-size--1);
	background: var(--sh-paper);
}

.sh-cta-band {
	background: var(--sh-ink);
	color: #fff;
}

.sh-cta-band__title {
	font-size: clamp(1.5rem, 4vw, 2.3rem);
	max-width: 24ch;
	margin-bottom: var(--sh-space-2);
}

.sh-cta-band__text {
	font-family: var(--sh-font-read);
	font-size: var(--sh-size-1);
	color: #d8e2dc;
	margin-bottom: var(--sh-space-3);
}

.sh-cta-band .sh-button--primary {
	background: #fff;
	color: var(--sh-ink);
}

.sh-cta-band .sh-button--primary:hover {
	background: var(--sh-route-tint);
	color: var(--sh-route-deep);
}

/* ---------------------------------------------------------------- pages */

.sh-page {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.sh-page--center {
	text-align: center;
}

.sh-page--center p {
	margin-inline: auto;
}

.sh-page__title {
	font-size: var(--sh-size-4);
}

.sh-page__meta {
	color: var(--sh-quiet);
	font-size: var(--sh-size--1);
}

.sh-page__footer {
	margin-top: var(--sh-space-5);
	padding-top: var(--sh-space-3);
	border-top: 1px solid var(--sh-line);
}

.sh-prose {
	font-family: var(--sh-font-read);
	font-size: var(--sh-size-1);
	line-height: 1.65;
	max-width: var(--sh-measure);
}

.sh-prose--wide {
	max-width: 72ch;
}

.sh-prose h2 {
	font-family: var(--sh-font-ui);
	font-size: var(--sh-size-2);
	margin-top: var(--sh-space-4);
}

.sh-prose h3 {
	font-family: var(--sh-font-ui);
	font-size: var(--sh-size-1);
	margin-top: var(--sh-space-3);
}

.sh-archive__list {
	display: grid;
	gap: var(--sh-space-3);
	margin-block: var(--sh-space-4);
}

.sh-card {
	background: var(--sh-surface);
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius);
	padding: var(--sh-space-3);
}

.sh-card__title {
	font-size: var(--sh-size-1);
	margin-bottom: 0.2rem;
}

.sh-card__title a {
	text-decoration: none;
	color: var(--sh-ink);
}

.sh-card__meta {
	font-size: var(--sh-size--2);
	color: var(--sh-quiet);
}

/* ------------------------------------------------------------- notices */

.sh-notice {
	border: 1px solid var(--sh-line-strong);
	border-left-width: 4px;
	border-radius: var(--sh-radius-sm);
	padding: var(--sh-space-3);
	background: var(--sh-surface);
	margin-bottom: var(--sh-space-3);
}

.sh-notice p:last-child {
	margin-bottom: 0;
}

.sh-notice--caution {
	border-left-color: var(--sh-caution);
	background: var(--sh-caution-tint);
}

.sh-notice--quiet {
	border-left-color: var(--sh-line-strong);
	background: var(--sh-paper);
}

.sh-notice__eyebrow {
	margin: 0 0 0.2rem;
	font-size: var(--sh-size--2);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sh-caution);
}

.sh-notice--quiet .sh-notice__eyebrow {
	color: var(--sh-quiet);
}

.sh-notice__title {
	font-size: var(--sh-size-1);
}

.sh-notice__list {
	margin: 0;
	padding-left: 1.1rem;
}

.sh-notice__list li {
	margin-bottom: 0.35rem;
}

.sh-disclaimer {
	font-size: var(--sh-size--2);
	color: var(--sh-quiet);
	max-width: 80ch;
	line-height: 1.5;
}

.sh-empty {
	color: var(--sh-quiet);
	font-style: italic;
}

/* ---------------------------------------------------------------- forms */

.sh-search {
	display: flex;
	gap: var(--sh-space-2);
	align-items: end;
	flex-wrap: wrap;
}

.sh-search__label {
	display: block;
	font-size: var(--sh-size--1);
}

.sh-field {
	display: grid;
	gap: 0.3rem;
}

.sh-field__label {
	font-size: var(--sh-size--1);
	color: var(--sh-ink-2);
}

.sh-field__input,
.sh-search__field {
	font: inherit;
	font-size: var(--sh-size-0);
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--sh-line-strong);
	border-radius: var(--sh-radius-sm);
	background: var(--sh-surface);
	color: var(--sh-ink);
	width: 100%;
	max-width: 26rem;
}

/* --------------------------------------------------------------- footer */

.sh-footer {
	background: var(--sh-surface);
	border-top: 1px solid var(--sh-line);
	padding-block: var(--sh-space-5);
	margin-top: var(--sh-space-6);
}

.sh-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--sh-space-4);
	align-items: start;
}

.sh-footer__mark {
	color: var(--sh-route);
}

.sh-footer__name {
	font-weight: 680;
	margin: 0.3rem 0 0.1rem;
}

.sh-footer__line {
	color: var(--sh-quiet);
	font-size: var(--sh-size--1);
	max-width: 34ch;
}

.sh-footer__list {
	flex-direction: column;
	gap: var(--sh-space-1);
}

.sh-footer__list a {
	font-size: var(--sh-size--1);
	color: var(--sh-ink-2);
	text-decoration: none;
}

.sh-footer__legal {
	grid-column: 1 / -1;
	border-top: 1px solid var(--sh-line);
	padding-top: var(--sh-space-3);
}

.sh-footer__copy {
	font-size: var(--sh-size--2);
	color: var(--sh-quiet);
	margin: 0;
}

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

/* ------------------------------------------------------- remaining shell */

.sh-main {
	display: block;
	outline: none;
}

.sh-mark {
	flex: none;
}

.sh-header__cta {
	display: none;
}

.sh-split {
	display: grid;
	gap: var(--sh-space-4);
}

.sh-split__lead > :last-child,
.sh-split__aside > :last-child {
	margin-bottom: 0;
}

.sh-split__aside {
	border-top: 2px solid var(--sh-route);
	padding-top: var(--sh-space-2);
}

.sh-cta-band__inner {
	text-align: center;
}

.sh-cta-band__inner p {
	margin-inline: auto;
}

.sh-app__about {
	border-top: 1px solid var(--sh-line);
}

/* Archive and single */

.sh-archive {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.sh-archive__header {
	margin-bottom: var(--sh-space-3);
}

.sh-archive__intro {
	color: var(--sh-ink-2);
}

.sh-card__excerpt {
	color: var(--sh-ink-2);
	font-size: var(--sh-size-0);
	margin-bottom: 0;
}

.sh-page__header {
	margin-bottom: var(--sh-space-3);
}

.sh-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sh-space-2);
	margin-top: var(--sh-space-3);
}

.sh-page--center .sh-page__actions {
	justify-content: center;
}

.sh-page__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sh-space-3);
	margin-top: var(--sh-space-4);
	padding-top: var(--sh-space-3);
	border-top: 1px solid var(--sh-line);
	font-size: var(--sh-size--1);
}

.sh-page--guide .sh-prose {
	margin-inline: auto;
}

.sh-comments {
	margin-top: var(--sh-space-5);
	padding-top: var(--sh-space-3);
	border-top: 1px solid var(--sh-line);
}

.sh-comments ol {
	list-style: none;
	padding-left: 0;
}

.sh-notice__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sh-space-3);
	margin-top: var(--sh-space-2);
}

.sh-route__step--next .sh-route__dot {
	border-color: var(--sh-route);
	background: var(--sh-surface);
}

.sh-font-ui {
	font-family: var(--sh-font-ui);
}

.sh-font-read {
	font-family: var(--sh-font-read);
}

/* WordPress core output */

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

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide,
.alignfull {
	max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
	font-size: var(--sh-size--1);
	color: var(--sh-quiet);
}

.sticky,
.bypostauthor {
	/* Present so the theme check passes; no visual change is wanted. */
	position: relative;
}
