:root {
  --bg: #101512;
  --bg-2: #181f1a;
  --card: #202923;
  --accent: #a5a875;
  --accent-dim: #7f8258;
  --amber: #d1a65b;
  --amber-dim: #9a7a3f;
  --text: #f2f3ed;
  --muted: #a4ada3;
  --border: #343d35;
  --danger-soft: #8a6a55;
  --focus: #c5c98f;
  --radius: 6px;
  --max: 72rem;
  --nav-h: 4rem;
  --font-display: "Space Grotesk", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #c4c892;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.85rem;
  background: var(--accent);
  color: #121612;
  font-weight: 700;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  display: block;
  height: 2.65rem;
  width: auto;
  max-width: min(16rem, 52vw);
}

.logo--footer img {
  height: 3.25rem;
  max-width: min(18rem, 70vw);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  position: relative;
  transition: transform 0.18s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(165, 168, 117, 0.08);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(28rem, 78vh, 40rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.85) contrast(1.05);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 21, 18, 0.92) 0%, rgba(16, 21, 18, 0.72) 42%, rgba(16, 21, 18, 0.35) 100%),
    linear-gradient(0deg, rgba(16, 21, 18, 0.95) 0%, rgba(16, 21, 18, 0.2) 55%, rgba(16, 21, 18, 0.55) 100%);
}

.hero__content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 3.25rem;
  max-width: 38rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.hero__brand small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #141812;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #b7ba86;
  color: #141812;
}

.button--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ——— Sections ——— */
.section {
  padding: 4.25rem 0;
}

.section--alt {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(165, 168, 117, 0.06), transparent 55%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}

.section__head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section__head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ——— Directory controls ——— */
.directory-controls {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-row label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#map-search {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

#map-search::placeholder {
  color: #788278;
}

#map-search:focus {
  border-color: var(--accent-dim);
  outline: none;
}

.search-clear {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.search-clear:hover {
  color: var(--text);
  border-color: var(--accent-dim);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.filter-row .meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.chip:hover {
  color: var(--text);
  border-color: #4a554b;
}

.chip.is-active {
  color: #141812;
  background: var(--accent);
  border-color: var(--accent);
}

/* ——— Map cards ——— */
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.map-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.map-card:hover {
  border-color: #4b564c;
  transform: translateY(-2px);
}

.map-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, #1b231d, #121713 60%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(165, 168, 117, 0.03) 10px,
      rgba(165, 168, 117, 0.03) 11px
    );
  overflow: hidden;
}

.map-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent-dim);
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.08em;
}

.map-card__badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(16, 21, 18, 0.82);
  border: 1px solid var(--border);
}

.map-card__badge--official {
  color: var(--accent);
}

.map-card__badge--modded {
  color: var(--amber);
}

.map-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1rem 1.1rem;
  flex: 1;
}

.map-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.map-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.map-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status--available {
  color: var(--accent);
}

.status--coming-soon {
  color: var(--danger-soft);
}

.map-card__action {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}

.map-card__action:hover {
  background: rgba(165, 168, 117, 0.1);
  color: #c4c892;
}

.map-card__action--disabled {
  border-color: var(--border);
  color: #6f786f;
  cursor: default;
}

.map-empty {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* ——— Why ——— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.why-item {
  padding: 1rem 0.95rem 1.1rem;
  border-top: 2px solid var(--accent-dim);
  background: transparent;
}

.why-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0d110e;
  padding: 2.75rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 28rem;
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: grid;
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: #6d766d;
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
  max-width: 48rem;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.75rem;
  }

  .hero__content {
    margin-left: auto;
    padding-top: 4.5rem;
  }

  .map-grid,
  .why-grid,
  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .filter-row .meta {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .map-card {
    transition: none;
  }

  .button:hover,
  .map-card:hover {
    transform: none;
  }
}
