@font-face {
	font-family: "Bodoni Moda";
	src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Bodoni Moda";
	src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
	font-style: italic;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Sans";
	src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--ink: #0f0f0e;
	--text: #111110;
	--paper: #f3f2ef;
	--white: #fff;
	--rule: #cfccc5;
	--body: #33312e;
	--muted: #4a4844;
	--on-ink-body: #dedbd5;
	--on-ink-muted: #c7c4bd;
	--serif: "Bodoni Moda", Didot, Georgia, serif;
	--sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(20px, 5vw, 72px);
	--section: clamp(72px, 10vw, 150px);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-underline-offset: 5px;
	transition: color 0.2s ease;
}

a:hover {
	color: #6a6761;
}

.on-ink a:hover {
	color: var(--white);
}

h1,
h2,
h3,
p,
figure,
blockquote {
	margin: 0;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: 1360px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section);
}

.section__title {
	font-family: var(--serif);
	font-size: clamp(2.5rem, 5vw, 4.75rem);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 10;
	padding: 10px 16px;
	background: var(--white);
	color: var(--text);
}

.skip-link:focus {
	top: 16px;
}

.button {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 28px;
	border: 1px solid var(--paper);
	border-radius: 0;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.on-ink .button:hover {
	background: transparent;
	color: var(--paper);
}

.button--outline {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.button--outline:hover {
	background: transparent;
	color: var(--ink);
}

.text-link {
	display: inline-block;
	padding-block: 10px;
	font-weight: 500;
}

/* Header */

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 40px;
	padding-block: 28px;
}

.site-name {
	font-family: var(--serif);
	font-size: 1.3rem;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.site-nav__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 32px;
	font-size: 0.9375rem;
}

.site-nav__links a {
	padding-block: 10px;
	text-decoration: none;
}

.site-nav__links .site-nav__cta {
	text-decoration: underline;
}

/* Hero */

.hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: clamp(48px, 6vw, 96px);
	padding-block: clamp(40px, 7vw, 96px) clamp(56px, 7vw, 104px);
}

.hero__text {
	display: flex;
	flex: 999 1 560px;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.hero__eyebrow {
	color: var(--on-ink-muted);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}

.hero__title {
	font-family: var(--serif);
	font-size: clamp(3.25rem, 8.6vw, 8.25rem);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: -0.02em;
}

.hero__intro {
	max-width: 34rem;
	color: var(--on-ink-body);
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	line-height: 1.45;
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	padding-top: 8px;
}

.hero__portrait {
	display: flex;
	flex: 1 1 320px;
	flex-direction: column;
	gap: 14px;
	max-width: 420px;
}

.hero__portrait img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.hero__portrait figcaption {
	color: var(--on-ink-muted);
	font-size: 0.875rem;
}

/* Desktop: a smaller headline whose capitals start level with the top of the photo. */
@media (min-width: 900px) {
	.hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 420px);
		align-items: stretch;
		gap: clamp(48px, 6vw, 96px);
	}

	.hero__text {
		gap: 28px;
	}

	.hero__title {
		order: 1;
		margin-top: -0.135em;
		font-size: min(5.7vw, 5.25rem);
		line-height: 1.04;
	}

	.hero__intro {
		order: 2;
	}

	.hero__actions {
		order: 3;
	}

	.hero__eyebrow {
		order: 4;
		margin-top: auto;
	}

	.hero__portrait {
		max-width: none;
	}
}

/* Clients */

.clients {
	border-bottom: 1px solid var(--rule);
}

.clients__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 40px;
	padding-block: 28px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.clients__label {
	color: var(--text);
	font-weight: 500;
}

/* Below full desktop width, the label gets its own line and names sit in even columns. */
@media (max-width: 1359px) {
	.clients__inner {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
		gap: 10px 24px;
		padding-block: 32px;
	}

	.clients__label {
		grid-column: 1 / -1;
		margin-bottom: 6px;
	}
}

/* Work */

.work {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 5vw, 72px);
}

.work__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: clamp(32px, 4vw, 56px);
}

/* Always three equal columns, so every thumbnail is the same size. */
@media (min-width: 720px) {
	.work__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.work__item {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.work__item img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* Line up images by shared rows, so caption length can never move an image. */
@supports (grid-template-rows: subgrid) {
	.work__item {
		display: grid;
		grid-row: span 2;
		grid-template-rows: subgrid;
		row-gap: 14px;
	}
}

.work__item figcaption {
	display: flex;
	flex-direction: column;
}

.work__item strong {
	font-weight: 500;
}

.work__item span {
	color: var(--muted);
}

.testimonial {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 58rem;
}

.work__grid + .testimonial {
	margin-top: clamp(24px, 4vw, 56px);
}

.testimonial p {
	font-family: var(--serif);
	font-size: clamp(1.625rem, 3vw, 2.75rem);
	line-height: 1.2;
}

.testimonial footer {
	color: var(--muted);
	font-size: 0.9375rem;
}

/* Engagements */

.engagements {
	border-block: 1px solid var(--rule);
	background: var(--white);
}

.engagements__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 64px;
	margin-bottom: clamp(40px, 5vw, 72px);
}

.engagements__head .section__title {
	flex: 1 1 420px;
}

.engagements__head p {
	flex: 0 1 25rem;
	color: var(--muted);
	text-wrap: pretty;
}

.engagements__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 0 clamp(32px, 4vw, 64px);
}

.engagement {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-block: 24px 40px;
	border-top: 1px solid var(--text);
}

.engagement h3 {
	font-family: var(--serif);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.12;
}

.engagement p {
	flex: 1 1 auto;
	color: var(--body);
	text-wrap: pretty;
}

.engagement dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 20px;
	margin: 0;
	font-size: 0.9375rem;
}

.engagement dt {
	color: var(--muted);
}

.engagement dd {
	margin: 0;
}

.engagement .text-link {
	align-self: flex-start;
}

.second-opinion {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px clamp(48px, 8vw, 112px);
	margin-bottom: clamp(48px, 6vw, 80px);
	padding: clamp(32px, 5vw, 64px);
}

.second-opinion__text {
	display: flex;
	flex: 999 1 420px;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	max-width: 44rem;
}

.second-opinion__label {
	color: var(--on-ink-muted);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}

.second-opinion h3 {
	margin: 0 0 4px;
	font-family: var(--serif);
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	font-optical-sizing: none;
	font-variation-settings: "opsz" 18;
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -0.015em;
}

.second-opinion__text > p:last-child {
	color: var(--on-ink-body);
	text-wrap: pretty;
}

.second-opinion__action {
	display: flex;
	flex: 1 1 240px;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.second-opinion dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 20px;
	margin: 0;
	font-size: 0.9375rem;
}

.second-opinion dt {
	color: var(--on-ink-muted);
}

.second-opinion dd {
	margin: 0;
}

/* Where I help */

.help {
	display: flex;
	flex-wrap: wrap;
	gap: 40px clamp(48px, 8vw, 128px);
}

.help .section__title {
	flex: 1 1 300px;
}

.help__rows {
	flex: 999 1 560px;
	min-width: 0;
	border-bottom: 1px solid var(--rule);
}

.help__row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 40px;
	padding-block: 24px;
	border-top: 1px solid var(--rule);
}

.help__row h3 {
	flex: 1 1 240px;
	font-size: 1.125rem;
	font-weight: 500;
}

.help__row p {
	flex: 2 1 340px;
	color: var(--muted);
}

/* About */

.about__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 6vw, 88px);
}

.about__title {
	max-width: 62rem;
	font-family: var(--serif);
	font-size: clamp(2.25rem, 4.8vw, 4.5rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.about__text {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 28px clamp(40px, 6vw, 96px);
	color: var(--on-ink-body);
}

.about__text p {
	text-wrap: pretty;
}

.about__text .text-link {
	margin-top: 12px;
	font-weight: 400;
}

/* Contact */

.contact {
	display: flex;
	flex-wrap: wrap;
	gap: 48px clamp(48px, 8vw, 128px);
	scroll-margin-top: 0;
}

.contact__intro {
	display: flex;
	flex: 1 1 340px;
	flex-direction: column;
	gap: 24px;
}

.contact__intro > p {
	max-width: 28rem;
	color: var(--body);
	text-wrap: pretty;
}

.contact__details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	color: var(--body);
	font-size: 0.9375rem;
}

.inquiry {
	position: relative;
	display: grid;
	flex: 2 1 480px;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 28px 32px;
	min-width: 0;
}

.inquiry__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.field--full,
.inquiry__submit {
	grid-column: 1 / -1;
}

.field label {
	font-size: 0.9375rem;
	font-weight: 500;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0 2px;
	border: 0;
	border-bottom: 1px solid var(--text);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
}

.field textarea {
	padding-block: 12px;
	resize: vertical;
}

.inquiry__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.inquiry__submit p {
	color: var(--body);
	font-size: 0.9375rem;
}

/* Footer */

.site-footer {
	border-top: 1px solid var(--rule);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 40px;
	padding-block: 28px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	font-size: 0.9375rem;
}

.social a {
	padding-block: 10px;
	color: var(--body);
}

.site-footer .social {
	flex: 1 0 100%;
	padding-top: 12px;
	border-top: 1px solid var(--rule);
}

/* Other pages */

.entry {
	display: flex;
	flex-direction: column;
	gap: 56px;
	max-width: 880px;
	padding-block: var(--section);
}

.entry__title {
	font-family: var(--serif);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.12;
}

.entry__content {
	margin-top: 24px;
	color: var(--body);
}

/* Keep the hairlines of the serif visible at every size. */

.site-name,
.engagement h3,
.entry__title,
.testimonial p {
	font-optical-sizing: none;
	font-variation-settings: "opsz" 11;
}

.section__title,
.about__title {
	font-optical-sizing: none;
	font-variation-settings: "opsz" 18;
}

.hero__title {
	font-optical-sizing: none;
	font-variation-settings: "opsz" 28;
}

h1,
h2,
h3,
.site-name {
	font-kerning: normal;
	text-rendering: optimizeLegibility;
}

@media (max-width: 480px) {
	.home .site-nav__cta {
		display: none;
	}
}

/* Desktop: quieter section headlines, sized below the hero headline. */
@media (min-width: 900px) {
	.home .section__title,
	.about__title {
		font-size: clamp(2.5rem, 3.6vw, 50px);
		line-height: 1.1;
		letter-spacing: -0.03em;
	}

	.second-opinion h3 {
		font-size: clamp(2rem, 2.8vw, 2.5rem);
	}
}

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

	a,
	.button {
		transition: none;
	}
}
