:root {
  --ink: #0e0b14;
  --night: #15111f;
  --card: #1c1628;
  --violet: #8a4fff;
  --lilac: #ad83ff;
  --gold: #ffca3a;
  --paper: #f7f3ff;
  --mist: #aaa1b8;
  --edge: #332844;
  --pad: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(138, 79, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #171023 0%, var(--ink) 42%, #120c1c 100%);
  color: var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

img {
  max-width: 100%;
  display: block;
}

.map-marks {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(14, 11, 20, 0.82);
  border: 1px solid var(--edge);
  border-radius: 4px 18px 4px 18px;
}

.map-marks a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-marks a:hover,
.map-marks a:focus-visible {
  color: var(--paper);
}

.plate-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 48px var(--pad) 96px;
}

.overlap {
  position: relative;
  min-height: 420px;
}

.overlap img {
  position: absolute;
  object-fit: cover;
  border: 3px solid rgba(255, 202, 58, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.overlap__map {
  width: 72%;
  aspect-ratio: 1;
  left: 0;
  top: 8%;
  transform: rotate(-6deg);
  border-radius: 18px;
  z-index: 1;
}

.overlap__chest {
  width: 46%;
  aspect-ratio: 1;
  right: 4%;
  top: 0;
  transform: rotate(8deg);
  border-radius: 50% 12px 50% 12px;
  z-index: 2;
}

.overlap__relic {
  width: 70%;
  aspect-ratio: 16 / 9;
  left: 18%;
  bottom: 0;
  transform: rotate(-2deg);
  border-radius: 12px;
  z-index: 3;
}

.title-plate {
  background: linear-gradient(160deg, var(--card), var(--night));
  border: 1px solid var(--edge);
  padding: 28px 26px 32px;
  border-radius: 8px 32px 8px 32px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.lede {
  margin: 10px 0 14px;
  color: var(--lilac);
  font-size: 1.25rem;
}

.tag {
  margin: 0 0 22px;
  color: var(--mist);
  line-height: 1.55;
  max-width: 36rem;
}

.gold-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--ink);
  background: linear-gradient(90deg, var(--gold), #ff8a3d);
  text-decoration: none;
  border-radius: 999px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
}

.trail,
.shots,
.field-notes {
  padding: 56px var(--pad) 24px;
}

.band {
  max-width: 40rem;
  margin: 0 0 28px;
  text-align: left;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 4px;
}

.rank-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 46rem;
}

.rank-path li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0 22px;
  border-left: 2px solid var(--violet);
  margin-left: 22px;
  padding-left: 18px;
}

.rank-path__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -44px;
  background: var(--night);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  border-radius: 50%;
}

.rank-path h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.rank-path p {
  margin: 0;
  color: var(--mist);
  line-height: 1.5;
}

.peek-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 28px;
  -webkit-overflow-scrolling: touch;
}

.peek-rail figure {
  flex: 0 0 68%;
  max-width: 320px;
  margin: 0;
  scroll-snap-align: start;
}

.peek-rail img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--edge);
  background: var(--card);
}

.peek-rail figcaption {
  margin-top: 10px;
  color: var(--mist);
  font-size: 0.9rem;
}

.scrolls {
  display: grid;
  gap: 12px;
  max-width: 46rem;
}

.scroll {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 4px 16px 8px;
}

.scroll summary {
  cursor: pointer;
  list-style: none;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 650;
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--gold);
}

.scroll summary::-webkit-details-marker {
  display: none;
}

#privacy p,
#support p {
  color: var(--mist);
  line-height: 1.6;
}

#privacy a,
#support a {
  color: var(--lilac);
}

.colophon {
  margin: 24px var(--pad) 96px;
  color: var(--mist);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .plate-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
  }

  .overlap {
    min-height: 280px;
  }

  .peek-rail figure {
    flex-basis: 78%;
  }

  .map-marks {
    left: 12px;
    bottom: 12px;
  }
}
