@font-face {
	font-family: 'Figtree';
	src: url('../assets/fonts/Figtree-VariableFont_wght.ttf') format('truetype');
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

:root {
	color-scheme: light;
	--ink: #171717;
	--paper: #f2f0e9;
	--sage: #e4e7dd;
	--yellow: #ffc300;
	--rule: #cccfc3;
	--sage-rule: #aeb4a5;
	--contact-rule: #a37e05;
	--muted-ink: #565d51;
	--page-gutter: 40px;
	--header-height: 81px;
	--nav-height: 69px;
	font-family: 'Figtree', Arial, sans-serif;
	font-size: 100%;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--paper);
	color: var(--ink);
	scroll-padding-top: var(--header-height);
	scroll-padding-bottom: var(--nav-height);
	scrollbar-color: var(--sage-rule) var(--paper);
	scrollbar-width: thin;
}

body {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100vh;
	height: 100svh;
	min-height: 800px;
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

h1,
h2,
h3,
p,
dl,
dd {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	-webkit-tap-highlight-color: rgb(23 23 23 / 12%);
}

a:hover {
	text-decoration: underline;
}

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

[hidden] {
	display: none !important;
}

::selection {
	background: var(--ink);
	color: var(--paper);
}

.skip-link {
	position: fixed;
	top: 12px;
	left: var(--page-gutter);
	z-index: 10;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 16px;
	transform: translateY(calc(-100% - 20px));
	background: var(--ink);
	color: var(--paper);
}

.skip-link:focus {
	transform: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	min-height: var(--header-height);
	padding: 24px var(--page-gutter);
	border-bottom: 1px solid var(--rule);
	background: var(--paper);
}

.wordmark {
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
	letter-spacing: -0.03em;
}

.header-stack,
.header-contact {
	font-size: 14px;
	line-height: 20px;
}

.wordmark,
.header-contact {
	display: inline-flex;
	align-items: center;
	column-gap: 0.25em;
	min-height: 44px;
	margin-block: -12px;
	padding-block: 6px;
}

.chapters {
	display: flex;
	flex: 1 0 auto;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	min-height: 650px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.chapters.is-scrolling {
	scroll-snap-type: none;
}

.chapters::-webkit-scrollbar {
	display: none;
}

.chapters:focus-visible {
	outline-offset: -4px;
}

.chapter {
	display: flex;
	flex: 0 0 100%;
	flex-direction: column;
	align-items: flex-start;
	gap: 48px;
	min-width: 0;
	min-height: 650px;
	padding: 40px var(--page-gutter);
	scroll-snap-align: start;
}

.chapter > * {
	flex-shrink: 0;
}

.chapter:focus-visible {
	outline-offset: -4px;
}

.chapter-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	font-size: 14px;
	line-height: 20px;
}

.chapter-number {
	flex: none;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.intro,
.contact {
	justify-content: space-between;
}

.intro-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

.intro h1 {
	width: 100%;
	font-size: 150px;
	font-weight: 600;
	line-height: 140px;
	letter-spacing: -0.04em;
}

.intro-accent {
	flex: none;
	width: 96px;
	height: 12px;
	background: var(--yellow);
}

.intro-bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
}

.intro-description {
	max-width: 430px;
	font-size: 26px;
	line-height: 34px;
}

.explore-link {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.25em;
	min-height: 44px;
	margin-block: -10px;
	padding-block: 10px;
	font-size: 16px;
	line-height: 24px;
}

.chapter h2 {
	width: 100%;
	font-size: 76px;
	font-weight: 500;
	line-height: 80px;
	letter-spacing: -0.04em;
}

.about {
	background: var(--sage);
}

.about h2 {
	max-width: 800px;
}

.about-columns {
	display: flex;
	align-items: flex-start;
	gap: 64px;
	width: 100%;
}

.about-copy,
.about-progress {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	min-width: 0;
	font-size: 18px;
	line-height: 28px;
}

.about-copy p,
.about-progress > * {
	width: 100%;
}

.about-copy .about-lead {
	font-size: 22px;
	line-height: 32px;
}

.about-progress {
	padding-top: 24px;
	border-top: 1px solid var(--sage-rule);
}

.about-progress h3 {
	font-size: 24px;
	font-weight: 500;
	line-height: 32px;
}

.about-progress .about-language {
	font-size: 14px;
	line-height: 20px;
}

.skills {
	gap: 40px;
}

.skills-list {
	width: 100%;
}

.skill-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding-block: 24px;
	border-top: 1px solid var(--rule);
}

.skill-category {
	flex: 0 0 144px;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

.skill-tools {
	flex: 1 1 0;
	min-width: 0;
	font-size: 25px;
	line-height: 32px;
}

.skill-level {
	flex: none;
	color: var(--muted-ink);
	font-size: 14px;
	line-height: 20px;
}

.contact {
	background: var(--yellow);
}

.contact h2 {
	max-width: 850px;
	font-size: 96px;
	line-height: 96px;
}

.contact-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
}

.email-link {
	display: inline-block;
	min-height: 44px;
	max-width: 100%;
	margin-block: -2px;
	padding-block: 2px;
	font-size: 32px;
	line-height: 40px;
	text-decoration: underline;
	overflow-wrap: anywhere;
}

.contact-copy p {
	font-size: 16px;
	line-height: 24px;
}

.contact-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding-top: 24px;
	border-top: 1px solid var(--contact-rule);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0.3em;
	row-gap: 12px;
	font-size: 16px;
	line-height: 24px;
}

.social-links a,
.wedding-link {
	display: inline-flex;
	align-items: center;
	column-gap: 0.25em;
	min-height: 44px;
	margin-block: -10px;
	padding-block: 10px;
}

.wedding-link {
	font-size: 14px;
	line-height: 20px;
}

.chapter-nav {
	position: sticky;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	min-height: var(--nav-height);
	padding: 24px var(--page-gutter);
	border-top: 1px solid var(--rule);
	background: var(--paper);
}

.chapter-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: -12px -6px;
	padding: 12px 6px;
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
}

.chapter-link[aria-current='location'],
.chapter-link[data-active='true'] {
	font-weight: 600;
	text-decoration: underline;
}

.chapter-link[href='#intro'][aria-current='location']:not(:hover) {
	text-decoration: none;
}

@media (max-width: 767px) {
	:root {
		--page-gutter: 20px;
	}

	body {
		height: auto;
		min-height: 100vh;
		min-height: 100svh;
	}

	.header-stack {
		display: none;
	}

	.chapters {
		flex-direction: column;
		flex: 1 0 auto;
		min-height: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.chapter {
		flex: none;
		width: 100%;
	}

	.intro {
		min-height: 680px;
	}

	.intro h1 {
		font-size: 92px;
		line-height: 96px;
	}

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

	.chapter h2 {
		font-size: 48px;
		line-height: 52px;
	}

	.about-columns {
		flex-direction: column;
		gap: 32px;
	}

	.about-copy,
	.about-progress {
		flex: none;
		width: 100%;
	}

	.skill-row {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 8px;
	}

	.skill-category,
	.skill-tools {
		flex: none;
	}

	.skill-tools {
		font-size: 22px;
		line-height: 33px;
	}

	.contact h2 {
		font-size: 60px;
		line-height: 64px;
	}

	.email-link {
		margin-block: -5.5px;
		padding-block: 5.5px;
		font-size: 22px;
		line-height: 33px;
	}

	.chapter-nav {
		flex-wrap: wrap;
		column-gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html,
	.chapters {
		scroll-behavior: auto;
		scroll-snap-type: none;
	}
}

@media (forced-colors: active) {
	.intro-accent {
		background: Highlight;
		forced-color-adjust: none;
	}

	.chapter-link[aria-current='location'],
	.chapter-link[data-active='true'] {
		color: LinkText;
	}
}
