/* Base elements, layout helpers, buttons, accent words. */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent);
}

a:hover {
	color: var(--accent-hover);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	font-weight: 600;
	margin: 0;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.g4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 760px) {
	.split {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.g4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

.muted {
	color: var(--muted);
}

/* Accent words: *green* and _gold_ Fraunces italic. */
.accent {
	font-family: var(--font-accent);
	font-style: italic;
	font-weight: 300;
	font-optical-sizing: auto;
	color: var(--accent);
}

.accent--gold {
	color: var(--gold);
}

.eyebrow {
	color: var(--gold);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.eyebrow--small {
	font-size: 13px;
}

.btn {
	display: inline-block;
	padding: 15px 26px;
	border-radius: var(--radius-pill);
	border: 0;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.5;
}

.btn--primary {
	background: var(--accent);
	color: var(--accent-ink);
}

.btn--primary:hover {
	background: var(--accent-hover);
	color: var(--accent-ink);
}

.btn--ghost {
	color: var(--text);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn--ghost:hover {
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.4);
}

.btn--gold {
	background: var(--gold);
	color: var(--gold-ink);
}

.btn--gold:hover {
	background: #f3c46c;
	color: var(--gold-ink);
}

.btn-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 10px 16px;
	border-radius: var(--radius-pill);
	font-weight: 600;
}

.skip-link:focus {
	top: 12px;
}

/* Plain pages until their own templates arrive. ("page" is a WordPress body class, so not used here.) */
.basic-page {
	padding-top: 56px;
	padding-bottom: 72px;
}

.basic-page__title {
	font-size: clamp(36px, 5.4vw, 54px);
	line-height: 1;
	letter-spacing: -0.045em;
	margin: 8px 0 24px;
}

/* Hidden until GSAP sets the start state (see inc/assets.php). */
.nb-preload .site-header,
.nb-preload .hero > *,
.nb-preload .pdp > * {
	visibility: hidden;
}
