/* Hades: one continuous underworld. Void black, deep violet, silver, and one glowing violet accent.
   Forum (inscriptional) for headlines and labels, Sora for reading. No boxes: things float, glow and move. */
@font-face { font-family: Forum; src: url(/fonts/forum-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Sora; src: url(/fonts/sora-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Sora; src: url(/fonts/sora-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Sora; src: url(/fonts/sora-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
:root { --void: #05030D; --violet: #8B5CFF; --violet-2: #B79BFF; --silver: #E6E2F0; --mist: #ABA4C4; --dim: #7A7398; --bad: #FF8FA3; --good: #9BF0C9; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--silver); font: 300 17px/1.65 Sora, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
#gl, #trail { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#trail { pointer-events: none; z-index: 5; mix-blend-mode: screen; }
a { color: var(--violet-2); }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--silver); color: var(--void); padding: 8px 12px; }
.skip:focus { left: 8px; }
h1, h2 { font: 400 clamp(58px, 9vw, 148px)/0.92 Forum, serif; margin: 0; letter-spacing: .01em; text-shadow: 0 0 40px rgba(110,60,255,.35); }
h2 { font-size: clamp(44px, 6.2vw, 104px); }
h3 { font: 400 clamp(26px, 2.4vw, 36px)/1.1 Forum, serif; margin: 0; letter-spacing: .02em; }

.top { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; gap: 28px; padding: 22px clamp(18px, 4vw, 56px); background: linear-gradient(180deg, rgba(5,3,13,.75), rgba(5,3,13,0)); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--silver); text-decoration: none; font: 400 26px/1 Forum, serif; letter-spacing: .14em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(139,92,255,.6)); }
.top nav { margin-left: auto; display: flex; gap: 26px; }
.top nav a { color: var(--mist); text-decoration: none; font-size: 14px; transition: color .2s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--silver); }

/* a button whose border is a slow-turning ring of violet light */
.enter { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: 999px; color: var(--silver); text-decoration: none; font: 600 14px Sora, sans-serif; letter-spacing: .06em; isolation: isolate; cursor: pointer; background: none; min-height: 44px; }
.enter::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -2; background: conic-gradient(from var(--a, 0deg), transparent 0 55%, var(--violet) 70%, #fff 76%, var(--violet) 82%, transparent 95%); animation: turn 3.2s linear infinite; }
.enter::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: rgba(12,7,30,.92); box-shadow: inset 0 0 0 1px rgba(183,155,255,.18); transition: background .2s; }
.enter:hover::after { background: rgba(32,17,74,.94); }
.enter.big { padding: 20px 38px; font-size: 16px; }
.enter:disabled { cursor: not-allowed; opacity: .5; }
.enter:disabled::before { animation: none; background: rgba(183,155,255,.25); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes turn { to { --a: 360deg; } }
.ghost { background: none; border: 0; color: var(--mist); font: 400 14px Sora, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 10px 4px; min-height: 44px; }
.ghost:hover { color: var(--silver); }

.kicker { font: 400 20px Forum, serif; color: var(--violet-2); letter-spacing: .3em; margin-bottom: 16px; display: block; }
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1), filter 1s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; max-width: min(440px, calc(100vw - 32px)); }
.toast { background: rgba(16,10,38,.94); color: var(--silver); padding: 13px 16px; border-radius: 14px; font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(183,155,255,.22); animation: tin .3s ease-out; backdrop-filter: blur(10px); }
.toast.good { box-shadow: 0 16px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(155,240,201,.45); }
.toast.bad { box-shadow: 0 16px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,143,163,.55); }
@keyframes tin { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.foot { position: relative; z-index: 10; padding: 50px clamp(20px, 6vw, 110px) 120px; color: var(--dim); font-size: 14px; display: grid; gap: 10px; }
.foot a { color: var(--mist); }
.ca { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--mist); }
.ca code { color: var(--silver); font-size: 13px; word-break: break-all; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; filter: none; } .enter::before { animation: none; } html { scroll-behavior: auto; } }
