:root {
  --bg: #0b0d0a;
  --bg-raised: #11160f;
  --bg-panel: #141910;
  --forest-deep: #172016;
  --moss: #2a3524;
  --moss-muted: #3d472f;
  --stone: #1c1a16;
  --ink: #c9b98a;
  --ink-soft: #a99b76;
  --muted: #817658;
  --gold: #d7c57f;
  --gold-bright: #dcc89a;
  --bronze: #a89254;
  --bronze-dark: #665a36;
  --rule: #6a5c38;
  --parchment: #cbb992;
  --parchment-ink: #2a2418;
  --parchment-edge: #8a7348;
  --shadow: rgba(4, 6, 4, 0.55);
  --header-h: 4.5rem;
  --font: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --measure: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-bright);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--stone);
  color: var(--gold-bright);
  padding: 0.6rem 1rem;
  border: 1px solid var(--bronze-dark);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.55rem 1.5rem;
  background: rgba(11, 13, 10, 0.88);
  border-bottom: 1px solid rgba(102, 90, 54, 0.45);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled {
  background: rgba(11, 13, 10, 0.96);
  box-shadow: 0 8px 24px var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 2.9rem;
  width: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  color: #d8c99f;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.5rem;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(18, 16, 12, 0.45);
  border-color: rgba(168, 146, 84, 0.4);
  color: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4rem 1.5rem 5.5rem;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: var(--header-h);
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 10, 0.18) 0%, rgba(8, 11, 8, 0.08) 42%, rgba(8, 11, 8, 0.58) 72%, var(--bg) 100%),
    url("../assets/wildheart_hero.png") center / cover no-repeat;
  z-index: -2;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 13, 10, 0.28), transparent 18%, transparent 82%, rgba(11, 13, 10, 0.28));
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  width: min(42rem, 100%);
  text-align: center;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #9a8c66;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #c6b17a;
  text-shadow: 0 0 18px rgba(10, 13, 9, 0.72);
}

.hero-rule {
  width: 10.5rem;
  height: 1px;
  margin: 1.15rem auto;
  background: var(--rule);
  opacity: 0.55;
}

.tagline {
  margin: 0;
  font-size: 1.15rem;
  font-style: italic;
  color: #9a8c66;
}

.hero-copy {
  margin: 1.35rem auto 0;
  max-width: 36rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.hero-actions,
.community-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.55rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--gold-bright);
}

.button-primary {
  border-color: rgba(168, 146, 84, 0.55);
  background: rgba(32, 40, 24, 0.45);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: rgba(32, 28, 18, 0.55);
  border-color: rgba(168, 146, 84, 0.75);
  color: var(--gold-bright);
}

.button-ghost {
  border-color: rgba(102, 90, 54, 0.7);
  color: #d8c99f;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(18, 16, 12, 0.4);
  border-color: rgba(168, 146, 84, 0.55);
  color: var(--gold-bright);
}

#launcher-download {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  width: max-content;
  max-width: 100%;
  min-height: 2.85rem;
  padding: 0.85rem 1.85rem;
  box-sizing: border-box;
  border: 1px solid #c6b17a !important;
  background: #2a3524 !important;
  background-image: none !important;
  opacity: 1 !important;
  color: var(--gold-bright) !important;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 0 0 1px #c6b17a;
  appearance: none;
  -webkit-appearance: none;
}

#launcher-download:hover,
#launcher-download:focus-visible {
  background: #1e1c16 !important;
  border-color: #d7c57f !important;
  color: var(--gold-bright) !important;
}

.button-disabled,
.button[aria-disabled="true"] {
  cursor: pointer;
  opacity: 0.62;
  color: var(--ink-soft);
  border-color: var(--bronze-dark);
  background: rgba(17, 21, 16, 0.7);
}

.button-disabled:hover,
.button[aria-disabled="true"]:hover {
  color: var(--ink-soft);
}

.section {
  padding: 4.5rem 1.5rem;
  scroll-margin-top: var(--header-h);
}

.section-inner {
  width: min(var(--measure), 100%);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.6rem;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
}

.section-intro {
  margin: 0;
  color: var(--ink-soft);
}

.band-stone {
  background: linear-gradient(180deg, #0e120c 0%, #141910 50%, #0e120c 100%);
  border-top: 1px solid rgba(61, 71, 47, 0.7);
  border-bottom: 1px solid rgba(61, 71, 47, 0.7);
}

.band-forest {
  background: linear-gradient(180deg, var(--bg) 0%, var(--forest-deep) 50%, var(--bg) 100%);
}

.news-list {
  display: grid;
  gap: 1.15rem;
}

.news-card {
  background:
    linear-gradient(180deg, rgba(214, 198, 154, 0.12), rgba(20, 22, 16, 0.2)),
    linear-gradient(180deg, #d4c39a, #b9a57a);
  color: var(--parchment-ink);
  padding: 1.35rem 1.5rem 1.45rem;
  border: 1px solid var(--parchment-edge);
  box-shadow: 0 10px 28px var(--shadow), inset 0 0 0 1px rgba(255, 244, 214, 0.18);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #5c4e32;
}

.news-card h3 {
  margin: 0;
  font-size: 1.28rem;
  color: #3a301c;
}

.news-card p:last-child {
  margin: 0.55rem 0 0;
}

.example-badge {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  border: 1px solid #7a6840;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a4a2c;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.world-card,
.feature-card {
  background: rgba(17, 21, 16, 0.78);
  border: 1px solid var(--bronze-dark);
  padding: 1.4rem 1.35rem 1.5rem;
}

.world-card h3,
.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.world-card p,
.feature-card p {
  margin: 0;
  color: var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.feature-mark {
  display: block;
  width: 2.4rem;
  height: 1px;
  margin-bottom: 0.9rem;
  background: var(--bronze);
  opacity: 0.65;
}

.community {
  text-align: center;
}

.community .section-head {
  margin-bottom: 0.4rem;
}

.download-panel {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.6rem 2.1rem;
  text-align: center;
  background: rgba(17, 21, 16, 0.82);
  border: 1px solid #78683b;
  box-shadow: inset 0 0 0 1px #3d472f;
}

.download-panel p {
  margin: 0 auto;
  max-width: 32rem;
}

.coming-soon {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-footer {
  padding: 2.4rem 1.5rem 2rem;
  background: #080a08;
  border-top: 1px solid var(--bronze-dark);
  text-align: center;
}

.footer-brand {
  margin: 0;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-size: 1.05rem;
}

.footer-sub {
  margin: 0.3rem 0 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  margin: 0 0 1.2rem;
}

.footer-nav a {
  color: #b5a77c;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-note,
.copyright {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #625d4d;
}

@media (max-width: 860px) {
  .world-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    z-index: 101;
    background: #0b0d0a;
    border-bottom: 1px solid var(--bronze-dark);
    padding: 0.6rem 1rem 1rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    display: block;
  }

  .world-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: 2.45rem;
  }

  .hero {
    min-height: 34rem;
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
