/* The hub's look, shared with the project sites: warm paper and ink, one violet accent, a dark mat in dark mode.
   The theme is html[data-theme], set by theme.js; without scripts it follows the system. */
:root {
	--paper: #faf8f4;
	--sunken: #f1efea;
	--ink: #1e1d1b;
	--body: #4a4741;
	--muted: #67635b;
	--line: #e2ded6;
	--accent: #5b2fd6;
	--on-accent: #faf8f4;
	--mat: #1d1c1a;
	--sheet: var(--mat);
	--sheet-ring: transparent;
	--sheet-shadow: rgba(0, 0, 0, 0.28);
	color-scheme: light;
}
:root[data-theme='dark'] {
	--paper: #1d1c1a;
	--sunken: #262523;
	--ink: #e9e5dc;
	--body: #c4bfb3;
	--muted: #aba598;
	--line: #36342f;
	--accent: #8f82d8;
	--on-accent: #1d1c1a;
	--sheet: radial-gradient(ellipse at 50% 40%, #2c2a27, #121110);
	--sheet-ring: rgba(255, 255, 255, 0.08);
	--sheet-shadow: rgba(0, 0, 0, 0.5);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--paper: #1d1c1a;
		--sunken: #262523;
		--ink: #e9e5dc;
		--body: #c4bfb3;
		--muted: #aba598;
		--line: #36342f;
		--accent: #8f82d8;
		--on-accent: #1d1c1a;
		color-scheme: dark;
	}
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--body);
	font:
		400 1.0625rem/1.65 'Noto Sans',
		system-ui,
		sans-serif;
	letter-spacing: 0.005em;
}
a {
	color: var(--accent);
	text-underline-offset: 0.2em;
}
svg {
	width: 1em;
	height: 1em;
	flex: none;
}
.wrap {
	max-width: 60rem;
	margin-inline: auto;
	padding-inline: 1.5rem;
}

header {
	padding-block: 6rem 3rem;
}
h1 {
	margin: 0;
	color: var(--ink);
	font-weight: 200;
	font-size: clamp(2.75rem, 7vw, 4rem);
	letter-spacing: -0.03em;
	line-height: 1.05;
}
.lede {
	max-width: 38rem;
	margin: 1.25rem 0 0;
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	line-height: 1.55;
}

main {
	padding-block: 1rem 4rem;
}
.project {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
}
.project + .project {
	margin-top: 4rem;
}
/* The project's picture lies on the mat, as the contact sheet does on the project sites. */
.shot img {
	display: block;
	width: 100%;
	height: auto;
	padding: clamp(0.5rem, 2vw, 1rem);
	border-radius: 6px;
	background: var(--sheet);
	box-shadow:
		0 0 0 1px var(--sheet-ring),
		0 24px 48px var(--sheet-shadow);
	transition: transform 0.2s;
}
.shot:hover img {
	transform: translateY(-2px);
}
h2 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
	font-weight: 700;
	letter-spacing: -0.012em;
}
h2 a {
	color: var(--ink);
	text-decoration: none;
}
h2 a:hover {
	color: var(--accent);
}
.body p {
	margin: 0 0 1rem;
}

/* Buttons, as the project sites' hero buttons: a filled pill for the site, quiet ones beside it. */
.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.75rem;
	margin-top: 1.5rem;
}
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-block: 0.9375rem;
	border: 1px solid transparent;
	border-radius: 999rem;
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}
.button:hover {
	color: var(--accent);
}
.button.primary {
	padding-inline: 1.25rem;
	border-color: var(--accent);
	background: var(--accent);
	color: var(--on-accent);
}
.button.primary:hover {
	filter: brightness(1.1);
}
.button svg {
	font-size: 1.25em;
}

/* One line at the foot: a full-width hairline, then the links. */
footer {
	padding-block: 1.25rem 3rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font: 400 0.75rem/1.5 'JetBrains Mono', ui-monospace, monospace;
}
footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.6rem;
}
footer a {
	color: inherit;
	text-decoration: none;
}
footer a:hover {
	color: var(--accent);
}

@media (max-width: 40rem) {
	.wrap {
		padding-inline: 1rem;
	}
	header {
		padding-block: 3rem 2rem;
	}
	.project {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}
