/* Dandelion — values taken from the Figma frames (1440 wide desktop). */

@font-face {
	font-family: "IBM Plex Sans";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2");
}

:root {
	--green: #162c2b;
	--ink: #1d1d1d;
	--accent: #af7631;
	--accent-hover: #8c5f26;
	--muted: #a5a5a5;
	--periwinkle: #c0d2ff;
	--chevron: #40595e;
	--rule: #162c2b;
	--hover: #40595e;
	--error: #b3261e;
	--gutter: clamp(16px, 2.2vw, 32px);
	--inset: clamp(0px, 1.95vw, 28px);
	--font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

.container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 8px 16px;
	background: var(--green);
	color: var(--periwinkle);
}
.skip-link:focus {
	top: 16px;
}

/* ---------- Header ---------- */

.site-header {
	padding-top: 28px;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 45px;
}
/* The contact page has no button, so its header is just the 33px logo. */
.page-contact .site-header__inner {
	min-height: 33px;
}
.site-header__logo {
	display: block;
	line-height: 0;
}
.site-header__logo img {
	width: 168px;
	height: auto;
}

.btn-contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	height: 45px;
	padding: 0 24px;
	background: var(--green);
	color: var(--periwinkle);
	font-size: 16px;
	line-height: 20.8px;
	text-decoration: none;
	transition: background-color 0.15s;
}
.btn-contact:hover {
	background: var(--hover);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 3px;
}
.btn-contact:focus-visible,
.btn-submit:focus-visible {
	outline-color: var(--periwinkle);
	outline-offset: -5px;
}

.site-main {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
}
.site-main > section {
	flex: 1 0 auto;
}

/* ---------- Shared headings ---------- */

.hero__title,
.contact__title,
.legal__title,
.thanks__title {
	margin: 0;
	color: var(--ink);
	font-size: clamp(32px, 3.34vw, 48px);
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
}

/* ---------- Landing ---------- */

.hero {
	padding-top: clamp(48px, 10.97vw, 158px);
	padding-bottom: clamp(24px, 8.75vw, 126px);
}
.hero__text {
	display: grid;
	grid-template-columns: minmax(0, 781fr) minmax(0, 539fr);
	column-gap: 0;
	padding-inline: var(--inset);
}
.hero__title {
	max-width: 605px;
}
.hero__copy {
	color: var(--ink);
	font-size: 18px;
	line-height: 1.3;
}
.hero__copy p {
	margin: 0 0 12px;
}
.hero__copy p:last-child {
	margin-bottom: 0;
}
.hero__eyebrow {
	margin-bottom: 16px !important;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}
.hero__photo {
	width: 100%;
	margin-top: clamp(32px, 7.64vw, 110px);
}

/* ---------- Contact ---------- */

.contact {
	padding-top: clamp(32px, 8.96vw, 129px);
	padding-bottom: clamp(40px, 10.4vw, 150px);
}
.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 786fr) minmax(0, 534fr);
	column-gap: 0;
	padding-inline: calc(var(--gutter) + var(--inset));
}
.contact__title {
	max-width: 588px;
}
@media (max-width: 1279px) {
	.contact__lead br {
		display: none;
	}
}
.contact__lead {
	max-width: 532px;
	margin: 20px 0 0;
	font-size: 18px;
	line-height: 23.4px;
}

/* ---------- Form ---------- */

.inquiry {
	min-width: 0;
}
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field {
	position: relative;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--rule);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.field:focus-within {
	border-bottom-color: var(--green);
	box-shadow: 0 1px 0 var(--green);
}
.field.is-invalid .field__label,
.field.is-invalid .select__trigger {
	color: var(--error);
}
.field.is-invalid {
	border-bottom-color: var(--error);
	box-shadow: 0 1px 0 var(--error);
}

.field__input,
.select__trigger {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 16px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 18px;
	line-height: 23.4px;
	outline: none;
	appearance: none;
}
.field__input--area {
	height: 88px;
	resize: none;
}

.field__label {
	position: absolute;
	top: 16px;
	left: 0;
	right: 0;
	color: var(--muted);
	font-size: 18px;
	line-height: 23.4px;
	pointer-events: none;
}
.field__label em {
	font-size: 0.8em;
}
.field__input--area + .field__label {
	top: 18px;
}
.field:hover .field__input:placeholder-shown:not(:focus) + .field__label,
.select__trigger:hover {
	color: var(--ink);
}
/* Filled or focused: the label shrinks to 12px above the value. */
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
	top: 0;
	font-size: 12px;
	line-height: 15.6px;
}
.field__input--area {
	padding-top: 18px;
}

/* Native select (no-JS fallback); replaced by the custom listbox once JS runs. */
.field__select {
	display: block;
	width: 100%;
	height: 54px;
	padding: 16px 28px 16px 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 18px;
	outline: none;
}
.field__select[hidden] {
	display: none;
}
.field__select:invalid {
	color: var(--muted);
}

.select__trigger {
	position: relative;
	padding-right: 32px;
	color: var(--muted);
	text-align: left;
	cursor: pointer;
}
.select__trigger.has-value {
	color: var(--ink);
}
.select__label {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 15.6px;
	opacity: 0;
	pointer-events: none;
}
.field--select.has-value .select__label {
	opacity: 1;
}
.select__chevron {
	position: absolute;
	top: 19.5px;
	right: 0;
	color: var(--chevron);
	transition: transform 0.15s;
	pointer-events: none;
}
.select__trigger[aria-expanded="true"] + .select__chevron {
	transform: rotate(180deg);
}

.select__list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 10;
	margin: 1px 0 0;
	padding: 13px 0 5px;
	border-bottom: 1px solid var(--green);
	background: #fff;
	list-style: none;
}
.select__list[hidden] {
	display: none;
}
.select__option {
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 20px;
	line-height: 26px;
	cursor: pointer;
}
.select__option:hover,
.select__option.is-active,
.select__option[aria-selected="true"] {
	color: var(--ink);
}

.form-status {
	margin: 16px 0 0;
	color: var(--error);
	font-size: 16px;
	line-height: 22px;
}

.form-status:empty {
	height: 0;
	margin: 0;
}

.btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 150px;
	height: 45px;
	margin-top: 16px;
	padding: 0 16px;
	border: 0;
	background: var(--green);
	color: var(--periwinkle);
	font: inherit;
	font-size: 16px;
	line-height: 20.8px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s;
}
.btn-submit svg {
	flex: none;
	width: 16px;
	height: 16px;
}
.btn-submit:hover {
	background: var(--hover);
}
.btn-submit:active {
	background: var(--green);
}
.btn-submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

/* ---------- Text pages (Privacy Notice, Terms of Service) ---------- */

.legal {
	padding-top: clamp(48px, 6.8vw, 98px);
	padding-bottom: clamp(48px, 6.9vw, 100px);
}
.legal__grid {
	display: grid;
	grid-template-columns: minmax(0, 670fr) minmax(0, 678fr);
	column-gap: 0;
	padding-left: calc(var(--gutter) + var(--inset));
}
.legal__aside {
	padding-right: 32px;
}
.legal__updated {
	margin: 12px 0 0;
	color: var(--ink);
	font-size: 15px;
	letter-spacing: 0.12em;
	line-height: 19.5px;
	text-transform: uppercase;
}
.legal__content {
	margin-top: 0;
	color: var(--ink);
	font-size: 18px;
	line-height: 23.4px;
	overflow-wrap: anywhere;
}
.legal__content > :first-child {
	margin-top: 0;
}
.legal__content p,
.legal__content ul,
.legal__content ol {
	margin: 0 0 12px;
}
.legal__content h2 {
	margin: 48px 0 12px;
	color: inherit;
	font-size: 32px;
	font-weight: 400;
	line-height: 41.6px;
}
.page-terms-of-service .legal__content h2 {
	font-size: 28px;
	line-height: 36.4px;
}
.legal__content h3 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	line-height: 23.4px;
}
.legal__content h3.medium {
	font-weight: 500;
}
.legal__content strong {
	font-weight: 600;
}
.legal__content .is-caps,
.legal__content .is-caps strong {
	font-weight: 500;
}
/* Lead-in labels such as "Our Website." (Medium, uppercase, no italic). */
.legal__content .lead {
	font-weight: 500;
	text-transform: uppercase;
}
.legal__content ul,
.legal__content ol {
	padding: 0;
	list-style: none;
}
.legal__content li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 18px;
}
.legal__content ul > li::before {
	content: "";
	position: absolute;
	top: 8.5px;
	left: 0;
	width: 6px;
	height: 6px;
	background: var(--green);
}
.legal__content ol {
	counter-reset: item;
}
.legal__content ol > li {
	counter-increment: item;
}
.legal__content ol > li::before {
	content: counter(item) ".";
	position: absolute;
	left: 0;
}
.legal__content a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.legal__content a:hover {
	color: var(--accent-hover);
}

/* ---------- Thank you ---------- */

.thanks {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding-top: clamp(48px, 8.13vw, 117px);
}
.thanks__inner {
	padding-inline: calc(var(--gutter) + var(--inset));
}
.thanks__title {
	max-width: 537px;
}
.thanks__text {
	max-width: 428px;
	margin: 17px 0 0;
	font-size: 18px;
	line-height: 23.4px;
}
.thanks__br {
	display: none;
}
.thanks__link {
	display: inline-block;
	margin-top: 50px;
	padding-bottom: 7px;
	border-bottom: 1px solid var(--ink);
	font-size: 20px;
	line-height: 26px;
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s;
}
.thanks__link:hover {
	color: var(--hover);
	border-color: var(--hover);
}
.thanks__photo {
	margin-top: auto;
	padding-top: clamp(48px, 10vw, 145px);
	padding-bottom: clamp(32px, 6.18vw, 89px);
}
.thanks__photo-crop {
	overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
	margin-top: auto;
	padding: 32px 0 25px;
	background: var(--ink);
	color: var(--periwinkle);
}
.site-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	min-height: 65px;
}
.site-footer__mark {
	flex: none;
	width: 67px;
	height: auto;
}
.site-footer__tagline {
	max-width: 832px;
	margin: 10px 0 0;
	font-size: clamp(24px, 2.78vw, 40px);
	line-height: 1.1;
	text-align: right;
	text-transform: uppercase;
}
.site-footer__rule {
	height: 0;
	margin: 32px 0 23px -6px;
	border: 0;
	border-top: 1px solid var(--periwinkle);
}
/* In the design the rule and the bottom row start 6px outside the page gutter. */
.site-footer__bottom {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 32px;
	margin-left: -6px;
}
.site-footer__copy {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 20.8px;
}
.site-footer__links {
	display: flex;
	gap: 32px;
	font-size: 16px;
	font-weight: 500;
	line-height: 20.8px;
}
.site-footer__links a {
	text-decoration: none;
}
.site-footer__links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.site-footer__links a:focus-visible {
	outline-color: var(--periwinkle);
}

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
	.hero__text {
		grid-template-columns: 1fr;
		row-gap: 22px;
	}
	.contact__grid {
		grid-template-columns: 1fr;
		row-gap: 32px;
	}
	.contact__lead br {
		display: none;
	}
}

/* Mobile frames are 402 wide in Figma. */
@media (max-width: 899px) {
	.site-header {
		padding-top: 16px;
	}
	.site-header__inner,
	.page-contact .site-header__inner {
		min-height: 40px;
	}
	.site-header__logo img {
		width: 123px;
	}
	.btn-contact {
		height: 40px;
	}

	.hero {
		padding-top: 44px;
		padding-bottom: 33px;
	}
	.hero__text {
		padding-inline: 0;
	}
	.hero__title,
	.contact__title,
	.legal__title,
	.thanks__title {
		max-width: 309px;
		font-size: 32px;
		line-height: 1.3;
	}
	.hero__eyebrow {
		margin-bottom: 16px !important;
		font-size: 14px;
		line-height: 22.5px;
	}
	.hero__copy {
		max-width: 342px;
		font-size: 16px;
		line-height: 20.8px;
	}
	.hero__copy p {
		margin-bottom: 10px;
	}
	.hero__photo {
		margin-top: 35px;
		padding-left: 2px;
	}
	/* The mobile frame has its own crop of the mosaic (<source> in front-page.php). */
	.hero__photo img {
		width: 100%;
		height: auto;
	}

	.contact {
		padding-top: 44px;
		padding-bottom: 50px;
	}
	.contact__grid {
		padding-inline: var(--gutter);
		row-gap: 33px;
	}
	.contact__lead {
		max-width: 342px;
		margin-top: 17px;
		font-size: 16px;
		line-height: 20.8px;
	}
	.field__input,
	.select__trigger,
	.field__select {
		height: 57px;
		font-size: 20px;
		line-height: 26px;
	}
	.field__input--area {
		height: 91px;
	}
	.field__label {
		font-size: 20px;
		line-height: 26px;
	}
	.select__chevron {
		top: 21px;
	}
	.btn-submit {
		gap: 16px;
		width: 100%;
		height: 62px;
		margin-top: 16px;
		padding: 0 32px;
		font-size: 20px;
		line-height: 26px;
	}
	.btn-submit svg {
		width: 24px;
		height: 24px;
	}

	.legal {
		padding-top: 44px;
		padding-bottom: 48px;
	}
	.legal__grid {
		grid-template-columns: 1fr;
		padding-inline: var(--gutter);
	}
	.legal__aside {
		padding-right: 0;
	}
	.legal__updated {
		font-size: 14px;
		line-height: 22.5px;
	}
	.legal__content {
		margin-top: 32px;
		font-size: 16px;
		line-height: 20.8px;
	}
	.legal__content h2,
	.page-terms-of-service .legal__content h2 {
		margin-top: 40px;
		font-size: 24px;
		line-height: 31.2px;
	}
	.legal__content h3 {
		font-size: 16px;
		line-height: 20.8px;
	}
	.legal__content li::before {
		top: 7px;
	}

	.thanks {
		padding-top: 44px;
	}
	.thanks__inner {
		padding-inline: var(--gutter);
	}
	.thanks__text {
		max-width: 342px;
		margin-top: 17px;
		font-size: 16px;
		line-height: 20.8px;
	}
	.thanks__link {
		margin-top: 64px;
	}
	.thanks__photo {
		padding-top: 172px;
		padding-bottom: 32px;
	}
	.thanks__photo img {
		width: 166.8%;
		max-width: none;
		margin-left: -66.8%;
	}

	/* Footer/mobile in Figma: 402x265, everything right-aligned in a column. */
	.site-footer {
		padding: 34px 0 28px;
	}
	.site-footer__top {
		height: 48px;
		min-height: 0;
	}
	.site-footer__mark {
		width: 50px;
		margin-top: 0;
	}
	.site-footer__tagline {
		max-width: 293px;
		margin-top: -2px;
		font-size: 24px;
		line-height: 26.4px;
	}
	.site-footer__rule {
		margin: 34px 0 27px;
	}
	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-end;
		gap: 15px;
		margin-left: 0;
	}
	.site-footer__copy {
		order: 2;
		line-height: 21px;
		text-align: right;
	}
	.site-footer__links {
		order: 1;
		flex-direction: column;
		align-items: flex-end;
		gap: 15px;
		line-height: 21px;
	}
}

@media (max-width: 479px) {
	.site-header__logo {
		width: 35%;
	}
	.site-header__logo img {
		width: 100%;
		max-width: 168px;
	}
}
