@font-face {
    font-family: "Anonymous Pro";
    src: url("/fonts/AnonymousPro-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Anonymous Pro";
    src: url("/fonts/AnonymousPro-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #05070d;
    --panel: #070b13eb;
    --text: #d7e0ef;
    --muted: #8a99b1;
    --accent: #44bdff;
    --line: #233047;
    --gutter: clamp(1.25rem, 5vw, 6rem);
    --measure: 44rem;
    font-family: "Anonymous Pro", monospace;
    font-synthesis: none;
    font-size: 17px;
    line-height: 1.7;
    background: var(--bg);
    color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; isolation: isolate; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
a { color: inherit; }
button { font: inherit; }
button[hidden] { display: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #334b89; color: #f0f4ff; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .8rem 1rem; background: var(--panel); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.hero-art { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at 74% 43%, #14244855, transparent 62%), radial-gradient(ellipse at 92% 74%, #21113b38, transparent 48%), var(--bg); }
#domain-canvas { display: block; width: 100%; height: 100%; }

.header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.6rem var(--gutter); }
.wordmark { font-weight: 700; letter-spacing: .2em; text-decoration: none; }
.nav { display: flex; gap: 1.8rem; font-size: .9rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .nav-portal { color: var(--accent); }

.hero { min-height: calc(100svh - 5.5rem); display: flex; flex-direction: column; justify-content: center; padding: 2rem var(--gutter) 1.5rem; }
.hero-copy { max-width: var(--measure); }
h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); letter-spacing: .06em; line-height: 1.05; }
.hero-sub { margin-top: 1.2rem; font-size: 1.3rem; color: var(--text); }
.hero-text { margin-top: 1.2rem; color: #a2b0c6; max-width: 36rem; }
.hero-controls { display: flex; gap: 1.5rem; margin-top: auto; padding-top: 3rem; }
.control { background: none; border: 0; padding: .6rem 0; color: var(--muted); cursor: pointer; font-size: .85rem; }
.control[aria-pressed="true"] { color: var(--accent); }
.audio-status { color: var(--muted); font-size: .85rem; }
.audio-status:empty { display: none; }

.button { display: inline-block; margin-top: 2rem; padding: .9rem 1.4rem; border: 1px solid #367cbe; background: #10233c; color: #a9d8ff; text-decoration: none; }
.button:hover { background: #182e4d; }

.section { padding: 4rem var(--gutter) 4.5rem; border-top: 1px solid var(--line); background: var(--panel); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: var(--measure); }
h3 { font-size: 1.1rem; }
.prose { max-width: var(--measure); margin-top: 1.8rem; color: #a2b0c6; }
.prose p + p { margin-top: 1.2rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; max-width: 60rem; }
.pair p { margin-top: .7rem; color: #a2b0c6; }
.maxim { margin-top: 2.5rem; color: var(--text); }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-top: 2.5rem; max-width: 64rem; }
.items p { margin-top: .7rem; color: #a2b0c6; }
.items a { color: var(--text); }
.questions { margin-top: 1.8rem; padding-left: 1.6rem; max-width: var(--measure); color: #a2b0c6; }
.questions li + li { margin-top: .8rem; }

.footer { padding: 2rem var(--gutter); border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .85rem; }
.footer p + p { margin-top: .4rem; }

.reveal { opacity: 1; transform: none; }
.reveal-ready { opacity: 0; transform: translateY(.8rem); transition: opacity 1s ease, transform 1s ease; }
.reveal-ready.is-visible { opacity: 1; transform: none; }
.motion-paused .reveal-ready { opacity: 1; transform: none; transition: none; }
.motion-paused { scroll-behavior: auto; }

@media (max-width: 720px) {
    .header { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .nav { gap: 1.2rem; }
    .pair, .items { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding-top: 3rem; padding-bottom: 3.5rem; }
}

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

@media (forced-colors: active) {
    .hero-art { display: none; }
}
