/* Reset, typography, focus, reveal animation. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 0.2em; }
a:hover { color: #FFFFFF; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: -0.005em; }
h1 { font-size: clamp(44px, 6vw, 80px); }
h2 { font-size: clamp(40px, 4.4vw, 60px); }
h3 { font-size: clamp(26px, 2.4vw, 34px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
::selection { background: var(--accent); color: #FFFFFF; }

.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: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--bg); }

/* .reveal-ready is set by main.js itself, so content stays visible if the script is delayed or blocked. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
