/* ==========================================================================
   Bloom Drift — bloom.onl
   Pure CSS. No build step, no dependencies.
   ========================================================================== */

:root {
  /* ocean column, surface -> abyss */
  --sun:      #158fb4;
  --shallow:  #0a6a90;
  --mid:      #044460;
  --deep:     #032a45;
  --abyss:    #010f1c;

  --glow:     #9bd9f2;  /* sunlight breaking the surface */
  --aqua:     #7fe9d8;  /* accent */
  --foam:     #eafaf7;
  --ink:      #d6ecf3;
  --muted:    color-mix(in oklab, var(--ink) 62%, transparent);
  --line:     color-mix(in oklab, var(--foam) 14%, transparent);
  --glass:    color-mix(in oklab, var(--foam) 6%, transparent);

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  /* Condensed grotesques that ship with the major platforms, in order:
     macOS/iOS, Android, Windows, Linux. font-stretch narrows any variable
     font that survives to the generic fallbacks. */
  --font-display: "Avenir Next Condensed", "Helvetica Neue Condensed",
                  "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow",
                  "DejaVu Sans Condensed", ui-sans-serif, system-ui, sans-serif;
  --stretch-display: 88%;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Ambient background layers
   -------------------------------------------------------------------------- */

.ocean,
.rays,
.blooms {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ocean {
  background:
    radial-gradient(120% 70% at 50% -15%, color-mix(in oklab, var(--glow) 30%, transparent), transparent 62%),
    linear-gradient(
      180deg,
      var(--sun)      0%,
      var(--shallow) 16%,
      var(--mid)     38%,
      var(--deep)    62%,
      #021a2e        82%,
      var(--abyss)  100%
    );
}

/* Sunlight shafts filtering down from the surface. */
.rays {
  background: repeating-linear-gradient(
    97deg,
    transparent 0 4vw,
    color-mix(in oklab, var(--foam) 20%, transparent) 4vw 5.2vw,
    transparent 5.2vw 11vw
  );
  opacity: 0.09;
  filter: blur(6px);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 35%, transparent 72%);
  animation: rays-drift 44s ease-in-out infinite alternate;
}

@keyframes rays-drift {
  from { transform: translate3d(-3vw, 0, 0) skewX(0deg); }
  to   { transform: translate3d(3vw, 0, 0) skewX(2deg); }
}

/* --------------------------------------------------------------------------
   Jellyfish
   -------------------------------------------------------------------------- */

.blooms { overflow: hidden; }

/* outer: the slow vertical rise */
.jelly {
  position: absolute;
  bottom: 0;
  /* the vw cap keeps a near-field jellyfish from swallowing a phone screen */
  width: min(var(--size, 120px), 34vw);
  aspect-ratio: 108 / 140;
  opacity: var(--alpha, 0.12);
  filter: blur(var(--soft, 0px));
  will-change: transform;
  animation: jelly-rise var(--rise, 90s) linear infinite;
  animation-delay: var(--rise-delay, 0s);
}

/* middle: lateral sway + gentle roll */
.jelly__sway {
  width: 100%;
  height: 100%;
  animation: jelly-sway var(--sway, 14s) ease-in-out infinite alternate;
  animation-delay: var(--sway-delay, 0s);
}

.jelly__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--foam);
  stroke-width: var(--stroke, 5);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the bell pulses; the trailing parts follow a beat later */
.jelly__bell {
  fill: color-mix(in oklab, var(--aqua) 9%, transparent);
  transform-box: fill-box;
  transform-origin: 50% 92%;
  animation: bell-pulse var(--pulse, 5s) ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

.jelly__arms,
.jelly__oral {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: arms-trail var(--pulse, 5s) ease-in-out infinite;
  animation-delay: calc(var(--pulse-delay, 0s) + 0.45s);
}

.jelly__oral {
  stroke-width: calc(var(--stroke, 5) * 1.35);
  opacity: 0.75;
}

.jelly__arms { opacity: 0.8; }

@keyframes jelly-rise {
  from { transform: translate3d(0, 15vh, 0); }
  to   { transform: translate3d(0, -115vh, 0); }
}

@keyframes jelly-sway {
  from { transform: translate3d(-3.5vw, 0, 0) rotate(-5deg); }
  to   { transform: translate3d(3.5vw, 0, 0) rotate(5deg); }
}

@keyframes bell-pulse {
  0%, 100% { transform: scale(1, 1); }
  38%      { transform: scale(0.9, 1.14); }  /* contract: narrow + tall */
  70%      { transform: scale(1.06, 0.94); } /* relax: spread + flat */
}

@keyframes arms-trail {
  0%, 100% { transform: scaleY(1) skewX(0deg); }
  40%      { transform: scaleY(1.08) skewX(2.5deg); }
  72%      { transform: scaleY(0.95) skewX(-2deg); }
}

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* Deliberately tighter than the gaps inside <main>: the masthead should
     group with the hero, not float in a band of its own. */
  gap: clamp(2.25rem, 5vh, 3.75rem);
  min-height: 100svh;
  padding: clamp(1.5rem, 5vh, 3rem) var(--gutter) clamp(1.5rem, 4vh, 2.5rem);
  max-width: 74rem;
  margin-inline: auto;
}

main {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 9vh, 6.5rem);
  flex: 1;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

/* No mark — the wordmark carries the header alone, so it gets logotype
   treatment: uppercase, tracked out, light. */
.wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--foam);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.3s ease, letter-spacing 0.4s ease;
}

.wordmark:hover {
  opacity: 1;
  letter-spacing: 0.29em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

/* The headline gets a wider measure than the prose below it: 62ch is right for
   reading body copy, but it forces a display-size line to break three times. */
.hero { max-width: none; }
.hero .pill,
.hero .lede,
.hero__actions { max-width: var(--measure); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-size: clamp(0.72rem, 0.66rem + 0.25vw, 0.8125rem);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--aqua) 70%, transparent);
  animation: beacon 3.2s ease-out infinite;
}

@keyframes beacon {
  0%       { box-shadow: 0 0 0 0 color-mix(in oklab, var(--aqua) 60%, transparent); }
  70%, 100%{ box-shadow: 0 0 0 0.6rem transparent; }
}

h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  /* Condensed faces carry more ink per line, so this goes lighter and larger
     than the serif it replaced. */
  font-weight: 300;
  font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.75rem);
  max-width: min(100%, 54rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
  color: var(--foam);
}

.lede {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem);
  color: color-mix(in oklab, var(--ink) 88%, transparent);
  text-wrap: pretty;
}

.hero__actions { margin: 2rem 0 0; }

.button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 1px solid color-mix(in oklab, var(--aqua) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--aqua) 12%, transparent);
  color: var(--foam);
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.button:hover {
  background: color-mix(in oklab, var(--aqua) 22%, transparent);
  border-color: color-mix(in oklab, var(--aqua) 70%, transparent);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: color-mix(in oklab, var(--aqua) 35%, transparent);
  transform: translateY(-2px);
}

.card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foam);
}

.card p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact { max-width: var(--measure); }

.contact h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  letter-spacing: 0.005em;
  color: var(--foam);
}

.contact__note {
  margin: 0 0 1.5rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* Two ways in — email and the booking page — given equal weight. They sit
   side by side while both fit, and stack once the column gets narrow. */
.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.way__label {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.way__link {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem);
  letter-spacing: 0.02em;
  word-break: break-word;
}

.way__link a {
  color: var(--aqua);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--aqua) 35%, transparent);
  padding-bottom: 0.1em;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.way__link a:hover {
  color: var(--foam);
  border-bottom-color: var(--foam);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding-top: 2rem;
  border-top: 1px solid color-mix(in oklab, var(--foam) 8%, transparent);
  font-size: 0.8125rem;
  color: color-mix(in oklab, var(--ink) 45%, transparent);
}

.footer p { margin: 0; }

/* --------------------------------------------------------------------------
   Focus & motion
   -------------------------------------------------------------------------- */

:where(a, button):focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* jellyfish still need to be somewhere sensible once animation is frozen */
  .jelly {
    bottom: auto;
    top: var(--still-top, 40%);
    animation: none;
  }
}
