:root {
	--radius: 0rem;

	--font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;

	--background: oklch(0.98 0.006 90);
	--foreground: oklch(0.15 0 0);
	--surface: oklch(1 0 0);
	--card: oklch(1 0 0);
	--card-foreground: oklch(0.15 0 0);

	--primary: oklch(0.61 0.242 28.5);
	--primary-foreground: oklch(0.99 0 0);
	--secondary: oklch(0.68 0.29 341);
	--secondary-foreground: oklch(0.15 0 0);
	--muted: oklch(0.95 0.004 90);
	--muted-foreground: oklch(0.45 0.01 90);
	--mint: oklch(0.83 0.09 165);
	--mint-foreground: oklch(0.15 0 0);
	--acid: oklch(0.86 0.24 135);
	--acid-foreground: oklch(0.15 0 0);
	--violet: oklch(0.55 0.26 288);
	--violet-foreground: oklch(0.99 0 0);
	--accent: oklch(0.68 0.29 341);
	--accent-foreground: oklch(0.15 0 0);

	--border: oklch(0.15 0 0);

	--shadow-brutal: 6px 6px 0 var(--foreground);
	--shadow-brutal-sm: 3px 3px 0 var(--foreground);
	--gradient-glitch: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 33%, var(--acid) 66%, var(--violet) 100%);
}

html.a11y-contrast {
	--background: #000000;
	--foreground: #ffff00;
	--surface: #000000;
	--card: #000000;
	--card-foreground: #ffff00;
	--primary: #ffff00;
	--primary-foreground: #000000;
	--secondary: #ffff00;
	--secondary-foreground: #000000;
	--muted: #000000;
	--muted-foreground: #ffff00;
	--mint: #ffff00;
	--mint-foreground: #000000;
	--acid: #ffff00;
	--acid-foreground: #000000;
	--violet: #000000;
	--violet-foreground: #ffff00;
	--accent: #ffff00;
	--accent-foreground: #000000;
	--border: #ffff00;
}
html.a11y-contrast img:not(#a11y-toggle img):not(.site-logo-contrast) {
	filter: grayscale(1) contrast(1.4);
}

.site-logo-contrast {
	display: none;
}
html.a11y-contrast .site-logo-default {
	display: none;
}
html.a11y-contrast .site-logo-contrast {
	display: inline-block;
}
html.a11y-contrast .partner-logo-card {
	background: #ffffff;
}
html.a11y-contrast .partner-logo-card img {
	filter: none;
}

html.a11y-spread body {
	letter-spacing: 0.06em;
	word-spacing: 0.15em;
}

#a11y-toggle,
.a11y-action,
#mobile-menu-btn {
	cursor: pointer;
}

* {
	border-color: var(--border);
}

#site-footer .border-t {
	border-top-color: color-mix(in oklab, var(--background) 20%, transparent);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-display);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--font-mono);
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

#site-header.is-scrolled {
	background-color: color-mix(in oklab, var(--background) 95%, transparent);
	backdrop-filter: blur(8px);
}

.transition-transform {
	transition-property: transform, translate, scale, rotate, box-shadow;
}

.entry-content {
	color: var(--muted-foreground);
	font-size: 1rem;
	line-height: 1.75;
}
@media (min-width: 640px) {
	.entry-content {
		font-size: 1.125rem;
	}
}
.entry-content > * + * {
	margin-top: 1.25em;
}
.entry-content h2, .entry-content h3 {
	display: block;
	width: fit-content;
	margin-top: 1.5em !important;
	margin-bottom: 0.6em;
	color: var(--foreground);
}
.entry-content h2 {
	background: var(--acid);
	color: var(--acid-foreground);
	padding: 0.15em 0.5em;
}
.entry-content h3 {
	background: var(--muted);
	padding: 0.1em 0.4em;
}
.entry-content a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.entry-content strong {
	color: var(--foreground);
	font-weight: 700;
}
.entry-content ul, .entry-content ol {
	padding-left: 1.375em;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content img {
	margin-top: 1.5em;
	border: 2px solid var(--border);
}

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

.skip-link.screen-reader-text {
	position: fixed;
	top: 0;
	left: 50%;
	z-index: 100;
	padding: 0.75rem 1.5rem;
	background: var(--foreground);
	color: var(--background);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	white-space: nowrap;
	transform: translate(-50%, -150%);
	transition: transform 0.2s ease;
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	overflow: visible;
	margin: 0;
}
.skip-link.screen-reader-text:focus {
	transform: translate(-50%, 0.75rem);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
}

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

.reveal {
	opacity: 0;
	filter: blur(2px);
	transform: translateY(40px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.7s ease-out;
	will-change: opacity, transform;
}
.reveal.in-view {
	opacity: 1;
	filter: blur(0);
	transform: none;
}
.reveal.in-view:hover {
	transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease, filter 150ms ease;
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.95); }
.reveal.in-view.reveal-left,
.reveal.in-view.reveal-right,
.reveal.in-view.reveal-scale {
	transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; filter: none; transform: none; transition: none; }
}

[data-nav-item] {
	position: relative;
	display: inline-block;
}
.nav-dropdown {
	flex-direction: column;
}
.nav-dropdown-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 0.25rem;
	cursor: pointer;
}
.nav-dropdown-link {
	display: block;
	color: var(--muted-foreground);
}
.nav-dropdown-link:hover {
	color: var(--foreground);
}

@media (max-width: 1023.98px) {
	.nav-dropdown {
		display: none;
		margin-top: 0.5rem;
		padding-left: 1rem;
		gap: 0.5rem;
	}
}

@media (min-width: 1024px) {
	.nav-dropdown {
		display: flex;
		position: absolute;
		left: 0;
		top: 100%;
		z-index: 20;
		min-width: 12rem;
		gap: 0.25rem;
		padding: 0.5rem;
		border: 2px solid var(--border);
		background: var(--surface);
		box-shadow: var(--shadow-brutal-sm);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.2s ease, visibility 0.2s;
	}
	.nav-dropdown-link {
		padding: 0.5rem 0.75rem;
		font-family: var(--font-mono);
		font-size: 0.75rem;
		text-transform: uppercase;
	}
	[data-nav-item]:hover > .nav-dropdown,
	[data-nav-item].is-expanded > .nav-dropdown {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}
