/* What theme.json can't express. Colors come from the theme.json palette. */

:root {
	--gh-radius: 12px;
	--gh-shadow: 0 1px 2px rgba(11, 49, 87, 0.06), 0 8px 24px rgba(11, 49, 87, 0.08);
	/* Wave edge, filled with the page background (shell). */
	--gh-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23FCFAF6' d='M0 48c120-26 240-38 360-30s240 34 360 38 240-14 360-28 240-12 360 6v46H0z'/%3E%3C/svg%3E");
}

body {
	-webkit-font-smoothing: antialiased;
}

:where(a:focus-visible, button:focus-visible, .wp-element-button:focus-visible) {
	outline: 3px solid var(--wp--preset--color--sea);
	outline-offset: 2px;
}

/* Full-width bands sit edge to edge: no block gap between them, or between
   the header, the page and the footer. */
.wp-site-blocks > *,
main.wp-block-group > *,
.wp-block-post-content > .alignfull {
	margin-block: 0;
}

/* ---------------------------------------------------------------- header */

.gh-header {
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--sand);
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .gh-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.gh-brand {
	align-items: center;
	color: var(--wp--preset--color--navy);
	display: inline-flex;
	gap: 0.6rem;
	text-decoration: none;
}

.gh-brand img {
	display: block;
	height: 44px;
	width: auto;
}

.gh-brand span {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.gh-header .wp-block-navigation a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.gh-header .wp-block-navigation a:hover,
.gh-header .wp-block-navigation .current-menu-item a {
	color: var(--wp--preset--color--teal-dark);
}

.gh-header .wp-block-button__link {
	font-size: 0.95rem;
	padding: 0.5em 1.1em;
}

/* ---------------------------------------------------------------- buttons */

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--wp--preset--color--teal-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--teal-dark);
	border-color: var(--wp--preset--color--teal-dark);
	color: var(--wp--preset--color--white);
}

.gh-on-dark .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--white);
}

.gh-on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

/* ---------------------------------------------------------------- sections */

.gh-section {
	padding-block: var(--wp--preset--spacing--60);
}

.gh-section > .wp-block-heading:first-child {
	margin-top: 0;
}

.gh-eyebrow {
	color: var(--wp--preset--color--teal-dark);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 0.25rem;
	text-transform: uppercase;
}

.gh-lead {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
}

.has-navy-background-color :where(h1, h2, h3, h4),
.has-slate-background-color :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--white);
}

.has-navy-background-color .gh-eyebrow {
	color: var(--wp--preset--color--sea);
}

.has-navy-background-color .gh-lead {
	color: var(--wp--preset--color--foam);
}

/* Hero: light water, wave edge into the page. */
.gh-hero {
	background:
		var(--gh-wave) bottom / 100% 70px no-repeat,
		linear-gradient(170deg, var(--wp--preset--color--foam) 0%, #DCEEF1 55%, var(--wp--preset--color--shell) 100%);
	padding-block: var(--wp--preset--spacing--60) calc(var(--wp--preset--spacing--60) + 50px);
}

.gh-hero h1 {
	margin-top: 0.25rem;
}

.gh-hero-art img {
	display: block;
	filter: drop-shadow(0 12px 28px rgba(11, 49, 87, 0.18));
	margin-inline: auto;
	max-width: min(380px, 80%);
}

/* Page banner on inner pages. */
.gh-page-head {
	background:
		var(--gh-wave) bottom / 100% 50px no-repeat,
		linear-gradient(170deg, var(--wp--preset--color--navy) 0%, var(--wp--preset--color--slate) 100%);
	color: var(--wp--preset--color--foam);
	padding-block: var(--wp--preset--spacing--50) calc(var(--wp--preset--spacing--50) + 40px);
}

.gh-page-head h1 {
	color: var(--wp--preset--color--white);
	margin: 0;
}

/* ---------------------------------------------------------------- cards */

.gh-card {
	background: var(--wp--preset--color--white);
	border: 1px solid #E3E9EC;
	border-radius: var(--gh-radius);
	box-shadow: var(--gh-shadow);
	height: 100%;
	padding: var(--wp--preset--spacing--40);
}

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

.gh-step {
	align-items: center;
	background: var(--wp--preset--color--foam);
	border-radius: 999px;
	color: var(--wp--preset--color--teal-dark);
	display: inline-flex;
	font-weight: 700;
	height: 2.2rem;
	justify-content: center;
	margin: 0 0 0.5rem;
	width: 2.2rem;
}

/* Checked list. */
.gh-checks {
	list-style: none;
	padding-left: 0;
}

.gh-checks li {
	padding-left: 2rem;
	position: relative;
}

.gh-checks li + li {
	margin-top: 0.6rem;
}

.gh-checks li::before {
	background: var(--wp--preset--color--teal);
	border-radius: 999px;
	content: "";
	height: 1.25rem;
	left: 0;
	position: absolute;
	top: 0.2rem;
	width: 1.25rem;
}

.gh-checks li::after {
	border-bottom: 2px solid var(--wp--preset--color--white);
	border-right: 2px solid var(--wp--preset--color--white);
	content: "";
	height: 0.55rem;
	left: 0.45rem;
	position: absolute;
	top: 0.43rem;
	transform: rotate(45deg);
	width: 0.3rem;
}

/* The "projector" result card on the home page: an illustration of the app. */
.gh-lot {
	background: var(--wp--preset--color--navy);
	border-radius: var(--gh-radius);
	box-shadow: var(--gh-shadow);
	color: var(--wp--preset--color--foam);
	padding: var(--wp--preset--spacing--40);
}

.gh-lot p {
	margin: 0;
}

.gh-lot .gh-lot-number {
	color: var(--wp--preset--color--sea);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.gh-lot .gh-lot-title {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	margin-block: 0.3rem 1rem;
}

.gh-lot .gh-lot-result {
	border-top: 1px solid rgba(238, 246, 248, 0.2);
	display: flex;
	justify-content: space-between;
	padding-top: 0.8rem;
}

.gh-lot .gh-lot-price {
	color: var(--wp--preset--color--white);
	font-size: 1.6rem;
	font-weight: 700;
}

.gh-lot .gh-lot-sold {
	background: var(--wp--preset--color--sea);
	border-radius: 999px;
	color: var(--wp--preset--color--navy);
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-top: 0.9rem;
	padding: 0.2rem 0.75rem;
	text-transform: uppercase;
}

/* Note boxes. */
.gh-note {
	background: var(--wp--preset--color--foam);
	border-left: 4px solid var(--wp--preset--color--teal);
	border-radius: 0 var(--gh-radius) var(--gh-radius) 0;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

/* ---------------------------------------------------------------- footer */

.gh-footer {
	background:
		linear-gradient(170deg, var(--wp--preset--color--navy) 0%, #0A2846 100%);
	color: var(--wp--preset--color--foam);
}

.gh-footer a {
	color: var(--wp--preset--color--foam);
	text-decoration: none;
}

.gh-footer a:hover {
	color: var(--wp--preset--color--sea);
	text-decoration: underline;
}

.gh-footer .gh-brand {
	color: var(--wp--preset--color--white);
}

.gh-footer .gh-brand img {
	background: var(--wp--preset--color--white);
	border-radius: 10px;
	padding: 4px;
}

.gh-footer-fine {
	border-top: 1px solid rgba(238, 246, 248, 0.15);
	color: #B9CBD6;
	padding-top: var(--wp--preset--spacing--30);
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 781px) {
	.gh-header .wp-block-button__link {
		font-size: 0.85rem;
		padding: 0.4em 0.8em;
	}

	.gh-brand span {
		font-size: 1.15rem;
		white-space: nowrap;
	}

	.gh-hero-art img {
		max-width: 220px;
	}
}

@media (max-width: 600px) {
	/* "Get started" leads every hero; keep the header to one line. */
	.gh-header .wp-block-button:not(.is-style-outline) {
		display: none;
	}
}
