:root {
	--max-width: 1080px;
	--radius: 6px;
	--font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
}

/* Dark theme (default) */
:root,
[data-theme='dark'],
[data-theme='system'] {
	--bg: #12141a;
	--bg-elevated: #1a1d26;
	--bg-subtle: #22262f;
	--text: #e8e6e3;
	--text-muted: #a8a5a0;
	--accent: #c45c26;
	--accent-hover: #d9733d;
	--accent-muted: rgba(196, 92, 38, 0.18);
	--border: #2e333d;
}

/* Light theme */
[data-theme='light'] {
	--bg: #f5f5f5;
	--bg-elevated: #ffffff;
	--bg-subtle: #eeeeee;
	--text: #1a1a1a;
	--text-muted: #666666;
	--accent: #d16e2b;
	--accent-hover: #e8844d;
	--accent-muted: rgba(209, 110, 43, 0.12);
	--border: #d9d9d9;
}

/* System preference support */
@media (prefers-color-scheme: dark) {
	[data-theme='system'] {
		--bg: #12141a;
		--bg-elevated: #1a1d26;
		--bg-subtle: #22262f;
		--text: #e8e6e3;
		--text-muted: #a8a5a0;
		--accent: #c45c26;
		--accent-hover: #d9733d;
		--accent-muted: rgba(196, 92, 38, 0.18);
		--border: #2e333d;
	}
}

@media (prefers-color-scheme: light) {
	[data-theme='system'] {
		--bg: #f5f5f5;
		--bg-elevated: #ffffff;
		--bg-subtle: #eeeeee;
		--text: #1a1a1a;
		--text-muted: #666666;
		--accent: #d16e2b;
		--accent-hover: #e8844d;
		--accent-muted: rgba(209, 110, 43, 0.12);
		--border: #d9d9d9;
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
	color: var(--accent-hover);
}

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

.container {
	width: min(100% - 2.5rem, var(--max-width));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--accent);
	color: var(--bg);
	font-weight: 600;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(8px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1rem;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.brand:hover,
.brand:focus-visible {
	color: var(--text);
}

.brand-mark {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-muted);
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--text);
}

.nav-cta {
	color: var(--accent) !important;
}

.menu-toggle {
	display: none;
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
	padding: 0.45rem 0.85rem;
	border-radius: var(--radius);
	font: inherit;
	cursor: pointer;
}

.mobile-nav {
	border-top: 1px solid var(--border);
	background: var(--bg-elevated);
}

.mobile-nav[hidden] {
	display: none;
}

.mobile-nav ul {
	margin: 0;
	padding: 0.75rem 0 1rem;
	list-style: none;
}

.mobile-nav a {
	display: block;
	padding: 0.65rem 1.25rem;
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
	color: var(--text);
	background: var(--bg-subtle);
}

/* Hero */

.hero {
	padding: 6.5rem 0 5.5rem;
	border-bottom: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(196, 92, 38, 0.06) 0%, transparent 42%), var(--bg);
}

.hero-inner {
	max-width: 42rem;
}

.eyebrow {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.hero h1 {
	margin: 0 0 1.25rem;
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4.5vw, 3.1rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--text);
}

.hero-lead {
	margin: 0 0 2rem;
	font-size: 1.125rem;
	color: var(--text-muted);
	max-width: 36rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.35rem;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.button-primary {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	color: #fff;
}

.button-secondary {
	background: transparent;
	color: var(--text);
	border-color: var(--border);
}

.button-secondary:hover,
.button-secondary:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

/* Sections */

.section {
	padding: 5rem 0;
}

.section-grid {
	display: grid;
	grid-template-columns: minmax(10rem, 14rem) 1fr;
	gap: 2.5rem;
	align-items: start;
}

.section-intro h2,
.centered h2 {
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 600;
	color: var(--text);
}

.centered {
	text-align: center;
	max-width: 34rem;
	margin-inline: auto;
}

.section-rule {
	width: 2.5rem;
	height: 2px;
	margin-top: 1rem;
	background: var(--accent);
}

.centered .section-rule {
	margin-inline: auto;
}

.section-subtitle {
	margin: 1.25rem 0 0;
	color: var(--text-muted);
}

.section-body p {
	margin: 0 0 1.1rem;
	color: var(--text-muted);
}

.section-body p:last-child {
	margin-bottom: 0;
}

.section-body strong {
	color: var(--text);
	font-weight: 600;
}

.about {
	background: var(--bg-elevated);
	border-block: 1px solid var(--border);
}

/* Focus cards */

.focus-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 2.75rem 0 0;
	padding: 0;
	list-style: none;
}

.focus-card {
	padding: 1.5rem;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-top: 2px solid var(--accent);
	border-radius: var(--radius);
}

.focus-card h3 {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text);
}

.focus-card p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--text-muted);
}

/* CTA */

.cta {
	background:
		linear-gradient(0deg, rgba(196, 92, 38, 0.08), rgba(196, 92, 38, 0.08)), var(--bg-subtle);
	border-top: 1px solid var(--border);
}

.cta-inner {
	text-align: center;
	max-width: 36rem;
}

.cta h2 {
	margin: 0 0 0.85rem;
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
}

.cta p {
	margin: 0 0 1.75rem;
	color: var(--text-muted);
}

/* Footer */

.site-footer {
	padding: 2rem 0 2.5rem;
	border-top: 1px solid var(--border);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.footer-inner p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.footer-links {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Theme Toggle */

.theme-toggle {
	position: relative;
	display: inline-block;
}

.theme-button {
	background: var(--color-bg-secondary, var(--bg-elevated));
	border: 1px solid var(--color-border, var(--border));
	color: var(--color-text, var(--text));
	padding: 8px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	width: 40px;
	height: 40px;
}

.theme-button:hover {
	background: var(--color-bg-hover, var(--bg-subtle));
	border-color: var(--color-accent, var(--accent));
	transform: translateY(-1px);
}

.theme-button:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--color-accent, var(--accent));
}

.theme-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 8px;
	background: var(--color-bg-secondary, var(--bg-elevated));
	border: 1px solid var(--color-border, var(--border));
	border-radius: 8px;
	box-shadow: 0 4px 12px var(--color-shadow, var(--accent-muted));
	z-index: 1000;
	min-width: 120px;
	overflow: hidden;
}

.theme-option {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	background: none;
	border: none;
	color: var(--color-text, var(--text));
	cursor: pointer;
	transition: background-color 0.2s ease;
	text-align: left;
	font-size: 14px;
	font-family: var(--font-sans);
}

.theme-option:hover {
	background: var(--color-bg-hover, var(--bg-subtle));
}

.theme-option.active {
	background: var(--color-accent, var(--accent));
	color: var(--color-accent-text, #fff);
}

.theme-option:not(:last-child) {
	border-bottom: 1px solid var(--color-border, var(--border));
}

.footer-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: var(--accent);
}

/* Responsive */

@media (max-width: 860px) {
	.focus-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.site-nav {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.section-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.hero {
		padding: 4.5rem 0 4rem;
	}

	.section {
		padding: 3.75rem 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
