/* Dispatch. Realizes the saved design direction of the same name. */

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

/* Public Sans ships as one variable file, so declare the axis range once. */
@font-face {
	font-family: 'Public Sans';
	src: url('fonts/public-sans.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #F7F4EF;
	--surface: #FFFFFF;
	--ink: #12100E;
	--accent: #A87A2B;
	--accent-deep: #7C5718;
	--accent-lite: #C9A25E;
	--hazard: #A32E22;
	--muted: #6B635A;
	--hairline: #DCD5C9;
	--deep: #141210;

	--font-display: 'Source Serif 4', 'Palatino Linotype', Georgia, serif;
	--font-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;

	--space-xs: 8px;
	--space-sm: 16px;
	--space-md: 28px;
	--space-lg: 56px;
	--space-xl: 96px;

	--radius: 2px;
	--wrap: 1120px;
	--gutter: 24px;
}

/* Neutralize UA defaults at zero specificity so component rules always win. */
:where(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd) {
	margin: 0;
	padding: 0;
}

:where(ul, ol) {
	list-style: none;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

/*
 * Links are not underlined at rest anywhere on the site. The underline returns
 * on hover and on keyboard focus so there is still a non-colour cue.
 */
a {
	color: inherit;
	text-decoration: none;
}

.prose a:hover,
.prose a:focus-visible,
.rules a:hover,
.rules a:focus-visible,
.callout a:hover,
.callout a:focus-visible,
.step__body a:hover,
.step__body a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}

/* On the dark bands the accent lifts for headroom. */
.is-inverted a:hover,
.is-inverted a:focus-visible {
	text-decoration-color: var(--accent-lite);
}

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

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

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: var(--gutter);
	top: var(--space-xs);
	z-index: 100;
	background: var(--accent);
	color: var(--ink);
	padding: var(--space-xs) var(--space-sm);
	font-weight: 600;
}

/* Header */

.site-header {
	border-bottom: 1px solid var(--hairline);
	background: var(--bg);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: 76px;
}

.site-brand {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 19px;
	letter-spacing: -0.01em;
	text-decoration: none;
	line-height: 1.1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.site-brand__mark {
	width: 12px;
	height: 22px;
	background: var(--accent);
	flex: none;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	flex-wrap: wrap;
}

.site-nav a {
	text-decoration: none;
	font-size: 16px;
	color: var(--ink);
	padding-block: 4px;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	border-bottom-color: var(--accent);
}

/* Buttons */

.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
	padding: 15px 26px;
	border-radius: var(--radius);
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.08s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	background: var(--accent);
	color: var(--ink);
	border-color: var(--accent);
}

.btn--secondary {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}

.is-inverted .btn--secondary {
	color: var(--bg);
	border-color: var(--bg);
}

/* Sections */

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

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

.is-inverted {
	background: var(--deep);
	color: var(--bg);
}

.is-inverted .rule {
	background: rgba(247, 244, 239, 0.22);
}

.rule {
	height: 1px;
	background: var(--hairline);
	border: 0;
	margin: 0;
}

/* Type */

.h-display,
.h-section,
.h-sub {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.015em;
}

.h-display {
	font-size: clamp(40px, 7vw, 76px);
	line-height: 1.06;
	text-wrap: balance;
}

.h-section {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.12;
}

.h-sub {
	font-size: 21px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.lede {
	font-size: clamp(18px, 2.2vw, 21px);
	line-height: 1.55;
	max-width: 34ch;
	color: var(--muted);
}

.is-inverted .lede {
	color: rgba(247, 244, 239, 0.78);
}

.lede--wide {
	max-width: 56ch;
}

.label {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent-deep);
}

.is-inverted .label {
	color: rgba(247, 244, 239, 0.66);
}

.accent {
	color: var(--accent);
}

/* Hero. Asymmetric split, collapses under 900px. */

.hero {
	padding-block: clamp(48px, 8vw, 88px);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-top: var(--space-md);
}

.hero__lede {
	margin-top: var(--space-sm);
}

/* Transcript. A plain styled transcript, never a fake phone mockup. */

.transcript {
	border-left: 2px solid var(--accent);
	padding-left: var(--space-md);
	display: grid;
	gap: 18px;
}

.transcript__line {
	display: grid;
	gap: 3px;
}

.transcript__who {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.transcript__text {
	font-size: 17px;
	line-height: 1.45;
}

.transcript__line--them .transcript__text {
	color: var(--muted);
}

.is-inverted .transcript__who {
	color: rgba(247, 244, 239, 0.6);
}

.is-inverted .transcript__line--them .transcript__text {
	color: rgba(247, 244, 239, 0.7);
}

/* Numbered steps */

.steps {
	display: grid;
	gap: var(--space-md);
	margin-top: var(--space-lg);
}

.step {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: var(--space-md);
	align-items: start;
	padding-top: var(--space-md);
	border-top: 1px solid var(--hairline);
}

.is-inverted .step {
	border-top-color: rgba(247, 244, 239, 0.22);
}

.step__n {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(44px, 6vw, 66px);
	line-height: 0.9;
	color: var(--accent);
}

.step__body p {
	max-width: 62ch;
	margin-top: 6px;
	color: var(--muted);
}

.is-inverted .step__body p {
	color: rgba(247, 244, 239, 0.78);
}

/* Split: text plus a placeholder or secondary column */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.split--offset {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

/* On-palette placeholder standing in for photography. */

.plate {
	position: relative;
	aspect-ratio: 4 / 3;
	background:
		repeating-linear-gradient(
			135deg,
			rgba(18, 16, 14, 0.05) 0 14px,
			rgba(18, 16, 14, 0) 14px 28px
		),
		linear-gradient(160deg, #EFEAE1 0%, #DCD5C9 100%);
	border: 1px solid var(--hairline);
	border-radius: var(--radius);
	display: grid;
	place-items: end start;
	padding: var(--space-md);
}

.plate::after {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	inset-block-end: 0;
	width: 96px;
	height: 6px;
	background: var(--accent);
}

.plate__note {
	font-size: 13px;
	color: var(--muted);
	max-width: 30ch;
}

/* Safety callout. The one place the accent signals hazard, not action. */

.callout {
	border-left: 6px solid var(--hazard);
	padding: var(--space-md) 0 var(--space-md) var(--space-md);
}

.callout p {
	max-width: 62ch;
	margin-top: var(--space-xs);
}

/* Rules list */

.rules {
	display: grid;
	gap: 0;
	margin-top: var(--space-md);
	max-width: 70ch;
}

.rules li {
	padding-block: 14px;
	border-bottom: 1px solid var(--hairline);
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: var(--space-xs);
	align-items: baseline;
}

.is-inverted .rules li {
	border-bottom-color: rgba(247, 244, 239, 0.22);
}

.rules li::before {
	content: '';
	width: 12px;
	height: 2px;
	background: var(--accent);
	display: block;
	transform: translateY(-4px);
}

/* Prose, for standard WordPress page and post content */

.prose {
	max-width: 68ch;
	font-size: 18px;
}

.prose > * + * {
	margin-top: var(--space-sm);
}

.prose h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(25px, 3.2vw, 33px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-top: var(--space-lg);
}

.prose h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.15;
	margin-top: var(--space-md);
}

.prose ul,
.prose ol {
	display: grid;
	gap: 10px;
	padding-left: 0;
}

.prose ul li {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: baseline;
}

.prose ul li::before {
	content: '';
	width: 10px;
	height: 2px;
	background: var(--accent);
	display: block;
	transform: translateY(-4px);
}

.prose ol {
	counter-reset: prose-ol;
}

.prose ol li {
	counter-increment: prose-ol;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	align-items: baseline;
}

.prose ol li::before {
	content: counter(prose-ol);
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--accent);
	font-size: 16px;
}

.prose a {
	color: var(--ink);
	font-weight: 600;
}

.prose strong {
	font-weight: 600;
}

.page-head {
	padding-block: var(--space-lg) var(--space-md);
}

.page-head .h-section {
	max-width: 20ch;
}

/* Entry list, for the blog */

.entries {
	display: grid;
	gap: 0;
	margin-top: var(--space-md);
}

.entry {
	padding-block: var(--space-md);
	border-top: 1px solid var(--hairline);
}

.entry__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 26px;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.entry__title a {
	text-decoration: none;
}

.entry__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.entry__meta {
	margin-top: 4px;
}

.entry__excerpt {
	margin-top: var(--space-xs);
	color: var(--muted);
	max-width: 68ch;
}

.empty-state {
	border-top: 1px solid var(--hairline);
	padding-top: var(--space-md);
	margin-top: var(--space-md);
	max-width: 60ch;
}

/* Closing call to action */

.cta__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: end;
}

/* Forms, including Contact Form 7 */

.wpcf7 input[type='text'],
.wpcf7 input[type='email'],
.wpcf7 input[type='tel'],
.wpcf7 textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: 17px;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	padding: 13px 14px;
	margin-top: 6px;
}

.wpcf7 textarea {
	min-height: 150px;
	resize: vertical;
}

.wpcf7 label {
	display: block;
	font-weight: 600;
	font-size: 15px;
	margin-bottom: var(--space-sm);
}

.wpcf7 input[type='submit'] {
	background: var(--accent);
	color: var(--ink);
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 17px;
	padding: 15px 26px;
	cursor: pointer;
}

.wpcf7-not-valid-tip {
	color: var(--hazard);
	font-size: 15px;
	margin-top: 4px;
}

.wpcf7-response-output {
	border: 1px solid var(--ink) !important;
	border-radius: var(--radius);
	padding: 12px 14px !important;
	margin: var(--space-sm) 0 0 !important;
	font-size: 16px;
}

/* Footer */

.site-footer {
	background: var(--ink);
	color: var(--bg);
	padding-block: var(--space-lg);
	margin-top: 0;
}

.site-footer a {
	color: var(--bg);
	text-decoration: none;
}

/* The underline returns on interaction, so the links stay discoverable. */
.site-footer a:hover,
.site-footer a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--accent-lite);
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--space-lg);
	align-items: start;
}

.site-footer__links {
	display: grid;
	gap: 10px;
}

.site-footer__legal {
	margin-top: var(--space-lg);
	padding-top: var(--space-sm);
	border-top: 1px solid rgba(247, 244, 239, 0.22);
	font-size: 15px;
	color: rgba(247, 244, 239, 0.7);
}

/* Mobile collapse. Declared for every multi-column layout above. */

@media (max-width: 900px) {
	.hero__grid,
	.split,
	.split--offset,
	.cta__grid,
	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__grid {
		gap: var(--space-lg);
	}

	.lede {
		max-width: 46ch;
	}

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

@media (max-width: 640px) {
	body {
		font-size: 17px;
	}

	.site-header__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-xs);
		padding-block: var(--space-sm);
	}

	.site-nav ul {
		gap: var(--space-sm);
	}

	.step {
		grid-template-columns: 60px minmax(0, 1fr);
		gap: var(--space-sm);
	}

	.hero__actions .btn {
		width: 100%;
		text-align: center;
	}
}

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

/* Brass lifts on dark grounds for headroom. */

.is-inverted .step__n {
	color: var(--accent-lite);
}

.is-inverted .rules li::before {
	background: var(--accent-lite);
}
