:root {
  --ink: #123638;
  --foam: #f8f0d4;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #53bdd1;
  font-family: Arial, Helvetica, sans-serif;
}

#shore {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  padding: clamp(1.35rem, 4vw, 4rem);
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.eyebrow, .coordinates, .signature {
  margin: 0;
  font-size: clamp(.58rem, .75vw, .75rem);
  font-weight: 700;
  letter-spacing: .14em;
}

.eyebrow { margin-bottom: clamp(.75rem, 2vw, 1.8rem); }

h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(4.4rem, 14.5vw, 14rem);
  font-weight: 900;
  line-height: .75;
  letter-spacing: -.095em;
  text-transform: lowercase;
  text-shadow: 3px 3px 0 rgba(248, 240, 212, .88);
}

h1 span { display: block; }
.dot { display: inline; color: #e85e3f; }

.signature {
  max-width: 19rem;
  margin-top: clamp(1rem, 3vw, 2.6rem);
  color: rgba(18, 54, 56, .85);
  line-height: 1.45;
}

.coordinates {
  position: fixed;
  z-index: 1;
  right: clamp(1.35rem, 4vw, 4rem);
  bottom: clamp(1.35rem, 4vw, 4rem);
  text-align: right;
}

.sound-toggle {
  position: fixed;
  z-index: 2;
  left: clamp(1.35rem, 4vw, 4rem);
  bottom: clamp(1.35rem, 4vw, 4rem);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: clamp(.58rem, .75vw, .75rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.sound-toggle:focus-visible { outline: 2px solid var(--foam); outline-offset: 5px; }

.sound-indicator {
  width: .7rem;
  height: .7rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.sound-toggle[aria-pressed="true"] .sound-indicator {
  border-color: #e85e3f;
  background: #e85e3f;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 .35rem rgba(232, 94, 63, .24); }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(4.15rem, 23vw, 8rem); }
  .coordinates { max-width: 11rem; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
  #shore { opacity: .85; }
  .sound-toggle[aria-pressed="true"] .sound-indicator { animation: none; }
}
