/* ============================================================
   Maguska — base / reset / elements
   ============================================================ */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

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

a {
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(31, 92, 67, .4);
	transition: color .18s ease, text-decoration-color .18s ease;
}
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.3em; }

strong, b { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--space-lg) 0; }

blockquote {
	margin: 0 0 1em;
	padding-left: 1rem;
	border-left: 3px solid var(--gold);
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: var(--ink);
}

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

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

.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; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: var(--paper);
	padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-btn) 0;
	text-decoration: none;
}
.skip-link:focus { left: 0; }

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