/* 00-base.css */
:root {
	--bg: #faf8f4;
	--bg-soft: #f2eee6;
	--surface: #ffffff;
	--ink: #161616;
	--ink-soft: #4a4744;
	--muted: #6b6560;
	--line: #e4ded3;
	/* A rule that has to show on the page background, like the one between her name and KW. */
	--line-strong: #c9c0b1;
	--gold: #c9b48c;
	/* Darkest gold: 4.6:1 on --bg-soft, so small gold text stays readable (WCAG AA). */
	--gold-deep: #7c6745;
	--overlay: rgba(22, 22, 22, 0.58);
	--font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--font-text: 'Jost', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 2px;
	--space-section: clamp(64px, 9vw, 120px);
	color-scheme: light;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 88px;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.65 var(--font-text);
	/* Cormorant's default old-style figures sink prices, phone numbers and stats. A font
	   shorthand resets this, so rules that set one with numbers in them repeat it. */
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 0.4em;
}
h1 {
	font-size: clamp(2.75rem, 7vw, 5.5rem);
}
h2 {
	font-size: clamp(2.1rem, 4.2vw, 3.25rem);
}
h3 {
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}
p {
	margin: 0 0 1em;
}
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.eyebrow {
	font: 500 0.78rem/1.4 var(--font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin: 0 0 0.9em;
}
.lede {
	font-size: 1.15rem;
	color: var(--ink-soft);
	max-width: 62ch;
}
.skip {
	position: absolute;
	left: -999px;
	top: 8px;
	background: var(--ink);
	color: var(--bg);
	padding: 8px 14px;
	z-index: 100;
}
.skip:focus {
	left: 8px;
}
:focus-visible {
	outline: 2px solid var(--gold-deep);
	outline-offset: 3px;
}
/* Classes like .btn set display, which would otherwise beat the hidden attribute. */
[hidden] {
	display: none !important;
}
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* 05-fonts.css */
/* Self-hosted fonts (SIL Open Font License: see ../fonts/OFL-*.txt), the latin subset from
   @fontsource 5.3.0. pnpm assets swaps each file reference for the file's hashed /assets/ URL. */
@font-face {
	font-family: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('/assets/cormorant-garamond-latin-500-normal.8197bf5361.woff2') format('woff2');
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
		U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/assets/cormorant-garamond-latin-600-normal.ae062b6d5a.woff2') format('woff2');
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
		U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Cormorant Garamond';
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url('/assets/cormorant-garamond-latin-500-italic.4fb55a7a6d.woff2') format('woff2');
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
		U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Jost';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/jost-latin-400-normal.f94cffda16.woff2') format('woff2');
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
		U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Jost';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('/assets/jost-latin-500-normal.98dce4f076.woff2') format('woff2');
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
		U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Jost';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/assets/jost-latin-600-normal.d0487d6845.woff2') format('woff2');
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
		U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 10-layout.css */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 248, 244, 0.96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.2) blur(8px);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 76px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	margin-right: auto;
}
.brand img {
	flex: none;
	width: auto;
}
.brand-mark {
	height: 44px;
}
.brand-word {
	height: 17px;
}
/*
 * The KW Consultants lockup after a thin rule. At least 28.82/19.6 of .brand-word's height at
 * every width, as in her approved logo (test/guards/brokerage-prominence.test.ts checks).
 */
.brand-kw {
	box-sizing: content-box;
	height: 26px;
	padding-left: 14px;
	border-left: 1px solid var(--line-strong);
}
.header-call {
	white-space: nowrap;
}
.nav {
	display: flex;
	gap: 16px;
}
.nav a {
	font: 500 0.82rem/1 var(--font-text);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 8px 0;
	border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current='page'] {
	border-bottom-color: var(--gold-deep);
}
.menu {
	display: none;
}
.menu summary {
	list-style: none;
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
}
.menu summary::-webkit-details-marker {
	display: none;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--ink);
	position: relative;
}
.menu-icon::before,
.menu-icon::after {
	content: '';
	position: absolute;
	left: 0;
}
.menu-icon::before {
	top: -7px;
}
.menu-icon::after {
	top: 7px;
}
.menu[open] .menu-icon {
	background: transparent;
}
.menu[open] .menu-icon::before {
	top: 0;
	transform: rotate(45deg);
}
.menu[open] .menu-icon::after {
	top: 0;
	transform: rotate(-45deg);
}
.menu-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 76px;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	padding: 8px var(--gutter) 20px;
	display: grid;
}
.menu-panel a {
	font: 500 0.95rem/1 var(--font-text);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}
/* The brand, the nav and the call button need about 1060px plus the 40px gutters. */
@media (max-width: 1139px) {
	.nav,
	/* Two classes, so this beats .btn's display (20-components.css loads later). */
	.site-header .header-call {
		display: none;
	}
	.menu {
		display: block;
	}
	.brand {
		gap: 10px;
	}
	.brand-mark {
		height: 38px;
	}
	.brand-word {
		height: 13px;
	}
	.brand-kw {
		height: 20px;
		padding-left: 10px;
	}
}
/* The smallest phones: the three pieces shrink together, KW still the tallest. */
@media (max-width: 380px) {
	.header-inner {
		gap: 12px;
	}
	.brand {
		gap: 8px;
	}
	.brand-mark {
		height: 32px;
	}
	.brand-word {
		height: 11px;
	}
	.brand-kw {
		height: 17px;
		padding-left: 8px;
	}
}
@media (min-width: 1140px) {
	.menu {
		display: none !important;
	}
}

.section {
	padding: var(--space-section) 0;
}
.section-soft {
	background: var(--bg-soft);
}
.section-dark {
	background: var(--ink);
	color: var(--bg);
}
.section-dark .eyebrow {
	color: var(--gold);
}
.section-dark .lede {
	color: #d9d4cb;
}
.section-narrow .wrap {
	max-width: 820px;
}
/* Two sections on the same background would stack two paddings of empty space. */
.section-plain + .section-plain,
.section-soft + .section-soft {
	padding-top: 0;
}
/* A narrow page intro running straight into full-width content lines up with it. */
.section-narrow.section-plain:has(+ .section-plain:not(.section-narrow)) .wrap {
	max-width: var(--wrap);
}
/* A dark closing band would run straight into the dark footer. */
main > .section-dark:last-child {
	border-bottom: 1px solid #3a3734;
}
.section-head {
	margin-bottom: clamp(32px, 5vw, 56px);
	max-width: 760px;
}

.site-footer {
	background: var(--ink);
	color: #d9d4cb;
	padding: 72px 0 28px;
}
.footer-grid {
	display: grid;
	/* Three or four columns, as many as there are (the Follow column is optional). */
	grid-auto-flow: column;
	grid-template-columns: 1.4fr;
	grid-auto-columns: 1fr;
	gap: 40px;
}
.footer-grid h2 {
	font-size: 1.9rem;
	color: var(--bg);
}
.footer-grid h3 {
	font: 500 0.75rem/1.4 var(--font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 14px;
}
.footer-grid ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}
.footer-grid a {
	text-decoration: none;
}
.footer-grid a:hover {
	color: var(--bg);
	text-decoration: underline;
}
/* Her whole logo, KW lockup included, in its white-on-dark version. */
.footer-logo {
	height: 190px;
	width: auto;
	margin-bottom: 22px;
}
.footer-legal {
	position: relative;
	margin-top: 56px;
	padding-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	align-items: center;
	font-size: 0.82rem;
	color: #a7a199;
}
/* The rule spans the content column, not the gutters. */
.footer-legal::before {
	content: '';
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	border-top: 1px solid #3a3734;
}
.footer-legal svg {
	width: 34px;
	height: 34px;
}
@media (max-width: 860px) {
	.footer-grid {
		grid-auto-flow: row;
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 520px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

.contact-bar {
	display: none;
}
@media (max-width: 760px) {
	/* The bar's room is inside the dark footer, so no ivory strip shows below it. */
	.has-bar .site-footer {
		padding-bottom: calc(28px + 56px + env(safe-area-inset-bottom, 0px));
	}
	.contact-bar {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		background: var(--ink);
		/* Keeps the bar distinct when it sits over the dark footer. */
		border-top: 1px solid #3a3734;
		padding-bottom: env(safe-area-inset-bottom, 0);
	}
	.contact-bar a {
		color: var(--bg);
		text-align: center;
		text-decoration: none;
		padding: 18px 0;
		font: 500 0.8rem/1 var(--font-text);
		letter-spacing: 0.16em;
		text-transform: uppercase;
		border-left: 1px solid #3a3734;
	}
	.contact-bar a:first-child {
		border-left: 0;
	}
}

/* 20-components.css */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border-radius: var(--radius);
	font: 500 0.82rem/1 var(--font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--ink);
	cursor: pointer;
	transition:
		background 0.2s,
		color 0.2s;
}
.btn-solid {
	background: var(--ink);
	color: var(--bg);
}
.btn-solid:hover {
	background: #2b2926;
}
.btn-outline {
	background: transparent;
	color: var(--ink);
}
.btn-outline:hover {
	background: var(--ink);
	color: var(--bg);
}
.btn-light {
	background: var(--bg);
	color: var(--ink);
	border-color: var(--bg);
}
.btn-light:hover {
	background: transparent;
	color: var(--bg);
}
/* A row of buttons under content. */
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: clamp(28px, 4vw, 40px) 0 0;
}
.text-link {
	font: 500 0.82rem/1 var(--font-text);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid var(--gold-deep);
	padding-bottom: 4px;
}

.photo {
	position: relative;
	overflow: hidden;
	background: var(--bg-soft);
	aspect-ratio: 3 / 2;
}
.photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.photo-empty {
	display: grid;
	place-items: center;
	color: var(--gold-deep);
}
.photo-empty svg {
	width: 34%;
	max-width: 140px;
	opacity: 0.55;
}

.cards {
	display: grid;
	gap: clamp(20px, 3vw, 32px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	transition:
		box-shadow 0.2s,
		transform 0.2s;
}
.card:hover {
	box-shadow: 0 14px 36px rgba(22, 22, 22, 0.08);
	transform: translateY(-2px);
}
.card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}
.card-body {
	padding: 20px 22px 24px;
}
.badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--bg);
	color: var(--ink);
	font: 500 0.7rem/1 var(--font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 8px 10px;
}
.badge-sold {
	background: var(--ink);
	color: var(--bg);
}
.badge-pending {
	background: var(--gold);
}
.price {
	font: 600 1.6rem/1.1 var(--font-display);
	font-variant-numeric: lining-nums;
	margin: 0 0 6px;
}
.address {
	font: 500 1.02rem/1.35 var(--font-text);
	margin: 0;
	letter-spacing: 0;
}
.place {
	color: var(--muted);
	font-size: 0.95rem;
	margin: 0 0 12px;
}
.facts {
	list-style: none;
	padding: 12px 0 0;
	margin: 0;
	display: flex;
	gap: 18px;
	border-top: 1px solid var(--line);
	font-size: 0.9rem;
	color: var(--ink-soft);
}
.sold-note {
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: var(--gold-deep);
}
.post-card h3 {
	margin-top: 2px;
}
.excerpt {
	color: var(--ink-soft);
}
.meta {
	font-size: 0.85rem;
	color: var(--muted);
	margin: 0;
}

.review {
	margin: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 32px 30px 28px;
	display: flex;
	flex-direction: column;
}
.review blockquote {
	margin: 14px 0 22px;
	font: 500 italic 1.35rem/1.45 var(--font-display);
	flex: 1;
	/* Reviewers' own line breaks are their paragraphs; the stored text is never changed. */
	white-space: pre-line;
}
.review figcaption {
	font-weight: 500;
}
.review figcaption span {
	display: block;
	font-weight: 400;
	font-size: 0.85rem;
	color: var(--muted);
}
.stars {
	color: var(--gold-deep);
	letter-spacing: 0.12em;
}
.reviews {
	display: grid;
	gap: clamp(20px, 3vw, 32px);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 24px;
	text-align: center;
}
.stat-value {
	display: block;
	font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-display);
	font-variant-numeric: lining-nums;
}
.stat-label {
	display: block;
	margin-top: 10px;
	font: 500 0.75rem/1.4 var(--font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.section-dark .stat-label {
	color: var(--gold);
}

.lead-form {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr 1fr;
}
h2 + .lead-form,
.lede + .lead-form {
	margin-top: clamp(20px, 3vw, 32px);
}
.lead-form .field-wide,
.lead-form .field-message,
.lead-form .cf-turnstile,
.lead-form button,
.lead-form .form-status,
.lead-form .form-noscript {
	grid-column: 1 / -1;
}
.field label {
	display: block;
	font: 500 0.75rem/1.4 var(--font-text);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
	width: 100%;
	font: 400 1rem/1.4 var(--font-text);
	color: var(--ink);
	background: var(--surface);
	border: 1px solid #cfc7b9;
	border-radius: var(--radius);
	padding: 13px 14px;
}
.field input,
.field select {
	height: 50px;
}
.field textarea {
	min-height: 130px;
	resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: 2px solid var(--gold-deep);
	outline-offset: 0;
	border-color: var(--gold-deep);
}
.field [aria-invalid='true'] {
	border-color: #a3322a;
}
.field-error {
	color: #a3322a;
	font-size: 0.85rem;
	margin: 6px 0 0;
}
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.form-status {
	margin: 0;
	min-height: 1.5em;
}
/* The status shows just above the button, where the visitor is looking; below it, the
   phone contact bar could cover "Thank you". */
.lead-form button[type='submit'] {
	order: 1;
}
.lead-form .form-noscript {
	order: 2;
}
/* Until there is something to say, it takes no room (it stays in place for screen readers). */
.lead-form .form-status:empty {
	min-height: 0;
	margin-top: -16px;
}
.form-status.is-error {
	color: #a3322a;
}
.form-status.is-ok {
	color: #2f5d3a;
}
@media (max-width: 560px) {
	.lead-form {
		grid-template-columns: 1fr;
	}
}

.carousel {
	position: relative;
}
.carousel-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
	display: none;
}
.carousel-track > * {
	flex: 0 0 100%;
	scroll-snap-align: start;
}
.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: rgba(250, 248, 244, 0.92);
	cursor: pointer;
	font-size: 1.3rem;
}
.carousel-btn[data-carousel-prev] {
	left: 14px;
}
.carousel-btn[data-carousel-next] {
	right: 14px;
}

.highlights {
	list-style: none;
	margin: 0;
	padding: 0;
}
.highlights > li {
	padding: 24px 0;
	border-top: 1px solid var(--line);
}
.highlights > li:last-child {
	border-bottom: 1px solid var(--line);
}
.highlight-num {
	display: block;
	font: 600 1.1rem/1 var(--font-display);
	font-variant-numeric: lining-nums;
	color: var(--gold-deep);
	margin-bottom: 8px;
}
/* A black logo: only for light sections. */
.highlight-badge {
	height: 56px;
	width: auto;
	margin: 6px 0 10px;
}

/* 30-home.css */
/* Home page styles: owned by Task 2 (pages/home.tsx). */

/* Hero */
.hero {
	position: relative;
	z-index: 0;
	display: grid;
	align-content: end;
	color: var(--bg);
	background: var(--ink);
}
.hero-media {
	position: absolute;
	inset: 0;
}
.hero-media .photo {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	background: transparent;
}
.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(22, 22, 22, 0.9), rgba(22, 22, 22, 0.64));
}
/* Text and portrait sit above the photo and its shade. */
.hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 32px;
	padding-block: 36px 56px;
	min-width: 0;
}
.hero-text {
	min-width: 0;
}
.hero h1 {
	color: var(--bg);
	font-size: clamp(2.8rem, 8vw, 5.6rem);
	margin-bottom: 0.3em;
}
.hero .eyebrow {
	color: var(--gold);
}
.hero-sub {
	font-size: 1.2rem;
	color: #e9e4da;
	max-width: 46ch;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}
.hero .btn-outline {
	color: var(--bg);
	border-color: var(--bg);
}
.hero .btn-outline:hover {
	background: var(--bg);
	color: var(--ink);
}
.hero-phone {
	margin: 22px 0 0;
	color: #e9e4da;
}
.hero-phone a {
	color: var(--bg);
	text-decoration-color: var(--gold);
	text-underline-offset: 4px;
}
/* Lorie's portrait, framed with an offset gold line. On phones it comes first, so she is
   the first thing seen. */
.hero-portrait {
	order: -1;
	position: relative;
	width: min(52vw, 210px);
	margin: 0 0 10px;
}
.hero-portrait::after {
	content: '';
	position: absolute;
	inset: 10px -10px -10px 10px;
	border: 1px solid var(--gold);
	pointer-events: none;
}
.hero-portrait .photo {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 5;
}

/* Intro */
.intro-grid {
	display: grid;
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.intro-grid > * {
	min-width: 0;
}
.intro-text .text-link {
	display: inline-block;
	margin-top: 8px;
}

/* Where to start */
.fork {
	display: grid;
	gap: 24px;
}
.fork-card {
	/* A column, so each card's link sits on the same line as its neighbours'. */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 28px;
	text-decoration: none;
	color: inherit;
	transition:
		box-shadow 0.2s,
		transform 0.2s;
}
.fork-card:hover {
	box-shadow: 0 14px 36px rgba(22, 22, 22, 0.08);
	transform: translateY(-3px);
}
.fork-icon {
	display: block;
	width: 48px;
	height: 48px;
	color: var(--gold-deep);
	margin-bottom: 18px;
}
.fork-card p {
	color: var(--ink-soft);
}
.fork-card .text-link {
	margin-top: auto;
}

.section-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	margin: clamp(28px, 4vw, 44px) 0 0;
}

/* Where I work */
.towns {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	font: 500 1.5rem/1.3 var(--font-display);
	color: var(--bg);
	/* Towns flow as words, and balance evens out the lines, so no town sits alone on the
	   last one ("Marysville" by itself). Each dot sits in the space before its town; the dot
	   before a line's first town falls outside the list and is clipped, so no line starts or
	   ends with one. */
	text-wrap: balance;
	overflow: hidden;
}
.towns li {
	display: inline-block;
	position: relative;
	margin: 0 40px 10px 0;
	white-space: nowrap;
}
.towns li::before {
	content: '\00b7';
	position: absolute;
	right: calc(100% + 16px);
	color: var(--gold);
}

/* Contact band */
.home-contact-grid {
	display: grid;
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}
.home-contact-grid > * {
	min-width: 0;
}
.contact-list {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.contact-list a {
	font: 500 1.6rem/1.3 var(--font-display);
	font-variant-numeric: lining-nums;
	text-decoration-color: var(--gold-deep);
	text-underline-offset: 5px;
	overflow-wrap: anywhere;
}

#numbers {
	padding: clamp(40px, 6vw, 64px) 0;
}
.intro-text .section-head {
	margin-bottom: 18px;
}

@media (min-width: 960px) {
	.hero {
		min-height: clamp(520px, 72vh, 720px);
		align-content: center;
	}
	.hero-shade {
		background: linear-gradient(
			90deg,
			rgba(22, 22, 22, 0.8) 0%,
			rgba(22, 22, 22, 0.66) 60%,
			rgba(22, 22, 22, 0.3) 100%
		);
	}
	.hero-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: clamp(48px, 6vw, 96px);
		padding-block: 72px;
	}
	.hero-portrait {
		order: 0;
		width: clamp(260px, 26vw, 340px);
		margin: 0 10px 10px 0;
	}
}
/* Long testimonials: site.js adds is-clamped, and each quote stops after seven lines (1.45 is the
   quote's line height). One that runs well over fades out and gets a "Read the rest" button; one
   only a line or two over gets is-whole and shows in full. */
.home-reviews.is-clamped .review blockquote {
	flex: none;
	max-height: calc(7 * 1.45em);
	overflow: hidden;
}
.home-reviews .review.is-clipped blockquote {
	mask-image: linear-gradient(to bottom, #000 calc(100% - 2.9em), transparent);
}
.home-reviews .review.is-open blockquote,
.home-reviews .review.is-whole blockquote {
	max-height: none;
}
.home-reviews.is-clamped .review figcaption {
	margin-top: auto;
}
.home-reviews .quote-toggle {
	align-self: flex-start;
	margin: -10px 0 22px;
	padding: 0 0 4px;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--gold-deep);
	color: inherit;
	font: 500 0.78rem/1 var(--font-text);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}
.home-reviews .quote-toggle[hidden] {
	display: none;
}

/* Rotating testimonials: without JS the first three show; site.js picks a random three and hides the rest. */
.reviews-rotate:not(.is-rotated) > :nth-child(n + 4),
.reviews-rotate > [hidden] {
	display: none;
}

@media (min-width: 861px) {
	.intro-grid:not(.intro-solo) {
		grid-template-columns: 1.1fr 1fr;
	}
	.fork {
		grid-template-columns: repeat(3, 1fr);
	}
	.fork-card {
		padding: 36px;
	}
	.home-contact-grid {
		grid-template-columns: 1fr 1.2fr;
	}
}

/* 40-listings.css */
/* Listing pages styles: owned by Task 3 (pages/listings.tsx). */

.listings-empty {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}
.listings-empty .actions {
	margin-top: 24px;
}
.more {
	text-align: center;
	margin: 40px 0 0;
}

.gallery {
	margin-bottom: clamp(24px, 4vw, 48px);
}
.gallery .photo {
	aspect-ratio: 4 / 3;
}
.gallery-slide {
	margin: 0;
}
.gallery-caption {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.9rem;
}
.gallery-count {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 0.85rem;
	text-align: right;
}

.listing-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.listing-main {
	min-width: 0;
}
.listing-head .badge-inline {
	/* An ivory badge on the ivory page needs an edge. */
	border: 1px solid var(--ink);
	position: static;
	display: inline-block;
	margin-bottom: 16px;
}
.listing-address {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	margin-bottom: 0.15em;
}
.listing-head .price {
	margin-top: 8px;
}
.listing-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 20px 28px;
	margin: 28px 0;
	padding: 24px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.listing-facts > div {
	min-width: 0;
}
.listing-facts dt {
	font: 500 0.72rem/1.4 var(--font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.listing-facts dd {
	margin: 4px 0 0;
	font: 600 1.6rem/1.2 var(--font-display);
	font-variant-numeric: lining-nums;
	overflow-wrap: anywhere;
}
.listing-description p {
	margin: 0 0 1em;
}
.listing-links {
	margin-top: 28px;
}
.tour {
	aspect-ratio: 16 / 9;
	margin-bottom: 20px;
}
.tour iframe {
	width: 100%;
	height: 100%;
	border: 0;
}
.listing-aside {
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 24px;
}
.listing-aside h2 {
	font-size: 1.9rem;
}
/* The sidebar is too narrow for two fields side by side. */
.listing-aside .lead-form {
	grid-template-columns: 1fr;
}
.aside-contact {
	display: grid;
	gap: 4px;
	margin: 0 0 20px;
	overflow-wrap: anywhere;
}

@media (min-width: 561px) {
	.gallery .photo {
		aspect-ratio: 16 / 10;
	}
}
@media (min-width: 961px) {
	/* At 1280×800 the address and price show above the fold: less space over the gallery,
	   and the gallery no taller than about half the screen. */
	.listing-page {
		padding-top: clamp(24px, 3vw, 40px);
	}
	.gallery .photo {
		aspect-ratio: auto;
		height: min(50vh, (min(100vw, var(--wrap)) - 2 * var(--gutter)) / 1.6);
	}
	.listing-layout {
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: 56px;
	}
	.listing-aside {
		position: sticky;
		top: 100px;
		padding: 32px;
	}
}

/* 50-news.css */
/* News pages styles: owned by Task 4 (pages/news.tsx). */

/* Topic filter */
.topics {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 32px 0 40px;
}
.topics a {
	display: inline-block;
	border: 1px solid var(--ink);
	border-radius: 999px;
	padding: 9px 16px;
	font: 500 0.74rem/1 var(--font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
}
.topics a:hover {
	background: var(--bg-soft);
}
.topics a[aria-current='page'] {
	background: var(--ink);
	color: var(--bg);
}
.empty-note {
	color: var(--muted);
	font-size: 1.1rem;
}
.pager {
	margin-top: 40px;
	text-align: center;
}

/* A post */
.post {
	min-width: 0;
}
.post h1 {
	margin-bottom: 0.3em;
}
.post .eyebrow a {
	color: inherit;
	text-decoration: none;
}
.post-meta {
	color: var(--muted);
	margin: 0;
}
.post-cover {
	margin: 40px 0;
}
/* The cover shows whole, at its own shape, not cropped to the card photos' 3:2. */
.post-cover .photo {
	aspect-ratio: auto;
}
.post-cover .photo img {
	height: auto;
}
.post-listing {
	margin: 56px 0 0;
	max-width: 420px;
}
.post-listing h2 {
	font-size: 1.6rem;
	margin-bottom: 16px;
}
.signature {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}
.signature > div {
	min-width: 0;
}
.signature-photo {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}
.signature p {
	margin: 0;
}
.signature-line {
	font: 600 1.5rem/1.2 var(--font-display);
}
.signature .signature-role {
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 8px;
}

/* Rich text */
.prose {
	max-width: 720px;
	font-size: 19px;
	line-height: 1.75;
	margin-top: 40px;
	overflow-wrap: break-word;
}
.prose > :first-child {
	margin-top: 0;
}
.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--font-display);
	line-height: 1.2;
	margin: 1.8em 0 0.5em;
}
.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1.1em;
}
.prose ul,
.prose ol {
	padding-left: 1.2em;
}
.prose blockquote {
	margin: 1.6em 0;
	padding: 0 0 0 24px;
	border-left: 2px solid var(--gold);
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.4rem;
	line-height: 1.4;
}
.prose a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--gold-deep);
	text-underline-offset: 3px;
}
.prose img {
	max-width: 100%;
	height: auto;
}
.prose .rt-image {
	margin: 1.6em 0;
}
.prose .rt-image img {
	display: block;
	width: 100%;
}
.prose .rt-image figcaption {
	margin-top: 8px;
	font-size: 0.9rem;
	color: var(--muted);
}
.prose .rt-video {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 1.6em 0;
}
.prose .rt-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.prose hr {
	width: 40%;
	margin: 48px auto;
	border: 0;
	border-top: 1px solid var(--line);
}

/* 60-pages.css */
/* About, buy, sell, reviews, contact and privacy styles: owned by Task 5 (pages/info.tsx). */

/* About */
.about-hero {
	display: grid;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.about-hero > * {
	min-width: 0;
}
.about-photo {
	aspect-ratio: 3 / 4;
	width: 100%;
	max-width: 440px;
	margin-inline: auto;
	overflow: visible;
}
.about-photo::after {
	content: '';
	position: absolute;
	inset: 10px -10px -10px 10px;
	border: 1px solid var(--gold);
	pointer-events: none;
}
.about-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0 0;
}
.areas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}
.areas li {
	border: 1px solid var(--gold);
	padding: 8px 16px;
	font: 500 0.78rem/1.4 var(--font-text);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.closing-cta {
	text-align: center;
}
.closing-cta .lede {
	margin-inline: auto;
}

/* Full width, the highlights read best side by side. */
@media (min-width: 861px) {
	.about-highlights .highlights {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		gap: 0 clamp(32px, 4vw, 56px);
	}
	/* Each item shares four rows with its neighbours (number, badge, title, text), so the
	   titles line up whether or not an item has a badge. */
	.about-highlights .highlights > li {
		display: grid;
		grid-row: span 4;
		grid-template-rows: subgrid;
		align-content: start;
	}
	.about-highlights .highlights > li:last-child {
		border-bottom: 0;
	}
	.about-highlights .highlight-num {
		grid-row: 1;
	}
	.about-highlights .highlight-badge {
		grid-row: 2;
	}
	.about-highlights .highlights h3 {
		grid-row: 3;
	}
	.about-highlights .highlights p {
		grid-row: 4;
	}
}

/* Buy and sell */
.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 36px clamp(32px, 5vw, 72px);
}
.steps > li {
	min-width: 0;
	border-top: 1px solid var(--line);
	padding-top: 20px;
}
.step-num {
	display: block;
	font: 600 3rem/1 var(--font-display);
	font-variant-numeric: lining-nums;
	color: var(--gold-deep);
	margin-bottom: 8px;
}
.steps h2 {
	font-size: 1.6rem;
	margin-bottom: 0.3em;
}
.steps p {
	margin: 0;
	color: var(--ink-soft);
}
.search-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 0 0 clamp(24px, 4vw, 40px);
	padding: 20px 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	font: 500 1.4rem/1.3 var(--font-display);
}
.search-band > span {
	min-width: 0;
}

/* Reviews */
.rating-summary {
	margin: 0 0 clamp(24px, 4vw, 40px);
	font: 500 1.4rem/1.3 var(--font-display);
	font-variant-numeric: lining-nums;
	color: var(--ink-soft);
}
.rating-summary .stars {
	margin-right: 6px;
}
/* Testimonials wall: the plain .reviews grid until the browser can do masonry. */
@supports (grid-template-rows: masonry) {
	.reviews-wall {
		grid-template-rows: masonry;
	}
}
/* Without native masonry, site.js adds .reviews-masonry and sets each card's row span (see masonrySpan). */
.reviews-wall.reviews-masonry {
	grid-auto-rows: 4px;
	row-gap: 0;
}
.reviews-wall.reviews-masonry > * {
	align-self: start;
}
.reviews-more {
	margin: clamp(28px, 4vw, 44px) 0 0;
}
.empty-state {
	padding: clamp(24px, 5vw, 56px) 0;
}

/* Contact */
.contact-grid {
	display: grid;
	gap: clamp(32px, 5vw, 72px);
	margin-top: clamp(28px, 4vw, 48px);
}
.contact-grid > * {
	min-width: 0;
}
.methods {
	margin: 0;
}
.methods dt {
	margin-top: 22px;
	font: 500 0.78rem/1.4 var(--font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.methods dt:first-child {
	margin-top: 0;
}
.methods dd {
	margin: 4px 0 0;
	font: 500 1.5rem/1.3 var(--font-display);
	font-variant-numeric: lining-nums;
	overflow-wrap: anywhere;
}
.methods a {
	text-decoration: none;
	border-bottom: 1px solid var(--gold);
}
.methods .methods-office {
	font-size: 1.15rem;
	color: var(--ink-soft);
}

/* Privacy */
.privacy-body h2 {
	font-size: 1.6rem;
	margin-top: 1.6em;
}
.privacy-body p {
	color: var(--ink-soft);
	max-width: 66ch;
}

@media (min-width: 721px) {
	.steps {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 861px) {
	.about-hero:not(.about-hero-single) {
		grid-template-columns: 0.9fr 1.1fr;
	}
	/* Beside her long story, the photo starts at the top and stays in view while she reads. */
	.about-hero-story {
		align-items: start;
	}
	.about-hero-story .about-photo {
		position: sticky;
		top: 120px;
	}
	.contact-grid {
		grid-template-columns: 0.8fr 1.2fr;
	}
}
