*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(900px 500px at 15% -10%, rgba(180,77,255,.14), transparent 60%), var(--bg);
  color: var(--text); font: 1rem/1.65 var(--font-body);
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
h2, h3 { font-family: var(--font-body); font-weight: 600; }
a { color: var(--neon-hi); }
:focus-visible { outline: 2px solid var(--neon-hi); outline-offset: 3px; }
.wrap { width: min(1080px, 100% - 3rem); margin-inline: auto; }

/* Header and footer (injected by site.js) */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { font: 700 1.25rem var(--font-display); color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--muted); text-decoration: none; padding-block: .25rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-color: var(--neon); }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.header-right { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.75rem; }
.header-actions { display: flex; gap: .5rem; }
.btn-sm { padding: .4rem 1rem; font-size: .9rem; }
.site-footer .wrap { padding-block: 1.5rem; text-align: center; }
main { padding-block: 4rem 5rem; }

/* Hero: the wordmark is the one loud element */
.hero h1 { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: var(--glow); animation: strike 1.4s ease-out 1; }
.lede { max-width: 34ch; margin: 1.25rem 0 2rem; font-size: 1.25rem; color: var(--muted); }
@keyframes strike {
  0%, 18%, 22%, 55% { opacity: .35; text-shadow: none; }
  20%, 60%, 100% { opacity: 1; text-shadow: var(--glow); }
}

.actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid var(--neon); transition: box-shadow .2s, background-color .2s; }
.btn-primary { background: var(--neon); color: #12091f; }
.btn-primary:hover { box-shadow: var(--glow-box); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: rgba(180,77,255,.12); box-shadow: var(--glow-box); }

.status { display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--muted); }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); }
.status[data-state="online"] .dot  { background: var(--ok);  box-shadow: 0 0 10px var(--ok); }
.status[data-state="offline"] .dot { background: var(--bad); box-shadow: 0 0 10px var(--bad); }

/* Changelog (a real sequence, so a timeline) and announcements */
.split { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; }
.hero + .split { margin-top: 4rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.split h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.timeline { border-left: 1px solid var(--line); padding-left: 1.5rem; display: grid; gap: 2rem; }
.entry time { color: var(--muted); font-size: .875rem; }
.entry ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.entry p { margin: .5rem 0 0; }
.note { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.note h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.note p { margin: .5rem 0 0; }
.empty { color: var(--muted); }
.more-row { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }

/* Text pages (Info, Terms) */
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; }
details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .75rem 0 0; color: var(--muted); }

@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 3rem; } main { padding-block: 2.5rem 4rem; } }
@media (prefers-reduced-motion: reduce) { .hero h1 { animation: none; } * { transition: none !important; } }