/* ==========================================================================
   SBCA — base: fonts, reset, typography, forms, utilities
   ========================================================================== */

/* --- Fonts (self-hosted; no third-party request is ever made) ---------- */

/* Archivo — variable, with a width axis. Condensed at display sizes. */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("../fonts/archivo-latin.woff2") format("woff2-variations"),
		url("../fonts/archivo-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"),
		url("../fonts/archivo-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2-variations"),
		url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin-ext.woff2") format("woff2-variations"),
		url("../fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Newsreader — reserved for long-form reading and pull quotes. */
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/newsreader-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/newsreader-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Reset ------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--sbca-paper);
	color: var(--sbca-text);
	text-rendering: optimizeLegibility;
	font-family: var(--sbca-font-text);
	font-size: var(--sbca-text-size);
	line-height: var(--sbca-text-lh);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
	margin: 0;
}

ul, ol {
	padding: 0;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

hr {
	border: 0;
	border-top: 1px solid var(--sbca-rule);
	margin: var(--sbca-space-6) 0;
}

/* --- Type -------------------------------------------------------------- */

h1, h2, h3 {
	font-family: var(--sbca-font-display);
	font-weight: var(--sbca-display-weight);
	font-stretch: var(--sbca-display-stretch);
	color: var(--sbca-ink);
	text-wrap: balance;
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(2.125rem, 4.4vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.022em;
}

h2 {
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	line-height: 1.14;
	letter-spacing: -0.016em;
}

h3 {
	font-size: 1.3125rem;
	line-height: 1.28;
	font-weight: 600;
	font-stretch: 100%;
}

h4, h5, h6 {
	font-family: var(--sbca-font-text);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--sbca-ink);
}

/* The uppercase treatment is reserved for short labels and eyebrows, where
   it is an institutional convention rather than a stylistic tic. */
.sbca-label {
	font-family: var(--sbca-font-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sbca-slate);
}

a {
	color: var(--sbca-civic);
	text-decoration: none;
	transition: color var(--sbca-transition);
}

a:hover,
a:focus {
	color: var(--sbca-civic-deep);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--sbca-civic);
	outline-offset: 2px;
	border-radius: 0;
}

/* On ink surfaces, focus must invert to stay visible. */
.sbca-masthead a:focus-visible,
.sbca-band a:focus-visible,
.sbca-footer a:focus-visible {
	outline-color: var(--sbca-paper);
}

::selection {
	background-color: var(--sbca-civic);
	color: var(--sbca-white);
}

strong, b {
	font-weight: 600;
}

small {
	font-size: 0.9375rem;
}

/* --- Accessibility ----------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--sbca-surface);
	box-shadow: 0 0 0 2px var(--sbca-civic);
	clip: auto !important;
	clip-path: none;
	color: var(--sbca-ink);
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	height: auto;
	left: var(--sbca-space-4);
	line-height: normal;
	padding: var(--sbca-space-3) var(--sbca-space-4);
	text-decoration: none;
	top: var(--sbca-space-4);
	width: auto;
	z-index: 200;
}

.skip-link {
	position: absolute;
	left: -9999px;
}

/* --- Forms ------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 0.7rem 0.85rem;
	background-color: var(--sbca-surface);
	color: var(--sbca-text);
	border: 1px solid var(--sbca-rule-strong);
	border-radius: var(--sbca-radius);
	font-family: var(--sbca-font-text);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color var(--sbca-transition);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--sbca-civic);
	box-shadow: 0 0 0 3px rgba(6, 85, 156, 0.14);
}

label {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--sbca-ink);
	display: inline-block;
	margin-bottom: var(--sbca-space-1);
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.sbca-btn {
	appearance: none;
	display: inline-block;
	padding: 0.7rem 1.4rem;
	background-color: var(--sbca-civic);
	color: var(--sbca-white);
	border: 1px solid var(--sbca-civic);
	border-radius: var(--sbca-radius);
	font-family: var(--sbca-font-text);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--sbca-transition), border-color var(--sbca-transition), color var(--sbca-transition);
}

button:hover,
input[type="submit"]:hover,
.sbca-btn:hover,
button:focus,
input[type="submit"]:focus,
.sbca-btn:focus {
	background-color: var(--sbca-civic-deep);
	border-color: var(--sbca-civic-deep);
	color: var(--sbca-white);
	text-decoration: none;
}

button:active,
input[type="submit"]:active {
	background-color: var(--sbca-ink);
	border-color: var(--sbca-ink);
}

button:disabled,
input[type="submit"]:disabled {
	background-color: var(--sbca-rule);
	border-color: var(--sbca-rule);
	color: var(--sbca-slate);
	cursor: not-allowed;
}

textarea {
	resize: vertical;
}

/* --- Tables ------------------------------------------------------------ */

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

th, td {
	text-align: left;
	padding: var(--sbca-space-3) var(--sbca-space-4);
	border-bottom: 1px solid var(--sbca-rule);
}

th {
	font-weight: 600;
	color: var(--sbca-ink);
}

/* --- Media ------------------------------------------------------------- */

figure {
	margin: var(--sbca-space-6) 0;
}

figcaption {
	margin-top: var(--sbca-space-2);
	font-size: 0.875rem;
	color: var(--sbca-slate);
}

.wp-caption {
	max-width: 100%;
}

.alignleft {
	float: left;
	margin: 0 var(--sbca-space-5) var(--sbca-space-4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--sbca-space-4) var(--sbca-space-5);
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
}

@media (max-width: 600px) {
	.alignleft,
	.alignright {
		float: none;
		margin-left: 0;
		margin-right: 0;
	}
}

/* --- Utilities --------------------------------------------------------- */

.sbca-mono {
	font-family: var(--sbca-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

.sbca-eyebrow {
	font-family: var(--sbca-font-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sbca-slate);
	margin: 0 0 var(--sbca-space-3);
}

.sbca-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
