:root {
  --bg: #f7f9f5;
  --bg-alt: #eef5ea;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #242924;
  --muted: #5d685d;
  --primary: #4f7d4a;
  --primary-dark: #355c37;
  --primary-soft: #dde8d8;
  --border: rgba(53, 92, 55, 0.14);
  --shadow: 0 14px 40px rgba(36, 41, 36, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(221, 232, 216, 0.75), transparent 32%),
    linear-gradient(180deg, #fbfdf9 0%, var(--bg) 100%);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 860px);
}

.forest {
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(110px, 11vw, 180px);
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
}

.forest-left {
  left: 0;
  background:
    linear-gradient(to right, rgba(53, 92, 55, 0.34), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='900' viewBox='0 0 200 900'%3E%3Cg fill='%23355c37'%3E%3Cpolygon points='70,65 25,155 115,155'/%3E%3Crect x='64' y='155' width='12' height='34' rx='4'/%3E%3Cpolygon points='135,130 88,226 182,226'/%3E%3Crect x='129' y='226' width='12' height='34' rx='4'/%3E%3Cpolygon points='83,250 28,360 138,360'/%3E%3Crect x='77' y='360' width='12' height='38' rx='4'/%3E%3Cpolygon points='148,355 96,462 200,462'/%3E%3Crect x='142' y='462' width='12' height='40' rx='4'/%3E%3Cpolygon points='72,495 18,610 126,610'/%3E%3Crect x='66' y='610' width='12' height='42' rx='4'/%3E%3Cpolygon points='128,650 80,748 176,748'/%3E%3Crect x='122' y='748' width='12' height='42' rx='4'/%3E%3Cpolygon points='58,730 10,840 106,840'/%3E%3Crect x='52' y='840' width='12' height='34' rx='4'/%3E%3C/g%3E%3C/svg%3E") center/cover repeat-y;
}

.forest-right {
  right: 0;
  background:
    linear-gradient(to left, rgba(53, 92, 55, 0.34), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='900' viewBox='0 0 200 900'%3E%3Cg fill='%23355c37'%3E%3Cpolygon points='130,65 85,155 175,155'/%3E%3Crect x='124' y='155' width='12' height='34' rx='4'/%3E%3Cpolygon points='65,130 18,226 112,226'/%3E%3Crect x='59' y='226' width='12' height='34' rx='4'/%3E%3Cpolygon points='117,250 62,360 172,360'/%3E%3Crect x='111' y='360' width='12' height='38' rx='4'/%3E%3Cpolygon points='52,355 0,462 104,462'/%3E%3Crect x='46' y='462' width='12' height='40' rx='4'/%3E%3Cpolygon points='128,495 74,610 182,610'/%3E%3Crect x='122' y='610' width='12' height='42' rx='4'/%3E%3Cpolygon points='72,650 24,748 120,748'/%3E%3Crect x='66' y='748' width='12' height='42' rx='4'/%3E%3Cpolygon points='142,730 94,840 190,840'/%3E%3Crect x='136' y='840' width='12' height='34' rx='4'/%3E%3C/g%3E%3C/svg%3E") center/cover repeat-y;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(247, 249, 245, 0.78);
  border-bottom: 1px solid rgba(53, 92, 55, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a {
  font-weight: 600;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary-dark);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-content,
.hero-card,
.info-card,
.panel,
.map-card,
.discord-box,
.legal-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-content {
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: var(--radius-xl);
}

.hero-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.hero-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.hero-card li + li {
  margin-top: 0.55rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.3rem;
}

.hero-text,
.lead,
.info-card p,
.panel p,
.map-card p,
.discord-box p,
.site-footer p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.hero-text {
  font-size: 1.08rem;
  max-width: 62ch;
  margin: 1.2rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 10px 24px rgba(53, 92, 55, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(53, 92, 55, 0.16);
}

.notice {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(221, 232, 216, 0.24), rgba(255, 255, 255, 0));
}

.section-heading {
  margin-bottom: 1.6rem;
}

.centered {
  text-align: center;
}

.lead {
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  gap: 1.4rem;
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.panel,
.discord-box,
.legal-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.maps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}

.map-card::after {
  content: "";
  position: absolute;
  inset: auto -35px -35px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(221, 232, 216, 0.85), transparent 70%);
}

.map-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 1rem;
}

.discord-box {
  text-align: center;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(53, 92, 55, 0.10);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 700;
}

.legal-main {
  padding: 3rem 0 4rem;
}

.legal-hero {
  margin-bottom: 1.5rem;
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

.legal-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.legal-card code {
  font-family: inherit;
  background: var(--primary-soft);
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .hero-grid,
  .three-columns,
  .split-layout,
  .maps-grid,
  .footer-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-wrap {
    justify-content: unset;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0;
  }

  .main-nav {
    gap: 0.8rem;
  }

  .forest {
    opacity: 0.09;
    width: 90px;
  }

  .hero {
    padding-top: 2rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.97rem;
  }

  .container,
  .narrow {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .hero-content,
  .hero-card,
  .info-card,
  .panel,
  .map-card,
  .discord-box,
  .legal-card {
    padding: 1.2rem;
  }

  .forest {
    display: none;
  }
}
