:root {
  color-scheme: dark;
  --night: #07151d;
  --deep: #061119;
  --moon: #f0f1e9;
  --mist: #bac8cc;
  --glass: #add0ca;
  --gold: #d8b779;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--sans);
  font-size: 100%;
  background: var(--night);
  color: var(--moon);
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: var(--deep); background: var(--glass); }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }

.hero {
  position: relative;
  min-height: 42rem;
  min-height: max(42rem, 94svh);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: start;
  text-align: center;
  background: #0a1c26;
}

.harbour, .hero-shade, .harbour-image, .water, .mist {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.harbour { z-index: -3; }
.harbour-image { object-fit: cover; object-position: 50% 56%; }
.water {
  background: url('/assets/harbour.webp') 50% 56% / cover no-repeat;
  opacity: .28;
  transform-origin: 50% 80%;
  animation: water-breathe 13s ease-in-out infinite alternate;
}
.water-left { clip-path: polygon(0 65%, 44% 65%, 25% 100%, 0 100%); }
.water-right {
  clip-path: polygon(57% 65%, 100% 65%, 100% 100%, 75% 100%);
  animation-duration: 17s;
  animation-delay: -8s;
}
.mist {
  top: var(--mist-top, 58%);
  left: -10%;
  width: 120%;
  height: 14%;
  opacity: .12;
  background: linear-gradient(180deg, transparent, rgb(171 206 207 / 15%) 50%, transparent);
  filter: blur(15px);
  animation: mist-drift 36s ease-in-out infinite alternate;
}
.lantern-light {
  position: absolute;
  left: var(--lantern-x, 54%);
  top: var(--lantern-y, 57%);
  width: 3.5rem;
  height: 3.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 204 116 / 20%), rgb(232 173 83 / 4%) 32%, transparent 70%);
  mix-blend-mode: screen;
  opacity: .45;
  animation: lantern-breathe 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes water-breathe {
  from { transform: translate3d(-.6px, -.4px, 0) scale(1.001); opacity: .2; }
  to { transform: translate3d(.6px, .5px, 0) scale(1.003); opacity: .33; }
}
@keyframes mist-drift {
  from { transform: translate3d(-1%, -1px, 0); opacity: .08; }
  to { transform: translate3d(1%, 1px, 0); opacity: .16; }
}
@keyframes lantern-breathe {
  0%, 100% { opacity: .28; }
  28% { opacity: .52; }
  35% { opacity: .4; }
  72% { opacity: .58; }
}
.harbour.is-resting .water, .harbour.is-resting .mist, .harbour.is-resting .lantern-light { animation-play-state: paused; }
.hero-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgb(3 12 20 / 46%) 0%, rgb(3 12 20 / 14%) 46%, transparent 63%, rgb(7 21 29 / 18%) 79%, var(--night) 100%);
}
.hero-copy {
  position: relative;
  padding: clamp(5rem, 13svh, 9rem) 1.25rem 16rem;
  width: 100%;
  text-shadow: 0 2px 24px rgb(3 12 20 / 55%);
}
.small-rule {
  display: block;
  width: 2rem;
  height: 1px;
  margin: 0 auto 2.4rem;
  background: var(--glass);
  opacity: .65;
}
h1 {
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.tagline {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  line-height: 1.5;
  color: #d5e5df;
  text-wrap: balance;
}
.hero-description {
  margin: 1.45rem auto 0;
  max-width: 36rem;
  color: #d1dadd;
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.85;
  letter-spacing: .018em;
  text-wrap: balance;
}
.mobile-break { display: none; }
.horizon-rule {
  position: absolute;
  bottom: 0;
  left: calc(50% - .5px);
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(transparent, rgb(173 208 202 / 45%));
}

.introduction {
  padding: 6rem 1.5rem 5.5rem;
  text-align: center;
}
.intro-content { max-width: 43rem; margin-inline: auto; }
h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.harbour-line {
  margin-top: 1.5rem;
  color: var(--glass);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
}
.intro-description {
  max-width: 33rem;
  margin: 1.75rem auto 0;
  font-size: 1.0625rem;
  font-weight: 350;
  color: var(--mist);
  line-height: 1.95;
  text-wrap: pretty;
}
.gathering {
  margin-top: 2rem;
  color: #d1bea0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.65;
}

.coming-soon {
  text-align: center;
  padding: 3.25rem 1.5rem 5.25rem;
  background: linear-gradient(var(--night), var(--deep));
}
.gold-rule { background: var(--gold); margin-bottom: 2rem; width: 2.25rem; }
.coming-soon h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.coming-soon p {
  margin: 1.3rem auto 0;
  max-width: 35rem;
  color: var(--mist);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.85;
  text-wrap: balance;
}
footer {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  background: var(--deep);
}
footer p {
  color: #9baeb4;
  font-size: .8125rem;
  line-height: 1.8;
  letter-spacing: .04em;
}

@media (min-width: 75rem) {
  .hero-copy { padding-top: 12svh; }
  .hero-description { font-size: 1.0625rem; }
  .introduction { padding-top: 6.75rem; padding-bottom: 6rem; }
}
@media (max-width: 35rem) {
  .hero { min-height: max(39rem, 94svh); }
  .hero-copy { padding-top: max(5rem, 13svh); padding-bottom: 15rem; }
  .small-rule { margin-bottom: 2rem; }
  h1 { font-size: clamp(2.8rem, 12.3vw, 4.2rem); }
  .tagline { max-width: 20rem; margin: 1.25rem auto 0; }
  .hero-description { margin-top: 1.25rem; }
  .mobile-break { display: initial; }
  .introduction { padding: 4.75rem 1.5rem 4.25rem; }
  .intro-description { font-size: 1rem; }
  .coming-soon { padding-top: 2.25rem; padding-bottom: 4rem; }
  .water-left { clip-path: polygon(0 65%, 30% 65%, 0 90%); }
  .water-right { clip-path: polygon(75% 65%, 100% 65%, 100% 86%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .harbour, .hero-shade { display: none; }
  .hero { background: Canvas; }
  .hero-copy { text-shadow: none; }
}
