/* ---------------------------------------------------------------
   Wyldmere — earthy forest palette, not a neon esports look.
   Primary greens echo in-game &a text; warm grays echo &7;
   gold/amber is reserved for accents, same as in-game warnings.
------------------------------------------------------------------ */

:root {
  --forest-950: #10160f;
  --forest-900: #182116;
  --forest-800: #22301f;
  --forest-700: #2f4a34;
  --forest-600: #3d6b45;
  --forest-500: #4f8a56;
  --forest-400: #6fa86e;
  --moss-300: #8fbf6f;

  --stone-900: #1c1a17;
  --stone-700: #4a4640;
  --stone-500: #746e64;
  --stone-300: #b7ae9f;
  --stone-100: #efe9dd;
  --stone-50: #faf7f0;

  --gold-500: #c99a3d;
  --gold-400: #e0b354;

  --bg: var(--stone-50);
  --bg-alt: var(--stone-100);
  --text: var(--stone-900);
  --text-muted: var(--stone-700);
  --border: #ded4c1;

  --brand: var(--forest-700);
  --brand-strong: var(--forest-900);
  --brand-soft: #e4ecdf;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.06), 0 4px 16px rgba(28, 26, 23, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--forest-950);
    --bg-alt: var(--forest-900);
    --text: #ecf0e6;
    --text-muted: #b9c4b1;
    --border: #2c352a;
    --brand: var(--moss-300);
    --brand-strong: #d9ecc8;
    --brand-soft: #1e2a1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 20px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--brand-strong);
  color: var(--stone-50);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

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

a {
  color: var(--brand);
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--brand-strong);
  line-height: 1.25;
}

code, .connect-box__address {
  font-family: 'Cascadia Code', Consolas, ui-monospace, monospace;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-strong);
  text-decoration: none;
}

.brand__mark {
  font-size: 1.4rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-strong);
  border-bottom-color: var(--brand);
}

.site-nav__discord {
  background: var(--brand);
  color: var(--stone-50) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border-bottom: none !important;
}

.site-nav__discord:hover {
  background: var(--brand-strong);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--brand-soft), var(--bg) 70%);
  padding: 4rem 0 3rem;
}

.hero__inner {
  text-align: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-500);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0;
}

.hero__tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0.5rem 0 1.5rem;
}

.hero__lede {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--brand);
  color: var(--stone-50);
}

.button--primary:hover {
  background: var(--brand-strong);
}

.button--secondary {
  background: transparent;
  color: var(--brand-strong);
  border: 1.5px solid var(--border);
}

.button--secondary:hover {
  border-color: var(--brand);
}

.connect-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
}

.connect-box__label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.connect-box__address {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-strong);
}

/* ---------- Features ---------- */

.features {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */

.cta {
  background: var(--brand-soft);
  padding: 3rem 0;
  text-align: center;
}

.cta__inner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ---------- Wiki ---------- */

.wiki-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem;
  align-items: start;
}

.wiki-sidebar {
  position: sticky;
  top: 1.5rem;
}

.wiki-sidebar__group {
  margin-bottom: 1.5rem;
}

.wiki-sidebar__group h3 {
  font-family: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.wiki-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-sidebar li {
  margin-bottom: 0.25rem;
}

.wiki-sidebar a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.wiki-sidebar a:hover {
  background: var(--bg-alt);
}

.wiki-sidebar a.is-active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

.wiki-content {
  min-width: 0;
}

.wiki-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: -0.5rem;
}

.wiki-breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.wiki-index-section {
  margin-top: 2rem;
}

.wiki-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-index-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.wiki-index-list a {
  font-weight: 700;
  text-decoration: none;
}

.wiki-index-list p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.wiki-content pre {
  background: var(--stone-900);
  color: var(--stone-100);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  overflow-x: auto;
}

.wiki-content code {
  background: var(--bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.wiki-content pre code {
  background: none;
  padding: 0;
}

.wiki-content blockquote {
  border-left: 3px solid var(--brand);
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
  }

  .site-nav {
    gap: 0.9rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer a {
  color: var(--text-muted);
}
