:root {
	--plum: hsl(267, 48%, 36%);
	--plum-mid: hsl(267, 38%, 52%);
	--plum-deep: hsl(267, 40%, 17%);
	--plum-night: hsl(267, 36%, 11%);
	--ink: hsl(267, 30%, 14%);
	--muted: hsl(267, 14%, 36%);
	--accent: hsl(237, 48%, 42%);
	--accent-soft: hsl(237, 48%, 93%);
	--bg: hsl(267, 26%, 96%);
	--surface: hsl(30, 33%, 99%);
	--sand: hsl(32, 34%, 90%);
	--line: hsl(267, 18%, 83%);
	--cream: hsl(36, 45%, 94%);
	--rail: 264px;
	--font: "Gill Sans", "Gill Sans MT", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font);
	font-weight: 600;
	line-height: 1.2;
	color: var(--plum-deep);
	margin: 0 0 .6em;
}

h1 {
	font-size: clamp(2rem, 5vw, 3.2rem);
	letter-spacing: -.01em;
}

h2 {
	font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

h3 {
	font-size: 1.2rem;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--accent);
	text-underline-offset: 3px;
}

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

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

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

.skiplink {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 50;
	background: var(--plum-deep);
	color: var(--cream);
	padding: .6rem 1rem;
}

.skiplink:focus {
	left: 1rem;
	top: 1rem;
	color: var(--cream);
}

.siderail {
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--rail);
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 2rem 1.6rem;
	background: var(--plum-deep);
	background-image: url(../media/grain.svg);
	background-size: 240px 240px;
	color: var(--cream);
	overflow-y: auto;
	z-index: 20;
}

.brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .8rem;
	text-decoration: none;
	color: var(--cream);
}

.brand:hover,
.brand:focus-visible {
	color: #fff;
}

.seal {
	width: 84px;
	height: 84px;
	display: block;
}

.brand-name {
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.25;
}

.brand-name small {
	display: block;
	font-size: .78rem;
	font-weight: 400;
	letter-spacing: .14em;
	color: hsl(267, 30%, 80%);
}

.railnav-title {
	font-size: .75rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: hsl(267, 26%, 74%);
	margin-bottom: .6rem;
}

.railnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid hsla(36, 45%, 94%, .25);
}

.railnav a {
	display: block;
	padding: .35rem 0 .35rem 1rem;
	color: var(--cream);
	text-decoration: none;
	margin-left: -1px;
	border-left: 2px solid transparent;
}

.railnav a:hover,
.railnav a:focus-visible {
	color: #fff;
	border-left-color: hsl(237, 60%, 76%);
}

.railcard {
	margin-top: auto;
	padding: 1rem;
	border: 1px solid hsla(36, 45%, 94%, .3);
	background: hsla(267, 40%, 8%, .45);
	font-size: .92rem;
	color: var(--cream);
}

.railcard p {
	margin: 0 0 .4rem;
}

.railcard a {
	color: hsl(237, 70%, 86%);
	word-break: break-word;
}

.railcard a:hover,
.railcard a:focus-visible {
	color: #fff;
}

.column {
	margin-left: var(--rail);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .9rem clamp(1.2rem, 4vw, 3.5rem);
	background: hsla(267, 26%, 96%, .96);
	border-bottom: 1px solid var(--line);
}

.topbar-label {
	font-size: .85rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.toplinks {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .3rem;
}

.toplinks a {
	padding: .4rem .95rem;
	border-radius: 999px;
	color: var(--ink);
	text-decoration: none;
	font-size: .98rem;
}

.toplinks a:hover,
.toplinks a:focus-visible {
	background: var(--accent-soft);
	color: var(--accent);
}

.toplinks a[aria-current=page] {
	background: var(--plum);
	color: var(--cream);
}

main {
	flex: 1;
}

.band {
	padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 3.5rem);
	scroll-margin-top: 4rem;
}

.band-inner {
	max-width: 980px;
}

.band-sand {
	background: var(--sand);
}

.band-dark {
	background: var(--plum-deep);
	background-image: url(../media/grain.svg);
	background-size: 240px 240px;
	color: var(--cream);
}

.band-dark h2,
.band-dark h3 {
	color: #fff;
}

.band-dark a {
	color: hsl(237, 70%, 86%);
}

.band-dark a:hover,
.band-dark a:focus-visible {
	color: #fff;
}

.kicker {
	display: inline-block;
	font-size: .8rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: .8rem;
}

.band-dark .kicker {
	color: hsl(237, 70%, 84%);
}

.lead {
	font-size: 1.2rem;
	color: var(--muted);
	max-width: 40em;
}

.band-dark .lead {
	color: hsl(267, 30%, 86%);
}

.prose {
	max-width: 42em;
}

.opening {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	padding: clamp(3rem, 8vw, 6rem) clamp(1.2rem, 4vw, 3.5rem);
	background: linear-gradient(160deg, var(--bg) 0%, hsl(267, 32%, 92%) 100%);
	border-bottom: 1px solid var(--line);
}

.opening-art {
	width: 100%;
	height: auto;
	display: block;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	margin-top: 1.6rem;
}

.pill {
	display: inline-block;
	padding: .75rem 1.5rem;
	border-radius: 999px;
	border: 2px solid var(--plum);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: .02em;
}

.pill-solid {
	background: var(--plum);
	color: var(--cream);
}

.pill-solid:hover,
.pill-solid:focus-visible {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pill-line {
	background: transparent;
	color: var(--plum);
}

.pill-line:hover,
.pill-line:focus-visible {
	background: var(--plum);
	color: var(--cream);
}

.twin {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.pledge {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .9rem;
}

.pledge li {
	padding: 1rem 1.2rem;
	background: var(--surface);
	border-left: 4px solid var(--accent);
	color: var(--ink);
}

.pledge strong {
	display: block;
	color: var(--plum-deep);
}

.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.2rem;
	margin-top: 2rem;
}

.tile {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 0;
	padding: 1.5rem;
	color: var(--ink);
}

.tile h3 {
	color: var(--plum-deep);
}

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

.tile-icon {
	width: 52px;
	height: 52px;
	display: block;
	margin-bottom: 1rem;
	color: var(--plum);
}

.band-dark .tile {
	background: var(--cream);
	border-color: transparent;
	color: var(--ink);
}

.band-dark .tile h3 {
	color: var(--plum-deep);
}

.band-dark .tile p {
	color: hsl(267, 16%, 30%);
}

.band-dark .tile a {
	color: var(--accent);
}

.portrait {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 2rem;
	align-items: start;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: clamp(1.4rem, 3vw, 2.2rem);
	color: var(--ink);
}

.portrait-mark {
	width: 100%;
	height: auto;
	display: block;
}

.portrait h3 {
	font-size: 1.5rem;
	margin-bottom: .2rem;
}

.portrait-role {
	color: var(--accent);
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: .85rem;
	margin-bottom: 1rem;
}

.reach {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin-top: 2rem;
	border: 1px solid var(--line);
}

.reach-card {
	padding: clamp(1.4rem, 3vw, 2.2rem);
	background: var(--surface);
	color: var(--ink);
}

.reach-card + .reach-card {
	border-left: 1px solid var(--line);
}

.reach-card h3 {
	display: flex;
	align-items: center;
	gap: .6rem;
}

.reach-card h3 svg {
	width: 28px;
	height: 28px;
	color: var(--accent);
	flex: none;
}

.reach-card address {
	font-style: normal;
	line-height: 1.7;
}

.reach-mail {
	font-size: 1.1rem;
	font-weight: 600;
	word-break: break-word;
}

.reach-alt {
	background: var(--plum);
	color: var(--cream);
}

.reach-alt h3 {
	color: #fff;
}

.reach-alt h3 svg {
	color: hsl(237, 70%, 86%);
}

.reach-alt a {
	color: #fff;
}

.reach-alt a:hover,
.reach-alt a:focus-visible {
	color: hsl(237, 70%, 88%);
}

.reach-alt .pill {
	border-color: var(--cream);
	background: var(--cream);
	color: var(--plum-deep);
	margin-top: .6rem;
}

.reach-alt .pill:hover,
.reach-alt .pill:focus-visible {
	background: transparent;
	color: var(--cream);
}

.steps {
	list-style: none;
	counter-reset: step;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.steps li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 3.2rem 1fr;
	gap: 1rem;
	padding: 1.2rem;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink);
}

.steps li::before {
	content: counter(step, decimal-leading-zero);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--accent);
}

.steps h3 {
	margin-bottom: .3rem;
}

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

.pagehead {
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3.5rem);
	background: linear-gradient(160deg, var(--bg) 0%, hsl(267, 32%, 91%) 100%);
	border-bottom: 1px solid var(--line);
}

.policy h2 {
	font-size: 1.4rem;
	margin-top: 2.2rem;
}

.policy ul {
	padding-left: 1.2rem;
}

.policy li {
	margin-bottom: .4rem;
}

.stamp {
	display: inline-block;
	padding: .3rem .9rem;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: .9rem;
}

.sitefoot {
	background: var(--plum-night);
	color: hsl(267, 22%, 82%);
	padding: 3rem clamp(1.2rem, 4vw, 3.5rem) 2rem;
	font-size: .95rem;
}

.sitefoot-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 2rem;
	max-width: 980px;
}

.sitefoot h4 {
	color: #fff;
	font-size: .85rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: .8rem;
}

.sitefoot address {
	font-style: normal;
	line-height: 1.7;
}

.sitefoot a {
	color: hsl(237, 70%, 86%);
	word-break: break-word;
}

.sitefoot a:hover,
.sitefoot a:focus-visible {
	color: #fff;
}

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

.sitefoot li {
	margin-bottom: .35rem;
}

.sitefoot-base {
	margin-top: 2.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid hsla(267, 30%, 80%, .2);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .6rem;
	max-width: 980px;
	color: hsl(267, 18%, 72%);
}

.sitefoot-base p {
	margin: 0;
}

@media (max-width: 960px) {
	.siderail {
		position: static;
		width: auto;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 1rem clamp(1.2rem, 4vw, 3.5rem);
	}

	.brand {
		flex-direction: row;
		align-items: center;
	}

	.seal {
		width: 56px;
		height: 56px;
	}

	.railnav {
		display: none;
	}

	.railcard {
		margin-top: 0;
		padding: .6rem .9rem;
	}

	.column {
		margin-left: 0;
	}

	.opening,
	.twin {
		grid-template-columns: 1fr;
	}

	.opening-art {
		max-width: 420px;
	}
}

@media (max-width: 720px) {
	.topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: .4rem;
	}

	.toplinks {
		justify-content: flex-start;
	}

	.portrait,
	.reach,
	.sitefoot-grid {
		grid-template-columns: 1fr;
	}

	.portrait-mark {
		max-width: 140px;
	}

	.reach-card + .reach-card {
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.railcard {
		width: 100%;
	}
}

@media (max-width: 400px) {
	body {
		font-size: 1rem;
	}

	.toplinks a {
		padding: .35rem .7rem;
		font-size: .92rem;
	}

	.pill {
		padding: .7rem 1.2rem;
	}

	.steps li {
		grid-template-columns: 1fr;
		gap: .3rem;
	}
}
