/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ─────────────────────────────────── */
:root {
  --bg:           #16161a;
  --surface:      #21211e;
  --surface-2:    #2b2b26;
  --border:       #38382e;

  --accent:       #e09030;
  --accent-glow:  rgba(224, 144, 48, 0.18);

  --text:         #e4e0d4;
  --text-muted:   #8a8878;

  --code-bg:      #0e0e0c;
  --code-text:    #c8b880;

  --tag-bg:       #1e3020;
  --tag-text:     #72b472;
  --pending-bg:   #35280e;
  --pending-text: #b08840;

  --link:         #c0a050;
  --link-hover:   #e8c870;

  --radius:       6px;
  --max-w:        760px;
}

/* ── Base ──────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Links ─────────────────────────────────────────── */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout ────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(175deg, #1f1d12 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 2.75rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Signature element: VT323 pixel title with torch-amber glow */
.server-title {
  font-family: 'VT323', monospace;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 5.75rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--accent);
  text-shadow:
    0 0 20px rgba(224, 144, 48, 0.5),
    0 0 60px rgba(224, 144, 48, 0.15);
  margin-bottom: 1.1rem;
}

.server-meta {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hours {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hours strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.card h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

/* ── Code ──────────────────────────────────────────── */
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.4rem;
}

pre code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.38em;
  color: var(--code-text);
}

/* ── Arg description list ──────────────────────────── */
.arg-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arg-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.arg-item dt {
  font-size: 0.9rem;
}

.arg-item dd {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  line-height: 1.6;
}

/* ── Mod groups ────────────────────────────────────── */
.mod-group {
  margin-bottom: 1.4rem;
}

.mod-group:last-child {
  margin-bottom: 0;
}

.mod-group h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ── Mod lists ─────────────────────────────────────── */
.mod-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mod-list li {
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mod-list li::before {
  content: '▪';
  color: var(--accent);
  font-size: 0.65em;
  flex-shrink: 0;
  opacity: 0.8;
}

.mod-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Tags ──────────────────────────────────────────── */
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid rgba(114, 180, 114, 0.2);
}

.tag.pending {
  background: var(--pending-bg);
  color: var(--pending-text);
  border-color: rgba(176, 136, 64, 0.2);
}

/* ── Footer ────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 540px) {
  .card {
    padding: 1.25rem 1.1rem;
  }

  .hero {
    padding: 2.75rem 1rem 2rem;
  }

  .container {
    padding: 1.5rem 1rem 4rem;
  }
}

/* ── Reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
