/* Aureole — design tokens & base system. */

:root {
	--ink: #0f0c11;
	--ink-2: #171219;
	--ink-3: #1f1822;
	--paper: #f4ede1;
	--paper-dim: #c7b9a8;
	--paper-faint: #8d8074;
	--gold: #b6924f;
	--gold-bright: #e2c07f;
	--sapphire: #6f93c4;
	--emerald: #6fa084;
	--line: rgba(244, 237, 225, 0.14);
	--line-strong: rgba(244, 237, 225, 0.26);

	--font-display: 'Italiana', 'Times New Roman', serif;
	--font-body: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'Space Mono', 'Courier New', monospace;

	--fs-00: 0.75rem;
	--fs-0: 1rem;
	--fs-1: 1.333rem;
	--fs-2: 1.777rem;
	--fs-3: 2.369rem;
	--fs-4: 3.157rem;
	--fs-5: 4.209rem;
	--fs-6: 5.61rem;

	--sp-1: 0.5rem;
	--sp-2: 1rem;
	--sp-3: 1.5rem;
	--sp-4: 2rem;
	--sp-5: 3rem;
	--sp-6: 4.5rem;
	--sp-7: 6.5rem;
	--sp-8: 9rem;

	--dur-fast: 220ms;
	--dur-med: 500ms;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in: cubic-bezier(0.7, 0, 0.84, 0);

	--radius: 2px;
	--radius-glass: 14px;
	--wrap: 78rem;

	--glass-bg: linear-gradient(155deg, rgba(244, 237, 225, 0.09), rgba(182, 146, 79, 0.05) 55%, rgba(15, 12, 17, 0) 100%), rgba(23, 18, 25, 0.58);
	--glass-border: rgba(226, 192, 127, 0.30);
	--glass-border-soft: rgba(244, 237, 225, 0.12);
	--glow-gold: rgba(182, 146, 79, 0.22);
	--glow-gold-strong: rgba(226, 192, 127, 0.4);
}

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

body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: var(--fs-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.08;
	margin: 0;
	text-wrap: balance;
}

.au-eyebrow {
	font-family: var(--font-mono);
	font-size: var(--fs-00);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
}

.au-wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--sp-4);
}

@media (max-width: 640px) {
	.au-wrap { padding: 0 var(--sp-3); }
}

/* -------------------------------------------------------------- halo canvas */

.au-halo-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.au-front > *:not(.au-halo-canvas) { position: relative; z-index: 1; }

/* -------------------------------------------------------------- liquid glass */

.au-glass {
	position: relative;
	background: var(--glass-bg);
	backdrop-filter: blur(20px) saturate(150%);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	border: 1px solid var(--glass-border-soft);
	border-radius: var(--radius-glass);
	box-shadow:
		inset 0 1px 0 rgba(244, 237, 225, 0.10),
		inset 0 0 42px rgba(182, 146, 79, 0.06),
		0 24px 44px -28px rgba(0, 0, 0, 0.65);
	transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.au-glass::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(155deg, rgba(226, 192, 127, 0.55), rgba(226, 192, 127, 0) 45%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.au-glass:hover, .au-glass:focus-within {
	border-color: var(--glass-border);
	box-shadow:
		inset 0 1px 0 rgba(244, 237, 225, 0.14),
		inset 0 0 56px rgba(182, 146, 79, 0.11),
		0 28px 52px -24px rgba(0, 0, 0, 0.7),
		0 0 32px -6px var(--glow-gold);
}
.au-accent-sapphire.au-glass:hover { box-shadow: inset 0 1px 0 rgba(244, 237, 225, 0.14), inset 0 0 56px rgba(111, 147, 196, 0.14), 0 28px 52px -24px rgba(0, 0, 0, 0.7), 0 0 32px -6px rgba(111, 147, 196, 0.35); }
.au-accent-emerald.au-glass:hover { box-shadow: inset 0 1px 0 rgba(244, 237, 225, 0.14), inset 0 0 56px rgba(111, 160, 132, 0.14), 0 28px 52px -24px rgba(0, 0, 0, 0.7), 0 0 32px -6px rgba(111, 160, 132, 0.35); }

/* -------------------------------------------------------------- header */

.au-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(15, 12, 17, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.au-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding: var(--sp-3) 0;
}

.au-wordmark {
	font-family: var(--font-display);
	font-size: var(--fs-2);
	letter-spacing: 0.04em;
}

.au-wordmark small {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	letter-spacing: 0.24em;
	color: var(--paper-faint);
	text-transform: uppercase;
	margin-top: 0.2em;
}

.au-nav { display: flex; align-items: center; gap: var(--sp-5); }
.au-nav ul { display: flex; gap: var(--sp-4); }
.au-nav a {
	font-size: var(--fs-00);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--paper-dim);
	transition: color var(--dur-fast) var(--ease-out);
	padding-bottom: 3px;
	border-bottom: 1px solid transparent;
}
.au-nav a:hover, .au-nav a:focus-visible { color: var(--gold-bright); border-color: var(--gold); }

.au-nav-toggle { display: none; }

@media (max-width: 900px) {
	.au-nav ul { display: none; }
	.au-nav-toggle { display: inline-flex; }
}

.au-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.6em;
	font-size: var(--fs-00);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1px solid var(--gold);
	background: rgba(182, 146, 79, 0.07);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--gold-bright);
	transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.au-btn:hover, .au-btn:focus-visible { background: var(--gold); color: var(--ink); box-shadow: 0 0 26px -4px var(--glow-gold-strong); }
.au-btn.au-btn-solid {
	background: linear-gradient(155deg, var(--gold-bright), var(--gold));
	color: var(--ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -6px 10px -4px rgba(0, 0, 0, 0.25), 0 0 24px -6px var(--glow-gold-strong);
}
.au-btn.au-btn-solid:hover {
	background: linear-gradient(155deg, #f0d49a, var(--gold-bright));
	border-color: var(--gold-bright);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -6px 10px -4px rgba(0, 0, 0, 0.2), 0 0 34px -4px var(--glow-gold-strong);
}

/* -------------------------------------------------------------- footer */

.au-footer {
	border-top: 1px solid var(--line);
	padding: var(--sp-7) 0 var(--sp-4);
	background: var(--ink-2);
}

.au-footer-grid {
	display: grid;
	grid-template-columns: minmax(min(18rem, 100%), 1.3fr) repeat(3, minmax(min(10rem, 100%), 1fr));
	gap: var(--sp-5);
	padding-bottom: var(--sp-6);
	border-bottom: 1px solid var(--line);
}

.au-footer-grid h3 {
	font-family: var(--font-mono);
	font-size: var(--fs-00);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--paper-faint);
	margin-bottom: var(--sp-2);
}

.au-footer-grid a, .au-footer-grid li { color: var(--paper-dim); font-size: 0.9rem; line-height: 2; }
.au-footer-grid a:hover { color: var(--gold-bright); }

.au-footer-base {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--sp-2);
	padding-top: var(--sp-4);
	font-size: var(--fs-00);
	color: var(--paper-faint);
}

@media (max-width: 56rem) {
	.au-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 30rem) {
	.au-footer-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- breadcrumb */

.au-crumb { padding: var(--sp-3) 0; }
.au-crumb ol { display: flex; flex-wrap: wrap; gap: 0.5em; font-family: var(--font-mono); font-size: var(--fs-00); color: var(--paper-faint); }
.au-crumb li:not(:last-child)::after { content: '/'; margin-left: 0.5em; opacity: 0.5; }
.au-crumb a:hover { color: var(--gold-bright); }

/* -------------------------------------------------------------- spec table */

.au-specs { border-top: 1px solid var(--line); }
.au-specs dl { display: grid; grid-template-columns: 1fr; }
.au-specs .au-spec-row {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: var(--sp-3);
	padding: 0.9em 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.92rem;
}
.au-specs dt { color: var(--paper-faint); font-family: var(--font-mono); font-size: var(--fs-00); letter-spacing: 0.04em; }
.au-specs dd { margin: 0; color: var(--paper); }

@media (max-width: 560px) {
	.au-specs .au-spec-row { grid-template-columns: 1fr; gap: 0.25em; }
}

/* -------------------------------------------------------------- form */

.au-field { display: grid; gap: 0.4em; margin-bottom: var(--sp-3); }
.au-field label { font-family: var(--font-mono); font-size: var(--fs-00); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); }
.au-field input, .au-field textarea, .au-field select {
	background: rgba(23, 18, 25, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--line-strong);
	color: var(--paper);
	padding: 0.85em 1em;
	border-radius: 6px;
	transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.au-field input:focus, .au-field textarea:focus, .au-field select:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: inset 0 0 0 1px rgba(182, 146, 79, 0.25), 0 0 18px -6px var(--glow-gold);
}
.au-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.au-form-note { font-size: var(--fs-00); color: var(--paper-faint); margin-top: var(--sp-2); }
.au-form-note[data-state="ok"] { color: var(--emerald); }
.au-form-note[data-state="err"] { color: #c47b6b; }

/* -------------------------------------------------------------- utility */

.au-center { text-align: center; }
.au-max { max-width: 42rem; }
.au-gold { color: var(--gold-bright); }
.au-mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
