/**
 * Base / normalisation — Trammell, Adkins & Ward, P.C.
 *
 * BRIEF rule 5: "no CSS on raw tags". Tag selectors below are limited to
 * NORMALISATION ONLY (box model, inherited defaults, media behaviour) — the
 * unavoidable root-level setup that cannot be classed. No design decision is
 * expressed on a bare tag.
 *
 * The single sanctioned exception is `.wysiwyg *`, which rule 5 explicitly
 * allows because editor output cannot be given classes.
 */

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

/* --- Reset inherited spacing ------------------------------------------- */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

/* --- Document ----------------------------------------------------------- */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--clr-white);
	color: var(--clr-body-text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-regular);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* --- Media -------------------------------------------------------------- */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

/* --- Forms / interactive ------------------------------------------------ */
input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

/* --- Accessibility ------------------------------------------------------ */
:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 3px;
}

.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;
	top: -100px;
	left: var(--container-pad);
	z-index: 1000;
	padding: var(--sp-10) var(--sp-20);
	background-color: var(--clr-gold);
	color: var(--clr-white);
	font-weight: var(--fw-bold);
	transition: top var(--transition);
}

.skip-link:focus {
	top: var(--sp-10);
}

/* --- WYSIWYG ------------------------------------------------------------
 * The ONE place tag selectors are permitted (BRIEF rule 5), because ACF
 * WYSIWYG output cannot be given classes.
 * ------------------------------------------------------------------------ */
.wysiwyg > *:last-child {
	margin-bottom: 0;
}

.wysiwyg p {
	margin-bottom: var(--sp-20);
}

.wysiwyg a {
	color: var(--clr-gold);
	text-decoration: underline;
}

.wysiwyg a:hover,
.wysiwyg a:focus-visible {
	color: var(--clr-gold-light);
}

.wysiwyg strong,
.wysiwyg b {
	font-weight: var(--fw-bold);
}

.wysiwyg em,
.wysiwyg i {
	font-style: italic;
}

.wysiwyg ul,
.wysiwyg ol {
	margin: 0 0 var(--sp-20) var(--sp-20);
}

.wysiwyg ul {
	list-style: disc;
}

.wysiwyg ol {
	list-style: decimal;
}

.wysiwyg li {
	margin-bottom: var(--sp-7);
}
