/**
 * Prototype base.
 *
 * The design prototypes carry their own reset and keyframes. The ported
 * templates keep their inline styles, so this supplies exactly the global
 * rules those styles were written against — nothing more.
 */

html {
	scroll-behavior: smooth;
	scroll-padding-top: clamp(80px, 8vw, 110px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #FCFBF8;
	color: #2E2E2E;
	font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a {
	color: #173A34;
	text-decoration: none;
}

a:hover {
	color: #B08A52;
}

::selection {
	background: #EAE4DA;
	color: #173A34;
}

input,
button,
select,
textarea {
	font: inherit;
}

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

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

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

[hidden] {
	display: none !important;
}

@keyframes soummFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes soummSpin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* Focus stays visible for keyboard users; the prototypes relied on the UA
   default, which the reset above would otherwise weaken. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid #B08A52;
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	clip-path: none;
	width: auto;
	height: auto;
	padding: 12px 20px;
	background: #173A34;
	color: #FCFBF8;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

@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;
	}
}
