#home-screen :is(.atlas-geography, .atlas-key-summit) {
  --atlas-geography-ink: color-mix(in srgb, var(--powder-ink) 85%, var(--glacier));
  --atlas-geography-halo: var(--powder-cream);
}

#home-screen[data-sky=night] .atlas-geography {
  --atlas-geography-ink: var(--snow-drift);
  --atlas-geography-halo: var(--night);
}

#home-screen .atlas-geography {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#home-screen .atlas-geography[hidden] { display: none; }

#home-screen .atlas-geography-feature,
#home-screen .atlas-geography-name,
#home-screen .atlas-geography-peak {
  position: absolute;
  top: 0;
  left: 0;
}

/* Keep the lettering measurable before it is shown, so the camera can avoid
   collisions with the ski areas at every scale. */
#home-screen .atlas-geography-feature[hidden] {
  display: block !important;
  visibility: hidden;
}

#home-screen .atlas-geography-name {
  --atlas-geography-offset: translate(0, 0);
  color: var(--atlas-geography-ink);
  font: italic 500 15px/1.15 var(--font-display);
  letter-spacing: .06em;
  white-space: nowrap;
  transform: var(--atlas-geography-offset) translate(-50%, -50%) rotate(var(--atlas-geography-angle, 0deg));
  paint-order: stroke fill;
  -webkit-text-stroke: 2px var(--atlas-geography-halo);
}

#home-screen .atlas-geography-range .atlas-geography-name {
  font-weight:550;
  letter-spacing:.065em;
}
#home-screen .atlas-geography-range .atlas-geography-name > span {
  display:inline-block;
  white-space:pre;
}
#home-screen .atlas-geography-summit .atlas-geography-name {
  font: 600 11px/1.2 var(--font-sign);
  letter-spacing: .015em;
}

#home-screen .atlas-geography-overview .atlas-geography-name {
  font-size: 13px;
  letter-spacing: .045em;
}

#home-screen .atlas-geography-peak {
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 1px var(--atlas-geography-halo));
}

#home-screen :is(.atlas-geography-peak, .atlas-key-summit)::before,
#home-screen :is(.atlas-geography-peak, .atlas-key-summit)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--atlas-geography-ink);
  clip-path: polygon(50% 3%, 100% 91%, 0 91%);
}

#home-screen :is(.atlas-geography-peak, .atlas-key-summit)::after {
  inset: 2.75px 2px 1.5px;
  background: var(--atlas-geography-halo);
}

#home-screen .atlas-geography-lake .atlas-geography-name {
  --atlas-geography-halo: var(--night);
  color: var(--powder-cream);
  font-size: 13px;
  letter-spacing: .035em;
}

@media (max-width: 760px) {
  #home-screen .atlas-geography-name { font-size: 12px; }
  #home-screen .atlas-geography-overview .atlas-geography-name { font-size: 11px; }
  #home-screen .atlas-geography-summit .atlas-geography-name { font-size: 10px; }
  #home-screen .atlas-geography-lake .atlas-geography-name { font-size: 11px; }
}

/* The ink and gilding stay fixed in screen space while the folds belong to
   the printed sheet and travel with the terrain. */
#home-screen[data-atlas-national] #home-landscape::before,
#home-screen[data-atlas-national] #home-landscape::after {
  content: none;
}
#home-screen .atlas-paper { display: none; }
#home-screen[data-atlas-national=true] .atlas-art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(90deg, transparent 30%, #67472a14 33.28%, #fff5d974 33.34%, transparent 35.6%,
      transparent 63.9%, #704d3017 66.61%, #fff5d96b 66.68%, transparent 69.5%),
    linear-gradient(0deg, #4529160c, transparent 5% 94%, #714c2a0f);
  box-shadow: inset 0 0 0 4px #6e544e35;
  pointer-events: none;
}

.atlas-map-frame {
  --atlas-gondola-symbol:url('./images/living-atlas/illustrated/group-gondola.svg');
}
.atlas-map-frame :is(.atlas-pin-mark,.atlas-single-key) {
  display:grid;
  place-items:center;
  aspect-ratio:1;
  border:1px solid var(--powder-cream);
  border-radius:50%;
  background:var(--powder-red);
  box-shadow:0 0 0 1px var(--powder-ink);
}
/* Two ski tracks on the larger markers. Crowded points read as simple dots. */
.atlas-map-frame :is(.atlas-resort-pin[data-compact=false] .atlas-pin-mark,.atlas-single-key)::after {
  content:"";
  box-sizing:border-box;
  width:42%;
  height:62%;
  border-inline:1px solid var(--powder-cream);
  border-radius:1px;
  rotate:35deg;
}
#home-screen .atlas-cluster {
  position:absolute;
  top:0;
  left:0;
  z-index:2;
  display:grid;
  width:29px;
  height:30px;
  place-items:center;
  padding:1.7px 0 0;
  border:0;
  border-radius:4px;
  background:var(--atlas-gondola-symbol) center/contain no-repeat;
  color:#fff5d8;
  font:750 12px/1 var(--font-sign);
  font-variant-numeric:tabular-nums;
  text-shadow:0 1px #102e38;
  cursor:pointer;
  pointer-events:auto;
  touch-action:manipulation;
}
#home-screen .atlas-cluster[data-size=large] {width:34px;height:35px;font-size:14px;}
#home-screen .atlas-cluster[hidden] {display:none;}
#home-screen .atlas-cluster::after {
  content:'';
  position:absolute;
  top:50%;left:50%;
  width:44px;height:44px;
  border-radius:50%;
  transform:translate(-50%,-50%);
}
#home-screen .atlas-cluster:is(:hover,:focus-visible) {
  z-index:5;
  filter:drop-shadow(0 1px 1px #563a2a);
  color:#ffdf83;
}
#home-screen .atlas-cluster:focus-visible {outline:2px solid #203f47;outline-offset:2px;box-shadow:0 0 0 5px #fff4d5;}
#home-screen .atlas-resort-pin { color: #b4492e; }
#home-screen .atlas-resort-label > b {
  color: #213e42;
  font:650 13px/1.12 var(--font-display);
  letter-spacing:-.018em;
  -webkit-text-stroke: 2.5px #f4f1e2;
}
#home-screen .atlas-place {
  color: #485d55;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: .12em;
  -webkit-text-stroke: 1.5px #f0efdf;
}
#home-screen .atlas-place-water {
  color: #fff0c9;
  font: italic 530 15px/1.2 var(--font-display);
  letter-spacing: .04em;
  -webkit-text-stroke: 1.8px #285a68;
  text-shadow: none;
}
#home-screen .atlas-geography {
  --atlas-geography-ink: #294451;
  --atlas-geography-halo: #fff1c9;
}
#home-screen .atlas-geography-overview .atlas-geography-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .035em;
}
#home-screen .atlas-geography-lake .atlas-geography-name {
  --atlas-geography-halo: #285a68;
  color: #fff0c9;
}
@media (max-width: 600px) {
  #home-screen .atlas-cluster {width:26px;height:27px;font-size:11px;}
  #home-screen .atlas-cluster[data-size=large] {width:30px;height:31px;font-size:12.5px;}
  #home-screen .atlas-geography-overview .atlas-geography-name { font-size: 10px; }
}
#home-screen .atlas-cluster[data-caption]::before {
  content: attr(data-caption);
  position: absolute;
  top: calc(50% + var(--atlas-caption-y));
  left: calc(50% + var(--atlas-caption-x));
  transform: translate(-50%, -50%);
  color: #254448;
  font: italic 550 13px/1.1 var(--font-display);
  letter-spacing: .005em;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 2.75px #fff2ce;
  pointer-events: none;
}
@media (max-width: 600px) {
  #home-screen .atlas-cluster[data-caption]::before { font-size: 10.5px; }
}
