/* gokartrace.no – public site */

:root {
	--bg: #0e0f11;
	--surface: #17191c;
	--surface-2: #202328;
	--border: #2a2e34;
	--text: #f2f3f5;
	--muted: #9aa1ab;
	--accent: #e10600;
	--accent-hover: #ff2a1f;
	--success: #22c55e;
	--warning: #f59e0b;
	--info: #3b82f6;

	--font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 10px;
	--radius-sm: 6px;
	--gutter: 16px;
	--max: 1200px;
	--header-h: 64px;
	--skew: -10deg;
	--checker: conic-gradient(#f2f3f5 0 25%, #0e0f11 0 50%, #f2f3f5 0 75%, #0e0f11 0);
	color-scheme: dark;
}

@media (min-width: 720px) {
	:root { --gutter: 24px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main { flex: 1 0 auto; }

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

a { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--accent-hover);
	outline-offset: 3px;
	border-radius: 4px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: .01em;
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

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

.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 100;
	background: var(--accent);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.icon { display: inline-flex; width: 1.1em; height: 1.1em; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------ display type */

.display {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .005em;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-style: italic;
	font-size: 15px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-hover);
	margin-bottom: 12px;
}
.eyebrow::before {
	content: "";
	width: 28px; height: 4px;
	background: var(--accent);
	transform: skewX(var(--skew));
}

.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 28px;
}
.section-head h2 { margin: 0; }
.section-title {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(32px, 6vw, 52px);
}
.section-lead { color: var(--muted); max-width: 60ch; margin: 8px 0 0; }

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

.btn {
	--btn-bg: var(--surface-2);
	--btn-fg: var(--text);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	background: none;
	color: var(--btn-fg);
	font-family: var(--font-display);
	font-weight: 700;
	font-style: italic;
	font-size: 19px;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	isolation: isolate;
	white-space: nowrap;
}
.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--btn-bg);
	border-radius: 4px;
	transform: skewX(var(--skew));
	transition: background-color .15s ease, box-shadow .15s ease;
}
.btn .icon { transition: transform .15s ease; }
.btn:hover .icon-arrow, .btn:focus-visible .icon-arrow { transform: translateX(3px); }
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-hover); }

.btn-primary { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn-primary::before { box-shadow: 0 10px 30px -10px rgba(225, 6, 0, .7); }
.btn-primary:hover { --btn-bg: var(--accent-hover); }

.btn-ghost::before { background: transparent; border: 1.5px solid rgba(242, 243, 245, .35); }
.btn-ghost:hover::before { border-color: var(--text); background: rgba(255, 255, 255, .06); }

.btn-dark { --btn-bg: var(--surface-2); }
.btn-dark:hover { --btn-bg: #2b2f35; }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 16px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 21px; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent-hover); }

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(14, 15, 17, .82);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--border); background: rgba(14, 15, 17, .95); }
.site-header::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--accent) 0 60%, transparent 60% 62%, var(--accent) 62% 64%, transparent 64% 66%, var(--accent) 66% 67%, transparent 67%);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; margin-right: auto; }
.brand svg { display: block; height: 34px; width: auto; }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
	position: relative;
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
	transition: color .15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.nav-login { display: none; }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	margin-right: -8px;
	background: none;
	border: 0;
	color: var(--text);
	cursor: pointer;
	border-radius: var(--radius-sm);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block;
	width: 22px; height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .2s ease, background-color .2s ease;
	position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899.98px) {
	.site-header.is-open .site-nav {
		display: block;
		position: absolute;
		left: 0; right: 0; top: var(--header-h);
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		padding: 8px var(--gutter) 24px;
		box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .8);
	}
	.site-nav li { border-bottom: 1px solid var(--border); }
	.site-nav a { padding: 14px 0; font-size: 24px; font-style: italic; }
	.site-nav a[aria-current="page"] { color: var(--text); }
	.site-nav a[aria-current="page"]::before {
		content: "";
		position: absolute; left: -16px; top: 50%;
		width: 6px; height: 22px;
		margin-top: -11px;
		background: var(--accent);
		transform: skewX(var(--skew));
	}
	.nav-mobile-login { padding-top: 20px; border: 0 !important; }
	.site-nav .nav-mobile-login .btn { display: flex; width: 100%; padding: 0 24px; color: #fff; font-size: 20px; }
}

@media (min-width: 900px) {
	.nav-toggle, .nav-mobile-login { display: none; }
	.site-nav { display: block; }
	.site-nav ul { display: flex; gap: 32px; }
	.site-nav a { padding: 8px 0; }
	.site-nav a::after {
		content: "";
		position: absolute;
		left: 0; right: 0; bottom: 0;
		height: 3px;
		background: var(--accent);
		transform: scaleX(0) skewX(var(--skew));
		transform-origin: left;
		transition: transform .2s ease;
	}
	.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1) skewX(var(--skew)); }
	.nav-login { display: inline-flex; margin-left: 28px; }
}

/* ------------------------------------------------------------ checkered helpers */

.checker-band {
	height: 24px;
	background: var(--checker);
	background-size: 24px 24px;
	opacity: .9;
}
.checker-band.is-thin { height: 12px; background-size: 12px 12px; }

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

.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(60% 70% at 85% 30%, rgba(225, 6, 0, .28), transparent 70%),
		radial-gradient(40% 50% at 10% 100%, rgba(225, 6, 0, .12), transparent 70%),
		linear-gradient(180deg, #0e0f11 0%, #121417 100%);
}

.hero-art {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}
.hero-art svg {
	position: absolute;
	right: -40%;
	top: 0;
	height: 100%;
	width: auto;
	max-width: none;
	opacity: .38;
}
@media (min-width: 720px) {
	.hero-art svg { right: -18%; opacity: .7; }
}
@media (min-width: 1100px) {
	.hero-art svg { right: -4%; opacity: 1; }
}

.hero-art::after {
	/* fade the art into the text on the left */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(14, 15, 17, .95) 0%, rgba(14, 15, 17, .75) 40%, rgba(14, 15, 17, 0) 75%);
}

.hero-inner {
	position: relative;
	padding-top: 48px;
	padding-bottom: 72px;
	min-height: min(72vh, 680px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
@media (min-width: 900px) { .hero-inner { padding-top: 96px; padding-bottom: 120px; min-height: min(82vh, 680px); } }

.hero h1 {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(46px, 11vw, 104px);
	line-height: .92;
	letter-spacing: -.005em;
	margin: 0 0 20px;
	max-width: 11ch;
	text-wrap: balance;
}
.hero h1 em {
	font-style: italic;
	color: var(--accent);
	text-shadow: 0 0 40px rgba(225, 6, 0, .45);
}
.hero-lead {
	font-size: clamp(17px, 2.2vw, 20px);
	color: #c9cdd3;
	max-width: 46ch;
	margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; }
@media (max-width: 479.98px) {
	.hero-actions { padding: 0 4px; }
	.hero-actions .btn { width: 100%; }
}

.hero-number {
	position: absolute;
	right: var(--gutter);
	bottom: 56px;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	font-size: 200px;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(242, 243, 245, .09);
	display: none;
}
@media (min-width: 1100px) { .hero-number { display: block; } }

.hero .checker-band {
	position: absolute;
	left: -5%; right: -5%; bottom: 0;
	transform: skewY(-1.5deg);
	transform-origin: left bottom;
}

.racing-line { stroke-dasharray: 14 22; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }

/* ------------------------------------------------------------ stats strip */

.stats {
	position: relative;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}
.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	padding: 22px 16px 22px 0;
	border-bottom: 1px solid var(--border);
}
.stat:nth-child(odd) { padding-left: 0; }
@media (max-width: 719.98px) {
	.stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
	.stat:nth-child(n+3) { border-bottom: 0; }
}
@media (min-width: 720px) {
	.stat { border-bottom: 0; padding: 30px 24px; border-left: 1px solid var(--border); }
	.stat:first-child { border-left: 0; padding-left: 0; }
}
.stat-value {
	display: block;
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-style: italic;
	font-size: clamp(40px, 7vw, 56px);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.stat-label {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
}
.stat-value .unit { color: var(--accent); }

/* ------------------------------------------------------------ badges */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	border: 1px solid transparent;
}
.badge-open { background: rgba(34, 197, 94, .14); color: #4ade80; border-color: rgba(34, 197, 94, .3); }
.badge-open::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--success);
	box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
}
.badge-soon { background: rgba(59, 130, 246, .14); color: #93c5fd; border-color: rgba(59, 130, 246, .3); }
.badge-closed { background: rgba(154, 161, 171, .12); color: #c3c8cf; border-color: rgba(154, 161, 171, .25); }
.badge-cancelled { background: rgba(225, 6, 0, .16); color: #ff6b63; border-color: rgba(225, 6, 0, .4); }
.badge-warning { background: rgba(245, 158, 11, .14); color: #fbbf24; border-color: rgba(245, 158, 11, .3); }
.badge-type {
	border-radius: 3px;
	background: var(--surface-2);
	color: var(--text);
	border-color: var(--border);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 1px 9px;
}
.badge-type.is-club { color: #c3c8cf; }

/* ------------------------------------------------------------ race cards (home) */

.race-cards {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 640px) { .race-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .race-cards { grid-template-columns: repeat(3, 1fr); } }

.race-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.race-card::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: var(--accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .2s ease;
}
.race-card:hover, .race-card:focus-visible {
	border-color: #3a3f47;
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9);
}
.race-card:hover::before, .race-card:focus-visible::before { transform: scaleY(1); }
.race-card.is-cancelled { opacity: .78; }
.race-card.is-cancelled .race-card-title { text-decoration: line-through; text-decoration-color: rgba(225, 6, 0, .7); }

.race-card-top {
	display: flex;
	gap: 16px;
	padding: 18px 18px 14px;
	align-items: flex-start;
}
.race-card-body { padding: 0 18px 16px; flex: 1; }
.race-card-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	font-size: 25px;
	line-height: 1.05;
	margin: 2px 0 6px;
}
.race-card-meta { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.race-card-meta span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.race-card-meta .icon { color: #6c737d; }
.race-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.race-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 18px;
	border-top: 1px solid var(--border);
	background: linear-gradient(90deg, rgba(255, 255, 255, .02), transparent);
	font-size: 13.5px;
	color: var(--muted);
}
.race-card-foot strong { color: var(--text); font-weight: 600; }
.race-card-foot .icon-arrow { color: var(--accent); }

/* Date block */
.date-block {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 64px;
	min-height: 70px;
	padding: 6px 4px;
	border-radius: 6px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	font-family: var(--font-display);
	text-transform: uppercase;
	line-height: 1;
	position: relative;
	overflow: hidden;
}
.date-block::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--accent);
}
.date-block .db-weekday { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.date-block .db-day { font-size: 30px; font-weight: 800; font-style: italic; margin: 3px 0 2px; white-space: nowrap; }
.date-block .db-day.is-range { font-size: 22px; }
.date-block .db-month { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--accent-hover); }
.is-cancelled .date-block::before { background: #5b6068; }

/* ------------------------------------------------------------ steps */

.steps {
	display: grid;
	gap: 16px;
	counter-reset: step;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
	position: relative;
	padding: 26px 24px 26px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.step-num {
	position: absolute;
	right: 14px; top: -10px;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	font-size: 120px;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(242, 243, 245, .12);
	pointer-events: none;
}
.step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	margin-bottom: 18px;
	border-radius: 8px;
	background: rgba(225, 6, 0, .14);
	color: var(--accent-hover);
	transform: skewX(var(--skew));
}
.step-icon .icon { width: 24px; height: 24px; transform: skewX(10deg); }
.step h3 { font-size: 28px; font-style: italic; text-transform: uppercase; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.step-connector { display: none; }

/* ------------------------------------------------------------ organizer CTA */

.organizer {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background:
		radial-gradient(80% 120% at 100% 0%, rgba(225, 6, 0, .35), transparent 60%),
		linear-gradient(135deg, #1b1d21, #121316);
	border: 1px solid var(--border);
	padding: 36px 24px;
	isolation: isolate;
}
@media (min-width: 900px) { .organizer { padding: 56px; } }
.organizer::after {
	content: "";
	position: absolute;
	right: -60px; top: -40px; bottom: -40px;
	width: 260px;
	background: var(--checker);
	background-size: 40px 40px;
	transform: skewX(var(--skew));
	opacity: .07;
	z-index: -1;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
	mask-image: linear-gradient(90deg, transparent, #000 60%);
}
@media (min-width: 900px) { .organizer::after { width: 420px; opacity: .1; } }
.organizer-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .organizer-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.organizer h2 { font-size: clamp(36px, 6vw, 60px); font-style: italic; text-transform: uppercase; }
.organizer p { color: #c9cdd3; max-width: 52ch; }
.organizer-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-price {
	padding: 18px;
	border-radius: var(--radius);
	background: rgba(14, 15, 17, .6);
	border: 1px solid var(--border);
}
.mini-price .label { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.mini-price .value {
	display: block;
	margin-top: 4px;
	font-family: var(--font-display);
	font-weight: 800;
	font-style: italic;
	font-size: 40px;
	line-height: 1;
}
.mini-price .value small { font-size: 18px; color: var(--muted); font-weight: 600; }
.organizer-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 8px; }

/* ------------------------------------------------------------ page header (subpages) */

.page-hero {
	position: relative;
	overflow: hidden;
	padding: 44px 0 36px;
	background:
		radial-gradient(50% 120% at 100% 0%, rgba(225, 6, 0, .2), transparent 70%),
		linear-gradient(180deg, #121417, var(--bg));
	border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) { .page-hero { padding: 72px 0 52px; } }
.page-hero::after {
	content: "";
	position: absolute;
	right: -40px; top: 0; bottom: 0;
	width: 160px;
	background: var(--checker);
	background-size: 28px 28px;
	transform: skewX(var(--skew));
	opacity: .06;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000);
	mask-image: linear-gradient(90deg, transparent, #000);
}
@media (min-width: 900px) { .page-hero::after { width: 320px; } }
.page-hero h1 {
	font-style: italic;
	text-transform: uppercase;
	font-size: clamp(42px, 9vw, 80px);
	line-height: .95;
	margin: 0;
	position: relative;
	z-index: 1;
}
.page-hero .section-lead { position: relative; z-index: 1; margin-top: 12px; font-size: 17px; }

/* ------------------------------------------------------------ race list (calendar) */

.toolbar {
	display: grid;
	gap: 12px;
	margin-bottom: 20px;
}
@media (min-width: 900px) {
	.toolbar { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
}

.tabs {
	display: inline-flex;
	padding: 4px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	width: 100%;
}
@media (min-width: 900px) { .tabs { width: auto; } }
.tab {
	flex: 1;
	min-height: 42px;
	padding: 0 22px;
	border: 0;
	border-radius: 5px;
	background: none;
	color: var(--muted);
	font-family: var(--font-display);
	font-weight: 700;
	font-style: italic;
	font-size: 18px;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); color: #fff; }

.filters {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.filters .field-search { grid-column: 1 / -1; }
@media (min-width: 900px) {
	.filters { grid-template-columns: 130px 220px 1fr; justify-self: end; width: 100%; max-width: 700px; }
	.filters .field-search { grid-column: auto; }
}

.field { position: relative; display: block; min-width: 0; }
.field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input, .select {
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font: inherit;
	font-size: 15px;
	transition: border-color .15s ease;
}
.input::placeholder { color: #7c838d; }
.input:hover, .select:hover { border-color: #3a3f47; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 6, 0, .25); }
.field-search .input { padding-left: 40px; }
.select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1ab' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	text-overflow: ellipsis;
}

.result-count { color: var(--muted); font-size: 14px; margin: 0 0 12px; min-height: 22px; }

.race-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.race-row {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 6px 16px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, background-color .15s ease;
}
.race-row:hover, .race-row:focus-visible { border-color: #3a3f47; background: #1a1c20; }
.race-row .date-block { grid-row: span 2; align-self: start; }
.race-row-main { min-width: 0; }
.race-row-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	font-size: 23px;
	line-height: 1.05;
	margin: 0 0 4px;
}
.race-row-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: 14px; }
.race-row-sub span { display: inline-flex; align-items: center; gap: 6px; }
.race-row-sub .icon { color: #6c737d; }
.race-row-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.race-row-info { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--border); font-size: 13.5px; color: var(--muted); }
.race-row-info strong { color: var(--text); font-weight: 600; }
.race-row-go { display: none; }
.race-row.is-cancelled .race-row-title { text-decoration: line-through; text-decoration-color: rgba(225, 6, 0, .7); }
.race-row.is-cancelled .date-block::before { background: #5b6068; }
.race-row .results-flag { color: var(--warning); }

.list-head { display: none; }

@media (min-width: 960px) {
	.list-head, .race-row {
		grid-template-columns: 72px minmax(0, 1fr) 128px 170px 170px 90px 32px;
		align-items: center;
		gap: 0 20px;
	}
	.list-head {
		display: grid;
		padding: 0 17px 8px;
		color: #7c838d;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .08em;
		text-transform: uppercase;
	}
	.race-list { gap: 8px; }
	.race-row { padding: 12px 16px; }
	.race-row .date-block { grid-row: auto; width: 72px; }
	.race-row-tags, .race-row-info { display: contents; }
	.race-row-info { border: 0; }
	.race-row-info > span { font-size: 14px; }
	.race-row-info .lbl { display: none; }
	.race-row-go { display: inline-flex; color: var(--muted); justify-self: end; }
	.race-row:hover .race-row-go { color: var(--accent); }
	.race-row .col-type { justify-self: start; }
	.race-row .col-state { justify-self: start; }
	.race-row .col-count { text-align: right; font-variant-numeric: tabular-nums; }
	.race-row .col-count strong { font-family: var(--font-display); font-size: 24px; font-style: italic; font-weight: 800; }
}

/* ------------------------------------------------------------ states / skeleton */

.state {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 48px 20px;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	background: rgba(23, 25, 28, .5);
	grid-column: 1 / -1;
}
.state-icon { width: 36px; height: 36px; color: #5b6068; margin-bottom: 6px; }
.state-error .state-icon { color: var(--accent); }
.state-title { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 24px; text-transform: uppercase; margin: 0; }
.state-text { color: var(--muted); margin: 0 0 8px; max-width: 46ch; }

.skeleton {
	position: relative;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .045) 50%, transparent 80%);
	transform: translateX(-100%);
	animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { display: block; height: 12px; border-radius: 4px; background: var(--surface-2); margin: 10px 0; }
.sk-line.w-40 { width: 40%; } .sk-line.w-60 { width: 60%; } .sk-line.w-80 { width: 80%; }
.sk-line.h-lg { height: 22px; }
.skeleton-card { height: 218px; padding: 18px; }
.skeleton-row { height: 96px; padding: 16px; }
.skeleton-block { height: 160px; padding: 18px; }

/* ------------------------------------------------------------ race page */

.race-hero {
	position: relative;
	overflow: hidden;
	padding: 28px 0 0;
	background:
		radial-gradient(55% 140% at 100% 0%, rgba(225, 6, 0, .26), transparent 70%),
		linear-gradient(180deg, #121417, var(--bg));
	border-bottom: 1px solid var(--border);
	isolation: isolate;
}
.race-hero::after {
	content: "";
	position: absolute;
	right: -60px; top: 0; bottom: 0;
	width: 200px;
	background: var(--checker);
	background-size: 32px 32px;
	transform: skewX(var(--skew));
	opacity: .06;
	z-index: -1;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000);
	mask-image: linear-gradient(90deg, transparent, #000);
}
@media (min-width: 900px) { .race-hero { padding-top: 40px; } .race-hero::after { width: 380px; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

.race-head { display: grid; gap: 24px; padding-bottom: 28px; }
@media (min-width: 960px) { .race-head { grid-template-columns: 1fr 340px; align-items: start; gap: 48px; padding-bottom: 44px; } }
.race-head-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.race-head h1 {
	font-style: italic;
	text-transform: uppercase;
	font-size: clamp(40px, 8.5vw, 78px);
	line-height: .95;
	margin-bottom: 12px;
	overflow-wrap: anywhere;
}
.race-head .club-line { display: flex; align-items: center; gap: 8px; font-size: 18px; color: #c9cdd3; font-weight: 500; margin: 0; }
.race-head .club-line .icon { color: var(--accent); }

.race-facts {
	display: grid;
	gap: 0;
	background: rgba(23, 25, 28, .85);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.race-facts dl { margin: 0; }
.fact { position: relative; padding: 14px 18px 14px 52px; border-bottom: 1px solid var(--border); }
.fact .icon { position: absolute; left: 18px; top: 17px; width: 20px; height: 20px; color: var(--accent-hover); }
.fact dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; font-weight: 500; }
.race-facts-cta { padding: 16px 18px; display: grid; gap: 8px; }
.race-facts-cta .btn { width: 100%; }
.race-facts-cta .note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

.cancel-banner {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	margin-bottom: 20px;
	border-radius: var(--radius);
	background: rgba(225, 6, 0, .12);
	border: 1px solid rgba(225, 6, 0, .45);
	border-left: 5px solid var(--accent);
}
.cancel-banner .icon { width: 24px; height: 24px; color: var(--accent-hover); margin-top: 2px; }
.cancel-banner strong { display: block; font-family: var(--font-display); font-size: 22px; font-style: italic; text-transform: uppercase; letter-spacing: .03em; }
.cancel-banner p { margin: 2px 0 0; color: #e6c4c2; white-space: pre-line; }

.subnav {
	position: sticky;
	top: var(--header-h);
	z-index: 20;
	background: rgba(14, 15, 17, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
	display: block;
	padding: 14px 12px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}
.subnav a:hover { color: var(--text); border-bottom-color: var(--accent); }
.subnav li:first-child a { padding-left: 0; }

.race-section { padding: 40px 0 8px; }
.race-section:last-child { padding-bottom: 64px; }
.race-section h2 {
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-style: italic;
	text-transform: uppercase;
	font-size: clamp(30px, 5vw, 40px);
	margin-bottom: 18px;
}
.race-section h2 .count { font-size: .6em; color: var(--muted); font-weight: 700; }
.description { color: #d5d8dd; white-space: pre-line; max-width: 72ch; font-size: 16.5px; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .doc-list { grid-template-columns: repeat(2, 1fr); } }
.doc {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease;
}
.doc:hover, .doc:focus-visible { border-color: var(--accent); }
.doc-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 8px;
	background: var(--surface-2);
	color: var(--accent-hover);
}
.doc-icon .icon { width: 22px; height: 22px; }
.doc-main { min-width: 0; flex: 1; }
.doc-title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { display: block; font-size: 13px; color: var(--muted); }
.doc .icon-download { color: var(--muted); width: 20px; height: 20px; }
.doc:hover .icon-download { color: var(--accent-hover); }

.class-grid { display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 560px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .class-grid { grid-template-columns: repeat(3, 1fr); } }
.class-card { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.class-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.class-card h3 { font-style: italic; text-transform: uppercase; font-size: 24px; margin: 0; }
.class-age { color: var(--muted); font-size: 13px; white-space: nowrap; }
.class-count { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); }
.class-count strong { font-family: var(--font-display); font-size: 28px; font-style: italic; font-weight: 800; color: var(--text); }
.meter { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--success); border-radius: 3px; transform: skewX(var(--skew)); }
.meter.is-full span { background: var(--accent); }
.meter.is-unlimited span { background: repeating-linear-gradient(90deg, var(--info) 0 8px, transparent 8px 12px); opacity: .6; }
.class-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Entry & result tables */
.class-block { margin-bottom: 28px; }
.class-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.class-block-head h3 { font-style: italic; text-transform: uppercase; font-size: 26px; margin: 0; }
.class-block-head .pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 26px;
	padding: 0 9px;
	border-radius: 4px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	font-style: italic;
	font-size: 17px;
	transform: skewX(var(--skew));
}
.class-block-head .rule { flex: 1; height: 1px; background: var(--border); }
.session-name { color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }

.show-sm { display: none; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
	text-align: left;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8a919b;
	padding: 11px 14px;
	background: var(--surface-2);
	white-space: nowrap;
}
.table td { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
@media (min-width: 760px) {
	.table-results { table-layout: fixed; }
	.table-results th:nth-child(1), .table-results th:nth-child(2) { width: 68px; }
	.table-results th:nth-child(4) { width: 20%; }
	.table-results th:nth-child(5) { width: 80px; }
	.table-results th:nth-child(6) { width: 110px; }
	.table-results th:nth-child(7) { width: 170px; }
	.table-results th:nth-child(8) { width: 80px; }
	.table-stack { table-layout: fixed; }
	.table-stack th:nth-child(1) { width: 72px; }
	.table-stack th:nth-child(2) { width: 18%; }
	.table-stack th:nth-child(3) { width: 16%; }
	.table-stack td { overflow-wrap: anywhere; }
}
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .muted { color: var(--muted); }
.table .name { font-weight: 600; }
.start-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 28px;
	padding: 0 6px;
	border-radius: 4px;
	background: #f2f3f5;
	color: #0e0f11;
	font-family: var(--font-display);
	font-weight: 800;
	font-style: italic;
	font-size: 18px;
	line-height: 1;
}
.start-no.is-empty { background: var(--surface-2); color: var(--muted); }

.pos {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 30px;
	font-family: var(--font-display);
	font-weight: 800;
	font-style: italic;
	font-size: 20px;
}
.pos-1, .pos-2, .pos-3 { border-radius: 4px; transform: skewX(var(--skew)); color: #0e0f11; }
.pos-1 { background: #f5c542; }
.pos-2 { background: #c9ced6; }
.pos-3 { background: #d08a4c; }
.pos-status {
	font-family: var(--font-body);
	font-style: normal;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #ff6b63;
	background: rgba(225, 6, 0, .14);
	border-radius: 4px;
	height: 24px;
	padding: 0 6px;
}
.status-text { color: #ff8d86; font-size: 13.5px; }
.best-lap { display: inline-flex; align-items: center; gap: 6px; }
.best-lap.is-fastest { color: #c084fc; font-weight: 700; }
.best-lap.is-fastest::after { content: "RASKEST"; font-size: 10px; letter-spacing: .08em; background: rgba(192, 132, 252, .16); padding: 2px 5px; border-radius: 3px; }
.points { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 19px; }
.session { margin-bottom: 18px; }
.session-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }

@media (max-width: 759.98px) {
	.hide-sm { display: none; }
	.show-sm { display: inline; }
	.table th, .table td { padding: 10px 8px; }
	.table th:first-child, .table td:first-child { padding-left: 12px; }
	.table th:last-child, .table td:last-child { padding-right: 12px; }
	.best-lap.is-fastest::after { display: none; }
	.pos { min-width: 30px; font-size: 18px; }
	.start-no { min-width: 32px; font-size: 16px; }

	/* Entry table becomes stacked cards */
	.table-stack thead { display: none; }
	.table-stack, .table-stack tbody { display: block; }
	.table-stack tr {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 2px 12px;
		padding: 12px 14px;
		border-top: 1px solid var(--border);
	}
	.table-stack tr:first-child { border-top: 0; }
	.table-stack td { display: block; padding: 0; border: 0; }
	.table-stack td { grid-column: 2; }
	.table-stack td.c-nr { grid-column: 1; grid-row: 1 / span 8; align-self: start; padding-top: 2px; }
	.table-stack td.c-name { font-size: 16px; }
	.table-stack td.c-extra { color: var(--muted); font-size: 13.5px; }
	.table-stack td.c-extra:empty { display: none; }
	.table-stack td[data-label]:not(:empty)::before { content: attr(data-label) ": "; color: #6c737d; }
}

/* ------------------------------------------------------------ results list */

.results-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.result-row {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease;
}
.result-row:hover, .result-row:focus-visible { border-color: #3a3f47; }
.result-row .icon-trophy { width: 26px; height: 26px; color: #f5c542; }
.result-row .go { display: none; }
@media (min-width: 720px) {
	.result-row { grid-template-columns: 72px 1fr auto auto; }
	.result-row .go { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
	.result-row:hover .go { color: var(--accent-hover); }
}
.year-group { margin-bottom: 32px; }
.year-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	font-size: 34px;
	margin: 0 0 12px;
}
.year-heading::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ------------------------------------------------------------ pricing */

.price-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
}
@media (min-width: 900px) { .price-card { padding: 36px; } }
.price-card.is-featured {
	border-color: rgba(225, 6, 0, .6);
	background: radial-gradient(90% 80% at 100% 0%, rgba(225, 6, 0, .2), transparent 60%), var(--surface);
}
.price-card .ribbon {
	position: absolute;
	top: 18px; right: -6px;
	padding: 4px 18px 4px 14px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-style: italic;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: 14px;
	transform: skewX(var(--skew));
}
.price-card h2 { font-style: italic; text-transform: uppercase; font-size: 34px; margin: 0 0 4px; }
.price-card .price-desc { color: var(--muted); margin: 0 0 22px; flex: 1; max-width: 40ch; }
.price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	line-height: 1;
}
.price .amount { font-size: clamp(64px, 12vw, 88px); letter-spacing: -.01em; }
.price .cur { font-size: 30px; color: var(--muted); }
.price-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); gap: 4px 32px; } }
.features li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.features .check {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px; height: 26px;
	margin-top: 1px;
	border-radius: 4px;
	background: rgba(34, 197, 94, .14);
	color: var(--success);
	transform: skewX(var(--skew));
}
.features .check svg { width: 16px; height: 16px; transform: skewX(10deg); }
.features strong { display: block; font-weight: 600; }
.features span.sub { display: block; color: var(--muted); font-size: 14px; }

.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: howto; }
@media (min-width: 760px) { .howto { grid-template-columns: repeat(3, 1fr); } }
.howto li {
	counter-increment: howto;
	padding: 20px;
	background: rgba(14, 15, 17, .55);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.howto li::before {
	content: counter(howto);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px; height: 34px;
	margin-bottom: 10px;
	background: var(--accent);
	color: #fff;
	border-radius: 4px;
	font-family: var(--font-display);
	font-weight: 800;
	font-style: italic;
	font-size: 20px;
	transform: skewX(var(--skew));
}
.howto strong { display: block; font-weight: 600; margin-bottom: 4px; }
.howto p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------ about */

.prose { max-width: 68ch; font-size: 17px; color: #d5d8dd; }
.prose p { margin-bottom: 1.1em; }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--accent-hover); }
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.contact-card {
	align-self: start;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	position: relative;
	overflow: hidden;
}
.contact-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--checker); background-size: 10px 10px; opacity: .85; }
.contact-card h2 { font-style: italic; text-transform: uppercase; font-size: 30px; margin: 10px 0 18px; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { color: var(--accent); margin-top: 3px; }
.contact-list .lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent-hover); text-decoration: underline; }
.facts-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .facts-row { grid-template-columns: repeat(3, 1fr); } }
.facts-row div { padding: 16px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.facts-row strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 32px; line-height: 1; }
.facts-row span { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ 404 */

.notfound { text-align: center; padding-top: 80px; padding-bottom: 100px; }
.notfound .big {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	font-size: clamp(120px, 30vw, 240px);
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 2px var(--accent);
}
.notfound h1 { font-style: italic; text-transform: uppercase; font-size: clamp(32px, 6vw, 48px); }
.notfound p { color: var(--muted); }

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

.site-footer {
	margin-top: auto;
	background: #0a0b0c;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 15px;
}
.site-footer .checker-band { opacity: .9; }
.footer-grid { display: grid; gap: 32px; padding: 44px 0 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding: 56px 0 40px; } }
.site-footer .footer-brand { color: #fff; display: inline-block; text-decoration: none; }
.footer-brand svg { height: 32px; width: auto; display: block; }
.footer-about { margin: 14px 0 0; max-width: 40ch; }
.site-footer h2 { font-size: 18px; font-style: italic; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	padding: 18px 0 28px;
	border-top: 1px solid var(--border);
	font-size: 13.5px;
}

/* ------------------------------------------------------------ reveal */

@media (prefers-reduced-motion: no-preference) {
	.fade-in { animation: fadeUp .5s ease both; }
	@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.racing-line { animation: none; stroke-dasharray: 14 22; }
	.skeleton::after { display: none; }
}

.state-li { grid-column: 1 / -1; list-style: none; }
