@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/lato-700.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/montserrat.woff2) format("woff2"); }

:root {
  --dark: #2d2d30;
  --text: #777;
  --heading: #111;
  --light: #f5f5f5;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 400 15px/1.8 Lato, system-ui, sans-serif;
  color: var(--text);
  background: #fff;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; width: 100%; height: 100%; }

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--dark); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.carousel {
  position: relative;
  background: var(--dark);
  outline: none;
}
.slides {

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.slide { position: relative; margin: 0; scroll-snap-align: start; }
.slide img {
  width: 100%;
  height: min(100svh, 66.6vw);
  object-fit: cover;
  filter: grayscale(50%);
}
.caption {
  position: absolute;
  inset: auto 15% 20px 15%;
  padding: 20px 0;
  text-align: center;
  color: #fff;
  font-size: 20px;
  letter-spacing: 10px;
  text-shadow: 0 1px 2px rgb(0 0 0 / .6);
}

.ctrl, .bar { display: none; }

.carousel.is-enhanced .slides { display: grid; overflow: hidden; grid-auto-flow: row; }
.carousel.is-enhanced .slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.carousel.is-enhanced .slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease, visibility 0s;
}

.carousel.is-enhanced .ctrl {
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 64px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  opacity: .75;
  cursor: pointer;
  filter: drop-shadow(0 0 2px rgb(0 0 0 / .9)) drop-shadow(0 0 6px rgb(0 0 0 / .5));
}
.carousel.is-enhanced .ctrl:hover, .carousel.is-enhanced .ctrl:focus-visible { opacity: 1; }
.prev { left: 2%; }
.next { right: 2%; }

.carousel.is-enhanced .bar {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
}
.dots { display: flex; gap: 6px; }
.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.dot[aria-current="true"] { background: #fff; }
.pause {
  width: 26px;
  height: 26px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #fff;
  opacity: .75;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / .6));
}
.pause:hover, .pause:focus-visible { opacity: 1; }
.pause .i-play, .pause.is-paused .i-pause { display: none; }
.pause.is-paused .i-play { display: block; }

.intro {
  padding: 80px 120px;
  text-align: center;
}
.intro blockquote { margin: 0; }
.intro blockquote p {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 10px;
  color: var(--heading);
}

.band { height: 48px; background: var(--dark); }

.map { position: relative; }
.map > a { display: block; }
.map img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(75%);
  transition: filter .3s;
}
.map > a:hover img, .map > a:focus-visible img { filter: grayscale(30%); }
.map > a:focus-visible { outline-offset: -4px; }
.attribution {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.6;
  background: rgb(255 255 255 / .8);
  color: #333;
}
.attribution a { color: #333; }

.footer {
  padding: 32px;
  background: var(--dark);
  color: var(--light);
  text-align: center;
}
.up {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  color: var(--light);
}
.up:hover { color: var(--text); }
.footer p { margin: 0; }

@media (max-width: 600px) {
  .slide img { height: 70svh; }
  .caption { display: none; }
  .intro { padding: 56px 20px; }
  .intro blockquote p { letter-spacing: 5px; }
  .carousel.is-enhanced .ctrl { width: 40px; height: 56px; padding: 10px; }
  .map img { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel.is-enhanced .slide, .carousel.is-enhanced .slide.is-active { transition: none; }
}
