@font-face {
  font-family: "NQ Young Serif";
  src: url("/fonts/young-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "NQ Space Grotesk";
  src: url("/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "NQ JetBrains Mono";
  src: url("/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-display: swap;
}

:root {
  --nq-cream: #f5ebe2;
  --nq-paper: #fbf7f1;
  --nq-teal: #0b4a5c;
  --nq-deep: #093846;
  --nq-lime: #daf080;
  --nq-ink: #17333b;
  --nq-muted: #60757a;
  --nq-line: rgba(9, 56, 70, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nq-paper);
  color: var(--nq-ink);
  font-family: "NQ Space Grotesk", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

.quest-shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.quest-topbar {
  position: absolute;
  z-index: 1000;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(245, 235, 226, 0.22);
}

.quest-topbar--solid {
  position: relative;
  background: var(--nq-deep);
}

.quest-topbar__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.quest-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--nq-cream);
  font: 400 25px/1 "NQ Young Serif", serif;
  text-decoration: none;
}

.quest-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.quest-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.quest-nav a {
  color: rgba(245, 235, 226, 0.84);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.quest-nav a:hover {
  color: var(--nq-cream);
}

.quest-nav .quest-nav__cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--nq-lime);
  color: var(--nq-deep);
  font-weight: 700;
}

.quest-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--nq-deep);
  color: var(--nq-cream);
}

.quest-hero__image,
.quest-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.quest-hero__image {
  object-fit: cover;
}

.quest-hero__shade {
  background:
    linear-gradient(90deg, rgba(4, 28, 35, 0.89) 0%, rgba(4, 28, 35, 0.62) 44%, rgba(4, 28, 35, 0.2) 74%),
    linear-gradient(0deg, rgba(4, 28, 35, 0.58) 0%, transparent 42%);
}

.quest-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 142px;
  padding-bottom: 70px;
}

.quest-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 38px;
  color: rgba(245, 235, 226, 0.72);
  font-size: 13px;
}

.quest-breadcrumbs a {
  text-decoration: none;
}

.quest-breadcrumbs a:hover {
  color: var(--nq-lime);
}

.quest-eyebrow {
  color: var(--nq-teal);
  font: 500 11px/1.4 "NQ JetBrains Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.quest-eyebrow--light {
  color: var(--nq-lime);
}

.quest-hero h1 {
  max-width: 900px;
  margin-top: 13px;
  font: 400 clamp(58px, 8.2vw, 112px)/0.93 "NQ Young Serif", serif;
  letter-spacing: -0.045em;
}

.quest-hero__description {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(245, 235, 226, 0.88);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
}

.quest-hero__description p + p {
  margin-top: 12px;
}

.quest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.quest-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

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

.quest-button--lime {
  background: var(--nq-lime);
  color: var(--nq-deep);
}

.quest-button--lime:hover {
  background: #e3f69a;
}

.quest-button--ghost {
  border-color: rgba(245, 235, 226, 0.45);
  background: rgba(4, 28, 35, 0.28);
  color: var(--nq-cream);
}

.quest-hero__credit {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 14px;
  max-width: calc(100% - 40px);
  min-width: 24px;
  min-height: 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(5, 25, 31, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
  text-decoration: none;
}

.quest-hero__credit:hover,
.quest-catalog-card__credit:hover {
  color: #fff;
  text-decoration: underline;
}

.quest-facts {
  border-bottom: 1px solid var(--nq-line);
  background: var(--nq-cream);
}

.quest-facts__grid {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(150px, 0.7fr));
  align-items: stretch;
}

.quest-facts__intro,
.quest-fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  border-right: 1px solid var(--nq-line);
}

.quest-facts__intro {
  margin: 0;
  padding-left: 0;
  color: var(--nq-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.quest-fact:last-child {
  padding-right: 0;
  border-right: 0;
}

.quest-facts strong {
  color: var(--nq-deep);
  font-size: 15px;
}

.quest-facts span {
  margin-top: 3px;
  color: var(--nq-muted);
  font-size: 13px;
}

.quest-places {
  padding: 108px 0 118px;
  background: var(--nq-paper);
}

.quest-section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 46px;
}

.quest-section-head h2,
.quest-handoff h2 {
  margin-top: 12px;
  color: var(--nq-deep);
  font: 400 clamp(43px, 5.6vw, 70px)/1 "NQ Young Serif", serif;
  letter-spacing: -0.035em;
}

.quest-section-head > p {
  max-width: 470px;
  color: var(--nq-muted);
  font-size: 18px;
}

.quest-map-frame {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--nq-line);
  border-radius: 20px;
  background: #dce5df;
}

/* Critical Leaflet layout rules are kept local so the map still lays out
   correctly if a third-party stylesheet is unavailable. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-container {
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  visibility: hidden;
  filter: inherit;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg { z-index: 200; }

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-control { float: left; clear: both; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 16px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 16px; }
.leaflet-right .leaflet-control { margin-right: 16px; }

.leaflet-bar {
  border: 1px solid rgba(9, 56, 70, 0.22);
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(9, 56, 70, 0.16);
}

.leaflet-bar a {
  width: 34px;
  height: 34px;
  display: block;
  border-bottom: 1px solid rgba(9, 56, 70, 0.18);
  background: var(--nq-paper);
  color: var(--nq-deep);
  font: 700 20px/34px "NQ Space Grotesk", sans-serif;
  text-align: center;
  text-decoration: none;
}

.leaflet-bar a:first-child {
  border-radius: 8px 8px 0 0;
}

.leaflet-bar a:last-child {
  border-bottom: 0;
  border-radius: 0 0 8px 8px;
}

.leaflet-control-attribution {
  padding: 2px 6px;
  background: rgba(251, 247, 241, 0.82);
  color: var(--nq-muted);
  font-size: 10px;
}

.leaflet-control-attribution a {
  color: var(--nq-teal);
}

.leaflet-popup {
  position: absolute;
  margin-bottom: 20px;
  text-align: center;
}

.leaflet-popup-content-wrapper {
  padding: 1px;
  box-shadow: 0 8px 28px rgba(9, 56, 70, 0.22);
  text-align: left;
}

.leaflet-popup-content {
  margin: 14px 18px;
  line-height: 1.45;
}

.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  margin: -10px auto 0;
  transform: rotate(45deg);
  box-shadow: 3px 3px 8px rgba(9, 56, 70, 0.14);
}

.leaflet-popup-close-button {
  position: absolute;
  z-index: 1;
  top: 2px;
  right: 4px;
  padding: 4px;
  border: 0;
  color: var(--nq-muted);
  font: 700 20px/1 sans-serif;
  text-decoration: none;
}

#quest-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.quest-map-fallback {
  position: absolute;
  z-index: 0;
  inset: 50% auto auto 50%;
  width: min(420px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  color: var(--nq-muted);
  text-align: center;
}

.quest-map-frame.is-ready .quest-map-fallback {
  display: none;
}

.quest-map-badge {
  position: absolute;
  z-index: 500;
  top: 18px;
  right: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(9, 56, 70, 0.14);
  border-radius: 999px;
  background: rgba(251, 247, 241, 0.92);
  color: var(--nq-deep);
  font: 500 10px/1.3 "NQ JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.nq-map-marker {
  background: transparent;
  border: 0;
}

.nq-map-marker span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid var(--nq-paper);
  border-radius: 50%;
  background: var(--nq-deep);
  box-shadow: 0 5px 18px rgba(9, 56, 70, 0.3);
  color: var(--nq-lime);
  font: 700 12px/1 "NQ Space Grotesk", sans-serif;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--nq-paper);
  color: var(--nq-deep);
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
  font-family: "NQ Space Grotesk", sans-serif;
}

.quest-place-list {
  display: block;
  margin: 50px 0 0;
  padding: 0;
  border-top: 1px solid var(--nq-line);
  list-style: none;
}

.quest-place {
  min-height: 112px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--nq-line);
}

.quest-place__marker {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid var(--nq-paper);
  border-radius: 50%;
  background: var(--nq-deep);
  box-shadow: 0 5px 16px rgba(9, 56, 70, 0.18);
  color: var(--nq-lime);
  font: 700 13px/1 "NQ Space Grotesk", sans-serif;
}

.quest-place h3 {
  margin: 0;
  color: var(--nq-deep);
  font: 400 clamp(26px, 2.8vw, 34px)/1.08 "NQ Young Serif", serif;
}

.quest-place__elevation {
  color: var(--nq-teal);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.quest-handoff {
  padding: 104px 0 110px;
  background: var(--nq-deep);
  color: var(--nq-cream);
}

.quest-handoff__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 78px;
  align-items: end;
}

.quest-handoff h2 {
  color: var(--nq-cream);
}

.quest-handoff__copy p {
  max-width: 500px;
  color: rgba(245, 235, 226, 0.76);
  font-size: 18px;
}

.quest-handoff__copy .quest-button {
  margin-top: 28px;
}

.quest-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(245, 235, 226, 0.13);
  background: #052630;
  color: rgba(245, 235, 226, 0.62);
  font-size: 13px;
}

.quest-footer__inner,
.quest-footer nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.quest-footer nav {
  justify-content: flex-end;
}

.quest-footer a {
  text-decoration: none;
}

.quest-footer a:hover {
  color: var(--nq-cream);
}

.quest-catalog {
  min-height: 70vh;
  background: var(--nq-paper);
}

.quest-catalog__intro {
  padding: 90px 0 78px;
  background: var(--nq-cream);
}

.quest-catalog__intro .quest-breadcrumbs {
  margin-bottom: 52px;
  color: var(--nq-muted);
}

.quest-catalog__intro .quest-breadcrumbs a:hover {
  color: var(--nq-teal);
}

.quest-catalog__intro h1 {
  max-width: 900px;
  margin-top: 14px;
  color: var(--nq-deep);
  font: 400 clamp(52px, 7vw, 92px)/0.98 "NQ Young Serif", serif;
  letter-spacing: -0.04em;
}

.quest-catalog__intro > .quest-shell > p:last-child {
  max-width: 720px;
  margin-top: 26px;
  color: var(--nq-muted);
  font-size: 19px;
}

.quest-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 72px;
  padding-bottom: 110px;
}

.quest-catalog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nq-line);
  border-radius: 20px;
  background: #fffaf5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quest-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(9, 56, 70, 0.12);
}

.quest-catalog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.quest-catalog-card__media {
  position: relative;
  aspect-ratio: 12 / 7;
  overflow: hidden;
  background: var(--nq-deep);
}

.quest-catalog-card__image-link {
  height: 100%;
  display: block;
}

.quest-catalog-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.quest-catalog-card:hover .quest-catalog-card__media img {
  transform: scale(1.025);
}

.quest-catalog-card__credit {
  position: absolute;
  right: 9px;
  bottom: 8px;
  min-width: 24px;
  min-height: 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(5, 25, 31, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-size: 8px;
  line-height: 1.25;
  text-align: right;
  text-decoration: none;
}

.quest-catalog-card__body {
  padding: 28px 30px 30px;
}

.quest-catalog-card h2 {
  color: var(--nq-deep);
  font: 400 clamp(31px, 3.2vw, 44px)/1.03 "NQ Young Serif", serif;
  letter-spacing: -0.025em;
}

.quest-catalog-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 26px;
  margin-top: 24px;
  color: var(--nq-muted);
  font-size: 14px;
}

.quest-catalog-card__facts strong {
  color: var(--nq-teal);
}

.quest-catalog-card__link {
  margin-top: auto;
  padding-top: 27px;
  color: var(--nq-deep);
  font-size: 14px;
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
.leaflet-control a:focus-visible {
  outline: 3px solid var(--nq-lime);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .quest-shell {
    width: min(100% - 40px, 720px);
  }

  .quest-nav > a:not(.quest-nav__cta) {
    display: none;
  }

  .quest-hero {
    min-height: 720px;
  }

  .quest-hero__shade {
    background:
      linear-gradient(90deg, rgba(4, 28, 35, 0.86), rgba(4, 28, 35, 0.42)),
      linear-gradient(0deg, rgba(4, 28, 35, 0.66), transparent 52%);
  }

  .quest-facts__intro,
  .quest-fact {
    min-height: 104px;
    padding: 22px 20px;
  }

  .quest-facts__intro {
    padding-left: 0;
  }

  .quest-section-head,
  .quest-handoff__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .quest-map-frame {
    min-height: 500px;
  }

  .quest-catalog__grid {
    gap: 20px;
  }

}

@media (max-width: 600px) {
  .quest-shell {
    width: calc(100% - 32px);
  }

  .quest-topbar__inner {
    min-height: 68px;
  }

  .quest-brand {
    font-size: 21px;
  }

  .quest-brand img {
    width: 34px;
    height: 34px;
  }

  .quest-nav .quest-nav__cta {
    min-height: 40px;
    padding-inline: 16px;
    font-size: 13px;
  }

  .quest-hero {
    min-height: 690px;
  }

  .quest-hero__content {
    padding-top: 112px;
    padding-bottom: 58px;
  }

  .quest-breadcrumbs {
    margin-bottom: 26px;
  }

  .quest-hero h1 {
    font-size: clamp(50px, 15vw, 72px);
  }

  .quest-hero__description {
    margin-top: 22px;
    font-size: 17px;
  }

  .quest-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .quest-button {
    width: 100%;
    padding-inline: 18px;
    text-align: center;
  }

  .quest-hero__credit {
    right: 8px;
    bottom: 7px;
    font-size: 8px;
  }

  .quest-facts__grid {
    grid-template-columns: 1fr;
  }

  .quest-facts__intro,
  .quest-fact,
  .quest-fact:nth-child(2) {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--nq-line);
  }

  .quest-fact:last-child {
    border-bottom: 0;
  }

  .quest-places,
  .quest-handoff {
    padding: 76px 0 82px;
  }

  .quest-section-head {
    margin-bottom: 32px;
  }

  .quest-section-head h2,
  .quest-handoff h2 {
    font-size: 43px;
  }

  .quest-section-head > p,
  .quest-handoff__copy p {
    font-size: 16px;
  }

  .quest-map-frame {
    min-height: 430px;
    border-radius: 14px;
  }

  .quest-map-badge {
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    font-size: 8px;
  }

  .quest-place-list {
    margin-top: 34px;
  }

  .quest-place {
    min-height: 96px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 0;
  }

  .quest-place__marker {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .quest-place h3 {
    font-size: 28px;
  }

  .quest-footer__inner,
  .quest-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .quest-catalog__intro {
    padding: 62px 0 58px;
  }

  .quest-catalog__intro .quest-breadcrumbs {
    margin-bottom: 36px;
  }

  .quest-catalog__intro h1 {
    font-size: 50px;
  }

  .quest-catalog__intro > .quest-shell > p:last-child {
    font-size: 17px;
  }

  .quest-catalog__grid {
    grid-template-columns: 1fr;
    padding-top: 46px;
    padding-bottom: 76px;
  }

  .quest-catalog-card__body {
    padding: 23px 22px 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .quest-button {
    transition: none;
  }
}
