:root {
  --bg: #120f0d;
  --panel: rgba(26, 20, 18, 0.78);
  --panel-strong: rgba(255, 247, 238, 0.1);
  --text: #f8efe5;
  --muted: rgba(248, 239, 229, 0.72);
  --accent: #c98b62;
  --accent-strong: #f0bf8d;
  --line: rgba(255, 232, 213, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --heading-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --body-font: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(201, 139, 98, 0.18), transparent 32%),
    linear-gradient(145deg, #0f0c0a 0%, #18110f 45%, #271917 100%);
}

body.is-locked {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

.background-glow {
  position: fixed;
  z-index: 0;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

.background-glow-left {
  top: -16rem;
  left: -14rem;
  background: #a35b43;
}

.background-glow-right {
  right: -10rem;
  bottom: -16rem;
  background: #5f7466;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 320ms ease,
    visibility 320ms ease;
}

.intro-screen.is-active {
  opacity: 1;
  visibility: visible;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.page-shell,
.map-sheet {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 241, 228, 0.78);
}

.hero-title,
#mapSheetTitle {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 0.95;
}

.intro-copy,
.hero-copy,
.map-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.cta-row,
.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.ghost-button,
.primary-button,
.secondary-button,
.icon-button,
.map-link,
.text-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.ghost-button,
.primary-button,
.secondary-button,
.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
}

.ghost-button {
  background: rgba(255, 248, 241, 0.12);
  color: #fff8f2;
  border: 1px solid rgba(255, 248, 241, 0.22);
  backdrop-filter: blur(14px);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1b130f;
  box-shadow: 0 18px 40px rgba(201, 139, 98, 0.22);
}

.secondary-button,
.map-link {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.icon-button,
.text-button {
  background: transparent;
  color: var(--muted);
}

.icon-button {
  padding: 0.5rem 0;
}

.text-button {
  width: fit-content;
  padding: 0;
  margin: 0 auto;
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.map-link:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.is-disabled {
  opacity: 0.52;
  pointer-events: none;
  box-shadow: none;
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.hero-card {
  width: min(100%, 72rem);
  padding: clamp(1.5rem, 5vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 247, 238, 0.06), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  margin-top: 1rem;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-copy {
  max-width: 42rem;
  margin-top: 1.25rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.detail-card {
  padding: 1.1rem 1.2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.detail-card-wide {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 241, 228, 0.56);
}

.detail-value {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.02rem, 2.6vw, 1.28rem);
  font-family: var(--heading-font);
  font-weight: 500;
}

.cta-row {
  justify-content: flex-start;
  margin-top: 2rem;
}

.text-button {
  margin-top: 1rem;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.map-sheet {
  position: fixed;
  z-index: 21;
  left: 50%;
  bottom: 1.5rem;
  width: min(calc(100% - 2rem), 34rem);
  padding: 1.4rem;
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  background: rgba(20, 15, 13, 0.96);
  box-shadow: var(--shadow);
  transform: translate(-50%, 0);
}

.map-sheet-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.map-copy {
  margin-top: 1rem;
}

.map-links {
  justify-content: stretch;
  margin-top: 1.35rem;
}

.map-link {
  flex: 1 1 9rem;
}

@media (max-width: 760px) {
  .page-shell {
    padding: 1rem;
  }

  .hero-card {
    border-radius: 1.5rem;
  }

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

  .cta-row {
    justify-content: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-title {
    max-width: none;
  }
}
