/* Palette: paper is the light sibling of jrtlabs.com; the contact band uses the studio's own dark. */
:root {
	--paper: #f6f5f3;
	--ink: #1d1b18;
	--accent: #1f6fa8;
	--night: #1a1815;
	--night-text: #f2f0ec;
	--night-muted: #a9a39b;
	--night-rule: #3a3631;
	--sky: #9ed3f2;
	--sans: "Schibsted Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.125rem/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	/* let the dark contact band reach the bottom of tall screens */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wrap {
	width: 100%;
	max-width: 68rem;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
}

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 2rem; }

/* Hero: name on the left, photo on the right */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(14rem, 28vw, 22rem);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
	padding-top: clamp(3rem, 9vw, 7rem);
	padding-bottom: clamp(3.5rem, 9vw, 7rem);
}

h1 {
	font-size: clamp(3.25rem, 10vw, 7rem);
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: -0.05em;
	margin: 0 0 2rem;
}

.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; font-weight: 500; max-width: 30em; margin: 0; }

.portrait {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 1.5rem;
	display: block;
}

.links {
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}
.links a { display: block; color: var(--ink); }
.links a:hover { color: var(--accent); }
.links svg { display: block; width: 1.75rem; height: 1.75rem; fill: currentColor; }

/* Contact band in the studio's dark palette */
.contact {
	background: var(--night);
	color: var(--night-text);
	padding-top: clamp(3.5rem, 8vw, 6rem);
	flex-grow: 1;
}
.contact a { color: var(--sky); }
.contact :focus-visible { outline-color: var(--sky); }

.contact__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: clamp(2rem, 6vw, 5rem);
}
.contact p { color: var(--night-muted); max-width: 24em; margin: 0; }
.contact h2 { margin-bottom: 1rem; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form .wide { grid-column: 1 / -1; }
label { display: grid; gap: 0.35rem; font-size: 0.95rem; font-weight: 500; }

input, textarea, button { font: inherit; color: inherit; }
input, textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	background: #24211d;
	border: 1px solid var(--night-rule);
	border-radius: 8px;
}
input:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px #9ed3f233; }
textarea { resize: vertical; }

button {
	justify-self: start;
	padding: 0.7rem 1.4rem;
	background: var(--night-text);
	color: var(--night);
	border: 0;
	border-radius: 999px;
	font-weight: 500;
	cursor: pointer;
}
button:hover { background: var(--sky); }

footer.wrap {
	padding-top: 5rem;
	padding-bottom: 3rem;
	color: var(--night-muted);
	font-size: 0.9rem;
}

@media (max-width: 48rem) {
	.hero { grid-template-columns: 1fr; }
	.portrait { grid-row: 1; width: 9rem; border-radius: 1rem; }
	.contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 30rem) {
	form { grid-template-columns: 1fr; }
}
