/* StarAleste — one stylesheet, no build step. */

:root {
  --void:    #080B11;
  --ground:  #0C1017;
  --panel:   #131924;
  --raised:  #1A2231;
  --line:    #222C3C;
  --line-lit:#2F3C50;

  --ink:     #E8EDF5;
  --muted:   #8695AB;
  --faint:   #5A6779;

  /* One warm accent against a cold ground — a star, not a UI highlight. */
  --star:    #F0B450;
  --star-dim:#8A6526;

  --good:    #4FBF9F;
  --warn:    #E09B4A;
  --bad:     #D4636A;

  --display: "Sora", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* A faint, static field rather than an animation — atmosphere without a distraction
   that runs forever behind a form somebody is trying to fill in. */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(232,237,245,.55) 50%, transparent 50%),
    radial-gradient(1px 1px at 68% 14%, rgba(232,237,245,.40) 50%, transparent 50%),
    radial-gradient(1px 1px at 34% 68%, rgba(232,237,245,.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 82% 74%, rgba(232,237,245,.50) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 52% 42%, rgba(240,180,80,.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 91% 38%, rgba(232,237,245,.30) 50%, transparent 50%),
    radial-gradient(900px 500px at 70% -10%, rgba(240,180,80,.07), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(79,191,159,.05), transparent 60%);
}

/* ---------- chrome ---------- */

header.site, footer.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
footer.site {
  border-bottom: none; border-top: 1px solid var(--line);
  margin-top: auto; font-size: 0.875rem; color: var(--faint);
}

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.mark {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--star);
  box-shadow: 0 0 12px 2px rgba(240,180,80,.5);
}

header.site nav { display: flex; align-items: center; gap: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
nav a:hover { color: var(--ink); }
nav a.quiet { color: var(--faint); }

main { flex: 1; width: 100%; max-width: 60rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 4rem; }

/* ---------- type ---------- */

h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08;
  letter-spacing: -0.03em; margin: 0 0 0.75rem; text-wrap: balance;
}
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.1875rem; letter-spacing: -0.015em;
  margin: 2.75rem 0 1rem;
}
h2:first-child { margin-top: 0; }

.lede { font-size: clamp(1.0625rem, 2vw, 1.1875rem); color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.875rem; }

a { color: var(--star); }

/* ---------- buttons ---------- */

.button, button {
  display: inline-block; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  padding: 0.6rem 1.1rem; border-radius: 6px;
  background: var(--star); color: #17120A; text-decoration: none;
  transition: filter .12s ease, transform .12s ease;
}
.button:hover, button:hover { filter: brightness(1.08); }
.button:active, button:active { transform: translateY(1px); }
.button.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-lit);
}
.button.ghost:hover { border-color: var(--star-dim); background: rgba(240,180,80,.06); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }

/* ---------- hero ---------- */

.hero { padding: clamp(1rem, 4vw, 3rem) 0 2rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--star); margin: 0 0 1rem;
}

/* ---------- panels ---------- */

.panel {
  background: linear-gradient(180deg, var(--panel), var(--ground));
  border: 1px solid var(--line); border-radius: 10px;
  padding: 1.5rem;
}

.grid { display: grid; gap: 1rem; }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; }
.stat .n {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .k {
  display: block; font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 0.35rem;
}

/* ---------- forms ---------- */

form.auth { display: flex; flex-direction: column; gap: 1.1rem; max-width: 23rem; margin: 2rem 0; }
label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9375rem; font-weight: 500; }
input {
  background: var(--void); border: 1px solid var(--line-lit); color: var(--ink);
  padding: 0.65rem 0.75rem; border-radius: 6px; font: inherit;
}
input:focus { outline: 2px solid var(--star); outline-offset: 1px; border-color: transparent; }
label small { font-weight: 400; color: var(--faint); font-size: 0.8125rem; }

.notice {
  border-left: 3px solid var(--bad); background: rgba(212,99,106,.09);
  padding: 0.8rem 1rem; border-radius: 0 6px 6px 0; margin: 0 0 1.5rem;
}
.notice.ok { border-left-color: var(--good); background: rgba(79,191,159,.09); }

/* ---------- data ---------- */

dl.facts { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 0.6rem 1.5rem; margin: 0; }
dl.facts dt { color: var(--faint); font-size: 0.875rem; }
dl.facts dd { margin: 0; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th {
  text-align: left; font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--line-lit); white-space: nowrap;
}
td { padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr.self { background: rgba(240,180,80,.06); }
td.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.rank { font-family: var(--display); font-weight: 700; color: var(--faint); width: 3rem; }
tr.self td.rank { color: var(--star); }

code { font-family: var(--mono); font-size: 0.8125rem; background: var(--void); padding: 0.15em 0.45em; border-radius: 4px; color: var(--muted); }

.pill {
  display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--raised); color: var(--muted);
}
.pill.active, .pill.success { background: rgba(79,191,159,.14); color: var(--good); }
.pill.suspended, .pill.blocked { background: rgba(224,155,74,.14); color: var(--warn); }
.pill.banned, .pill.deleted, .pill.failed { background: rgba(212,99,106,.14); color: var(--bad); }

.empty { color: var(--faint); text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--line-lit); border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
