/* =========================================================
   Zazu SMP — style.css
   Theme: nighttime campfire / lantern glow, warm and blocky
   ========================================================= */

:root {
  --bg: #12160f;
  --surface: #191f14;
  --surface-2: #212a1a;
  --border: rgba(236, 232, 217, 0.09);
  --text: #ece8d9;
  --text-dim: #a6a38d;
  --accent: #e2a344;
  --accent-dim: #a97a34;
  --moss: #6f8f5c;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

code {
  font-family: "Work Sans", monospace;
  background: rgba(0,0,0,0.25);
  padding: 0.15em 0.5em;
  border-radius: 4px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #1a1206;
}
.btn-primary:hover { background: #eeb35f; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-discord {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}
.btn-discord:hover { border-color: var(--moss); }

.btn-block { width: 100%; }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 22, 15, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.brand span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

/* -------- Hero -------- */
.hero {
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.9rem;
  color: var(--moss);
  margin-bottom: 1rem;
}

.hero-lead {
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

/* server sign card */
.server-sign {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sign-label {
  font-size: 0.8rem;
  text-transform: none;
  color: var(--text-dim);
}

.sign-ip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sign-ip code {
  font-size: 1.05rem;
  padding: 0.5em 0.7em;
  flex: 1;
}

.sign-ip button {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: 3px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sign-ip button:hover { border-color: var(--accent); }
.sign-ip button.copied {
  background: var(--moss);
  color: #10160c;
  border-color: var(--moss);
}

.sign-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* -------- Sections -------- */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}
.section-alt { background: var(--surface); }

.section-lede {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
}

.section-intro p { max-width: 40ch; }

/* traits */
.trait-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}
.trait {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}
.trait:nth-child(odd) { border-top-color: var(--accent-dim); }
.trait:nth-child(even) { border-top-color: var(--moss); }

/* -------- FAQ -------- */
.faq { display: flex; flex-direction: column; gap: 0.6rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+ ";
  color: var(--accent);
}
.faq details[open] summary::before { content: "– "; }
.faq details p {
  margin-top: 0.7rem;
  padding-left: 1.1rem;
}

.section-grid-support { align-items: start; }

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--moss);
  border-radius: 4px;
  padding: 1.75rem;
  align-self: start;
}

/* -------- Footer -------- */
.site-footer {
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-sep { color: var(--border); }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .hero-inner,
  .section-grid {
    grid-template-columns: 1fr;
  }
  .main-nav { display: none; }
  .trait-list { grid-template-columns: 1fr; }
}

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