@font-face {
	font-family: "Atkinson";
	src: url("/fonts/atkinson-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Atkinson";
	src: url("/fonts/atkinson-bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #f4efe8;
	--bg-alt: #ebe4d8;
	--ink: #1f2630;
	--muted: #596272;
	--subtle: #7f8692;
	--line: rgba(31, 38, 48, 0.12);
	--surface: rgba(255, 255, 255, 0.82);
	--surface-strong: rgba(255, 255, 255, 0.95);
	--teal: #0f8d9b;
	--teal-soft: rgba(15, 141, 155, 0.12);
	--clay: #cd623b;
	--clay-soft: rgba(205, 98, 59, 0.12);
	--shadow:
		0 28px 80px rgba(31, 38, 48, 0.12),
		0 6px 24px rgba(31, 38, 48, 0.07);
	--radius-xl: 28px;
	--radius-lg: 20px;
	--radius-md: 14px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Atkinson", "Segoe UI", sans-serif;
	background:
		radial-gradient(700px 420px at 0% 0%, rgba(15, 141, 155, 0.18), transparent 68%),
		radial-gradient(560px 380px at 100% 8%, rgba(205, 98, 59, 0.18), transparent 58%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
	color: var(--ink);
	font-size: 18px;
	line-height: 1.72;
	min-height: 100vh;
}

body::before,
body::after {
	content: "";
	position: fixed;
	z-index: -1;
	border-radius: 999px;
	pointer-events: none;
	opacity: 0.55;
}

body::before {
	width: 320px;
	height: 320px;
	left: -110px;
	top: 14%;
	background: rgba(15, 141, 155, 0.14);
	animation: drift 16s ease-in-out infinite;
}

body::after {
	width: 280px;
	height: 280px;
	right: -80px;
	bottom: 10%;
	background: rgba(205, 98, 59, 0.16);
	animation: drift 18s ease-in-out infinite reverse;
}

a {
	color: var(--teal);
	text-decoration: none;
}

a:hover {
	color: #0c7782;
}

main {
	width: min(980px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 2rem 0 4rem;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
	color: var(--muted);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 700;
	color: var(--ink);
}

.brand-mark {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 16px;
	background:
		linear-gradient(135deg, rgba(15, 141, 155, 0.16), rgba(205, 98, 59, 0.18)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72));
	border: 1px solid rgba(31, 38, 48, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	position: relative;
}

.brand-mark::before,
.brand-mark::after {
	content: "";
	position: absolute;
}

.brand-mark::before {
	left: 0.65rem;
	right: 0.65rem;
	bottom: 0.55rem;
	height: 0.72rem;
	border: 2px solid var(--ink);
	border-top: none;
	border-radius: 0 0 8px 8px;
	opacity: 0.7;
}

.brand-mark::after {
	left: 0.58rem;
	right: 0.58rem;
	top: 0.46rem;
	height: 0.9rem;
	border-left: 2px solid var(--teal);
	border-right: 2px solid var(--teal);
	transform: skewY(-22deg);
	opacity: 0.65;
}

.hero {
	padding: 2.6rem;
	border-radius: var(--radius-xl);
	border: 1px solid var(--line);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.75)),
		radial-gradient(420px 220px at 18% 0%, rgba(15, 141, 155, 0.1), transparent 72%);
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	inset: auto -8% -22% auto;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(205, 98, 59, 0.22), transparent 66%);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--subtle);
}

.eyebrow::before {
	content: "";
	width: 1.9rem;
	height: 1px;
	background: currentColor;
	opacity: 0.8;
}

h1,
h2,
h3 {
	margin: 0;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

h1 {
	max-width: 12ch;
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	margin-bottom: 1rem;
}

h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin-bottom: 0.9rem;
}

h3 {
	font-size: 1.1rem;
	margin-bottom: 0.45rem;
}

p {
	margin: 0 0 1rem;
	color: var(--muted);
}

.lede {
	max-width: 44rem;
	font-size: 1.08rem;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.4rem;
}

.meta-chip,
.nav-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.68rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.66);
	font-size: 0.95rem;
	color: var(--ink);
}

.meta-chip strong {
	color: var(--clay);
}

.pill-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.35rem;
}

.nav-pill.active {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
	box-shadow: 0 14px 30px rgba(15, 141, 155, 0.22);
}

.nav-pill:hover {
	transform: translateY(-1px);
}

.content {
	display: grid;
	gap: 1.25rem;
	margin-top: 1.35rem;
}

.card {
	padding: 1.55rem 1.55rem 1.4rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: 0 16px 34px rgba(31, 38, 48, 0.07);
	backdrop-filter: blur(7px);
}

.card p:last-child,
.card ul:last-child {
	margin-bottom: 0;
}

.grid {
	display: grid;
	gap: 1.2rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.summary-list,
.topic-list,
ul {
	padding-left: 1.15rem;
	margin: 0.2rem 0 1rem;
	color: var(--muted);
}

li + li {
	margin-top: 0.55rem;
}

.callout {
	padding: 1rem 1.15rem;
	border-left: 4px solid var(--clay);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: var(--clay-soft);
}

.note {
	padding: 0.95rem 1rem;
	border-radius: var(--radius-md);
	background: var(--teal-soft);
	color: var(--ink);
}

.note p,
.callout p {
	color: inherit;
}

.numbered {
	display: grid;
	gap: 1rem;
	counter-reset: legal-step;
}

.numbered .card {
	position: relative;
	padding-left: 4.1rem;
}

.numbered .card::before {
	counter-increment: legal-step;
	content: counter(legal-step, decimal-leading-zero);
	position: absolute;
	left: 1.25rem;
	top: 1.2rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--clay);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.3rem;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface-strong);
	color: var(--ink);
}

.footer-link:hover {
	border-color: rgba(15, 141, 155, 0.28);
}

.muted {
	color: var(--subtle);
}

.site-footer {
	padding: 1rem 0 0;
	font-size: 0.95rem;
	color: var(--subtle);
}

@keyframes drift {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-18px);
	}
}

@media (max-width: 760px) {
	body {
		font-size: 17px;
	}

	main {
		width: min(100% - 1.1rem, 980px);
		padding-top: 1.1rem;
	}

	.topbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero {
		padding: 1.5rem;
	}

	.numbered .card {
		padding-left: 1.4rem;
		padding-top: 3.3rem;
	}

	.numbered .card::before {
		left: 1.35rem;
		top: 1.1rem;
	}
}

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

	* {
		animation: none !important;
		transition: none !important;
	}
}
