:root {
  --parchment-ivory: #f2e7cc;
  --iron-charcoal: #1e1b17;
  --town-gold: #c49a46;
  --blood-crimson: #8b2323;
  --mist: #d6ccb7;
  --panel-dark: #27221c;
  --panel-edge: #4d4030;
  --focus: #f6d07b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--parchment-ivory);
  background: radial-gradient(circle at 10% 20%, #2b241c 0%, #151210 55%, #0c0a09 100%);
  font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

a,
button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0;
}

p,
ul,
ol {
  margin: 0;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #000;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.72));
  border-bottom: 1px solid rgba(196, 154, 70, 0.22);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--parchment-ivory);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 154, 70, 0.5);
  border-radius: 10px;
  background: rgba(25, 21, 18, 0.92);
  color: var(--parchment-ivory);
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  margin: 2px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  display: none;
  background: rgba(12, 10, 9, 0.96);
  border-bottom: 1px solid rgba(196, 154, 70, 0.22);
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--parchment-ivory);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(196, 154, 70, 0.15);
}

.hero {
  position: relative;
  isolation: isolate;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  min-height: 78vh;
  display: grid;
  align-items: end;
  background: url("assets/Background 1.webp") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 8, 7, 0.62), rgba(10, 8, 7, 0.86));
}

.hero-content {
  text-align: center;
  padding-bottom: 1rem;
}

.hero-logo {
  width: min(220px, 48vw);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--town-gold);
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: 0.75rem;
}

.hero-subheadline {
  font-size: clamp(1rem, 3.9vw, 1.4rem);
  max-width: 52ch;
  margin: 0 auto 0.75rem;
}

.hero-supporting {
  color: var(--mist);
  max-width: 66ch;
  margin: 0 auto 1.35rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background-color 180ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #1a150f;
  background: linear-gradient(180deg, #e3bf77, var(--town-gold));
  box-shadow: 0 4px 0 #8d6c2f;
}

.btn-secondary {
  color: var(--parchment-ivory);
  background: rgba(34, 28, 22, 0.9);
  border: 1px solid rgba(196, 154, 70, 0.6);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.section-divider {
  width: min(960px, 92vw);
  margin: 1.4rem auto 0;
  opacity: 0.86;
}

.section-divider.alt {
  margin-top: 0;
  margin-bottom: 0;
}

.section {
  padding: 3.5rem 0;
}

.section h2 {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  margin-bottom: 1.5rem;
}

.features {
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.9), rgba(18, 14, 12, 0.96));
}

.feature-grid {
  display: grid;
  gap: 0.95rem;
}

.feature-card {
  background: linear-gradient(180deg, rgba(44, 36, 29, 0.92), rgba(28, 23, 18, 0.9));
  border: 1px solid rgba(196, 154, 70, 0.28);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 238, 201, 0.08), var(--shadow);
  padding: 1.15rem;
}

.feature-card img {
  width: 74px;
  height: 74px;
  margin-bottom: 0.7rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--mist);
}

.factions {
  background: linear-gradient(130deg, rgba(132, 102, 47, 0.18), rgba(106, 26, 26, 0.18));
}

.faction-grid {
  display: grid;
  gap: 1rem;
}

.faction-panel {
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(196, 154, 70, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 238, 201, 0.08), var(--shadow);
}

.faction-panel.villagers {
  background: linear-gradient(145deg, rgba(95, 74, 34, 0.42), rgba(30, 24, 17, 0.88));
}

.faction-panel.monsters {
  background: linear-gradient(145deg, rgba(125, 31, 31, 0.45), rgba(32, 20, 20, 0.9));
}

.faction-panel img {
  width: 82px;
  height: 82px;
  margin-bottom: 0.65rem;
}

.faction-panel h3 {
  margin-bottom: 0.55rem;
}

.faction-panel ul {
  padding-left: 1.1rem;
  color: var(--mist);
  display: grid;
  gap: 0.45rem;
}

.factions-note {
  margin-top: 1rem;
  color: #efd9aa;
  background: rgba(23, 19, 16, 0.7);
  border-left: 4px solid var(--town-gold);
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
}

.locations {
  background:
    linear-gradient(rgba(13, 11, 9, 0.88), rgba(13, 11, 9, 0.95)),
    url("assets/Background 2.webp") center/cover no-repeat;
}

.location-grid {
  display: grid;
  gap: 1rem;
}

.location-card {
  background: linear-gradient(180deg, rgba(36, 30, 24, 0.93), rgba(23, 19, 15, 0.95));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(196, 154, 70, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 238, 201, 0.08), var(--shadow);
}

.location-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.location-copy {
  padding: 0.95rem;
}

.location-copy h3 {
  margin-bottom: 0.3rem;
}

.location-copy p {
  color: var(--mist);
}

.roadmap {
  background: linear-gradient(180deg, rgba(19, 16, 14, 0.95), rgba(11, 9, 8, 1));
}

.roadmap-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.badge {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(196, 154, 70, 0.6);
  color: #f3d18a;
  background: rgba(78, 56, 24, 0.35);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.timeline li {
  position: relative;
  padding: 0.95rem 0.95rem 0.95rem 1.15rem;
  border-left: 4px solid var(--town-gold);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(42, 34, 27, 0.9), rgba(24, 20, 16, 0.9));
}

.timeline h3 {
  margin-bottom: 0.35rem;
}

.timeline p {
  color: var(--mist);
}

.newsletter {
  background: linear-gradient(180deg, rgba(14, 11, 10, 0.98), rgba(9, 8, 7, 1));
}

.newsletter-wrap {
  max-width: 720px;
}

.newsletter-wrap > p {
  margin-top: 0.5rem;
  color: var(--mist);
}

.newsletter-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.newsletter-form label {
  font-weight: 700;
}

.newsletter-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.newsletter-row input {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(196, 154, 70, 0.55);
  background: rgba(14, 12, 10, 0.95);
  color: var(--parchment-ivory);
  padding: 0.65rem 0.8rem;
}

.microcopy {
  color: var(--mist);
  font-size: 0.9rem;
}

.form-message {
  min-height: 1.25rem;
  font-weight: 700;
}

.form-message.error {
  color: #ff8e8e;
}

.form-message.success {
  color: #b3f2b3;
  animation: successPulse 420ms ease;
}

@keyframes successPulse {
  0% {
    transform: scale(0.98);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.site-footer {
  border-top: 1px solid rgba(196, 154, 70, 0.22);
  background: #0b0908;
}

.footer-inner {
  min-height: 92px;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  color: var(--mist);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.social-links a {
  color: var(--parchment-ivory);
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 700px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    border: 0;
    background: transparent;
    padding: 0;
  }

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

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

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

  .newsletter-row {
    flex-direction: row;
    align-items: center;
  }

  .newsletter-row input {
    flex: 1;
  }

  .newsletter-row .btn {
    white-space: nowrap;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .hero {
    min-height: 88vh;
    padding-top: 5rem;
  }

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

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

  * {
    transition: none !important;
    animation: none !important;
  }
}
