:root {
	--paper: #f2eee5;
	--ink: #24251f;
	--muted: #68685e;
	--rule: #cbc5b9;
	--accent: #315b4b;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--paper);
	font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); }

body {
	margin: 0;
	min-width: 320px;
	min-height: 100vh;
	background: var(--paper);
}

main {
	display: grid;
	grid-template-columns: clamp(180px, 21vw, 260px) minmax(0, 720px);
	gap: clamp(3rem, 7vw, 7rem);
	align-items: start;
	width: min(1120px, calc(100% - 4rem));
	min-height: 100vh;
	margin: 0 auto;
	padding: clamp(3rem, 10vh, 7rem) 0;
}

.portrait-frame {
	position: sticky;
	top: clamp(3rem, 10vh, 7rem);
	aspect-ratio: 1;
	margin-top: 2.6rem;
	padding: 7px;
	overflow: hidden;
	border: 1px solid var(--rule);
	border-radius: 50%;
}

.portrait {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
	object-position: center 48%;
	transform: scale(1.1);
}

section { padding-top: 0.55rem; }

h1 {
	max-width: 700px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3.15rem, 7.3vw, 6.4rem);
	font-weight: 400;
	letter-spacing: -0.055em;
	line-height: 0.94;
}

.introduction {
	max-width: 650px;
	margin-top: clamp(3rem, 7vh, 5.5rem);
}

.introduction p {
	margin: 0;
	font-size: clamp(1.12rem, 1.65vw, 1.42rem);
	letter-spacing: -0.012em;
	line-height: 1.55;
}

nav {
	margin-top: clamp(3rem, 8vh, 6rem);
	border-top: 1px solid var(--rule);
}

ul {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

li { border-bottom: 1px solid var(--rule); }
li:not(:last-child) { border-right: 1px solid var(--rule); }

a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 74px;
	padding: 0 1.15rem;
	color: var(--ink);
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	text-decoration: none;
}

a svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.2;
	transition: transform 160ms ease;
}

a:hover,
a:focus-visible {
	color: var(--accent);
	background: rgba(49, 91, 75, 0.055);
}

a:hover svg,
a:focus-visible svg { transform: translate(2px, -2px); }

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

@media (max-width: 820px) {
	main {
		display: block;
		width: min(100% - 2.5rem, 560px);
		padding: 2rem 0 3rem;
	}

	.portrait-frame {
		position: static;
		width: 118px;
		margin: 0 0 3.5rem;
		padding: 4px;
	}

	section { padding: 0; }
	h1 { font-size: clamp(3rem, 14vw, 4.9rem); }
	.introduction { margin-top: 2.5rem; }
	nav { margin-top: 3.5rem; }
	ul { grid-template-columns: 1fr; }
	li:not(:last-child) { border-right: 0; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
