/* Nomi's Minecraft horror server site. No frameworks, no web fonts, no external requests. */

:root {
  --bg: #07080c;
  --panel: #0e1016;
  --panel-2: #131620;
  --line: #1f2330;
  --text: #d9dbe3;
  --muted: #8d92a3;
  --accent: #d7263d;
  --accent-2: #ff5c6c;
  --ok: #3ddc84;
  --warn: #f0b35c;
  --bad: #ff5c6c;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

code, kbd {
  font: 0.92em ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: #f2f3f7;
  word-break: break-all;
}
kbd { padding: 0 6px; border-bottom-width: 2px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-weight: normal; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 8, 12, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { color: var(--text); font-weight: 700; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; color: var(--accent-2); }
.links a { color: var(--muted); margin-left: 18px; font-size: 0.95em; }
.links a:hover { color: var(--text); text-decoration: none; }

/* ---- hero ---- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(215, 38, 61, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 50% at 20% 100%, rgba(120, 130, 160, 0.08), transparent 70%),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(120, 130, 160, 0.07), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 0.85em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 10px;
  font: 700 clamp(2.4rem, 7vw, 4.2rem)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
  text-shadow: 0 0 28px rgba(215, 38, 61, 0.45), 0 0 2px rgba(255, 255, 255, 0.2);
}
.tagline { margin: 0 0 32px; color: var(--muted); font-size: 1.1em; }

.address-card {
  display: inline-block;
  min-width: min(100%, 440px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  text-align: left;
}
.address-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.address-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.address {
  font-size: 1.25em;
  padding: 8px 12px;
  background: var(--bg);
  flex: 1 1 auto;
  word-break: normal;
}
.copy {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 16px;
  font: inherit;
  cursor: pointer;
}
.copy:hover { border-color: var(--accent-2); color: #fff; }
.copy.done { border-color: var(--ok); color: var(--ok); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  background: none; border: 0;
  color: var(--muted);
  font: inherit; font-size: 0.92em;
  cursor: pointer;
  text-align: left;
}
.status .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(141, 146, 163, 0.18);
  flex: none;
}
.status.online { color: var(--ok); }
.status.online .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2), 0 0 10px rgba(61, 220, 132, 0.6); }
.status.offline { color: var(--bad); }
.status.offline .dot { background: var(--bad); box-shadow: 0 0 0 3px rgba(255, 92, 108, 0.2); }
.status.unknown .dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 30px 0 26px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
}
.btn:hover { text-decoration: none; border-color: var(--accent-2); color: #fff; }
.btn.primary {
  background: linear-gradient(180deg, #e62e46, var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 28px rgba(215, 38, 61, 0.35);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn small { display: block; margin-top: 4px; font-weight: 400; font-size: 0.8em; opacity: 0.85; }

.facts {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
  margin: 0; padding: 0;
  color: var(--muted);
  font-size: 0.9em;
}
.facts li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 16, 22, 0.7); }
.facts strong { color: var(--text); }

/* ---- sections ---- */
main { padding: 10px 20px 20px; }
section { margin: 36px 0; }
h2 { font-size: 1.55em; margin: 0 0 14px; line-height: 1.25; }
h3 { font-size: 1.15em; margin: 0 0 8px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.checks { margin: 0; padding-left: 0; list-style: none; }
.checks li { position: relative; padding-left: 26px; margin: 10px 0; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* numbered steps */
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.num {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent-2);
  font: 700 1.2em Georgia, serif;
}
.body > p:first-of-type { margin-top: 0; color: var(--muted); }
.body ol { padding-left: 22px; margin: 8px 0; }
.body ol li { margin: 8px 0; }
.paths { margin: 6px 0 6px; padding-left: 18px; }
.paths li { margin: 4px 0; }
.note {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: var(--panel-2);
  border-left: 3px solid var(--warn);
  border-radius: 0 6px 6px 0;
  color: var(--muted);
}
details { margin-top: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 4px; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 0.85em; letter-spacing: 0.06em; text-transform: uppercase; border-top: 0; }
tr.group td { color: var(--accent-2); font-weight: 700; font-size: 0.85em; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 16px; }
.mods td:first-child { white-space: nowrap; }
.ver { color: var(--muted); font-size: 0.85em; margin-left: 4px; }
.help td:first-child { width: 42%; color: #f2f3f7; }

/* footer */
.foot { padding: 30px 20px 48px; text-align: center; border-top: 1px solid var(--line); margin-top: 20px; }
.foot p { margin: 6px 0; font-size: 0.92em; }

/* ---- small screens ---- */
@media (max-width: 640px) {
  .brand { white-space: nowrap; font-size: 0.95em; }
  .links a { margin-left: 10px; font-size: 0.85em; }
  .hero { padding: 48px 0 40px; }
  .address-card { display: block; }
  .address { font-size: 1.05em; }
  .cta .btn { width: 100%; }
  .panel { padding: 18px 16px; }
  .step { grid-template-columns: 36px 1fr; gap: 12px; }
  .num { width: 36px; height: 36px; font-size: 1em; }
  .mods td:first-child { white-space: normal; }
  .help td:first-child { width: auto; }
  th, td { padding: 8px 8px; display: block; border-top: 0; }
  thead { display: none; }
  tbody tr { display: block; border-top: 1px solid var(--line); padding: 6px 0; }
  .help td:first-child::before { content: "You see: "; color: var(--muted); font-weight: 600; }
  .help td:last-child::before { content: "Fix: "; color: var(--muted); font-weight: 600; }
  tr.group td { padding: 12px 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status.unknown .dot { animation: none; }
}
