/*
Theme Name: Adema
Author: Adema Advocatuur & Advies
Description: Eigen thema voor Adema Advocatuur & Advies: de voordeur aan het Wilhelminapark.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: adema
*/

/* ==========================================================================
   Fonts (self-hosted)
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	/* Door: lacquered green, derived from the crest green #1a4120 */
	--door: #1a4120;
	--door-deep: #13321a;
	--door-panel: #1a4120;
	--door-line: #33633d;
	--door-ink: #eef2ea;
	--door-muted: #bccbb9;

	/* Brass: nameplate and every action */
	--brass: #c6a04c;
	--brass-light: #e6cc86;
	--brass-dark: #8d6d29;
	--brass-ink: #2b2210;

	/* Wall: chalk plaster */
	--wall: #f1f2ed;
	--wall-shade: #e4e8df;
	--ink: #13281a;
	--ink-muted: #475a4b;
	--rule: #c6cfc2;

	--font-plate: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

	--measure: 68ch;
	--page-max: 86rem;
	--gutter: clamp(1.25rem, 4.5vw, 4.5rem);
	--section-y: clamp(3.5rem, 8vw, 7rem);

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scrollbar-color: var(--door-line) var(--wall-shade);
	scroll-padding-top: 1.5rem;
}

body {
	margin: 0;
	background: var(--wall);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

::selection {
	background: var(--brass);
	color: var(--brass-ink);
}

:focus-visible {
	outline: 3px solid var(--door-panel);
	outline-offset: 3px;
}

.site-header :focus-visible,
.door :focus-visible,
.jamb :focus-visible,
.band :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--brass-light);
}

h1,
h2,
h3 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--brass);
	color: var(--brass-ink);
	font-family: var(--font-plate);
	font-weight: 650;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

/* Engraved caps: plates, labels, navigation */
.label,
.site-nav-list a,
.plate-role,
.plate-areas,
.ledger-title,
.file-title,
.facts dt,
.brass-link,
.text-link,
.bell-label {
	font-family: var(--font-plate);
	font-stretch: 112%;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

/* ==========================================================================
   Header (set into the door)
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 10;
	background: var(--door);
	color: var(--door-ink);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 1.1rem var(--gutter);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	text-decoration: none;
	color: var(--door-ink);
}

.brand-crest {
	width: auto;
	height: 3.6rem;
	/* brass edge so the green shield separates from the green door */
	filter:
		drop-shadow(1px 0 0 var(--brass))
		drop-shadow(-1px 0 0 var(--brass))
		drop-shadow(0 1px 0 var(--brass))
		drop-shadow(0 -1px 0 var(--brass));
}

.brand-wordmark {
	display: block;
	width: 10.5rem;
	aspect-ratio: 474 / 106;
	background-color: currentColor;
	-webkit-mask: var(--wordmark) center / contain no-repeat;
	mask: var(--wordmark) center / contain no-repeat;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-nav-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.25rem clamp(1rem, 1.6vw, 1.6rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav-list a {
	display: inline-block;
	padding: 0.4rem 0;
	font-size: 0.8125rem;
	font-weight: 560;
	font-stretch: 104%;
	letter-spacing: 0.07em;
	white-space: nowrap;
	color: var(--door-ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.site-nav-list a:hover {
	border-bottom-color: var(--brass);
}

.site-nav-list .current-menu-item > a,
.site-nav-list .current_page_item > a {
	color: var(--brass-light);
	border-bottom-color: var(--brass-light);
}

.site-nav-call {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--brass-light);
	font-family: var(--font-plate);
	font-stretch: 112%;
	font-weight: 650;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav-call:hover span {
	text-decoration: underline;
}

.nav-toggle {
	display: none;
}

@media (max-width: 80rem) {
	.site-nav-call {
		display: none;
	}
}

@media (max-width: 64rem) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.6rem 0.9rem;
		background: transparent;
		color: var(--door-ink);
		border: 1px solid var(--door-line);
		border-radius: 2px;
		font-family: var(--font-plate);
		font-stretch: 112%;
		font-size: 0.8125rem;
		font-weight: 600;
		letter-spacing: 0.09em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.nav-toggle .icon-close,
	.nav-toggle[aria-expanded="true"] .icon-menu {
		display: none;
	}

	.nav-toggle[aria-expanded="true"] .icon-close {
		display: block;
	}

	.site-nav {
		position: absolute;
		inset: 100% 0 auto;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem var(--gutter) 1.5rem;
		background: var(--door-deep);
		box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav-list {
		flex-direction: column;
		flex-wrap: wrap;
		gap: 0;
	}

	.site-nav-list a {
		display: block;
		padding: 0.95rem 0;
		font-size: 0.9375rem;
		border-bottom: 1px solid var(--door-line);
	}

	.site-nav-call {
		display: inline-flex;
		margin-top: 1.25rem;
		font-size: 1.0625rem;
	}

	.brand-crest {
		height: 3rem;
	}

	.brand-wordmark {
		width: 8.75rem;
	}
}

/* ==========================================================================
   The door (front page first viewport)
   ========================================================================== */

.door {
	background: var(--door);
	color: var(--door-ink);
	padding: 0 var(--gutter) clamp(2.5rem, 6vw, 5rem);
}

.door-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
	align-items: start;
	gap: clamp(2rem, 5vw, 5rem);
	max-width: calc(var(--page-max) - 2 * var(--gutter));
	margin: 0 auto;
	padding: clamp(1.75rem, 4.5vw, 4rem);
	border: 1px solid var(--door-line);
	/* the door's inner panel */
	outline: 1px solid var(--door-line);
	outline-offset: -14px;
}

/* Brass nameplate: one solid field, engraved by the type itself */
.plate {
	max-width: 42rem;
	padding: clamp(1.6rem, 3.6vw, 3rem) clamp(1.5rem, 4vw, 3.4rem) clamp(1.5rem, 3.2vw, 2.6rem);
	color: var(--brass-ink);
	background: var(--brass);
	border-radius: 2px;
	box-shadow: 0 20px 36px -18px rgba(0, 0, 0, 0.55);
}

.plate-name {
	margin: 0;
	font-family: var(--font-plate);
	font-stretch: 125%;
	font-weight: 660;
	font-size: clamp(1.85rem, 4.4vw, 3.6rem);
	line-height: 1.04;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.plate-title {
	font-weight: 420;
}

.plate-role {
	margin: 0.7rem 0 0;
	padding-bottom: clamp(1.1rem, 2.4vw, 1.6rem);
	font-size: clamp(0.875rem, 1.4vw, 1.0625rem);
	font-weight: 560;
	letter-spacing: 0.16em;
	border-bottom: 1px solid rgba(43, 34, 16, 0.55);
}

.plate-areas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.2rem 2rem;
	margin: clamp(1rem, 2.2vw, 1.4rem) 0 0;
	padding: 0;
	list-style: none;
	font-size: clamp(0.8125rem, 1.25vw, 0.9375rem);
	font-weight: 640;
}

.plate-areas a {
	display: inline-block;
	padding: 0.3rem 0;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.plate-areas a:hover {
	border-bottom-color: currentColor;
}

.plate :focus-visible {
	outline-color: var(--brass-ink);
}

.door-hook {
	max-width: 30ch;
	margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	line-height: 1.3;
	font-weight: 420;
	color: var(--door-ink);
}

.door-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* The door's glass panel holding the portrait */
.door-window {
	position: relative;
	margin: 0;
	padding: 0.55rem;
	background: var(--door-deep);
	border: 1px solid var(--brass-dark);
}

.door-window img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 12%;
}

@media (max-width: 56rem) {
	.door-inner {
		grid-template-columns: 1fr;
	}

	.door-window {
		order: 2;
		max-width: 20rem;
	}
}

@media (max-width: 30rem) {
	.door {
		padding-inline: 0.75rem;
	}

	.door-inner {
		padding: 1.25rem 1rem 1.75rem;
		outline: 0;
	}

	.plate-areas {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Actions: the bell-push and mail
   ========================================================================== */

.bell {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.75rem 1.4rem 0.75rem 0.95rem;
	color: var(--brass-ink);
	text-decoration: none;
	background: var(--brass);
	border-radius: 2px;
	box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.55);
	transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color 0.2s var(--ease-out);
}

/* the push: ring and button, drawn as one mark */
.bell-push {
	position: relative;
	width: 1.75rem;
	height: 1.75rem;
	flex: none;
	border: 1.5px solid var(--brass-ink);
	border-radius: 50%;
	transition: transform 0.18s var(--ease-out);
}

.bell-push::after {
	content: "";
	position: absolute;
	inset: 0.38rem;
	border-radius: 50%;
	background: var(--brass-ink);
}

.bell-label {
	font-size: 1rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.bell-verb {
	letter-spacing: 0.12em;
}

.bell:hover {
	background: var(--brass-light);
}

.bell:active {
	transform: translateY(2px);
	box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.55);
}

.bell:active .bell-push {
	transform: scale(0.9);
}

.bell-large {
	padding: 0.95rem 1.75rem 0.95rem 1.1rem;
}

.bell-large .bell-push {
	width: 2.1rem;
	height: 2.1rem;
}

.bell-large .bell-push::after {
	inset: 0.46rem;
}

.bell-large .bell-label {
	font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.mail-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--ink);
	font-size: 1.0625rem;
	text-decoration: underline;
	text-decoration-color: var(--rule);
	overflow-wrap: anywhere;
}

.mail-link .icon {
	color: var(--brass-dark);
}

.mail-link:hover {
	text-decoration-color: currentColor;
}

.mail-link.on-door {
	color: var(--door-ink);
	text-decoration-color: rgba(238, 242, 234, 0.35);
}

.mail-link.on-door .icon {
	color: var(--brass-light);
}

.mail-link.on-door:hover {
	text-decoration-color: var(--brass-light);
}

/* ==========================================================================
   Split: green door-jamb beside the plaster wall
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: minmax(17rem, 1fr) minmax(0, 2fr);
}

.jamb {
	background: var(--door);
	color: var(--door-ink);
	box-shadow: inset -1px 0 0 var(--door-line);
}

.jamb-inner {
	padding: var(--section-y) clamp(1.5rem, 3.5vw, 3.5rem) var(--section-y) max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
}

.jamb h2,
.page-title {
	margin: 0;
	font-weight: 600;
	font-size: clamp(1.9rem, 3.1vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.jamb p {
	margin: 1rem 0 0;
	color: var(--door-muted);
	font-size: 1.0625rem;
	max-width: 30ch;
}

.wall {
	min-width: 0;
	padding: var(--section-y) max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter))) var(--section-y) clamp(1.5rem, 5vw, 5rem);
}

@media (max-width: 56rem) {
	.split {
		grid-template-columns: 1fr;
	}

	.jamb {
		box-shadow: inset 0 -1px 0 var(--door-line);
	}

	.jamb-inner {
		padding: clamp(2.25rem, 7vw, 3rem) var(--gutter);
	}

	.wall {
		padding: clamp(2rem, 6vw, 3rem) var(--gutter) clamp(2.75rem, 8vw, 4rem);
	}
}

/* ==========================================================================
   Ledger: numbered files
   ========================================================================== */

.ledger {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--rule);
}

.ledger-row {
	border-top: 1px solid var(--rule);
}

.ledger-row a {
	display: grid;
	grid-template-columns: 4.25rem minmax(0, 1fr) auto;
	align-items: start;
	gap: 0 1.5rem;
	padding: clamp(1.4rem, 2.6vw, 2rem) 0.75rem clamp(1.4rem, 2.6vw, 2rem) 0;
	color: var(--ink);
	text-decoration: none;
	transition: background-color 0.25s var(--ease-out);
}

.ledger-results .ledger-row a {
	grid-template-columns: minmax(0, 1fr) auto;
}

.ledger-no {
	font-family: var(--font-plate);
	font-stretch: 125%;
	font-weight: 620;
	font-size: 1.85rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--door-panel);
}

.ledger-text {
	display: grid;
	gap: 0.45rem;
}

.ledger-title {
	font-size: 0.9375rem;
	font-weight: 680;
	color: var(--door-panel);
}

.ledger-question {
	max-width: 54ch;
	font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
	line-height: 1.45;
}

.ledger-row .icon {
	align-self: center;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--ink-muted);
	transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.ledger-row a:hover {
	background: var(--wall-shade);
}

.ledger-row a:hover .icon {
	transform: translateX(5px);
	color: var(--door-panel);
}

@media (max-width: 36rem) {
	.ledger-row a {
		grid-template-columns: 2.75rem minmax(0, 1fr);
		padding-right: 0;
	}

	.ledger-no {
		font-size: 1.35rem;
		padding-top: 0.1rem;
	}

	.ledger-row .icon {
		display: none;
	}
}

.wall-note {
	max-width: 56ch;
	margin: 2rem 0 0;
	color: var(--ink-muted);
	font-size: 1.0625rem;
}

.wall-note a,
.prose a {
	color: var(--door-panel);
	font-weight: 600;
}

.wall-actions {
	margin-top: 2rem;
}

/* ==========================================================================
   Band: full green section
   ========================================================================== */

.band {
	background: var(--door);
	color: var(--door-ink);
	padding: var(--section-y) var(--gutter);
}

.band-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	max-width: calc(var(--page-max) - 2 * var(--gutter));
	margin: 0 auto;
}

.band h2 {
	margin: 0;
	font-weight: 600;
	font-size: clamp(2.4rem, 5.4vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.band-lead {
	max-width: 36ch;
	margin: 1.5rem 0 0;
	font-size: clamp(1.3rem, 2.1vw, 1.65rem);
	line-height: 1.4;
}

.band-main p:not(.band-lead) {
	max-width: 58ch;
	margin: 1.25rem 0 2rem;
	color: var(--door-muted);
}

.band-columns {
	align-self: end;
	padding-left: clamp(0rem, 3vw, 3rem);
	border-left: 1px solid var(--door-line);
}

.band-columns h3 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.3rem, 1.9vw, 1.5rem);
	font-weight: 600;
	line-height: 1.25;
}

.band-columns ul {
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.band-columns li {
	display: grid;
	gap: 0.2rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--door-line);
}

.column-title {
	font-size: 1.1875rem;
	line-height: 1.35;
	color: var(--door-ink);
	text-decoration: underline;
	text-decoration-color: var(--door-line);
}

.column-title:hover {
	text-decoration-color: var(--brass-light);
}

.band-columns time {
	font-family: var(--font-plate);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	color: var(--door-muted);
}

@media (max-width: 56rem) {
	.band-inner {
		grid-template-columns: 1fr;
	}

	.band-columns {
		padding: 1.5rem 0 0;
		border-left: 0;
		border-top: 1px solid var(--door-line);
	}
}

/* Links that act: brass on green, green on plaster */
.brass-link,
.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.35rem 0;
	font-size: 0.875rem;
	font-weight: 660;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.brass-link {
	color: var(--brass-light);
}

.text-link {
	margin-top: 2rem;
	color: var(--door-panel);
}

.brass-link .icon,
.text-link .icon {
	transition: transform 0.3s var(--ease-out);
}

.brass-link:hover .icon,
.text-link:hover .icon {
	transform: translateX(4px);
}

/* ==========================================================================
   Facts list
   ========================================================================== */

.facts {
	margin: 2.25rem 0 0;
	border-bottom: 1px solid var(--rule);
}

.facts > div {
	display: grid;
	grid-template-columns: 10rem minmax(0, 1fr);
	gap: 0.4rem 1.5rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--rule);
}

.facts dt {
	padding-top: 0.25rem;
	font-size: 0.8125rem;
	font-weight: 680;
	color: var(--ink-muted);
}

.facts dd {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.55;
}

@media (max-width: 36rem) {
	.facts > div {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Threshold: closing call to action
   ========================================================================== */

.threshold {
	padding: var(--section-y) var(--gutter);
	background: var(--wall);
	border-top: 1px solid var(--rule);
}

.threshold-inner {
	max-width: calc(var(--page-max) - 2 * var(--gutter));
	margin: 0 auto;
}

.threshold h2 {
	margin: 0;
	font-weight: 600;
	font-size: clamp(2.6rem, 7vw, 5.5rem);
	line-height: 1;
	letter-spacing: -0.025em;
	color: var(--door-panel);
}

.threshold-inner > p:not(.threshold-address) {
	max-width: 40ch;
	margin: 1rem 0 0;
	font-size: clamp(1.2rem, 1.8vw, 1.4rem);
	color: var(--ink-muted);
}

.threshold-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2.25rem;
	margin-top: 2.25rem;
}

.threshold-address {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 1.75rem 0 0;
	color: var(--ink-muted);
	font-size: 1.0625rem;
}

.threshold-address .icon {
	color: var(--brass-dark);
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.split-page .jamb-sticky {
	position: sticky;
	top: 0;
}

.jamb-contact {
	display: grid;
	justify-items: start;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--door-line);
}

.jamb-contact p {
	margin: 0;
}

.jamb-contact .mail-link {
	font-size: 1rem;
}

@media (max-width: 56rem) {
	.split-page .jamb-sticky {
		position: static;
	}

	.jamb-contact {
		display: none;
	}
}

/* ==========================================================================
   Prose: the editor's content, whatever formatting it carries
   ========================================================================== */

.prose {
	max-width: var(--measure);
}

.prose > :first-child {
	margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1.1em;
}

.prose .lead,
.prose > p:first-child {
	font-size: clamp(1.25rem, 1.9vw, 1.45rem);
	line-height: 1.45;
}

.prose h2 {
	margin: 2.2em 0 0.6em;
	font-size: clamp(1.55rem, 2.4vw, 1.95rem);
	font-weight: 600;
	line-height: 1.2;
	color: var(--door-panel);
}

.prose h3,
.prose h4 {
	margin: 1.9em 0 0.5em;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--door-panel);
}

.prose h5,
.prose h6 {
	max-width: 62ch;
	margin: 2em 0 1em;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--ink-muted);
}

.prose strong,
.prose b {
	font-weight: 650;
}

.prose ul {
	padding-left: 1.25em;
	list-style: square;
}

.prose li::marker {
	color: var(--brass-dark);
}

.prose li + li {
	margin-top: 0.35em;
}

.prose img {
	display: block;
	max-width: min(100%, 18rem);
	margin: 0.5rem 0 1.5rem;
}

.prose iframe {
	display: block;
	width: 100%;
	min-height: 22rem;
	margin: 1.5rem 0;
	border: 1px solid var(--rule);
}

.prose blockquote {
	margin: 1.5em 0;
	padding: 0 0 0 1.25em;
	border-left: 1px solid var(--door-panel);
	font-style: italic;
}

.prose hr {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--rule);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

.prose th,
.prose td {
	padding: 0.6rem 0.75rem 0.6rem 0;
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

/* [toggles] shortcode: numbered files that open */
.files {
	margin: 1.75rem 0 2rem;
	border-bottom: 1px solid var(--rule);
}

.files > p,
.files > br {
	display: none;
}

.file {
	border-top: 1px solid var(--rule);
	interpolate-size: allow-keywords;
}

.file summary {
	display: grid;
	grid-template-columns: 3.75rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: 1.3rem 0.5rem 1.3rem 0;
	cursor: pointer;
	list-style: none;
}

.file summary::-webkit-details-marker {
	display: none;
}

.file summary:hover {
	background: var(--wall-shade);
}

.file-no {
	font-family: var(--font-plate);
	font-stretch: 125%;
	font-weight: 620;
	font-size: 1.6rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--door-panel);
}

.file-title {
	font-size: 1rem;
	font-weight: 680;
	color: var(--door-panel);
}

.file-state {
	position: relative;
	width: 1.1rem;
	height: 1.1rem;
}

.file-state::before,
.file-state::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto;
	height: 2px;
	margin-top: -1px;
	background: var(--door-panel);
	transition: transform 0.3s var(--ease-out);
}

.file-state::after {
	transform: rotate(90deg);
}

.file[open] .file-state::after {
	transform: rotate(0deg);
}

.file-body {
	padding: 0 0 1.5rem 4.75rem;
}

.file::details-content {
	height: 0;
	overflow: clip;
	transition: height 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
}

.file[open]::details-content {
	height: auto;
}

@media (max-width: 36rem) {
	.file summary {
		grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	}

	.file-no {
		font-size: 1.2rem;
	}

	.file-body {
		padding-left: 0;
	}
}

/* Search */
.search-form {
	max-width: 36rem;
	margin-bottom: 2.5rem;
}

.search-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--font-plate);
	font-stretch: 112%;
	font-size: 0.8125rem;
	font-weight: 650;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

.search-row {
	display: flex;
	gap: 0.5rem;
}

.search-form input {
	flex: 1;
	min-width: 0;
	padding: 0.8rem 1rem;
	font: inherit;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: 2px;
	caret-color: var(--door-panel);
}

.search-form button {
	padding: 0.8rem 1.4rem;
	font-family: var(--font-plate);
	font-stretch: 112%;
	font-weight: 650;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--brass-ink);
	background: var(--brass);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}

.nav-links {
	display: flex;
	gap: 1.5rem;
	margin-top: 2rem;
	font-family: var(--font-plate);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--door-deep);
	color: var(--door-muted);
	padding: clamp(3rem, 7vw, 5rem) var(--gutter) 1.5rem;
	font-size: 1rem;
}

.site-footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem clamp(2rem, 5vw, 5rem);
	max-width: calc(var(--page-max) - 2 * var(--gutter));
	margin: 0 auto;
}

.footer-brand p {
	max-width: 32ch;
	margin: 1.25rem 0 0;
}

.site-footer .label {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	font-weight: 650;
	color: var(--door-ink);
}

.footer-contact {
	display: grid;
	align-content: start;
	gap: 0.85rem;
	font-style: normal;
}

.footer-contact a {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: var(--door-ink);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.footer-contact .icon {
	margin-top: 0.2em;
	color: var(--brass-light);
}

.footer-contact a:hover span {
	text-decoration: underline;
}

.footer-nav-list {
	columns: 2;
	column-gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav-list li {
	break-inside: avoid;
}

.footer-nav-list a {
	display: inline-block;
	padding: 0.3rem 0;
	color: var(--door-muted);
	text-decoration: none;
}

.footer-nav-list a:hover {
	color: var(--door-ink);
	text-decoration: underline;
}

.footer-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	max-width: calc(var(--page-max) - 2 * var(--gutter));
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--door-line);
	font-size: 0.875rem;
}

@media (max-width: 56rem) {
	.site-footer-inner {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 34rem) {
	.site-footer-inner {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Motion preferences and print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.jamb-contact,
	.door-actions,
	.threshold {
		display: none;
	}

	.door,
	.jamb,
	.band {
		background: none;
		color: #000;
	}

	.split {
		display: block;
	}
}
