:root {
  color-scheme: dark;
  --ink: #f1f0dc;
  --muted: #b5bca9;
  --deep: #0a1714;
  --evergreen: #10251f;
  --moss: #3f684f;
  --fern: #82a36f;
  --lichen: #c9d09f;
  --gold: #d5a94c;
  --line: rgba(220, 225, 193, 0.17);
  --panel: rgba(20, 42, 35, 0.72);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 7%, rgba(91, 135, 100, 0.2), transparent 30rem),
    linear-gradient(180deg, #0d211b 0%, var(--deep) 58%, #08110f 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--deep);
  background: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header,
.site-footer,
.section,
.hero {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.wordmark-mark { width: 2rem; color: var(--lichen); }
.location { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(22rem, 0.94fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: center;
  min-height: min(47rem, calc(100svh - 5.25rem));
  padding-block: 5rem 6.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--lichen);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1, h2 {
  max-width: 17ch;
  margin-bottom: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(3.8rem, 8vw, 7.4rem); }
h2 { font-size: clamp(2.45rem, 5vw, 4.65rem); }
h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }

.lede {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hero-actions p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--lichen);
  color: var(--deep);
  background: var(--lichen);
  box-shadow: 5px 5px 0 rgba(7, 15, 13, 0.7);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.map-window {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 37rem;
  overflow: hidden;
  border: 1px solid rgba(220, 225, 193, 0.26);
  background: #142c24;
  box-shadow: 1.2rem 1.2rem 0 rgba(4, 12, 10, 0.7);
  isolation: isolate;
}

.contours {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 27% 31%, transparent 0 13%, rgba(140, 168, 112, 0.24) 13.3% 13.8%, transparent 14.1% 19%, rgba(140, 168, 112, 0.17) 19.3% 19.8%, transparent 20.1%),
    radial-gradient(ellipse at 70% 70%, transparent 0 16%, rgba(140, 168, 112, 0.23) 16.3% 16.9%, transparent 17.2% 24%, rgba(140, 168, 112, 0.15) 24.3% 24.9%, transparent 25.2%),
    linear-gradient(rgba(220,225,193,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,225,193,.045) 1px, transparent 1px),
    #18382d;
  background-size: auto, auto, 24px 24px, 24px 24px, auto;
}

.route {
  position: absolute;
  display: block;
  border: 3px solid var(--lichen);
  opacity: 0.7;
}

.route-one { inset: 16% 27% 22% 34%; border-width: 0 0 3px 3px; transform: rotate(18deg); }
.route-two { inset: 36% 10% 8% 52%; border-width: 3px 3px 0 0; transform: rotate(-13deg); }

.landmark {
  position: absolute;
  width: 1.1rem;
  aspect-ratio: 1;
  border: 3px solid var(--gold);
  background: #17342a;
  transform: rotate(45deg);
}
.landmark-one { top: 24%; left: 32%; }
.landmark-two { right: 21%; bottom: 28%; }

.you-are-here {
  position: absolute;
  top: 49%;
  left: 46%;
  width: 1.15rem;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(213, 169, 76, 0.2);
}

.fog {
  position: absolute;
  z-index: 2;
  left: -10%;
  width: 120%;
  height: 45%;
  filter: blur(18px);
  opacity: 0.88;
  background: repeating-linear-gradient(7deg, rgba(210, 218, 197, 0.77) 0 1.8rem, rgba(105, 130, 116, 0.35) 2rem 3.3rem, transparent 3.7rem 5rem);
}

.fog-top { top: -21%; transform: rotate(-7deg); animation: drift 14s ease-in-out infinite alternate; }
.fog-bottom { bottom: -24%; transform: rotate(8deg); animation: drift 17s ease-in-out infinite alternate-reverse; }

.map-caption {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 0.8rem;
  left: 1rem;
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section { padding-block: clamp(5rem, 10vw, 9rem); border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.steps li { min-height: 14rem; padding: 1.5rem; background: var(--evergreen); }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }
.step-number { display: block; margin-bottom: 3.5rem; color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }

.world { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr); gap: clamp(3rem, 9vw, 8rem); align-items: end; }
.world-panel > p:last-child { max-width: 44rem; margin-bottom: 0; color: var(--muted); font-size: 1.06rem; }
.discoveries { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.discoveries li { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.discoveries span { width: 1.2rem; color: var(--gold); text-align: center; }

.outside { position: relative; overflow: hidden; }
.outside-grid { position: absolute; inset: 2rem 0; opacity: 0.15; background: linear-gradient(135deg, transparent 48%, var(--fern) 49% 51%, transparent 52%) 0 0 / 4rem 4rem; mask-image: linear-gradient(90deg, transparent, #000 40%); }
.outside-copy { position: relative; max-width: 42rem; }
.outside-copy p:last-child { max-width: 39rem; color: var(--muted); font-size: 1.06rem; }
.formula { position: relative; display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin: 4rem 0 0; color: var(--lichen); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 3vw, 2rem); }
.formula b { color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; min-height: 8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.site-footer a { text-underline-offset: 0.3em; }
.footer-brand { color: var(--ink); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.not-found { display: grid; min-height: 100svh; place-items: center; padding: 1.25rem; }
.not-found-card { width: min(100%, 42rem); padding: clamp(2rem, 7vw, 5rem); border: 1px solid var(--line); background: var(--panel); box-shadow: 1rem 1rem 0 rgba(4, 12, 10, 0.6); }
.not-found-card .wordmark { margin-bottom: 5rem; }
.not-found-card h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
.not-found-card > p:not(.eyebrow) { color: var(--muted); }
.not-found-card .coming-soon { margin-top: 1rem; }

@keyframes drift {
  from { translate: -2% 0; }
  to { translate: 3% 2%; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 4rem 5rem; }
  .map-window { width: min(100%, 32rem); justify-self: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .world { grid-template-columns: 1fr; }
  .discoveries { max-width: 32rem; }
}

@media (max-width: 540px) {
  .site-header, .site-footer, .section, .hero { width: min(calc(100% - 1.5rem), var(--max)); }
  .site-header { min-height: 4.5rem; }
  .location { display: none; }
  .hero { gap: 3.5rem; padding-top: 3.5rem; }
  h1 { font-size: clamp(3.35rem, 17vw, 5.3rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .map-window { box-shadow: 0.65rem 0.65rem 0 rgba(4, 12, 10, 0.7); }
  .section-heading { display: block; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 11rem; }
  .step-number { margin-bottom: 2.25rem; }
  .site-footer { grid-template-columns: 1fr auto; gap: 0.75rem; padding-block: 2rem; }
  .site-footer a { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
