:root {
    color-scheme: dark;
    --bg: #0a0a09;
    --bg-deep: #050505;
    --surface: #10100e;
    --surface-raised: #151512;
    --text: #f2efe7;
    --text-soft: #b8b3a8;
    --text-faint: #8c877d;
    --line: #292824;
    --line-strong: #454239;
    --accent: #e9b949;
    --accent-soft: #8e6b24;
    --danger: #d66b4b;
    --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --body: "Segoe UI Variable Text", "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --content: 88rem;
    --gutter: clamp(1.2rem, 4vw, 4rem);
    --space-1: 0.5rem;
    --space-2: 0.85rem;
    --space-3: 1.25rem;
    --space-4: 2rem;
    --space-5: 3.25rem;
    --space-6: 5rem;
    --space-7: 8rem;
    --space-8: 12rem;
}

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

html {
    background: var(--bg-deep);
    scroll-behavior: smooth;
    scrollbar-color: var(--accent-soft) var(--bg-deep);
}

body {
    margin: 0;
    min-width: 18rem;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: clamp(1rem, 0.96rem + 0.16vw, 1.125rem);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--accent-soft); text-underline-offset: 0.25em; }
a:hover { color: var(--accent); }

button, input { font: inherit; }
button { color: inherit; }

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

::selection { background: var(--accent); color: var(--bg-deep); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.94;
    text-transform: uppercase;
}

.skip-link {
    position: fixed;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    transform: translateY(-180%);
    background: var(--accent);
    color: var(--bg-deep);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.skip-link:focus { transform: translateY(0); }

.section-index,
.eyebrow {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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