:root {
  --chrome: calc(4.5rem + env(safe-area-inset-top, 0px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--chrome);
  color-scheme: only dark;
  background: #0e1b24;
}

body {
  margin: 0;
  background: #0e1b24;
  color: #f1ece4;
  font: 1rem/1.6 system-ui, sans-serif;
  overflow-wrap: break-word;
}

button, input { font: inherit; }

img { max-width: 100%; }

h1, h2, h3 { text-wrap: balance; }

p, li { text-wrap: pretty; }

.stx p, #explore > p, .panel p { max-width: 65ch; }

:where(a:any-link, button, input):focus-visible {
  outline: 3px solid #f1ece4;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #0e1b24;
}

@media (forced-colors: active) {
  :where(a:any-link, button, input):focus-visible {
    outline: 3px solid CanvasText;
    outline-offset: 2px;
    box-shadow: none;
  }
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip {
  position: fixed;
  z-index: 100;
  top: env(safe-area-inset-top, 0px);
  inset-inline-start: 1rem;
  display: inline-flex;
  align-items: center;
  min-block-size: 3rem;
  padding: 0.75rem 1rem;
  background: #f1ece4;
  color: #0e1b24;
  font-weight: 800;
  text-decoration: none;
}

.bar {
  position: fixed;
  z-index: 80;
  top: 0;
  inset-inline: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  background: rgba(14, 27, 36, .92);
}

.bar .home, .bar .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0.5rem 0.875rem;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.bar .home {
  min-inline-size: 0;
  background: #f1ece4;
  color: #0e1b24;
  font-weight: 600;
  box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, .3);
}

.bar .cta {
  background: #d9864b;
  color: #0e1b24;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, .4);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-block-size: 100dvh;
  padding: 0 6vw 12dvh;
  overflow: clip;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hero:after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(14, 27, 36, .96));
}

.hero > div { position: relative; z-index: 2; }

.hero p.k {
  margin: 0;
  color: #f1ece4;
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #0e1b24;
}

.hero h1 {
  margin: 0.4rem 0;
  font: 400 clamp(2rem, 1rem + 5vw, 6rem)/1.05 Georgia, serif;
}

.hero p:not(.k) { max-width: 65ch; }

.hero a, .stx a {
  display: inline-flex;
  align-items: center;
  min-block-size: 3rem;
  padding-inline: 0.25rem;
}

.hero a { color: #f1ece4; }

@media (forced-colors: active) {
  .hero p.k {
    background-color: Canvas;
    color: CanvasText;
    text-shadow: none;
  }
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #132532;
  border-block: 1px solid #24404f;
}

.stats div { padding: 1.125rem 1.5rem; text-align: center; }

.stats b {
  display: block;
  color: #d9864b;
  font: 400 1.375rem Georgia, serif;
}

.stats span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

.st {
  position: relative;
  display: flex;
  align-items: center;
  min-block-size: 90dvh;
  padding: 10dvh 6vw;
  overflow: clip;
}

.sbg {
  position: absolute;
  z-index: 0;
  inset-inline: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  max-width: none;
  object-fit: cover;
}

.st:before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 27, 36, .92), rgba(14, 27, 36, .25) 70%);
}

.stx { position: relative; z-index: 2; max-width: 65ch; }

.stx span {
  color: #d9864b;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.stx h2 {
  margin: 0.2em 0;
  font: 400 clamp(1.75rem, 1rem + 2vw, 3.375rem)/1.1 Georgia, serif;
}

.stx a { color: #d9864b; font-weight: 700; }

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 2.5rem;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes story-shift {
  from { translate: 0 -4%; }
  to { translate: 0 4%; }
}

/* animation-range excludes browsers that only partly support scroll timelines. */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    .st {
      timeline-scope: --story;
      view-timeline: --story;
    }

    .sbg {
      animation: story-shift linear both;
      animation-timeline: --story;
    }
  }
}

.mid { padding: 2.5rem 6vw; background: #132532; text-align: center; }

.mid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  margin: 0.25rem;
  padding: 0.75rem 1.375rem;
  border-radius: 1.875rem;
  background: #d9864b;
  color: #0e1b24;
  font-weight: 800;
  text-decoration: none;
}

#explore {
  padding: 3.75rem 4vw;
  background: #f1ece4;
  color: #0e1b24;
  color-scheme: only light;
}

#explore h2 {
  margin: 0;
  font: 400 clamp(2rem, 1rem + 2vw, 2.5rem) Georgia, serif;
}

#explore h3 {
  margin: 1.25rem 0 0.5rem;
  font: 600 1.35rem Georgia, serif;
}

#explore .lead {
  max-width: 65ch;
}

#explore .lead p {
  margin: 0 0 0.75rem;
}

.poi-help { display: none; }

.app {
  display: grid;
  grid-template-columns: 1fr 24.375rem;
  gap: 1.5rem;
  margin-top: 1rem;
}

.app > * { min-inline-size: 0; }

.lv, .flt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}

.lv button, .flt button, .nav button, .list li button {
  min-block-size: 3rem;
  cursor: pointer;
}

.lv button, .flt button {
  padding: 0.5rem 0.875rem;
  border: 1px solid #b9a88f;
  border-radius: 1.25rem;
  background: #fff;
  color: #0e1b24;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.lv button.on { background: #0e1b24; color: #fff; }

.flt button.on { background: #d9864b; border-color: #d9864b; }

.plan {
  display: grid;
  place-items: center;
  /* Tallest plan. A level change does not change this box, so the card does not move. */
  aspect-ratio: 1520 / 1800;
  max-inline-size: 51.25rem;
  overflow: clip;
  overflow-anchor: none;
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, .12);
}

.plan-stage {
  position: relative;
  inline-size: 100%;
  overflow-anchor: none;
}

.plan-full {
  position: relative;
  display: block;
  inline-size: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.plan-stage img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.hs {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  min-inline-size: 3rem;
  min-block-size: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0e1b24;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transform: translate(-50%, -50%);
  scroll-margin-top: var(--chrome);
}

.hs::before {
  content: "";
  position: absolute;
  width: 1.75rem;
  height: 1.75rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #d9864b;
}

.hs::after {
  content: "";
  position: absolute;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid #d9864b;
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

.hs:focus-visible {
  outline: 3px solid #0e1b24;
  outline-offset: -0.55rem;
  box-shadow: none;
}

.hs.act { color: #fff; }

.hs.act::before { background: #0e1b24; }

.hs.act::after,
.hs.dim::after { animation: none; opacity: 0; }

.hs.dim { opacity: 0.18; }

@keyframes pulse {
  from { scale: 1; opacity: 0.7; }
  to { scale: 1.8; opacity: 0; }
}

.panel {
  display: flex;
  flex-direction: column;
  align-self: start;
  position: sticky;
  inset-block-start: var(--chrome);
  block-size: calc(100dvh - var(--chrome) - 1.5rem);
  min-inline-size: 0;
  padding: 1.125rem;
  overflow: clip;
  overflow-anchor: none;
  border-radius: 0.625rem;
  background: #fff;
  scroll-margin-top: var(--chrome);
}

.panel > .shot {
  position: relative;
  flex: 0 1 auto;
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.panel > .shot img {
  display: block;
  inline-size: 100%;
  block-size: clamp(4.5rem, 22dvh, 12rem);
  min-block-size: 2.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.thumbs {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  gap: 0.375rem;
  margin-block: 0.375rem;
  min-block-size: 3rem;
  overflow-inline: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.feature-copy {
  flex: 1 1 0;
  min-block-size: 0;
  padding-block-end: 0.5rem;
  overflow-block: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  overflow-anchor: none;
}

.feature-copy:focus-visible {
  outline: 3px solid #0e1b24;
  outline-offset: -3px;
}

@media (forced-colors: active) {
  .feature-copy:focus-visible {
    outline: 3px solid CanvasText;
    outline-offset: -3px;
  }
}

.thumb {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  min-inline-size: 4.5rem;
  min-block-size: 3rem;
}

.thumb img {
  display: block;
  width: 4.5rem;
  height: 3rem;
  max-width: none;
  object-fit: cover;
  opacity: 0.6;
}

.thumb.on img { opacity: 1; }

.thumb.on { outline: 2px solid #d9864b; outline-offset: 2px; }

.tag {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 0.625rem;
  background: #f6e3d3;
  color: #6e3b16;
  font-size: 0.75rem;
  font-weight: 600;
}

.panel h3 { margin: 0.5rem 0 0.375rem; }

.panel ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.15rem;
}

.panel li { margin: 0.15rem 0; }

.panel a { color: #6e3b16; }

.nav {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.nav button {
  padding: 0.5rem 0.875rem;
  border: 0;
  border-radius: 0.375rem;
  background: #0e1b24;
  color: #fff;
}

.list {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.list li { border-bottom: 1px solid #ddd; }

.list li button {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
}

.end { padding: 3rem 6vw 0.5rem; text-align: center; }

/* The sprite is an SVG, so the hidden attribute does not take it out of the layout. */
.icon-sprite {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
}

.end h2 {
  margin: 0;
  font: 400 clamp(2rem, 1rem + 2vw, 2.625rem) Georgia, serif;
}

.end address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 0.75rem 0 0;
  font-style: normal;
}

.contact-line {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  gap: 0.5rem;
}

.end address a,
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  background: #d9864b;
  color: #0e1b24;
}

.end address a {
  max-width: 100%;
  min-inline-size: 0;
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

.copy {
  flex: none;
  inline-size: 3rem;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.copy svg {
  display: block;
  inline-size: 1.25rem;
  block-size: 1.25rem;
}

.copy .copied-icon { display: none; }

.copy.copied .copy-icon { display: none; }

.copy.copied .copied-icon { display: block; }

footer {
  padding: 0 6vw 1rem;
  font-size: 1rem;
  text-align: center;
}

footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding-inline: 0.75rem;
  color: #f1ece4;
}

@media (max-width: 56.25em) {
  .app { grid-template-columns: 1fr; }
  .app > div:first-child,
  .list,
  .plan-help { display: none; }
  .poi-help { display: block; }
  .panel {
    position: static;
    block-size: auto;
    overflow: visible;
  }
  .feature-copy {
    flex: none;
    min-block-size: auto;
    overflow: visible;
    order: 2;
  }
  .nav { order: 1; }
  .st:before { background: rgba(14, 27, 36, .75); }
}

@media (max-height: 34rem) {
  .hero {
    padding-top: var(--chrome);
    padding-bottom: 1.5rem;
  }

  .panel > .shot img { block-size: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hs::after { animation: none; opacity: 0; }
}

.viewer:modal {
  inline-size: fit-content;
  block-size: fit-content;
  max-inline-size: 100dvw;
  max-block-size: 100dvh;
  margin: auto;
  padding: 0;
  border: 0;
  background: #0e1b24;
  overscroll-behavior: contain;
}

.viewer::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(14, 27, 36, .72);
}

.viewer-close {
  position: sticky;
  z-index: 1;
  inset-block-start: 0.5rem;
  display: block;
  inline-size: fit-content;
  margin: 0.5rem 0.5rem 0.5rem auto;
  min-block-size: 3rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid #b9a88f;
  border-radius: 1.25rem;
  background: #f1ece4;
  color: #0e1b24;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

#viewer-img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
}

@media (forced-colors: active) {
  .viewer-close,
  .viewer:modal {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }
}
