/* Colours and type taken from the practice's business card:
   maroon serif headings, grey sans-serif details, on white. */
:root {
	--bg: #fdfcfa;
	--text: #3b3536;
	--muted: #6e6668;
	--accent: #7b1f24;
	--rule: #9a4a4f;
	--max: 46rem;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}

main {
	flex: 1;
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(3rem, 10vw, 6rem) 1rem 3rem;
}

a {
	color: var(--accent);
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

p {
	margin: 0;
}

/* The framed panel. The h1 sits on the top border, breaking the
   line the way the name does on the card. */
.frame {
	border: 1.5px solid var(--rule);
	border-radius: 0.75rem;
	padding: 0 clamp(1rem, 5vw, 2.5rem) clamp(1.5rem, 5vw, 2.25rem);
	text-align: center;
}

.frame h1 {
	width: fit-content;
	max-width: 100%;
	/* Half the line box above the border, half below. */
	margin: -0.6em auto 0.75rem;
	padding: 0 0.3em;
	background: var(--bg);
	color: var(--accent);
	font-family: var(--serif);
	font-size: clamp(1.5rem, 7vw, 3.25rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.quals {
	color: var(--muted);
	font-size: 0.9rem;
}

/* Keep each qualification on one line; break only between them. */
.quals span {
	white-space: nowrap;
}

.role {
	margin-top: 1rem;
	color: var(--accent);
	font-family: var(--serif);
	font-size: clamp(1rem, 3.5vw, 1.4rem);
	font-weight: 700;
	line-height: 1.35;
}

.prno {
	margin-top: 0.5rem;
	color: var(--muted);
	font-size: 0.9rem;
}

.details {
	display: grid;
	gap: 2rem;
	margin-top: 2.25rem;
	padding-top: 2rem;
	border-top: 1px solid color-mix(in srgb, var(--rule) 35%, transparent);
	text-align: left;
}

@media (min-width: 40rem) {
	.details {
		grid-template-columns: 1fr 1fr;
	}
}

.details h2 {
	margin: 0 0 0.5rem;
	color: var(--accent);
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 700;
}

.details h2 + address {
	font-style: normal;
}

.details h2:not(:first-child) {
	margin-top: 1.25rem;
}

.contact {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 1rem;
	margin: 0;
}

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

.contact dd {
	margin: 0;
	white-space: nowrap;
}

.actions {
	margin-top: 2rem;
	text-align: center;
}

.button {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	padding: 0.65rem 1.4rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.button:hover {
	background: color-mix(in srgb, var(--accent) 85%, #000);
}

/* 404 page */
.notfound {
	text-align: center;
}

.notfound .lead {
	margin: 0.5rem 0 2rem;
	color: var(--muted);
}
