@font-face {
	font-family:'Roboto Slab';
	font-weight:400 900;
	font-style:normal;
	src:url('../fonts/kh-slab.woff2') format('woff2');
	font-display:swap;
	unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family:'Roboto Slab Fallback';
	src:local('Georgia');
	ascent-override:98.70%;
	size-adjust:106.41%;
}
@font-face {
	font-family:'Roboto';
	font-weight:400 700;
	font-style:normal;
	src:url('../fonts/kh-text.woff2') format('woff2');
	font-display:swap;
	unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family:'Roboto Fallback';
	src:local('Arial');
	ascent-override:95.10%;
	size-adjust:99.89%;
}

:root {
	--gray-50: rgb(246, 247, 249);
	--gray-100: rgb(236, 238, 242);
	--gray-200: rgb(213, 217, 224);
	--gray-400: rgb(138, 145, 156);
	--gray-600: rgb(82, 90, 104);
	--gray-700: rgb(58, 66, 80);
	--gray-900: rgb(27, 34, 48);
	--gray-950: rgb(20, 26, 36);
	--accent-100: rgb(222, 233, 231);
	--accent-300: rgb(132, 180, 170);
	--accent-500: rgb(46, 91, 84);
	--accent-700: rgb(30, 64, 59);
	--signal-600: rgb(39, 71, 168);
	--signal-700: rgb(29, 54, 134);
	--alert-600: rgb(150, 36, 52);
	--white: rgb(255, 255, 255);
	--offset-14: 14px; /* photo frame shift, notes below framed blocks derive from it */
	--radius-10: 10px;
	--wrap-1200: 1200px;
	--gutter-24: clamp(16px, 4vw, 40px);
	--head-face: 'Roboto Slab', 'Roboto Slab Fallback', Georgia, serif;
	--text-face: 'Roboto', 'Roboto Fallback', Arial, sans-serif;
	--mono-face: ui-monospace, 'Cascadia Mono', Consolas, 'Courier New', monospace;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	font-family: var(--text-face);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--gray-900);
	background: var(--gray-50);
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 0.6em;
	overflow-wrap: break-word;
	font-family: var(--head-face);
	font-weight: 800;
	line-height: 1.15;
	color: var(--gray-900);
}

h1 {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	font-weight: 900;
}

@media (max-width: 599px) {
	.page-head h1,
	h2,
	h3 {
		hyphens: auto; /* long compounds on narrow phones only */
	}
}

h2 {
	font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
}

h3 {
	font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
}

p,
ul,
ol,
dl,
table {
	margin: 0 0 1rem;
}

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

a:hover {
	color: var(--accent-700);
}

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

.container {
	width: min(100% - 2 * var(--gutter-24), var(--wrap-1200));
	margin-inline: auto;
}

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

html [hidden] {
	display: none; /* beats display rules of component classes */
}

.jump-main {
	position: absolute;
	top: -64px;
	left: 16px;
	z-index: 70;
	padding: 12px 18px;
	font-weight: 700;
	color: var(--white);
	background: var(--signal-600);
}

.jump-main:focus {
	top: 12px;
}

/* header: centred mark, menu row below */
.site-head {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid var(--gray-200);
	background: var(--gray-50);
}

.head-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 72px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.head-note {
	display: none;
	margin: 0;
	font-size: 0.875rem;
	color: var(--gray-600);
}

.head-note a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--gray-700);
	text-decoration: none;
}

.brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	grid-column: 2;
	text-decoration: none;
	color: var(--gray-900);
}

.brand-name {
	font-family: var(--head-face);
	font-size: 1.6rem;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0;
}

.brand-sub {
	font-family: var(--mono-face);
	font-size: 0.6875rem;
	line-height: 1.4;
	color: var(--gray-600);
}

.basket-link {
	display: inline-flex;
	align-items: center;
	justify-self: end;
	gap: 8px;
	min-width: 48px;
	min-height: 48px;
	padding: 0 6px;
	font-weight: 700;
	text-decoration: none;
	color: var(--gray-900);
}

.basket-link svg {
	width: 24px;
	height: 24px;
}

.basket-count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	color: var(--white);
	background: var(--gray-900);
	border-radius: 13px;
}

.basket-label {
	display: none;
	font-size: 0.9375rem;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--gray-200);
	border-radius: 0;
	color: var(--gray-900);
	background: transparent;
	cursor: pointer;
}

.nav-toggle svg {
	width: 22px;
	height: 22px;
}

/* mobile overlay lives inside the header stacking context (z 50 beats the cookie bar) */
.main-nav {
	position: fixed;
	inset: 0;
	z-index: 60;
	overflow-y: auto;
	padding: 24px var(--gutter-24) 40px;
	background: var(--gray-950);
	visibility: hidden;
	transform: translateY(-12px);
	transition: transform 0.2s ease, visibility 0s linear 0.2s;
}

.main-nav.menu-open {
	visibility: visible;
	transform: none;
	transition: transform 0.2s ease;
}

.nav-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nav-close {
	display: inline-flex;
	align-items: center;
	align-self: flex-end;
	gap: 10px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid rgba(246, 247, 249, 0.35);
	border-radius: 0;
	font: inherit;
	font-weight: 700;
	color: var(--gray-50);
	background: transparent;
	cursor: pointer;
}

.nav-list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list li {
	border-bottom: 1px dashed rgba(246, 247, 249, 0.25);
}

.nav-list a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-height: 56px;
	padding: 12px 0;
	font-family: var(--head-face);
	font-size: 1.5rem;
	font-weight: 800;
	text-decoration: none;
	color: var(--gray-50);
}

.nav-list a span {
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--accent-300);
}

.nav-list a[aria-current="page"] {
	color: var(--accent-300);
}

@media (min-width: 900px) {
	.head-bar {
		min-height: 92px;
	}

	.head-note {
		display: block;
	}

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

	.basket-label {
		display: inline;
	}

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

	.main-nav {
		position: static;
		overflow: visible;
		padding: 0;
		border-top: 1px dashed var(--gray-200);
		background: transparent;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.nav-inner {
		flex-direction: row;
		justify-content: center;
	}

	.nav-list {
		flex-direction: row;
		gap: clamp(20px, 3vw, 44px);
	}

	.nav-list li {
		border-bottom: 0;
	}

	.nav-list a {
		align-items: center;
		gap: 8px;
		min-height: 52px;
		padding: 0;
		font-family: var(--text-face);
		font-size: 0.9875rem;
		font-weight: 600;
		color: var(--gray-900);
	}

	.nav-list a span {
		font-size: 0.75rem;
		color: var(--accent-500);
	}

	.nav-list a:hover,
	.nav-list a[aria-current="page"] {
		color: var(--accent-500);
	}

	.nav-list a[aria-current="page"] {
		box-shadow: inset 0 -2px 0 var(--accent-500);
	}
}

/* sections: banding + rhythm */
.band {
	padding-top: clamp(56px, 7vw, 104px);
	padding-bottom: clamp(56px, 7vw, 104px);
}

.band-tight {
	padding-top: clamp(40px, 4.5vw, 64px);
	padding-bottom: clamp(40px, 4.5vw, 64px);
}

.band-tint {
	background: var(--gray-100);
}

.band-dark {
	color: var(--gray-50);
	background: var(--gray-950);
}

.band-dark h2,
.band-dark h3 {
	color: var(--gray-50);
}

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

.sec-mark {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--accent-500);
}

.sec-mark::after {
	content: "";
	flex: 1;
	border-top: 1px dashed var(--gray-400);
}

.band-dark .sec-mark {
	color: var(--accent-300);
}

.sec-head {
	display: grid;
	gap: 8px 48px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.sec-head h2 {
	margin: 0;
}

.sec-head p {
	max-width: 62ch;
	margin: 0;
	color: var(--gray-600);
}

.band-dark .sec-head p {
	color: var(--gray-200);
}

@media (min-width: 900px) {
	.sec-head {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: end;
	}
}

/* page head of inner pages */
.page-head {
	padding-top: clamp(36px, 4vw, 56px);
	padding-bottom: clamp(28px, 3vw, 44px);
	border-bottom: 1px dashed var(--gray-400);
}

.page-head h1 {
	margin-bottom: 14px;
}

.page-head .lead {
	max-width: 64ch;
	margin: 0;
	font-size: 1.125rem;
	color: var(--gray-600);
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	color: var(--gray-600);
}

.crumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--gray-400);
}

.crumbs a {
	color: var(--gray-700);
}

/* hero */
.hero {
	position: relative;
	overflow: hidden;
	color: var(--gray-50);
	background: var(--gray-950);
}

.hero-mark {
	position: absolute;
	right: -0.04em;
	bottom: -0.2em;
	z-index: 0;
	font-family: var(--head-face);
	font-size: clamp(7rem, 22vw, 21rem);
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
	color: rgba(246, 247, 249, 0.05); /* muted by colour, never by opacity */
	pointer-events: none;
	user-select: none;
}

.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	padding-top: clamp(32px, 4vw, 64px);
	padding-bottom: clamp(56px, 6vw, 96px);
}

.hero-eyebrow {
	margin: 0 0 18px;
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	letter-spacing: 0.05em;
	color: var(--accent-300);
}

.hero h1 {
	max-width: 13ch;
	hyphens: manual;
	margin-bottom: 24px;
	font-size: clamp(2.5rem, 1rem + 4.4vw, 5.25rem);
	line-height: 1;
	color: var(--gray-50);
}

.hero-lead {
	max-width: 46ch;
	margin-bottom: 32px;
	font-size: 1.125rem;
	color: var(--gray-200);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
}

.hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 36px 0 0;
	padding: 18px 0 0;
	border-top: 1px dashed rgba(246, 247, 249, 0.28);
	list-style: none;
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	color: var(--gray-200);
}

.hero-photo {
	position: relative;
	align-self: center;
	max-width: min(560px, 100%);
	margin: 0 var(--offset-14) var(--offset-14) 0;
}

@media (min-width: 900px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: center;
		gap: 56px;
	}

	.hero-photo {
		justify-self: end;
	}
}

/* footer, single row */
.site-foot {
	border-top: 1px solid var(--gray-200);
	background: var(--gray-100);
}

.foot-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 32px;
	padding-top: 22px;
	padding-bottom: 22px;
	font-size: 0.875rem;
	color: var(--gray-600);
}

.foot-row p {
	margin: 0;
}

.foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.foot-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--gray-700);
}

.foot-links .foot-revoke {
	padding: 0 14px;
	border: 1px solid var(--accent-500); /* withdrawal link must stay visible, not blend into legal links */
	border-radius: var(--radius-10);
	font-weight: 600;
	color: var(--accent-700);
	background: var(--white);
}

.foot-links .foot-revoke:hover,
.foot-links .foot-revoke:focus-visible {
	color: var(--white);
	background: var(--accent-500);
}

@media (prefers-reduced-motion: reduce) {
	.main-nav,
	.main-nav.menu-open {
		transition: none;
	}
}
