:root {
  --mist: #dce4df;
  --cloud: #edf0ea;
  --paper: #f2f1eb;
  --sage: #819084;
  --ridge: #596a5e;
  --pine: #26342c;
  --faded: #58655d;
  --line: rgba(38, 52, 44, 0.2);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-mark: "Syne", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--pine);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(250, 248, 238, 0.56), transparent 29%),
    linear-gradient(180deg, #d6e0dc 0%, #e7e9df 55%, #b6c1b7 72%, #829186 100%);
  pointer-events: none;
}

.haze {
  position: absolute;
  top: 15%;
  left: -14%;
  width: 64%;
  height: 11%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  filter: blur(28px);
  animation: haze-drift 24s ease-in-out infinite alternate;
}

.sun {
  position: absolute;
  top: 25%;
  right: 19%;
  width: clamp(4.5rem, 8vw, 8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 248, 218, 0.7);
  box-shadow: 0 0 6rem 2.5rem rgba(255, 248, 218, 0.28);
  animation: breathe 10s ease-in-out infinite alternate;
}

.ridge {
  position: absolute;
  display: block;
  transform-origin: bottom;
  animation: landscape-in 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ridge-far {
  right: -8%;
  bottom: 18%;
  width: 84%;
  height: 31%;
  border-radius: 72% 0 0 0 / 100% 0 0 0;
  background: #9aa89d;
}

.ridge-far::before {
  content: "";
  position: absolute;
  left: -28%;
  bottom: 0;
  width: 72%;
  height: 57%;
  background: #afb9b0;
  clip-path: polygon(0 100%, 20% 58%, 39% 73%, 66% 19%, 100% 100%);
}

.ridge-near {
  left: -14%;
  bottom: 0;
  width: 120%;
  height: 34%;
  border-radius: 0 68% 0 0 / 0 100% 0 0;
  background: var(--ridge);
  animation-delay: 0.12s;
}

.ridge-near::after {
  content: "";
  position: absolute;
  inset: 34% 0 0;
  opacity: 0.2;
  background: repeating-linear-gradient(103deg, transparent 0 5rem, rgba(235, 239, 231, 0.42) 5.05rem 5.12rem);
}

.water {
  position: absolute;
  right: -7%;
  bottom: 0;
  width: 59%;
  height: 17%;
  background: linear-gradient(180deg, rgba(207, 216, 207, 0.5), rgba(144, 159, 148, 0.42));
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  width: 100%;
  padding: 1.75rem clamp(1.25rem, 4vw, 4.5rem);
  color: rgba(38, 52, 44, 0.78);
}

.mark {
  font-family: var(--font-mark);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.top-note,
.top-count,
.eyebrow,
.section-label {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-count {
  text-align: right;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  min-height: 100svh;
  min-height: max(680px, 100svh);
  padding: clamp(7rem, 15vh, 10rem) clamp(1.25rem, 4vw, 4.5rem) clamp(2.25rem, 5vh, 4rem);
}

.hero-copy {
  max-width: 75rem;
  margin-top: 4vh;
}

.hero h1 {
  max-width: 11ch;
  margin: 1.35rem 0 1.8rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.lede {
  max-width: 34rem;
  color: rgba(38, 52, 44, 0.72);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  line-height: 1.65;
}

.coordinates {
  align-self: center;
  justify-self: end;
  padding-left: 4rem;
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  line-height: 1.8;
  text-align: right;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.cta {
  grid-column: 1 / -1;
  justify-self: end;
  align-self: end;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.65rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: opacity 220ms ease, transform 220ms ease;
}

.cta:hover,
.cta:focus-visible {
  opacity: 0.56;
  transform: translateX(-0.4rem);
}

.gallery {
  position: relative;
  z-index: 2;
  padding: clamp(7rem, 11vw, 12rem) clamp(1.25rem, 4vw, 4.5rem) clamp(7rem, 10vw, 10rem);
  background: var(--paper);
}

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(9rem, 0.65fr) minmax(18rem, 1.8fr) minmax(14rem, 0.8fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  margin-bottom: clamp(8rem, 14vw, 15rem);
}

.gallery-intro h2 {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.8vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.gallery-intro > p:last-child {
  align-self: end;
  max-width: 25rem;
  color: var(--faded);
  font-size: 0.9rem;
  line-height: 1.7;
}

.group-title {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.45fr) 2fr;
  gap: 2rem;
  align-items: baseline;
  margin: clamp(7rem, 11vw, 11rem) 0 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.gallery-intro + .group-title {
  margin-top: 0;
}

.group-title span {
  color: var(--faded);
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.17em;
}

.index {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4.5rem) clamp(1rem, 2vw, 2rem);
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--pine);
  transition: transform 300ms ease;
}

.card:hover {
  transform: translateY(-0.4rem);
}

.card:focus-visible {
  outline: 1px solid var(--pine);
  outline-offset: 0.5rem;
}

.preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1.5rem 3rem rgba(38, 52, 44, 0.08);
  transition: box-shadow 300ms ease, filter 300ms ease;
}

.card:hover .preview {
  box-shadow: 0 2rem 4rem rgba(38, 52, 44, 0.14);
  filter: saturate(1.04) contrast(1.02);
}

.pv-mark {
  position: relative;
  z-index: 2;
  max-width: 90%;
  font-family: var(--font-mark);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  word-break: break-word;
}

.pv-ui {
  position: absolute;
  inset: 18% 14% auto;
  z-index: 1;
  height: 42%;
  opacity: 0.9;
  pointer-events: none;
}

.meta {
  display: grid;
  grid-template-columns: minmax(2rem, auto) 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  row-gap: 0.18rem;
  padding: 1.2rem 0 0;
}

.num {
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 0.17rem;
  color: var(--faded);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
}

.name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hint {
  color: var(--faded);
  font-size: 0.73rem;
  line-height: 1.45;
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 4.5rem);
  background: var(--pine);
  color: rgba(237, 240, 233, 0.64);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.foot p:nth-child(2) {
  text-align: center;
}

.foot a {
  justify-self: end;
  color: #edf0e9;
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.35rem;
}

@keyframes landscape-in {
  from { transform: scaleY(0.72); }
  to { transform: scaleY(1); }
}

@keyframes haze-drift {
  from { transform: translateX(-2%); }
  to { transform: translateX(20%); }
}

@keyframes breathe {
  from { opacity: 0.65; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.05); }
}

@media (min-width: 560px) {
  .index {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .index {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1380px) {
  .index {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 760px) {
  .top {
    grid-template-columns: 1fr auto;
  }

  .top-note {
    text-align: right;
  }

  .top-count,
  .coordinates {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .hero h1 {
    font-size: clamp(4rem, 17vw, 6.4rem);
  }

  .lede {
    color: #f5f6f2;
  }

  .cta {
    grid-column: auto;
  }

  .gallery-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-intro > p:last-child {
    max-width: 30rem;
  }

  .group-title {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .foot {
    grid-template-columns: 1fr auto;
  }

  .foot p:nth-child(2) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
