:root {
  --bg: #0e0d12;
  --panel: #17161d;
  --line: #2a2833;
  --text: #e8e6ef;
  --muted: #9a95ab;
  --accent: #a855f7;
  --ok: #4ade80;
  --off: #f87171;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* --- header ------------------------------------------------------------- */

header.site {
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav.site {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--text); }

/* --- hero --------------------------------------------------------------- */

h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.tagline {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 32px;
}

/* --- join box ----------------------------------------------------------- */

.join {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 40px;
}

.join-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.join-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.join-host {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 600;
  word-break: break-all;
}

button.copy {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

button.copy:hover { color: var(--text); border-color: var(--accent); }

/* --- status ------------------------------------------------------------- */

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.status[data-state="online"] .dot { background: var(--ok); }
.status[data-state="offline"] .dot { background: var(--off); }
.status[data-state="online"] strong { color: var(--text); }

/* --- generic content ---------------------------------------------------- */

h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
}

h3 { font-size: 17px; margin: 28px 0 8px; }

p, li { color: #c9c5d6; }

a { color: var(--accent); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
}

.card:hover { border-color: var(--accent); }

.card strong { display: block; color: var(--text); margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}

.note.warn { border-left-color: var(--off); }
.note p { margin: 0; }
.note p + p { margin-top: 10px; }

.note-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.note.warn .note-label { color: var(--off); }

/* --- changelog ---------------------------------------------------------- */

.views {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 8px;
}

.views button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 15px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.views button:hover { color: var(--text); border-color: var(--accent); }

.views button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.view-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.release {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.release strong { color: var(--text); }

.scroller { overflow-x: auto; margin: 16px 0 24px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15px;
}

th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 14px 8px 0;
  vertical-align: bottom;
}

td {
  color: #c9c5d6;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px 10px 0;
  vertical-align: top;
}

th:last-child, td:last-child { padding-right: 0; }
td strong { color: var(--text); }
td code { white-space: nowrap; }

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 12px 0;
}

details[open] { padding-bottom: 20px; }
summary { cursor: pointer; color: var(--text); font-weight: 600; }
summary:hover { color: var(--accent); }
details > *:not(summary) { margin-top: 14px; }

/* --- forms -------------------------------------------------------------- */

form.appeal { max-width: 560px; }

label {
  display: block;
  margin: 20px 0 6px;
  font-size: 14px;
  color: var(--muted);
}

input, textarea, select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 13px;
  font: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { min-height: 140px; resize: vertical; }

button.submit {
  margin-top: 24px;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 12px 26px;
  cursor: pointer;
}

button.submit:hover { filter: brightness(1.1); }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
}
