:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #aaa79f;
  --night: #090b10;
  --panel: #121620;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d7aa57;
  --gold-light: #f0d394;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 5%, rgba(75, 97, 137, 0.22), transparent 30rem),
    linear-gradient(180deg, #0e121a 0%, var(--night) 42rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.site-header {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.brand-mark::first-letter { transform: rotate(-45deg); }

nav { display: flex; gap: 1.5rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--ink); }

main { overflow: hidden; }

.hero {
  width: min(900px, calc(100% - 2rem));
  min-height: 580px;
  margin: 0 auto;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.1; font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 760px; font-size: clamp(3.2rem, 10vw, 7rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
h3 { font-size: 2.2rem; }

.hero-copy {
  max-width: 680px;
  margin: 1.5rem 0 2rem;
  color: #c9c6bf;
  font-size: 1.08rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 3px;
  font-weight: 750;
  text-decoration: none;
  transition: 160ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.primary { color: #15120c; background: var(--gold-light); }
.button.secondary { color: var(--gold-light); }
.button.disabled { color: #777; border-color: #363a43; cursor: not-allowed; }

.servers {
  padding: 6rem max(1rem, calc((100% - 1120px) / 2));
  background: rgba(5, 7, 11, 0.65);
  border-block: 1px solid var(--line);
}

.section-heading { margin-bottom: 2.2rem; text-align: center; }
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.server-card {
  position: relative;
  min-height: 390px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(55, 68, 91, 0.6), var(--panel) 60%);
}

.server-card::before {
  position: absolute;
  width: 20rem;
  height: 20rem;
  top: -12rem;
  right: -8rem;
  border: 1px solid rgba(215, 170, 87, 0.2);
  border-radius: 50%;
  content: "";
}

.server-card.mu { background: linear-gradient(145deg, rgba(68, 51, 71, 0.52), var(--panel) 60%); }
.server-card p { max-width: 34rem; color: #bab7b0; }
.server-card .game-label { margin-bottom: 0.4rem; color: var(--gold); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.status {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #a9dab5;
  font-size: 0.8rem;
}

.status span { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #69c880; box-shadow: 0 0 0.8rem #69c880; }
.status.muted { color: var(--muted); }
.status.muted span { background: #777; box-shadow: none; }

.community { width: min(760px, calc(100% - 2rem)); margin: 0 auto; padding: 8rem 0; text-align: center; }
.community p:last-child { color: var(--muted); font-size: 1.05rem; }

footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #777;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  nav { display: none; }
  .hero { min-height: 520px; }
  .server-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
