/**
 * Base - reset, typography, forms, accessibility.
 */

*, *::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;
	font-family: var(--bp-font);
	font-size: var(--bp-text-base);
	line-height: var(--bp-leading-normal);
	color: var(--bp-text);
	background: var(--bp-canvas);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--bp-s4);
	color: var(--bp-navy);
	font-weight: 700;
	line-height: var(--bp-leading-tight);
	overflow-wrap: break-word;
}
h1 { font-size: var(--bp-text-3xl); }
h2 { font-size: var(--bp-text-2xl); }
h3 { font-size: var(--bp-text-xl); }
h4 { font-size: var(--bp-text-lg); }
h5, h6 { font-size: var(--bp-text-base); }

p { margin: 0 0 var(--bp-s4); }
p:last-child { margin-bottom: 0; }

a {
	color: var(--bp-royal);
	text-decoration: none;
	transition: color var(--bp-fast) var(--bp-ease);
}
a:hover { color: var(--bp-royal-deep); }

ul, ol { margin: 0 0 var(--bp-s4); padding-left: 1.25em; }
li { margin-bottom: var(--bp-s1); }

blockquote {
	margin: var(--bp-s5) 0;
	padding: var(--bp-s4) var(--bp-s5);
	border-left: 4px solid var(--bp-royal);
	background: var(--bp-royal-soft);
	border-radius: 0 var(--bp-radius-sm) var(--bp-radius-sm) 0;
	color: var(--bp-text-soft);
}
blockquote p:last-child { margin-bottom: 0; }

hr {
	border: 0;
	border-top: 1px solid var(--bp-border);
	margin: var(--bp-s6) 0;
}

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}
code {
	background: var(--bp-royal-soft);
	color: var(--bp-navy);
	padding: 0.15em 0.4em;
	border-radius: 4px;
}
pre {
	background: var(--bp-ink);
	color: #d6dcf5;
	padding: var(--bp-s4) var(--bp-s5);
	border-radius: var(--bp-radius-sm);
	overflow-x: auto;
}
pre code { background: none; color: inherit; padding: 0; }

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 var(--bp-s5);
	font-size: var(--bp-text-sm);
}
th, td {
	text-align: left;
	padding: var(--bp-s3) var(--bp-s4);
	border-bottom: 1px solid var(--bp-border);
}
th { color: var(--bp-navy); font-weight: 600; }

/* Forms */
input[type='text'], input[type='email'], input[type='url'], input[type='tel'],
input[type='number'], input[type='search'], input[type='password'],
textarea, select {
	font-family: inherit;
	font-size: var(--bp-text-sm);
	color: var(--bp-text);
	background: var(--bp-white);
	border: 1px solid var(--bp-border-strong);
	border-radius: var(--bp-radius-sm);
	padding: 10px 14px;
	width: 100%;
	transition: border-color var(--bp-fast) var(--bp-ease),
		box-shadow var(--bp-fast) var(--bp-ease);
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--bp-royal);
	box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.18);
}
label { font-size: var(--bp-text-sm); font-weight: 500; color: var(--bp-navy); }

button { font-family: inherit; cursor: pointer; }

/* Accessibility */
:focus-visible {
	outline: 3px solid var(--bp-royal);
	outline-offset: 2px;
	border-radius: 4px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--bp-navy);
	color: var(--bp-white);
	padding: var(--bp-s3) var(--bp-s5);
	border-radius: 0 0 var(--bp-radius-sm) 0;
	font-weight: 600;
}
.skip-link:focus {
	left: 0;
	color: var(--bp-white);
}

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

/* WordPress core alignment + caption classes */
.alignleft { float: left; margin: 0 var(--bp-s5) var(--bp-s4) 0; }
.alignright { float: right; margin: 0 0 var(--bp-s4) var(--bp-s5); }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { margin-left: calc(-1 * var(--bp-s6)); margin-right: calc(-1 * var(--bp-s6)); max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
	font-size: var(--bp-text-xs);
	color: var(--bp-muted);
	text-align: center;
	padding-top: var(--bp-s2);
}
.wp-block-image img { border-radius: var(--bp-radius-sm); }

@media (max-width: 640px) {
	.alignleft, .alignright { float: none; margin: 0 0 var(--bp-s4); }
	h1 { font-size: var(--bp-text-2xl); }
	h2 { font-size: var(--bp-text-xl); }
}
