/* Base: reset, type, browser surfaces */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 64px);
	scrollbar-color: var(--ink-4) var(--ink);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-variant-numeric: lining-nums;
}

::selection {
	background: var(--gold);
	color: var(--ink);
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: var(--ink);
}

::-webkit-scrollbar-thumb {
	background: var(--ink-4);
	border: 2px solid var(--ink);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--gold-deep);
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-wrap: balance;
	color: var(--text);
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--gold-soft);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color 0.25s var(--ease);
}

a:hover {
	color: var(--gold-hi);
}

:focus-visible {
	outline: 2px solid var(--gold-hi);
	outline-offset: 3px;
}

input,
select,
textarea,
button {
	font: inherit;
	color: inherit;
	caret-color: var(--gold);
}

button {
	cursor: pointer;
}

address {
	font-style: normal;
}

abbr[title] {
	text-decoration: none;
}

table {
	border-collapse: collapse;
}

ul,
ol {
	padding-left: 1.2em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--gold);
	color: var(--ink);
	font-weight: 600;
}

.skip-link:focus {
	top: 16px;
}

/* Type helpers */

.h2 {
	font-size: var(--fs-h2);
}

.h3 {
	font-size: var(--fs-h3);
}

.h4 {
	font-size: var(--fs-h4);
	letter-spacing: 0.04em;
}

.script {
	font-family: var(--font-script);
	font-weight: 400;
	line-height: 1.2;
}

.section-lead,
.page-lead,
.hero-lead {
	font-size: var(--fs-lg);
	color: var(--text-muted);
	font-weight: 300;
	max-width: 56ch;
}

/* Layout primitives */

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

.wrap-narrow {
	max-width: calc(760px + var(--gutter) * 2);
}

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

.section-head {
	margin-bottom: clamp(32px, 5vw, 56px);
	max-width: 760px;
}

.section-head .h2 + .section-lead,
.h2 + .section-lead {
	margin-top: 16px;
}

.cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* WordPress core bits */

.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
figcaption {
	font-size: var(--fs-sm);
	color: var(--text-dim);
	margin-top: 8px;
}
