/*
 * STRIVE static landing stylesheet.
 * Tokens from web/src/app.css + layout from web/src/routes/+page.svelte.
 */
:root {
	--midnight: #081420;
	--deep: #12263b;
	--deep-2: #14283d;
	--champagne: #d8ba83;
	--ivory: #f5f3ed;
	--steel: #afc1ce;
	--ink: #14283d;

	--font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
	--font-body: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
	--step-0: 1rem;
	--gutter: max(clamp(20px, 4vw, 40px), calc((100vw - 1180px) / 2));

	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--midnight);
	color: var(--ivory);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

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

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

::selection {
	background: var(--champagne);
	color: var(--midnight);
}

.nav {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px 24px;
	padding: 14px var(--gutter);
	background: rgba(8, 20, 32, 0.92);
	border-bottom: 1px solid rgba(216, 186, 131, 0.28);
}

.word {
	letter-spacing: 0.28em;
	font-size: 0.82rem;
}

nav {
	display: flex;
	gap: 22px;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--steel);
}

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

.hero {
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
	height: clamp(440px, 68svh, 640px);
	background: var(--midnight);
}

.hero-copy,
.section-head,
.doors,
.rule,
.steps,
.enter-actions,
footer {
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.section-head {
	padding-top: 64px;
	padding-bottom: 36px;
}

.hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-right: 32px;
	padding-bottom: 56px;
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--champagne);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 0.72rem;
}

h1,
h2,
h3 {
	font-family: Palatino, 'Iowan Old Style', Georgia, serif;
	font-weight: 500;
	letter-spacing: -0.02em;
}

h1 {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	line-height: 0.95;
	max-width: 9ch;
}

h2 {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.02;
}

h3 {
	margin: 8px 0 22px;
	font-size: 1.8rem;
}

.lead,
.rule,
dd {
	color: var(--steel);
	line-height: 1.45;
}

.lead {
	max-width: 28ch;
	font-size: 1.05rem;
}

.hero-actions,
.enter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 22px;
	align-items: center;
}

.hero-actions {
	margin-top: 28px;
}

.button,
.text-link {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.75rem;
}

.button {
	display: inline-block;
	border: 1px solid var(--champagne);
	color: var(--champagne);
	padding: 12px 16px;
	white-space: nowrap;
}

.button.solid {
	background: var(--champagne);
	color: var(--midnight);
}

.button.dark {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--ivory);
}

.static-action {
	cursor: default;
	user-select: none;
}

.hero figure,
.plate,
.plates figure {
	margin: 0;
	position: relative;
	overflow: hidden;
}

.hero figure {
	min-height: 0;
}

.hero img,
.plate img,
.plates img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.exchange,
.enter {
	background: var(--ivory);
	color: var(--midnight);
}

.exchange .eyebrow,
.enter .eyebrow {
	color: #8a7048;
}

.exchange h2,
.enter h2,
.door-kicker,
dt {
	color: var(--ink);
}

.doors {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	padding-bottom: 28px;
}

.doors article {
	border-top: 1px solid rgba(20, 40, 61, 0.2);
	padding-top: 18px;
}

.door-kicker,
dt,
figcaption,
footer small {
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.7rem;
}

dl {
	margin: 0;
	display: grid;
	gap: 16px;
}

dt {
	margin-bottom: 4px;
}

dd {
	margin: 0;
	color: #3d5163;
}

.rule,
.house {
	padding: 0 var(--gutter) 64px;
	background: var(--midnight);
}

.section-head.light {
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 24px;
}

.plate-house img {
	aspect-ratio: 21 / 9;
	max-height: 52svh;
}

.plates {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 8px;
}

.plates img {
	aspect-ratio: 4 / 3;
}

figcaption {
	position: absolute;
	left: 14px;
	bottom: 12px;
	color: var(--ivory);
	text-shadow: 0 1px 8px rgba(8, 20, 32, 0.7);
}

.steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 0;
	padding-top: 8px;
	padding-bottom: 24px;
}

.steps li {
	border-top: 1px solid rgba(20, 40, 61, 0.2);
	padding-top: 12px;
	font-family: Palatino, Georgia, serif;
	font-size: 1.35rem;
}

.enter-actions {
	padding-bottom: 64px;
}

footer {
	padding-top: 48px;
	padding-bottom: 64px;
}

footer p {
	margin: 0 0 8px;
	font-family: Palatino, Georgia, serif;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}

footer small {
	color: var(--steel);
}

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

	.steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	nav {
		display: none;
	}

	.hero {
		grid-template-columns: 1fr;
		height: auto;
	}

	.hero-copy {
		order: 2;
		padding-top: 28px;
		padding-right: var(--gutter);
		padding-bottom: 40px;
	}

	.hero figure {
		order: 1;
	}

	.hero img {
		aspect-ratio: 4 / 3;
		max-height: 44svh;
	}

	.section-head {
		padding-top: 44px;
		padding-bottom: 24px;
	}

	.doors {
		grid-template-columns: 1fr;
	}

	.plate-house img {
		aspect-ratio: 16 / 10;
	}

	.house {
		padding-bottom: 44px;
	}
}

@media (max-width: 420px) {
	.nav-actions {
		gap: 12px;
	}

	.nav .button {
		padding: 10px 12px;
	}

	.steps li {
		font-size: 1.15rem;
	}
}

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