:root {
  color-scheme: dark;
  --ink: #1a120c;
  --paper: #c99b58;
  --paper-deep: #8d6234;
  --cream: #f4dfb6;
  --smoke: #b9a98f;
  --pine: #17281f;
  --sage: #53654a;
  --rust: #a74225;
  --blood: #6f2419;
  --gold: #c98b31;
  --charcoal: #11171a;
  --night: #090c0e;
  --line: rgba(244, 223, 182, 0.17);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 4%, rgba(167, 66, 37, 0.18), transparent 24rem),
    radial-gradient(circle at 86% 14%, rgba(83, 101, 74, 0.14), transparent 24rem),
    linear-gradient(135deg, #080b0d 0%, #111713 48%, #07090a 100%);
  color: var(--cream);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(244, 223, 182, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 223, 182, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

main {
  overflow: hidden;
}

a {
  color: inherit;
}

.hero {
  min-height: 94svh;
  position: relative;
  display: grid;
  align-items: end;
  padding: clamp(1.25rem, 3vw, 3rem);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 11, 13, 1) 0%, rgba(8, 11, 13, 0.66) 55%, rgba(8, 11, 13, 0.44) 100%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover;
  filter: saturate(0.72) contrast(1.16);
}

.hero__content {
  width: min(920px, 100%);
  padding-bottom: clamp(2rem, 10vh, 7rem);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.75rem;
  color: #d7a24d;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 13vw, 9.6rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.95;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.1;
}

p {
  color: rgba(244, 223, 182, 0.76);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.hero__copy {
  max-width: 720px;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(244, 223, 182, 0.28);
  border-radius: 5px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #17100a;
}

.button--ghost {
  background: rgba(8, 11, 13, 0.46);
  backdrop-filter: blur(12px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(920px, 100%);
  background: rgba(244, 223, 182, 0.16);
  border: 1px solid rgba(244, 223, 182, 0.16);
  box-shadow: var(--shadow);
}

.hero__stats div {
  padding: 1rem;
  background: rgba(12, 16, 18, 0.88);
}

.hero__stats span {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.hero__stats p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.map-section,
.lodge-section,
.amenity-section,
.roll-call,
.next-update {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.board-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  min-height: 640px;
  padding: clamp(0.7rem, 1.5vw, 1rem);
  border: 1px solid rgba(244, 223, 182, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(54, 32, 20, 0.78), rgba(8, 11, 13, 0.88)),
    repeating-linear-gradient(90deg, rgba(244, 223, 182, 0.035) 0 1px, transparent 1px 96px);
  box-shadow: var(--shadow);
}

#trip-canvas {
  width: 100%;
  min-height: 600px;
  display: block;
  border-radius: 6px;
  background: #21140e;
  touch-action: manipulation;
  outline: none;
}

.map-fallback {
  position: absolute;
  inset: 1rem 377px 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 4vw, 3rem);
  color: rgba(26, 18, 12, 0.36);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 4vw, 3rem);
  font-weight: 700;
  pointer-events: none;
}

.detail-panel {
  align-self: stretch;
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  border: 1px solid rgba(244, 223, 182, 0.16);
  border-radius: 6px;
  background: rgba(10, 13, 14, 0.9);
}

.detail-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
}

.detail-panel ul {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.detail-panel li {
  padding: 0.8rem;
  border: 1px solid rgba(244, 223, 182, 0.14);
  border-radius: 5px;
  color: rgba(244, 223, 182, 0.84);
  background: rgba(244, 223, 182, 0.05);
}

.lodge-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: start;
}

.lodge-copy {
  position: sticky;
  top: 1rem;
}

.photo-rail {
  display: grid;
  gap: 1rem;
}

.photo-rail figure {
  margin-bottom: 0;
}

.photo-rail figcaption {
  margin-top: 0.7rem;
  color: rgba(244, 223, 182, 0.58);
  font-size: 0.9rem;
}

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

.photo-card {
  min-height: 180px;
  display: grid;
  place-items: end start;
  padding: 1rem;
  border: 1px solid rgba(244, 223, 182, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(167, 66, 37, 0.22), rgba(8, 11, 13, 0.7)),
    repeating-linear-gradient(135deg, rgba(244, 223, 182, 0.07) 0 2px, transparent 2px 12px);
}

.photo-card--main {
  min-height: 360px;
}

.photo-card span {
  color: rgba(244, 223, 182, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.amenity-grid article {
  min-height: 230px;
  padding: 1rem;
  border: 1px solid rgba(244, 223, 182, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 223, 182, 0.07), rgba(244, 223, 182, 0.015)),
    rgba(12, 16, 18, 0.76);
}

.amenity-grid span {
  display: block;
  margin-bottom: 3rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1;
}

.amenity-grid p {
  font-size: 0.97rem;
}

.roll-call {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: center;
}

.crew-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.crew-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(244, 223, 182, 0.16);
  border-radius: 6px;
  background: rgba(244, 223, 182, 0.05);
}

.crew-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.crew-card span {
  width: 2.1rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #100b07;
  font-weight: 950;
}

.status-c span {
  background: #83a65a;
}

.status-p span {
  background: #d6a146;
}

.status-n {
  opacity: 0.62;
}

.status-n span {
  background: #a74225;
}

.next-update {
  margin-bottom: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(244, 223, 182, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(23, 40, 31, 0.86), rgba(111, 36, 25, 0.58)),
    rgba(12, 16, 18, 0.82);
}

.next-update h2,
.next-update p {
  max-width: 760px;
}

@media (max-width: 1000px) {
  .amenity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 88svh;
  }

  .hero__stats,
  .board-shell,
  .lodge-section,
  .roll-call {
    grid-template-columns: 1fr;
  }

  .board-shell {
    min-height: auto;
  }

  #trip-canvas {
    min-height: 470px;
  }

  .map-fallback {
    inset: 1rem 1rem auto 1rem;
    min-height: 430px;
  }

  .detail-panel {
    min-height: 320px;
  }

  .lodge-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1rem;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .hero__stats,
  .amenity-grid,
  .photo-pair {
    grid-template-columns: 1fr;
  }

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

  #trip-canvas {
    min-height: 400px;
  }

  .map-fallback {
    min-height: 370px;
    font-size: 1rem;
  }
}
