:root {
	--paper: #f5f4ef;
	--paper-bright: #fffefa;
	--ink: #17211e;
	--muted: #727b74;
	--line: #d8ddd5;
	--red: #ce5b43;
	--blue: #9eb8d5;
	--yellow: #dcb75c;
	--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(--paper);
}

body {
	margin: 0;
	min-width: 320px;
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.75;
	background:
		radial-gradient(circle at 85% 15%, rgba(158, 184, 213, 0.28), transparent 24rem),
		radial-gradient(circle at 12% 70%, rgba(206, 91, 67, 0.08), transparent 22rem),
		var(--paper);
}

body::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	content: "";
	opacity: 0.25;
	background-image: linear-gradient(rgba(23, 33, 30, 0.045) 1px, transparent 1px);
	background-size: 100% 6px;
	pointer-events: none;
}

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

a:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 4px;
}

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

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

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

.brand-mark {
	display: grid;
	width: 2.35rem;
	height: 2.35rem;
	place-items: center;
	color: var(--paper-bright);
	font-family: var(--sans);
	font-size: 0.85rem;
	font-weight: 900;
	background: var(--ink);
	box-shadow: 0.28rem 0.28rem 0 var(--red);
}

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

.frontdoor-nav {
	display: flex;
	gap: 1.4rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

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

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

.eyebrow {
	color: var(--red);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

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

.hero h1 {
	max-width: 11ch;
	margin: 1rem 0 1.8rem;
	font-family: var(--serif);
	font-size: clamp(3.1rem, 6.3vw, 5.8rem);
	font-weight: 500;
	letter-spacing: -0.11em;
	line-height: 0.9;
}

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

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

.hero-aside {
	padding: 1.5rem 0 0 1.6rem;
	border-left: 2px solid var(--blue);
}

.hero-aside p {
	max-width: 17rem;
	margin: 0 0 2rem;
	font-family: var(--serif);
	font-size: 1.65rem;
	letter-spacing: -0.04em;
	line-height: 1.45;
}

.hero-aside-meta {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gateway {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	margin-top: 5rem;
	border: 1px solid var(--line);
	background: var(--line);
}

.gateway-card {
	min-height: 16rem;
	padding: 2rem;
	background: var(--paper-bright);
	transition: background 180ms ease, transform 180ms ease;
}

.gateway-card:hover {
	background: #faf7eb;
	transform: translateY(-3px);
}

.gateway-card:nth-child(2) {
	background: var(--ink);
	color: var(--paper-bright);
}

.gateway-card:nth-child(2):hover {
	background: #233129;
}

.gateway-card h2 {
	margin: 2rem 0 0.65rem;
	font-family: var(--serif);
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 500;
	letter-spacing: -0.08em;
	line-height: 1;
}

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

.gateway-card:nth-child(2) p {
	color: #b9c3ba;
}

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

.gateway-card:nth-child(2) .gateway-card-link {
	color: var(--yellow);
}

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

.text-page h1 {
	margin: 0.8rem 0 3.2rem;
	font-family: var(--serif);
	font-size: clamp(3rem, 6.2vw, 5.5rem);
	font-weight: 500;
	letter-spacing: -0.1em;
	line-height: 0.9;
}

.text-page h2 {
	margin: 2.7rem 0 0.45rem;
	font-family: var(--serif);
	font-size: 1.65rem;
	font-weight: 500;
	letter-spacing: -0.06em;
}

.text-page p {
	max-width: 41rem;
	margin: 0.7rem 0;
	font-family: var(--serif);
	font-size: 1.08rem;
}

.text-page-aside {
	padding-top: 0.35rem;
	border-top: 2px solid var(--red);
	color: var(--muted);
	font-size: 0.76rem;
}

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

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

.frontdoor-footer {
	display: flex;
	justify-content: space-between;
	padding: 1rem 0 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--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: 1.2rem;
		flex-direction: column;
	}

	.frontdoor-nav {
		gap: 1rem;
	}

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

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

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

	.hero h1 {
		font-size: clamp(3rem, 13vw, 4.8rem);
	}

	.hero-aside {
		padding-left: 1rem;
	}

	.gateway {
		margin-top: 3rem;
	}

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

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

	.text-page h1 {
		margin-bottom: 2.5rem;
		font-size: clamp(3.1rem, 14vw, 4.9rem);
	}

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