/* Home-page foundations. Load before atlas-geography.css and greeting-v6.css. */
.hero-atlas {
  position: relative;
  color: var(--ink, #23453a);
  background: var(--paper, #f6f0e2);
}
.atlas-copy { position: relative; z-index: 2; min-width: 0; }
.atlas-copy h1 {
  font: 500 clamp(64px, 7vw, 112px)/1 var(--serif, Georgia, serif);
  letter-spacing: -.04em;
}
.atlas-copy h1 span { color: #2d766b; font-style: italic; font-weight: 400; }
.atlas-copy h1[tabindex="-1"]:focus { outline: none; }
.atlas-copy .eyebrow { text-transform: uppercase; }
.atlas-copy .hero-lead { font: 400 1rem/1.75 var(--sans, Arial, sans-serif); }
.atlas-intro .text-link { display: inline-block; padding-block: 8px; }
.atlas-world { position: relative; min-width: 0; }
.scene { position: relative; overflow: visible; }
.scene > img { display: block; width: 100%; height: auto; }
.atlas-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font: 400 13px/1.6 var(--sans, Arial, sans-serif);
}
.atlas-caption p { margin: 0; }
.atlas-caption a { text-underline-offset: .25em; }
.atlas-caption button, .map-dialog button {
  font-family: var(--sans, Arial, sans-serif);
  cursor: pointer;
}
.map-expand { color: inherit; border: 0; border-bottom: 1px solid currentColor; }
.map-dialog button:disabled { cursor: default; }
.place-card { box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; }
.place-card h3, .map-dialog h2 { font-family: var(--serif, Georgia, serif); }
.place-card a, .place-card button { color: inherit; }
.intro[hidden], .place-card[hidden] { display: none !important; }
body.intro-open, body.map-open { overflow: hidden; }

/* The greeting remains hidden unless its images and script are ready. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f6f2e9;
  color: #23453a;
  animation: intro-exit .35s 4.45s forwards;
}
.intro-center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.intro-emblem { position: relative; width: 102px; height: 128px; margin-bottom: 28px; }
.intro-emblem svg, .intro-emblem img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shield-stroke {
  stroke: #486958;
  stroke-width: 4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-shield .65s ease-out forwards;
}
.intro-emblem img { opacity: 0; animation: reveal-coat .35s .4s both; }
.intro-word { font: 400 29px var(--serif, Georgia, serif); letter-spacing: .18em; margin-left: .18em; }
.intro-center p { margin: 15px 0 0; font-size: 12px; letter-spacing: .12em; }
.intro-skip {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 4.5%;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid #a8b7a9;
  border-radius: 30px;
  color: inherit;
  background: transparent;
  font: 400 14px/1.4 var(--sans, Arial, sans-serif);
  cursor: pointer;
}
.intro-skip:focus-visible { outline: 3px solid #906023; outline-offset: 5px; }
.replay, .motion-control {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  margin-right: 20px;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: 400 14px/1.5 var(--sans, Arial, sans-serif);
  cursor: pointer;
}
.replay:disabled, .motion-control:disabled { cursor: default; opacity: .6; }
html.no-motion, .no-motion * { scroll-behavior: auto !important; }
.no-motion *, .no-motion *::before, .no-motion *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}
@keyframes draw-shield { to { stroke-dashoffset: 0; } }
@keyframes reveal-coat { to { opacity: 1; } }
@keyframes intro-exit { to { opacity: 0; visibility: hidden; } }
@media (max-width: 760px) {
  .atlas-caption { gap: 15px; font-size: 12px; }
  .intro-skip { top: 20px; right: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .hero-atlas *, .map-dialog * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .intro, .map-dialog, .map-expand, .illustrated-places, .replay, .motion-control { display: none !important; }
}
