:root {
  color-scheme: light;
  --white: #f8f7f3;
  --graphite: #242824;
  --gutter: clamp(1.25rem, 5.5vw, 6rem);
  color: var(--graphite);
  background: var(--white);
  font: 1rem/1.5 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid #2b4a48; outline-offset: 5px; }
.ripple-button[hidden] { display: none; }

.masthead {
  min-height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .875rem;
  padding: .5rem var(--gutter);
  border-bottom: 1px solid #e2dfd6;
  background: var(--white);
}

.masthead a {
  min-height: 44px;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

.brand {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .17em;
  text-transform: uppercase;
  text-decoration: none;
}

.back { font-size: .84rem; font-weight: 550; }
.back:hover { color: #4a5c56; }

.gallery {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 4.5rem);
  overflow: clip;
  background: #efede6;
}

.copy {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  justify-self: start;
  margin-inline: var(--gutter);
  padding-block: 2rem;
}

h1 {
  margin: 0 0 1.125rem -.065em;
  font: 400 clamp(5.75rem, 14.5vw, 12.5rem)/.83 Georgia, 'Times New Roman', serif;
  letter-spacing: -.081em;
}

.ripple-button {
  display: inline-flex;
  min-height: 46px;
  gap: 1.35rem;
  align-items: center;
  padding: .55rem 1rem;
  border: 1px solid #666e63;
  border-radius: 2px;
  background: #faf9f5;
  color: var(--graphite);
  cursor: pointer;
  font: 600 .85rem/1.25 system-ui, sans-serif;
}

.ripple-button:hover { background: #e8e8df; }
.ripple-button:active { background: #dce0d4; }

.scene {
  grid-area: 1 / 1;
  position: relative;
  align-self: stretch;
  min-height: clamp(34rem, 77vh, 52rem);
  margin: 0;
  overflow: hidden;
  background: #eae7de;
}

.scene img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 52%;
}

.scene::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #f5f3eb 0%, #f5f3ebcf 20%, #f5f3eb00 49%);
}

.water {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ring {
  position: absolute;
  left: 63%;
  top: 76%;
  width: min(75vw, 63rem);
  aspect-ratio: 3 / 1;
  border: 1px solid #fafaf1;
  border-radius: 50%;
  opacity: 0;
  box-shadow: inset 0 -1px 5px #324a483d, 0 1px 5px #324a4840;
  transform: translate(-50%, -50%) scale(.18);
}

.ring:nth-child(2) { --delay: .42s; }
.ring:nth-child(3) { --delay: .84s; }

.ripple-active .ring { animation: ripple 3.6s ease-out var(--delay, 0s); }

@keyframes ripple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.15); }
  18% { opacity: .8; }
  78% { opacity: .24; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .masthead { min-height: 3.75rem; }
  .gallery { grid-template-rows: auto 1fr; min-height: calc(100svh - 3.75rem); }
  .copy { grid-area: 1 / 1; align-self: start; padding-block: 1.75rem .75rem; }
  h1 { font-size: clamp(4.65rem, 17vw, 7.5rem); margin-bottom: .65rem; }
  .scene { grid-area: 2 / 1; min-height: max(19rem, 46svh); }
  .scene img { object-position: 67% 54%; }
  .scene::after { background: linear-gradient(180deg, #efede6, #efede600 16%); }
  .ring { left: 53%; top: 76%; width: 86vw; }
}

@media (prefers-reduced-motion: reduce) {
  .ripple-active .ring { animation: none; opacity: .58; transform: translate(-50%, -50%) scale(.8); }
  .ripple-active .ring:nth-child(2) { transform: translate(-50%, -50%) scale(.61); }
  .ripple-active .ring:nth-child(3) { transform: translate(-50%, -50%) scale(.42); }
}
