:root {
	--night: #101a2a;
	--night-soft: #19283d;
	--paper: #f3efe5;
	--paper-muted: #c7c8c1;
	--line: rgba(243, 239, 229, 0.2);
	--warm: #efb35b;
	--coral: #e6755d;
	--serif: "Iowan Old Style", "Palatino Linotype", "Yu Mincho", "Hiragino Mincho ProN", serif;
	--sans: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--night);
}

body {
	margin: 0;
	min-width: 320px;
	color: var(--paper);
	font-family: var(--sans);
	line-height: 1.75;
	background:
		radial-gradient(circle at 75% 14%, rgba(239, 179, 91, 0.12), transparent 22rem),
		radial-gradient(circle at 10% 78%, rgba(230, 117, 93, 0.1), transparent 30rem),
		var(--night);
}

body::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	content: "";
	opacity: 0.42;
	background-image:
		linear-gradient(rgba(243, 239, 229, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(243, 239, 229, 0.025) 1px, transparent 1px);
	background-size: 4px 4px, 72px 72px;
	pointer-events: none;
}

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

a:focus-visible {
	outline: 2px solid var(--warm);
	outline-offset: 5px;
}

.frontdoor {
	width: min(100% - 3rem, 1180px);
	margin: 0 auto;
}

.frontdoor-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}

.brand {
	display: inline-flex;
	gap: 0.75rem;
	align-items: center;
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.brand-mark {
	display: grid;
	width: 2.3rem;
	height: 2.3rem;
	place-items: center;
	color: var(--night);
	font-family: var(--sans);
	font-size: 0.85rem;
	font-weight: 900;
	background: var(--warm);
	transform: rotate(8deg);
}

.brand small {
	display: block;
	margin-top: 0.1rem;
	color: var(--paper-muted);
	font-family: var(--sans);
	font-size: 0.55rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.frontdoor-nav {
	display: flex;
	gap: 1.4rem;
	color: var(--paper-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.frontdoor-nav a {
	transition: color 160ms ease;
}

.frontdoor-nav a:hover {
	color: var(--warm);
}

.frontdoor-main {
	min-height: 70vh;
	padding: 4rem 0 7rem;
}

.eyebrow {
	color: var(--warm);
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.56fr);
	gap: 5rem;
	align-items: end;
	min-height: 36rem;
	padding: 4rem 0 5rem;
	border-bottom: 1px solid var(--line);
}

.hero h1 {
	max-width: 9ch;
	margin: 1rem 0 1.8rem;
	font-family: var(--serif);
	font-size: clamp(4rem, 9vw, 8.8rem);
	font-weight: 400;
	letter-spacing: -0.1em;
	line-height: 0.9;
}

.hero h1 em {
	color: var(--warm);
	font-style: normal;
}

.hero-lede {
	max-width: 29rem;
	margin: 0;
	color: var(--paper-muted);
	font-size: 1rem;
}

.hero-side {
	position: relative;
	min-height: 19rem;
	padding: 2rem;
	border: 1px solid var(--line);
	background: rgba(25, 40, 61, 0.62);
}

.hero-side::before,
.hero-side::after {
	position: absolute;
	content: "";
	border: 1px solid rgba(239, 179, 91, 0.35);
	border-radius: 50%;
}

.hero-side::before {
	right: -3rem;
	bottom: -3rem;
	width: 12rem;
	height: 12rem;
}

.hero-side::after {
	right: 1.5rem;
	bottom: 1.5rem;
	width: 5rem;
	height: 5rem;
	border-color: rgba(230, 117, 93, 0.55);
}

.hero-side-index {
	display: block;
	color: var(--coral);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.hero-side p {
	position: relative;
	z-index: 1;
	max-width: 15rem;
	margin: 4rem 0 0;
	font-family: var(--serif);
	font-size: 1.55rem;
	line-height: 1.5;
}

.gateway {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 5rem;
}

.gateway-card {
	min-height: 15rem;
	padding: 2rem;
	border: 1px solid var(--line);
	background: rgba(243, 239, 229, 0.06);
	transition: background 180ms ease, transform 180ms ease;
}

.gateway-card:hover {
	background: rgba(243, 239, 229, 0.12);
	transform: translateY(-3px);
}

.gateway-card h2 {
	margin: 1.5rem 0 0.6rem;
	font-family: var(--serif);
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 400;
	letter-spacing: -0.07em;
	line-height: 1;
}

.gateway-card p {
	max-width: 26rem;
	margin: 0;
	color: var(--paper-muted);
	font-size: 0.85rem;
}

.gateway-card-link {
	display: inline-block;
	margin-top: 2rem;
	color: var(--warm);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.text-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 12rem;
	gap: 5rem;
	max-width: 900px;
	margin: 0 auto;
	padding: 3rem 0;
}

.text-page h1 {
	margin: 0.75rem 0 3rem;
	font-family: var(--serif);
	font-size: clamp(3.4rem, 8vw, 7rem);
	font-weight: 400;
	letter-spacing: -0.1em;
	line-height: 0.9;
}

.text-page h2 {
	margin: 2.7rem 0 0.4rem;
	font-family: var(--serif);
	font-size: 1.6rem;
	font-weight: 400;
	letter-spacing: -0.05em;
}

.text-page p {
	max-width: 40rem;
	margin: 0.7rem 0;
	color: var(--paper-muted);
	font-family: var(--serif);
	font-size: 1.05rem;
}

.text-page-aside {
	padding-top: 0.25rem;
	border-top: 2px solid var(--warm);
	color: var(--paper-muted);
	font-size: 0.75rem;
}

.text-page-aside strong {
	display: block;
	margin: 1rem 0;
	color: var(--paper);
	font-size: 0.64rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.text-page-aside a {
	display: inline-block;
	margin-top: 1rem;
	color: var(--warm);
	font-weight: 700;
}

.frontdoor-footer {
	display: flex;
	justify-content: space-between;
	padding: 1rem 0 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--paper-muted);
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (max-width: 720px) {
	.frontdoor {
		width: min(100% - 1.5rem, 42rem);
	}

	.frontdoor-header {
		align-items: flex-start;
		gap: 1rem;
		flex-direction: column;
	}

	.frontdoor-nav {
		gap: 1rem;
	}

	.frontdoor-main {
		padding-top: 1.5rem;
	}

	.hero,
	.gateway,
	.text-page {
		grid-template-columns: 1fr;
	}

	.hero {
		gap: 3rem;
		min-height: auto;
		padding: 3rem 0 4rem;
	}

	.hero h1 {
		font-size: clamp(3.7rem, 18vw, 6rem);
	}

	.hero-side {
		min-height: 15rem;
	}

	.hero-side p {
		margin-top: 3rem;
	}

	.gateway {
		margin-top: 3rem;
	}

	.gateway-card {
		min-height: 12rem;
		padding: 1.5rem;
	}

	.text-page {
		gap: 2.5rem;
		padding-top: 1.5rem;
	}

	.text-page h1 {
		margin-bottom: 2.2rem;
		font-size: clamp(3.5rem, 17vw, 5.7rem);
	}

	.frontdoor-footer {
		gap: 0.75rem;
		align-items: flex-start;
		flex-direction: column;
	}
}
