:root {
	color-scheme: light;

	--paper: #E9EDE8;
	--ink: #203532;
	--muted: #78847F;
	--line: rgba(32, 53, 50, 0.17);
	--accent: #A65340;
	--green: #587568;
	--white: #FFFFFF;
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
	background: var(--paper);
}

body {
	margin: 0;
	color: var(--ink);
	background:
		radial-gradient(ellipse at 80% 15%, rgba(185, 199, 185, 0.25), transparent 35rem),
		var(--paper);
	font-family: "DM Sans", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.app-shell {
	width: min(calc(100% - 80px), 1180px);
	min-height: 100svh;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}

.site-header {
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 1px solid var(--line);
}

.wordmark {
	color: var(--ink);
	font-size: 25px;
	font-weight: 700;
	text-decoration: none;
}

.wordmark span {
	color: var(--accent);
}

.header-note,
.eyebrow,
.card-kicker,
.card-link,
.detail-kicker,
.source-list,
.site-footer,
.water-image figcaption {
	font-family: "DM Mono", monospace;
	font-size: 9px;
	letter-spacing: 0.14em;
}

.header-note,
.eyebrow,
.detail-kicker,
.site-footer {
	color: var(--muted);
}

main {
	flex: 1;
	padding: 76px 0 84px;
}

.welcome {
	max-width: 650px;
	margin-bottom: 50px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 26px;
}

.eyebrow-line {
	width: 30px;
	height: 1px;
	background: var(--accent);
}

h1 {
	margin: 0;
	font-size: 78px;
	font-weight: 500;
	line-height: 1.02;
}

h1 em {
	color: var(--accent);
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 500;
}

.intro {
	max-width: 450px;
	margin: 25px 0 0;
	color: #68766F;
	font-size: 15px;
	line-height: 1.8;
}

.action-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.action-card {
	min-height: 300px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: var(--white);
	border: 1px solid rgba(32, 53, 50, 0.06);
	border-radius: 3px;
	color: var(--ink);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
	transform: translateY(-4px);
	border-color: rgba(166, 83, 64, 0.35);
	box-shadow: 0 14px 35px rgba(32, 53, 50, 0.08);
}

.action-card:focus-visible,
.wordmark:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}

.card-icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	margin-bottom: 28px;
	background: var(--paper);
	border-radius: 3px;
	color: var(--green);
}

.icon-chart {
	width: 21px;
	height: 20px;
	position: relative;
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
}

.icon-chart::before {
	position: absolute;
	right: 2px;
	bottom: 3px;
	width: 13px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	transform: skewY(-32deg);
}

.icon-log {
	width: 17px;
	height: 22px;
	position: relative;
	border: 2px solid currentColor;
	border-radius: 2px;
}

.icon-log::before,
.icon-log::after {
	position: absolute;
	left: 3px;
	width: 7px;
	border-top: 1px solid currentColor;
	content: "";
}

.icon-log::before {
	top: 7px;
}

.icon-log::after {
	top: 12px;
}

.card-kicker {
	color: var(--muted);
}

.card-content h2 {
	margin: 12px 0 10px;
	font-size: 27px;
	font-weight: 600;
}

.card-content p {
	max-width: 370px;
	margin: 0;
	color: #68766F;
	font-size: 14px;
	line-height: 1.75;
}

.card-link {
	margin-top: auto;
	padding-top: 28px;
	color: var(--accent);
	font-weight: 500;
}

.card-link span {
	margin-left: 5px;
	font-size: 14px;
}

.water-image {
	height: 420px;
	position: relative;
	overflow: hidden;
	margin: 58px 0 76px;
	background: #84948a;
}

.water-image::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 38, 34, 0.38), transparent 70%);
	content: "";
}

.water-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center 50%;
}

.water-image figcaption {
	position: absolute;
	z-index: 1;
	right: 24px;
	bottom: 20px;
	left: 24px;
	display: flex;
	justify-content: space-between;
	gap: 15px;
	color: var(--white);
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.details-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 60px;
}

.detail-section {
	scroll-margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.detail-section h2 {
	max-width: 390px;
	margin: 17px 0 12px;
	font-size: 29px;
	font-weight: 600;
}

.detail-section p {
	max-width: 470px;
	margin: 0;
	color: #68766F;
	font-size: 14px;
	line-height: 1.8;
}

.source-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.source-list span {
	padding: 8px 10px;
	border: 1px solid var(--line);
	color: var(--green);
}

.site-footer {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	border-top: 1px solid var(--line);
	font-size: 9px;
}

@media (max-width: 700px) {
	.app-shell {
		width: calc(100% - 40px);
	}

	.site-header {
		min-height: 78px;
	}

	.wordmark {
		font-size: 21px;
	}

	.header-note {
		max-width: 120px;
		font-size: 8px;
		text-align: right;
	}

	main {
		padding: 60px 0 64px;
	}

	.welcome {
		margin-bottom: 36px;
	}

	h1 {
		font-size: 58px;
	}

	.intro {
		font-size: 14px;
	}

	.action-grid,
	.details-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.action-card {
		min-height: 260px;
		padding: 26px;
	}

	.water-image {
		height: 300px;
		margin: 42px 0 55px;
	}

	.details-grid {
		gap: 38px;
	}

	.detail-section h2 {
		font-size: 26px;
	}

	.site-footer {
		font-size: 8px;
		letter-spacing: 0.08em;
	}
}

@media (max-width: 380px) {
	.app-shell {
		width: calc(100% - 32px);
	}

	.wordmark {
		font-size: 18px;
	}

	h1 {
		font-size: 52px;
	}

	.water-image figcaption {
		right: 14px;
		left: 14px;
		font-size: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
