:root {
  --ink: #17231f;
  --ink-soft: #52635c;
  --ivory: #f5f3ed;
  --paper: #fbfaf6;
  --white: #ffffff;
  --green: #0f5c51;
  --green-dark: #102c27;
  --green-deep: #0a2924;
  --red: #b72b34;
  --gold: #c69a45;
  --line: rgba(23, 35, 31, 0.18);
  --line-light: rgba(255, 255, 255, 0.2);
  --serif: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --page: min(1240px, calc(100vw - 64px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ivory);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.skip-link {
  position: fixed;
  z-index: 500;
  top: 12px;
  left: 16px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-dark);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 32px;
  color: var(--white);
  border-bottom: 1px solid var(--line-light);
  background: var(--green-deep);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
}

.brand img {
  width: 148px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.brand span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.36);
  font-family: var(--serif);
  font-size: 19px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-nav a,
.header-action {
  position: relative;
}

.primary-nav a::after,
.header-action::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after,
.header-action:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action {
  justify-self: end;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  min-height: 590px;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 10%, rgba(198, 154, 69, 0.18), transparent 26%),
    linear-gradient(120deg, var(--green-deep), #123f36 68%, #0e554b);
  isolation: isolate;
}

.map-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, black, transparent 82%);
}

.hero-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 82px max(48px, calc((100vw - 1240px) / 2)) 86px;
}

.eyebrow,
.section-number,
.detail-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map-hero h1 {
  max-width: 880px;
  margin: 20px 0 26px;
  font-family: var(--serif);
  font-size: clamp(74px, 9.5vw, 142px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.79;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.42;
}

.hero-instructions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 42px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-instructions span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-instructions span::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.hero-note {
  display: flex;
  justify-content: end;
  flex-direction: column;
  padding: 54px max(36px, calc((100vw - 1240px) / 2)) 76px 42px;
  border-left: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.045);
}

.hero-note > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-note p {
  margin: 20px 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
}

.hero-note a {
  align-self: flex-start;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.explorer-section {
  padding: 108px 0 116px;
  background: var(--ivory);
}

.section-heading,
.explorer-shell,
.map-meaning {
  width: var(--page);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading h2,
.map-meaning h2,
.community-bridge h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.exploration-progress {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.exploration-progress span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exploration-progress p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.explorer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  align-items: start;
  overflow: clip;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(17, 45, 39, 0.1);
}

.map-column {
  min-width: 0;
  align-self: stretch;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(15, 92, 81, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 92, 81, 0.035) 1px, transparent 1px),
    #ebe7dc;
  background-size: 40px 40px;
}

.map-sticky {
  position: sticky;
  top: 0;
  padding: 32px;
}

.map-canvas {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2000 / 800;
  border: 1px solid rgba(23, 35, 31, 0.16);
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(17, 45, 39, 0.08);
}

.map-canvas::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  content: "INDONESIA / EDITORIAL PROTOTYPE";
  color: rgba(23, 35, 31, 0.43);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.map-canvas > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.72;
  filter: sepia(0.08) saturate(0.9);
}

.map-markers {
  position: absolute;
  inset: 0;
}

.map-marker {
  position: absolute;
  z-index: 3;
  top: var(--marker-y);
  left: var(--marker-x);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  transform: translate(-50%, -50%);
}

.marker-pulse,
.marker-dot {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.marker-pulse {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(183, 43, 52, 0.5);
  background: rgba(183, 43, 52, 0.12);
  animation: mapPulse 2.4s ease-out infinite;
}

.marker-dot {
  width: 12px;
  height: 12px;
  border: 3px solid var(--paper);
  background: var(--red);
  box-shadow: 0 2px 10px rgba(23, 35, 31, 0.34);
}

.marker-label {
  position: absolute;
  width: max-content;
  max-width: 118px;
  padding: 5px 8px;
  border: 1px solid rgba(23, 35, 31, 0.14);
  color: var(--ink);
  background: rgba(251, 250, 246, 0.93);
  box-shadow: 0 3px 10px rgba(23, 35, 31, 0.08);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.label-above .marker-label {
  bottom: 31px;
  left: 50%;
  transform: translateX(-50%);
}

.label-right .marker-label {
  top: 50%;
  left: 27px;
  transform: translateY(-50%);
}

.label-left .marker-label {
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
}

.label-below-left .marker-label {
  top: 29px;
  right: 18px;
}

.label-below-right .marker-label {
  top: 29px;
  left: 18px;
}

.map-marker:hover .marker-label,
.map-marker.is-active .marker-label {
  color: var(--white);
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.map-marker.is-active .marker-dot {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.2);
}

.map-marker.is-active .marker-pulse {
  border-color: rgba(198, 154, 69, 0.7);
  background: rgba(198, 154, 69, 0.2);
}

.map-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.place-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--line);
}

.place-list button {
  min-width: 0;
  padding: 13px 14px;
  border: 0;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  transition: color 180ms ease, background 180ms ease;
}

.place-list button:hover,
.place-list button.is-active {
  color: var(--white);
  background: var(--green-dark);
}

.place-list span,
.place-list strong {
  display: block;
}

.place-list span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.place-list button:hover span,
.place-list button.is-active span {
  color: rgba(255, 255, 255, 0.62);
}

.place-list strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.place-detail {
  min-width: 0;
  padding: 44px 42px 48px;
  scroll-margin-top: 18px;
}

.place-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: start;
}

.place-heading h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(50px, 5vw, 74px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.place-number {
  color: rgba(23, 35, 31, 0.22);
  font-family: var(--serif);
  font-size: 32px;
}

.place-introduction {
  margin: 28px 0 36px;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
}

.place-facts {
  border-top: 1px solid var(--line);
}

.place-facts article {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.place-facts span {
  padding-top: 3px;
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.place-facts p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.family-prompt,
.save-place {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.family-prompt h3,
.save-place h3,
.community-connection h3 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.24;
}

.connection-choices {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.connection-choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  background: transparent;
  transition: border-color 180ms ease, background 180ms ease;
}

.connection-choice:hover,
.connection-choice.is-selected {
  border-color: var(--green);
  background: rgba(15, 92, 81, 0.06);
}

.choice-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: var(--paper);
  font-size: 11px;
}

.connection-choice.is-selected .choice-mark {
  border-color: var(--green);
  background: var(--green);
}

.save-status {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.community-connection {
  margin-top: 36px;
  padding: 30px;
  color: var(--white);
  background: var(--green-dark);
}

.community-connection.is-invitation {
  color: var(--ink);
  border: 1px solid rgba(198, 154, 69, 0.44);
  background: #eee4cc;
}

.community-connection h3 {
  font-size: 28px;
}

.community-connection p:not(.detail-kicker) {
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.community-connection.is-invitation p:not(.detail-kicker) {
  color: var(--ink-soft);
}

.community-connection a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-sources {
  margin-top: 34px;
  color: var(--ink-soft);
  font-size: 11px;
}

.editorial-sources summary {
  color: var(--ink);
  font-weight: 750;
}

.editorial-sources p {
  margin: 14px 0;
}

.editorial-sources div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.editorial-sources a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-meaning {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 92px;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.meaning-copy {
  align-self: end;
}

.meaning-copy p {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
}

.meaning-copy a,
.community-bridge > a {
  display: inline-flex;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-bridge {
  padding: 116px max(32px, calc((100vw - 1100px) / 2));
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(198, 154, 69, 0.17), transparent 35%),
    var(--green-dark);
}

.community-bridge h2 {
  max-width: 920px;
  margin: 16px auto 26px;
}

.community-bridge > p:not(.section-number) {
  max-width: 650px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.68);
}

.community-bridge > a {
  color: var(--white);
}

footer {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 38px;
  align-items: start;
  padding: 60px max(32px, calc((100vw - 1240px) / 2));
  color: var(--white);
  border-top: 1px solid var(--line-light);
  background: var(--green-dark);
}

.footer-brand img {
  width: 154px;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--serif);
  font-size: 18px;
}

footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer small {
  grid-column: 2 / -1;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.mobile-primary-nav {
  display: none;
}

@keyframes mapPulse {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.65);
  }
  75%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .explorer-shell {
    grid-template-columns: 1fr;
  }

  .map-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-sticky {
    position: relative;
  }

  .place-detail {
    max-width: 760px;
    margin-inline: auto;
  }

  .mobile-primary-nav {
    position: fixed;
    z-index: 200;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: var(--white);
    background: rgba(10, 41, 36, 0.94);
    box-shadow: 0 16px 50px rgba(10, 41, 36, 0.3);
    backdrop-filter: blur(16px);
  }

  .mobile-primary-nav a {
    padding: 13px 10px;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-primary-nav a[aria-current="page"] {
    color: var(--green-dark);
    background: var(--gold);
  }

  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 32px);
  }

  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand img {
    width: 128px;
  }

  .brand span {
    font-size: 16px;
  }

  .header-action {
    font-size: 9px;
  }

  .map-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 72px 16px 64px;
  }

  .map-hero h1 {
    font-size: clamp(70px, 24vw, 104px);
  }

  .hero-note {
    padding: 38px 16px 48px;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .explorer-section {
    padding: 78px 0 82px;
  }

  .section-heading,
  .map-meaning {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .map-meaning h2,
  .community-bridge h2 {
    font-size: clamp(48px, 14vw, 66px);
  }

  .explorer-shell {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .map-sticky {
    padding: 18px 10px;
  }

  .map-canvas::after,
  .marker-label {
    display: none;
  }

  .map-marker,
  .marker-pulse {
    width: 28px;
    height: 28px;
  }

  .marker-dot {
    width: 11px;
    height: 11px;
  }

  .place-list {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
  }

  .place-detail {
    padding: 42px 20px 58px;
  }

  .place-facts article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .community-connection {
    padding: 26px 22px;
  }

  .map-meaning {
    padding: 82px 0;
  }

  .community-bridge {
    padding: 84px 20px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 48px 20px 52px;
  }

  footer nav {
    justify-content: flex-start;
  }

  footer small {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .brand span {
    display: none;
  }

  .hero-instructions {
    display: grid;
  }

  .place-heading h2 {
    font-size: 49px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
