/* Self-hosted variable fonts — no runtime CDN request. */
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('../fonts/fraunces-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter.woff2') format('woff2');
}
@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/jetbrains-mono.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, dl, dd, figure, blockquote, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

::selection { background-color: var(--galas); color: #fff; }

[id] { scroll-margin-top: 5.5rem; }

:focus-visible { outline: 2px solid var(--galas); outline-offset: 2px; }

.container {
	max-width: var(--max-width);
	margin-inline: auto;
	width: 100%;
	padding-inline: var(--pad-x);
}

.font-display {
	font-family: var(--font-display);
	font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 48;
}
.tnum { font-variant-numeric: tabular-nums; }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--galas);
}
.eyebrow--paper { color: var(--galas-bright); }
.eyebrow__rule {
	display: inline-block;
	height: 1px;
	width: 2rem;
	background: currentColor;
}

.dropcap::first-letter {
	font-family: var(--font-display);
	font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 144;
	font-weight: 600;
	float: left;
	font-size: 3.9em;
	line-height: 0.82;
	padding-right: 0.09em;
	padding-top: 0.06em;
	color: var(--galas);
}

.paper-grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(circle at 1px 1px, rgba(12, 35, 64, 0.055) 1px, transparent 0);
	background-size: 4px 4px;
	mix-blend-mode: soft-light;
}

/* Scroll-reveal: JS toggles [data-visible] via IntersectionObserver. */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 620ms var(--ease-out-expo), transform 620ms var(--ease-out-expo);
	transition-delay: var(--reveal-delay, 0ms);
}
.reveal[data-visible='true'] { opacity: 1; transform: none; }

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 3.25rem;
	padding-inline: 1.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background-color 200ms, color 200ms, border-color 200ms;
	border: 1px solid transparent;
}
.btn-primary { background: var(--galas); color: #fff; }
.btn-primary:hover { background: var(--galas-bright); color: var(--ink); }
.btn-outline-dark { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-outline-dark:hover { border-color: var(--galas); background: var(--galas); }
.btn-outline-paper { border-color: rgba(255, 255, 255, 0.3); color: var(--paper); }
.btn-outline-paper:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus-visible {
	position: fixed;
	top: 1rem; left: 1rem;
	width: auto; height: auto;
	clip: auto;
	z-index: 100;
	background: var(--paper);
	color: var(--ink);
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.icon { flex-shrink: 0; }
