* { box-sizing: border-box; }
body { margin: 0; color: #f2eddf; background: #171a16; }
a { color: inherit; }
:focus-visible { outline: 2px solid #e7aa62; outline-offset: 3px; }
.wrap { width: min(1160px, 90%); margin-inline: auto; }
.site-header [aria-current="page"] { color: #e7aa62; }
.atlas { position: relative; height: 100svh; min-height: calc(var(--header-height) + 22rem); background: #171e1a; isolation: isolate; }
.atlas h1 { position: absolute; top: calc(var(--header-height) + .85rem); left: clamp(.8rem, 4vw, 3rem); margin: 0; font-size: clamp(1.35rem,4vw,3rem); pointer-events: none; z-index: 1; }
.map-window { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.map-window.is-panning, .map-window.is-panning * { cursor: grabbing; user-select: none; }
.map-stage { position: relative; display: grid; place-items: center; min-height: 100%; width: 100%; }
.map-stage img { display: block; width: 100%; }
#pins { position: absolute; width: 100%; aspect-ratio: 2; inset-inline: 0; top: 50%; transform: translateY(-50%); background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), #e2ca9220 calc(100% / 12 - 1px) calc(100% / 12)), repeating-linear-gradient(transparent 0 calc(100% / 6 - 1px), #e2ca9220 calc(100% / 6 - 1px) calc(100% / 6)); pointer-events: none; }
.map-pin { position: absolute; transform: translate(-50%, -50%); width: 42px; height: 42px; border: 0; background: transparent; color: #e7aa62; pointer-events: auto; }
.map-pin::after { content: ""; display: block; margin: auto; width: 13px; height: 13px; border: 2px solid #171a16; outline: 1px solid currentColor; background: currentColor; transform: rotate(45deg); box-shadow: 0 0 14px #000; }
.map-pin[data-category="mystery"] { color: #dba4a1; }
.map-pin[data-category="visited"] { color: #bad39f; }
.map-pin:hover::after { background: #fff; }
.map-notebook { position: absolute; top: calc(var(--header-height) + .85rem); right: 1rem; width: min(19rem, calc(100% - 2rem)); display: grid; justify-items: end; pointer-events: none; z-index: 2; }
.map-notebook summary, .notebook-panel { pointer-events: auto; }
.map-notebook summary { margin-left: auto; width: fit-content; display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 1px solid #b5915b; border-radius: 3px 10px 10px 3px; background: #dfc99c; color: #322318; box-shadow: 0 5px 12px #0007; }
.map-notebook summary::-webkit-details-marker { display: none; }
.notebook-panel { margin-top: .45rem; width: 100%; max-height: min(50svh, 25rem); overflow: auto; padding: 1rem; background: #eadcbf; color: #30271c; border-radius: 3px 8px 8px 3px; box-shadow: 0 8px 18px #0008; }
.notebook-panel label { display: grid; gap: .35rem; }
.notebook-panel select { padding: .45rem; font: inherit; }
#place-list { list-style: none; padding: 0; margin-bottom: 0; }
#place-list button { width: 100%; text-align: left; padding: .65rem .25rem; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid #78654355; }
#place-list button:hover { background: #d7be8e; }
.map-zoom { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: .35rem; }
.map-zoom button, .place-close { width: 44px; height: 44px; border: 1px solid #9e8155; background: #20251e; color: #f3dfbd; font: 1.35rem Oswald, sans-serif; }
.map-credit, .map-no-script { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: .2rem .4rem; background: #171a16; font-size: .8rem; }
.map-no-script { bottom: 4rem; }
#place-card { width: min(29rem, 92vw); max-height: 85svh; padding: 0; background: #252820; color: #f2eddf; border: 1px solid #9e8155; }
#place-card::backdrop { background: #0009; }
#place-image { display: block; width: 100%; max-height: 15rem; object-fit: cover; }
.place-close { position: absolute; top: .6rem; right: .6rem; }
.place-body { padding: 1.2rem; }
.place-body h2, #place-category { margin: 0; }
#place-category { color: #e7aa62; }
.place-body .button { color: #201a13; text-decoration: none; }
footer { padding-block: 2rem; }
@media(max-width: 480px) {
  .map-notebook summary span { display: none; }
}
.image-caption { margin: 0; padding: .3rem 1.2rem; color: #d8c9aa; font-size: .85rem; }
.map-zoom button:disabled { opacity: .55; }

.map-signals {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  aspect-ratio: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.radar-beacon {
  position: absolute;
  /* Approximate center of the Bermuda Triangle, 27° N, 68° W. */
  left: 31.11%;
  top: 35%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffc277;
  box-shadow: 0 0 12px #ed8a43;
}

.radar-beacon::before,
.radar-beacon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #ffc277;
  border-radius: 50%;
  opacity: .65;
}

.radar-beacon::after {
  inset: -10px;
  opacity: .3;
}

@media (prefers-reduced-motion: no-preference) {
  .radar-beacon {
    animation: radar-blink 2.8s ease-in-out infinite;
  }

  .radar-beacon::before,
  .radar-beacon::after {
    inset: -5px;
    animation: radar-ring 2.8s ease-out infinite;
  }

  .radar-beacon::after {
    animation-delay: -.65s;
  }
}

@keyframes radar-blink {
  0%, 100% { background-color: #ffc277; }
  45% { background-color: #b06a38; }
}

@keyframes radar-ring {
  from { transform: scale(.75); opacity: .85; }
  to { transform: scale(3); opacity: 0; }
}
