/* National Quarter Horse Registry: public site
   One stylesheet, no framework. Sections follow the order of a page. */

:root {
	--paper: #faf6ee;
	--paper-deep: #f1e9d8;
	--card: #fffdf8;
	--ink: #1d1a16;
	--ink-soft: #453e35;
	--muted: #675e52;
	--line: #ddd2bd;
	--line-strong: #b9ad97;
	--saddle: #8a5324;
	--saddle-dark: #6c3f1a;
	--brass: #b08a45;
	--gold: #d9ab4e;
	--gold-dark: #c2933a;
	--slate: #1f2e36;
	--slate-deep: #172228;
	--slate-soft: #2b3d47;
	--cream: #f7f1e3;
	--cream-soft: #cfc8b8;
	--error: #9c2b1b;
	--success: #2c5e3b;

	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1180px;
	--wrap-narrow: 800px;
	--gutter: clamp(20px, 4vw, 40px);
	--radius: 6px;
	--shadow: 0 1px 2px rgba(29, 26, 22, 0.06), 0 8px 24px rgba(29, 26, 22, 0.08);
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--serif);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--ink);
}

h1 {
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

h2 {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
	font-size: 1.3rem;
}

p {
	margin: 0 0 1em;
}

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

a:hover {
	color: var(--saddle-dark);
}

address {
	font-style: normal;
}

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

[hidden] {
	display: none !important;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.wrap-narrow {
	max-width: calc(var(--wrap-narrow) + var(--gutter) * 2);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	background: var(--gold);
	color: var(--ink);
	padding: 10px 16px;
	border-radius: var(--radius);
	font-weight: 600;
}

.skip-link:focus {
	top: 12px;
	color: var(--ink);
}

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: -0.2em;
}

.eyebrow {
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--saddle);
	margin: 0 0 0.9em;
}

.eyebrow-light {
	color: var(--gold);
}

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

.eyebrow a:hover {
	text-decoration: underline;
}

.lead {
	font-size: 1.22rem;
	line-height: 1.6;
	color: var(--ink-soft);
}

.meta {
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 0.5em;
}

.tag {
	display: inline-block;
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--gold);
	padding: 2px 8px;
	border-radius: 3px;
	vertical-align: 0.2em;
	margin-left: 6px;
}

.notice {
	background: var(--paper-deep);
	border-left: 4px solid var(--brass);
	padding: 16px 20px;
	border-radius: 0 var(--radius) var(--radius) 0;
	margin: 0 0 28px;
}

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

/* ---------- Buttons and links ---------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-large {
	min-height: 54px;
	padding: 14px 28px;
	font-size: 1.06rem;
}

.button-small {
	min-height: 40px;
	padding: 8px 16px;
	font-size: 0.94rem;
}

.button-primary {
	background: var(--saddle);
	border-color: var(--saddle);
	color: #fff;
}

.button-primary:hover {
	background: var(--saddle-dark);
	border-color: var(--saddle-dark);
	color: #fff;
}

.button-outline {
	background: transparent;
	border-color: var(--saddle);
	color: var(--saddle);
}

.button-outline:hover {
	background: var(--saddle);
	color: #fff;
}

.button-ghost-light {
	background: transparent;
	border-color: rgba(247, 241, 227, 0.55);
	color: var(--cream);
}

.button-ghost-light:hover {
	background: var(--cream);
	border-color: var(--cream);
	color: var(--slate);
}

/* On dark panels the main button is gold so it stands out from the slate */
.hero .button-primary,
.cta .button-primary,
.panel-dark .button-primary {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink);
}

.hero .button-primary:hover,
.cta .button-primary:hover,
.panel-dark .button-primary:hover {
	background: var(--gold-dark);
	border-color: var(--gold-dark);
	color: var(--ink);
}

.button[disabled] {
	opacity: 0.65;
	cursor: progress;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.button-stack {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	text-decoration: none;
}

.text-link:hover {
	text-decoration: underline;
}

.text-link .icon {
	transition: transform 0.15s ease;
}

.text-link:hover .icon {
	transform: translateX(3px);
}

.text-link-back .icon {
	transform: rotate(180deg);
}

.text-link-back:hover .icon {
	transform: rotate(180deg) translateX(3px);
}

/* ---------- Utility bar ---------- */

.utility {
	background: var(--slate-deep);
	color: var(--cream-soft);
	font-size: 0.88rem;
}

.utility-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 40px;
}

.utility-note {
	margin: 0;
	font-family: var(--serif);
	font-style: italic;
	letter-spacing: 0.01em;
}

.utility-links {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.utility-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--cream);
	text-decoration: none;
	padding: 8px 0;
}

.utility-links a:hover {
	color: var(--gold);
}

.utility-signin {
	font-weight: 600;
}

/* ---------- Masthead and menu ---------- */

.masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.masthead-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
}

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

.brand img {
	width: 68px;
	height: 60px;
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand-name {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.24rem;
	letter-spacing: -0.005em;
	max-width: 11.5em;
}

.brand-since {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--saddle);
	margin-top: 5px;
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex: 1;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
}

.nav-item {
	position: relative;
	display: flex;
	align-items: center;
}

.nav-item > a {
	display: block;
	padding: 10px 12px;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius);
}

.nav-item > a:hover,
.nav-item.is-current > a {
	color: var(--saddle);
}

.nav-item.is-current > a {
	box-shadow: inset 0 -2px 0 var(--brass);
	border-radius: 0;
}

.sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 36px;
	margin-left: -8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	border-radius: var(--radius);
}

.sub-toggle .icon {
	transition: transform 0.15s ease;
}

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

.sub-list {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.has-sub:hover .sub-list,
.has-sub:focus-within .sub-list,
.has-sub.is-open .sub-list {
	display: block;
}

.sub-list a {
	display: block;
	padding: 9px 12px;
	color: var(--ink);
	text-decoration: none;
	border-radius: 4px;
}

.sub-list a:hover,
.sub-list a[aria-current="page"] {
	background: var(--paper-deep);
	color: var(--saddle-dark);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--card);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.nav-toggle-close {
	display: none;
}

@media (max-width: 920px) {
	.utility-note {
		display: none;
	}

	.utility-inner {
		justify-content: flex-end;
	}

	.masthead-inner {
		min-height: 72px;
		flex-wrap: wrap;
		gap: 0 16px;
	}

	.brand {
		flex: 1 1 0;
		min-width: 0;
		padding: 10px 0;
	}

	.nav-toggle {
		flex: none;
	}

	.brand img {
		width: 54px;
		height: 47px;
	}

	.brand-name {
		font-size: 1.08rem;
	}

	.site-nav {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 4px 0 18px;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
	}

	.nav-item {
		flex-wrap: wrap;
		border-top: 1px solid var(--line);
	}

	.nav-item > a {
		flex: 1;
		padding: 14px 4px;
	}

	.nav-item.is-current > a {
		box-shadow: none;
	}

	.sub-toggle {
		width: 48px;
		height: 48px;
		margin: 0;
	}

	.sub-list,
	.has-sub:hover .sub-list,
	.has-sub:focus-within .sub-list {
		display: none;
		position: static;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 10px 14px;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.has-sub.is-open .sub-list {
		display: block;
	}

	.nav-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding-top: 16px;
		border-top: 1px solid var(--line);
	}

	/* With scripts on, the menu folds away behind the Menu button */
	.js .nav-toggle {
		display: inline-flex;
	}

	.js .site-nav {
		display: none;
	}

	.js .masthead.nav-open .site-nav {
		display: flex;
	}

	.js .masthead.nav-open .nav-toggle-open {
		display: none;
	}

	.js .masthead.nav-open .nav-toggle-close {
		display: inline-flex;
	}

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

@media (max-width: 560px) {
	.utility-links {
		gap: 16px;
		width: 100%;
		justify-content: space-between;
	}

	.utility-links li:nth-child(2) {
		display: none;
	}

	.brand-since {
		display: none;
	}
}

/* ---------- Sections ---------- */

.section {
	padding: clamp(56px, 8vw, 96px) 0;
}

.section-tight {
	padding: clamp(40px, 6vw, 64px) 0;
}

.section-paper {
	background: var(--paper-deep);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.section-head {
	max-width: 720px;
	margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head h2 {
	margin-bottom: 0.3em;
}

.section-head p:last-child {
	margin-bottom: 0;
	color: var(--ink-soft);
}

.section-head-row {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.section-more {
	margin: 36px 0 0;
}

/* ---------- Home: hero ---------- */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	background: var(--slate);
	color: var(--cream);
}

.hero-copy {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 64px) clamp(48px, 7vw, 96px) var(--gutter);
}

.hero-copy-inner {
	max-width: 520px;
}

.hero h1 {
	color: #fff;
	font-size: clamp(2.2rem, 3.6vw, 3.3rem);
	margin-bottom: 0.45em;
}

.hero h1::before {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	background: var(--gold);
	margin-bottom: 24px;
}

.hero-lead {
	font-size: 1.16rem;
	line-height: 1.6;
	color: var(--cream);
	margin-bottom: 1.8em;
}

.hero-signin {
	margin: 22px 0 0;
	font-size: 0.96rem;
	color: var(--cream-soft);
}

.hero-signin a {
	color: var(--gold);
}

.hero-photo {
	position: relative;
	min-height: 560px;
}

.hero-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 28%;
}

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

	.hero-photo {
		order: -1;
		min-height: 0;
		aspect-ratio: 3 / 2;
		max-height: 52vh;
	}

	.hero-copy {
		justify-content: flex-start;
		padding: 40px var(--gutter) 48px;
	}

	.hero-copy-inner {
		max-width: 640px;
	}
}

/* ---------- Home: three ways in ---------- */

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

.path-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-top: 4px solid var(--brass);
	border-radius: var(--radius);
	padding: 28px 28px 26px;
	box-shadow: var(--shadow);
}

.path-card h2 {
	font-size: 1.45rem;
}

.path-card p {
	color: var(--ink-soft);
}

.path-card .text-link {
	margin-top: auto;
	padding-top: 6px;
}

.path-step {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--saddle) !important;
	margin-bottom: 10px;
}

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

/* ---------- N, Q, H, R ---------- */

.letters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 72px);
}

.letter-block {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.letter {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 5.2rem;
	line-height: 0.82;
	color: var(--brass);
	min-width: 0.9em;
	text-align: center;
	padding-top: 6px;
}

.letter-block p {
	margin: 0;
	color: var(--ink-soft);
}

.letter-word {
	font-weight: 700;
	color: var(--ink);
}

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

@media (max-width: 520px) {
	.letter-block {
		gap: 14px;
	}

	.letter {
		font-size: 3.4rem;
	}
}

.pull {
	margin: clamp(40px, 6vw, 72px) auto 0;
	max-width: 820px;
	padding: 0 0 0 28px;
	border-left: 4px solid var(--brass);
}

.pull p {
	font-family: var(--serif);
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	line-height: 1.45;
	font-style: italic;
	margin: 0;
}

/* ---------- Photo band ---------- */

.band {
	position: relative;
	background: var(--slate);
	color: #fff;
	overflow: hidden;
}

.band-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.band::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(23, 34, 40, 0.5) 0%, rgba(23, 34, 40, 0.78) 100%);
}

.band-inner {
	position: relative;
	z-index: 1;
	padding-top: clamp(72px, 11vw, 150px);
	padding-bottom: clamp(72px, 11vw, 150px);
}

.band blockquote {
	margin: 0 auto;
	max-width: 900px;
	text-align: center;
}

.band blockquote p {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1.35rem, 2.9vw, 2.1rem);
	line-height: 1.4;
	margin: 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* ---------- Heritage and archive prints ---------- */

.heritage {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.heritage-copy p {
	color: var(--ink-soft);
}

.heritage-copy .button {
	margin-top: 10px;
}

.print {
	margin: 0;
	background: #fff;
	padding: 8px;
	border-radius: 2px;
	box-shadow: 0 2px 4px rgba(29, 26, 22, 0.12), 0 14px 30px rgba(29, 26, 22, 0.16);
}

.print img {
	width: 100%;
}

.heritage-photos {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	grid-template-rows: auto auto;
	gap: 18px;
	align-items: center;
}

.print-a {
	grid-row: 1 / span 2;
	transform: rotate(-2deg);
}

.print-b {
	transform: rotate(1.6deg);
}

.print-c {
	transform: rotate(-1deg);
}

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

.gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 3vw, 34px);
	align-items: center;
}

.gallery .print:nth-child(odd) {
	transform: rotate(-1.2deg);
}

.gallery .print:nth-child(even) {
	transform: rotate(1deg);
}

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

/* ---------- Articles and news ---------- */

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

.card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.card-media {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--paper-deep);
	overflow: hidden;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

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

.card-media img.is-small,
.card:hover .card-media img.is-small {
	object-fit: contain;
	padding: 22px;
	transform: none;
}

.card-media-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.card-media-empty img,
.card:hover .card-media-empty img {
	width: 114px;
	height: 100px;
	object-fit: contain;
	opacity: 0.55;
	transform: none;
}

.card-body {
	padding: 22px 24px 24px;
}

.card-body h2,
.card-body h3 {
	font-size: 1.32rem;
	margin-bottom: 0.45em;
}

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

.card-body h2 a:hover,
.card-body h3 a:hover {
	color: var(--saddle);
	text-decoration: underline;
}

.card-body p:last-child {
	margin-bottom: 0;
	color: var(--ink-soft);
	font-size: 1rem;
}

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

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

.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(28px, 5vw, 64px);
}

.news-list li {
	padding: 22px 0;
	border-top: 1px solid var(--line-strong);
}

.news-list h3 {
	margin-bottom: 0.35em;
}

.news-list h3 a {
	color: var(--ink);
	text-decoration: none;
}

.news-list h3 a:hover {
	color: var(--saddle);
	text-decoration: underline;
}

.news-list p:last-child {
	margin: 0;
	color: var(--ink-soft);
}

@media (max-width: 720px) {
	.news-list {
		grid-template-columns: 1fr;
	}
}

/* ---------- Closing call to action ---------- */

.cta {
	background: var(--slate);
	color: var(--cream);
	border-top: 4px solid var(--brass);
}

.cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	padding-top: clamp(44px, 6vw, 72px);
	padding-bottom: clamp(44px, 6vw, 72px);
}

.cta h2 {
	color: #fff;
	margin-bottom: 0.3em;
}

.cta p {
	margin: 0;
	max-width: 620px;
	color: var(--cream);
}

/* ---------- Inner page banner ---------- */

.page-banner {
	background: var(--slate);
	color: var(--cream);
	padding: clamp(44px, 7vw, 84px) 0 clamp(40px, 6vw, 72px);
	border-bottom: 4px solid var(--brass);
}

.page-banner h1 {
	color: #fff;
	margin-bottom: 0;
	max-width: 900px;
}

.page-lead {
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--cream);
	margin: 16px 0 0;
	max-width: 700px;
}

/* ---------- Long-form text ---------- */

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

.prose > *:last-child {
	margin-bottom: 0;
}

.prose p,
.prose li {
	color: var(--ink-soft);
}

.prose h2 {
	font-size: 1.6rem;
	margin-top: 1.7em;
}

.prose h3 {
	font-size: 1.32rem;
	margin-top: 1.6em;
}

.prose h4 {
	font-size: 1.24rem;
	margin-top: 1.6em;
}

.prose h5,
.prose h6 {
	font-size: 1.1rem;
	margin-top: 1.5em;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
	margin: 0 0 1em;
}

.prose li {
	margin-bottom: 0.4em;
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 1.6em 0;
}

.prose img {
	border-radius: 2px;
	margin: 1.2em 0;
}

.prose blockquote {
	margin: 1.4em 0;
	padding-left: 20px;
	border-left: 4px solid var(--brass);
	font-style: italic;
}

.table-scroll {
	overflow-x: auto;
	margin: 1.3em 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
}

.table-scroll table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 0.95rem;
	line-height: 1.45;
}

.table-scroll td,
.table-scroll th {
	padding: 9px 12px;
	border-bottom: 1px solid var(--line);
	border-right: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.table-scroll td:last-child,
.table-scroll th:last-child {
	border-right: 0;
}

.table-scroll tr:last-child td {
	border-bottom: 0;
}

.table-scroll th {
	background: var(--paper-deep);
	font-weight: 700;
}

.table-scroll td p,
.table-scroll th p {
	margin: 0;
}

.prose-figure {
	margin: 2em 0;
}

.prose-figure img {
	margin: 0;
	box-shadow: var(--shadow);
}

.prose-figure-wide img {
	width: 100%;
}

figcaption {
	font-size: 0.88rem;
	color: var(--muted);
	margin-top: 10px;
	font-style: italic;
}

.prose-pair {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 28px;
	align-items: center;
	margin: 2.2em 0;
	padding: 0 12px;
}

.prose-pair .print img {
	margin: 0;
}

.prose-pair .print:first-child {
	transform: rotate(-1.6deg);
}

.prose-pair .print:last-child {
	transform: rotate(1.2deg);
}

/* ---------- About ---------- */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.split-photo {
	margin: 0;
}

.split-photo img {
	width: 100%;
	border-radius: 2px;
	box-shadow: var(--shadow);
}

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

/* ---------- History timeline ---------- */

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background: var(--line-strong);
}

.timeline-item {
	position: relative;
	padding: 0 0 clamp(36px, 5vw, 56px) 44px;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--paper);
	border: 3px solid var(--brass);
}

.timeline-year {
	font-family: var(--serif);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--saddle);
	margin: 0 0 12px;
}

.timeline-body p {
	color: var(--ink-soft);
}

.timeline-body > *:last-child {
	margin-bottom: 0;
}

.timeline-figure {
	margin: 20px 0 24px;
	max-width: 440px;
}

.timeline-figure img {
	background: #fff;
	padding: 8px;
	box-shadow: 0 2px 4px rgba(29, 26, 22, 0.12), 0 10px 24px rgba(29, 26, 22, 0.14);
}

.timeline-figure-small {
	max-width: 200px;
}

.timeline-pair {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 22px;
	align-items: start;
}

.timeline-pair .timeline-figure {
	margin-top: 8px;
	max-width: none;
}

/* ---------- FAQ ---------- */

.faq-search {
	margin-bottom: 28px;
}

.faq-search label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
}

.faq-search-field {
	position: relative;
}

.faq-search-field .icon {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	color: var(--muted);
	pointer-events: none;
}

.faq-search-field input {
	width: 100%;
	min-height: 56px;
	padding: 12px 16px 12px 50px;
	font: inherit;
	font-size: 1.08rem;
	color: var(--ink);
	background: var(--card);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
}

.faq-count {
	min-height: 1.5em;
	margin: 8px 0 0;
	font-size: 0.92rem;
	color: var(--muted);
}

.faq {
	border-top: 1px solid var(--line-strong);
}

.faq:last-child {
	border-bottom: 1px solid var(--line-strong);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 4px;
	cursor: pointer;
	list-style: none;
	font-family: var(--serif);
	font-size: 1.24rem;
	font-weight: 700;
	line-height: 1.3;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary:hover {
	color: var(--saddle);
}

.faq summary .icon {
	width: 24px;
	height: 24px;
	color: var(--brass);
	transition: transform 0.2s ease;
}

.faq[open] summary .icon {
	transform: rotate(180deg);
}

.faq-answer {
	padding: 0 4px 26px;
}

.faq-empty {
	padding: 24px 0;
}

/* ---------- Forms page ---------- */

.forms-layout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.forms-side {
	display: grid;
	gap: 24px;
	position: sticky;
	top: 108px;
}

.doc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line-strong);
}

.doc {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 20px 4px;
	border-bottom: 1px solid var(--line-strong);
}

.doc-required {
	background: var(--card);
	padding-left: 16px;
	padding-right: 16px;
	border-left: 4px solid var(--gold);
}

.doc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--paper-deep);
	color: var(--saddle);
}

.doc-icon .icon {
	width: 24px;
	height: 24px;
}

.doc-text h3 {
	font-size: 1.2rem;
	margin: 0 0 4px;
}

.doc-text p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.98rem;
}

@media (max-width: 960px) {
	.forms-layout {
		grid-template-columns: 1fr;
	}

	.forms-side {
		position: static;
	}
}

@media (max-width: 520px) {
	.doc {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.doc-icon {
		display: none;
	}
}

/* ---------- Panels ---------- */

.panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
}

.panel h2 {
	font-size: 1.5rem;
}

.panel p {
	color: var(--ink-soft);
}

.panel > *:last-child {
	margin-bottom: 0;
}

.panel-foot {
	font-size: 0.96rem;
	padding-top: 16px;
	margin-top: 18px;
	border-top: 1px solid var(--line);
}

.panel-dark {
	background: var(--slate);
	border-color: var(--slate);
	color: var(--cream);
}

.panel-dark h2 {
	color: #fff;
}

.panel-dark p {
	color: var(--cream);
}

.check-list {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.check-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.check-list .icon {
	color: var(--gold);
	margin-top: 0.22em;
}

.mail-to {
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.5;
	padding: 14px 18px;
	margin: 0 0 16px;
	background: var(--paper);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
}

.steps {
	margin: 0 0 4px;
	padding-left: 1.3em;
	color: var(--ink-soft);
}

.steps li {
	margin-bottom: 8px;
	padding-left: 4px;
}

/* ---------- Article ---------- */

.article-banner h1 {
	font-size: clamp(2rem, 4.2vw, 3rem);
}

.article-meta {
	margin: 16px 0 0;
	color: var(--cream-soft);
	font-size: 0.95rem;
}

.article-body {
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: clamp(56px, 8vw, 96px);
}

.article-figure {
	margin: 0 0 32px;
}

.article-figure img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: var(--shadow);
}

.article-body .lead {
	padding-bottom: 24px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--line);
}

.article-back {
	margin: 44px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

/* ---------- Contact ---------- */

.contact-cards {
	list-style: none;
	margin: 0 0 clamp(40px, 6vw, 64px);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.contact-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px;
	text-align: center;
	box-shadow: var(--shadow);
}

.contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--paper-deep);
	color: var(--saddle);
	margin-bottom: 14px;
}

.contact-icon .icon {
	width: 26px;
	height: 26px;
}

.contact-card h2 {
	font-size: 1.3rem;
	margin-bottom: 6px;
}

.contact-card p,
.contact-card address {
	margin: 0;
	font-size: 1.06rem;
	overflow-wrap: anywhere;
}

.contact-card a {
	font-weight: 600;
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

@media (max-width: 900px) {
	.contact-cards,
	.contact-layout {
		grid-template-columns: 1fr;
	}
}

/* ---------- Form fields ---------- */

.form fieldset {
	border: 0;
	margin: 0 0 12px;
	padding: 0;
	min-width: 0;
}

.form legend {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 700;
	padding: 0;
	margin-bottom: 16px;
	width: 100%;
	border-bottom: 1px solid var(--line);
	padding-bottom: 8px;
}

.field {
	margin-bottom: 20px;
}

.field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

.field-row-3 {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.req {
	color: var(--error);
}

.optional {
	font-weight: 400;
	color: var(--muted);
}

.field input,
.field textarea {
	width: 100%;
	min-height: 50px;
	padding: 11px 14px;
	font: inherit;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
}

.field textarea {
	resize: vertical;
	line-height: 1.5;
}

.field input:focus,
.field textarea:focus,
.faq-search-field input:focus {
	outline: 3px solid var(--gold);
	outline-offset: 0;
	border-color: var(--brass);
}

.field input.is-invalid,
.field textarea.is-invalid {
	border-color: var(--error);
	box-shadow: 0 0 0 1px var(--error);
}

.hint {
	margin: 6px 0 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.password-field {
	position: relative;
}

.password-field input {
	padding-right: 82px;
}

.password-toggle {
	position: absolute;
	right: 6px;
	top: 6px;
	height: 38px;
	padding: 0 12px;
	border: 0;
	border-radius: 4px;
	background: var(--paper-deep);
	color: var(--ink);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.form-status {
	padding: 14px 18px;
	border-radius: var(--radius);
	margin: 4px 0 20px;
	font-weight: 600;
}

.form-status.is-error {
	background: #f8e4de;
	color: var(--error);
	border: 1px solid #e1b3a8;
}

.form-status.is-success {
	background: #e2efe1;
	color: var(--success);
	border: 1px solid #b3d0b4;
}

.form-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.form-note {
	margin: 0;
	font-size: 0.92rem;
	color: var(--muted);
}

/* Field for scripts only. People never see or reach it. */
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form-wrap h2 {
	margin-bottom: 24px;
}

@media (max-width: 620px) {
	.field-row,
	.field-row-3 {
		grid-template-columns: 1fr;
	}
}

/* ---------- Register ---------- */

.register-layout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.register-form-wrap {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(22px, 4vw, 40px);
	box-shadow: var(--shadow);
}

.register-side {
	display: grid;
	gap: 24px;
}

@media (max-width: 900px) {
	.register-layout {
		grid-template-columns: 1fr;
	}
}

/* ---------- Legal ---------- */

.legal {
	font-size: 1rem;
}

.legal .legal-title {
	font-size: 1.5rem;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.legal-updated {
	color: var(--muted) !important;
	font-weight: 600;
	margin-bottom: 2em;
}

.legal h2 {
	font-size: 1.28rem;
	padding-top: 1.2em;
	border-top: 1px solid var(--line);
	scroll-margin-top: 110px;
}

.legal h3 {
	font-size: 1.12rem;
	scroll-margin-top: 110px;
}

.legal p[id] {
	scroll-margin-top: 110px;
}

.legal-toc {
	list-style: none;
	padding: 20px 24px !important;
	margin: 0 0 2em !important;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	columns: 2;
	column-gap: 32px;
	font-size: 0.92rem;
}

.legal-toc li {
	break-inside: avoid;
	margin-bottom: 0.55em;
}

@media (max-width: 620px) {
	.legal-toc {
		columns: 1;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--slate-deep);
	color: var(--cream-soft);
	font-size: 0.98rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr));
	gap: clamp(28px, 4vw, 56px);
	padding-top: clamp(48px, 7vw, 80px);
	padding-bottom: clamp(40px, 6vw, 64px);
}

.footer-brand img {
	width: 114px;
	height: 100px;
	margin-bottom: 16px;
}

.footer-name {
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 6px;
}

.footer-contact {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.footer-contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
}

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

.site-footer a:hover {
	color: var(--gold);
	text-decoration: underline;
}

.footer-nav h2 {
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 6px 0 16px;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav li {
	margin-bottom: 10px;
}

.footer-social {
	margin: 22px 0 0;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer-base {
	border-top: 1px solid rgba(247, 241, 227, 0.14);
	padding: 18px 0;
	font-size: 0.88rem;
}

.footer-base p {
	margin: 0;
}

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

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

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

/* ---------- Motion and print ---------- */

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

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

@media print {
	.utility,
	.masthead,
	.site-footer,
	.cta,
	.nav-toggle,
	.faq-search {
		display: none !important;
	}

	body {
		background: #fff;
	}

	.page-banner {
		background: none;
		color: #000;
		border: 0;
		padding: 0 0 12px;
	}

	.page-banner h1,
	.page-lead {
		color: #000;
	}
}
