html {
  color-scheme: light dark;
  scroll-behavior: auto;
}
body {
  margin: 0;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
body:has(#atlas) {
  background: #e6ebef;
}

#atlas {
  --paper: light-dark(#e6ebef, #172a40);
  --ink: light-dark(#204b71, #bed4e4);
  --secondary: light-dark(#365c7a, #b0c8dd);
  --accent: light-dark(#e9482f, #ff7653);
  --shadow: light-dark(#a63827, #b33e26);
  position: relative;
  width: 100%;
  min-height: max(560px, 100svh);
  box-sizing: border-box;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
}
#atlas * {
  box-sizing: border-box;
}
#atlas .landscape {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
#atlas canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#atlas .trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
#atlas .trails path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.65px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 399px) {
  #atlas .trails path {
    stroke-width: 1.4px;
  }
}
/* Native anchors work even if the application module is absent or delayed. */
#atlas:not([data-enhanced]) .work:not(:target) {
  display: none;
}
#atlas:not([data-enhanced]):has(.work:target) .landscape {
  opacity: 0.16;
}
#atlas:not([data-enhanced]):has(.work:target) .ledge,
#atlas:not([data-enhanced]):has(.work:target) .place {
  display: none;
}
#atlas header {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 37px;
  z-index: 3;
  pointer-events: none;
}
#atlas h1 {
  font-family: "Bodoni 72", Didot, "Times New Roman", serif;
  font-size: 132px;
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -9px;
  margin: 0 0 22px -5px;
}
#atlas .intro {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  max-width: 230px;
}
#atlas .lettering {
  text-shadow:
    0 1px 3px var(--paper),
    0 0 20px var(--paper);
}
#atlas nav {
  position: absolute;
  right: 0;
  top: 15px;
  display: flex;
  gap: 25px;
  font-size: 14px;
  line-height: 1.5;
  pointer-events: auto;
}
#atlas a,
#atlas .link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
}
#atlas a:hover,
#atlas .link:hover,
#atlas .link[aria-expanded="true"] {
  text-decoration: underline;
}
#atlas .link {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  text-shadow: inherit;
  touch-action: manipulation;
}
#atlas .marker {
  position: absolute;
  z-index: 2;
  display: block;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  touch-action: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
#atlas .marker[data-held="true"] {
  cursor: grabbing;
}
#atlas .dot {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 0 var(--shadow);
  pointer-events: none;
}
#atlas .shadow {
  position: absolute;
  left: 14px;
  top: 19px;
  width: 23px;
  height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  filter: blur(2px);
  pointer-events: none;
}
#atlas .marker[data-held="true"] .dot {
  transform: translateY(-7px) scale(1.12);
}
#atlas .marker[data-held="true"] .shadow {
  transform: translate(2px, 3px) scale(0.85);
  opacity: 0.65;
}
#atlas .ledge {
  position: absolute;
  left: 34px;
  bottom: 29px;
  z-index: 3;
  font-size: 12px;
  line-height: 1.5;
  max-width: calc(100% - 68px);
}
#atlas .hint {
  margin: 9px 0 0;
  color: var(--secondary);
  font-size: 11px;
}
#atlas .actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
#atlas .actions button {
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 5px 0;
  min-height: 30px;
  touch-action: manipulation;
  text-shadow: inherit;
}
#atlas .actions button:disabled {
  opacity: 0.45;
}
#atlas .source {
  position: static;
}
#atlas .source summary {
  list-style: none;
  user-select: none;
  min-height: 30px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
}
#atlas .source summary::-webkit-details-marker {
  display: none;
}
#atlas .source summary::after {
  content: " +";
  white-space: pre;
}
#atlas .source[open] summary::after {
  content: " −";
}
#atlas .source p {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  margin: 0;
  padding: 12px 14px;
  width: max-content;
  max-width: calc(100vw - 68px);
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.55;
  text-shadow: none;
}
#atlas .source a {
  text-decoration: underline;
}
#atlas .place {
  position: absolute;
  right: 34px;
  bottom: 31px;
  z-index: 2;
  text-align: right;
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
  pointer-events: none;
}
#atlas .place span {
  display: block;
}
#atlas .clock {
  font-variant-numeric: tabular-nums;
}
#atlas[data-view="work"] .place {
  display: none;
}
#atlas [hidden] {
  display: none !important;
}
#atlas[data-view="work"] .landscape {
  opacity: 0.16;
  pointer-events: none;
}
#atlas .work {
  position: relative;
  z-index: 2;
  padding: 220px 56px 48px;
  max-width: 1000px;
}
#atlas .project {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 35px;
  margin: 0 0 26px;
  align-items: start;
}
#atlas .project h2 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0;
}
#atlas .project p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 500px;
}
#atlas .back {
  margin-top: 6px;
  font-size: 13px;
  text-decoration: underline;
}
#atlas .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  #atlas {
    min-height: max(560px, 100svh);
  }
  #atlas header {
    left: 24px;
    right: 24px;
    top: 30px;
  }
  #atlas h1 {
    font-size: 89px;
    letter-spacing: -5.8px;
    margin: 0 0 17px -3px;
  }
  #atlas .intro {
    font-size: 11px;
    max-width: 185px;
  }
  #atlas nav {
    position: static;
    gap: 22px;
    margin-top: 20px;
    font-size: 13px;
  }
  #atlas .ledge {
    left: 24px;
    bottom: 25px;
    max-width: calc(100% - 48px);
  }
  #atlas .actions {
    gap: 24px;
  }
  #atlas .work {
    padding: 215px 24px 34px;
  }
  #atlas .project {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 23px;
  }
  #atlas .project h2 {
    font-size: 21px;
  }
  #atlas .project p {
    font-size: 14px;
    line-height: 1.6;
  }
  #atlas .source p {
    max-width: calc(100vw - 48px);
    white-space: normal;
  }
}
@media (pointer: coarse) {
  #atlas .actions button,
  #atlas nav a,
  #atlas nav button,
  #atlas .source summary,
  #atlas .back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 600px) {
  #atlas .place {
    left: 24px;
    right: auto;
    bottom: 112px;
    text-align: left;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #atlas .marker[data-held="true"] .dot,
  #atlas .marker[data-held="true"] .shadow {
    transform: none;
  }
}

#atlas .landscape::before {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0.2;
  mask-image: url("./terrain-fallback.png");
  mask-size: cover;
  mask-position: center;
  -webkit-mask-image: url("./terrain-fallback.png");
  -webkit-mask-size: cover;
  -webkit-mask-position: center;
}
#atlas canvas,
#atlas .trails,
#atlas .marker,
#atlas .play-button,
#atlas .hint {
  visibility: hidden;
  opacity: 0;
  transition: opacity 200ms ease-out;
}
#atlas[data-graphics="ready"] canvas,
#atlas[data-graphics="ready"] .trails,
#atlas[data-graphics="ready"] .marker,
#atlas[data-graphics="ready"] .play-button,
#atlas[data-graphics="ready"] .hint {
  visibility: visible;
  opacity: 1;
}
#atlas[data-graphics="fallback"] .landscape::before {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  #atlas canvas,
  #atlas .trails,
  #atlas .marker,
  #atlas .play-button,
  #atlas .hint {
    transition: none;
  }
}
#atlas[data-view="work"] .ledge {
  display: none;
}
#atlas .work .paper {
  text-decoration: underline;
}
#atlas .work-source {
  margin: 22px 0 0;
  font-size: 11px;
  line-height: 1.5;
}
#atlas .work-source a {
  text-decoration: underline;
}
#atlas .actions button,
#atlas .source summary {
  min-height: 36px;
}
@media (max-width: 720px) {
  #atlas .project {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 560px;
  }
}
@media (pointer: coarse) {
  #atlas .actions button,
  #atlas .source summary {
    min-height: 44px;
  }
}
@media (max-height: 540px) and (min-width: 601px) {
  #atlas {
    min-height: max(320px, 100svh);
  }
  #atlas header {
    top: 24px;
  }
  #atlas h1 {
    font-size: 105px;
  }
  #atlas .work {
    padding-top: 190px;
  }
}
@media print {
  #atlas .landscape,
  #atlas .ledge,
  #atlas .place,
  #atlas .back {
    display: none !important;
  }
  #atlas {
    background: white;
    color: black;
    min-height: 0;
  }
  #atlas header {
    position: relative;
    inset: auto;
    padding: 20px;
  }
  #atlas .work[hidden] {
    display: block !important;
  }
  #atlas .work {
    padding: 20px;
  }
  #atlas nav {
    display: none;
  }
}
