/* The background of dawn light over the lake fog: the hero of a lakeside retreat at first light. The WebGL canvas
   fills the stage and draws the sky, the glow climbing from behind the horizon, the banks of fog and the still water
   that holds them, with a fine grain. The words sit centred in the upper sky; their faint warm halo follows the dawn
   (--glow from the script). Without WebGL a CSS gradient of the same dawn remains. */
:root {
  --night: #2a3150;         /* the top of the sky before the sun */
  --lilac: #8a86a6;         /* the middle of the sky */
  --rose: #e8a3a0;          /* the pink band above the horizon */
  --gold: #ffcf95;          /* the gold right on the horizon */
  --sun: #fff1d8;           /* the light of the sun still below the horizon */
  --mist: #aea8be;          /* the fog where the light does not reach it */
  --deep: #1b2034;          /* the water closest to us */
  --ink: #fbf4ee;           /* the heading */
  --muted: rgba(251, 244, 238, 0.74); /* the small words */
  --line: rgba(255, 246, 238, 0.22);  /* thin edges */
  --button: #fbf3ea;        /* the button, warm ivory */
  --button-ink: #2a2236;    /* the words on the button */
}

* {
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  background: var(--night);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 320px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  background: var(--night);
  --glow: 0.3;
}

.lake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* the dawn without WebGL */
.fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  background:
    radial-gradient(60% 22% at 56% 64%, color-mix(in srgb, var(--sun) 70%, transparent), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--lilac) 36%, var(--rose) 54%, var(--gold) 62%, color-mix(in srgb, var(--lilac) 70%, var(--deep)) 64%, var(--deep) 100%);
}

.no-gl .fallback {
  display: block;
}

.bar,
.hero,
.hint {
  position: relative;
  z-index: 2;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 3vh, 22px) clamp(16px, 4vw, 44px) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 20px;
  font-weight: 440;
  font-variation-settings: 'opsz' 36;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
}

.nav__link--pill {
  color: var(--ink);
  background: rgba(255, 246, 238, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (hover: hover) {
  .nav__link:hover {
    color: var(--ink);
  }
  .nav__link--pill:hover {
    background: rgba(255, 246, 238, 0.2);
  }
}

/* the words sit centred high in the sky, so the horizon, the fog and the water have the lower half to themselves */
.hero {
  align-self: start;
  justify-self: center;
  width: min(100%, 760px);
  margin-top: clamp(10px, 7vh, 80px);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 246, 238, 0.09);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 22px -12px rgba(10, 12, 30, 0.6);
  transition: color 0.3s;
}

.chip__new {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: 0.02em;
  color: var(--button-ink);
  background: linear-gradient(180deg, #ffe2bd, var(--gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.chip__arrow {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
  .chip:hover {
    color: var(--ink);
  }
  .chip:hover .chip__arrow {
    transform: translateX(2px);
  }
}

/* the heading: Newsreader at a large optical size, with a faint warm halo that grows as the light comes up */
.title {
  margin: clamp(10px, 2.4vh, 20px) 0 0;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: clamp(28px, min(7.6vw, 8.2vh), 80px);
  line-height: 1.03;
  font-weight: 340;
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 1px 1px rgba(20, 20, 45, 0.18), 0 0 calc(18px + var(--glow) * 22px) rgba(255, 196, 160, calc(var(--glow) * 0.32));
}

.title__line {
  display: inline-block;
}

.title__line:last-child {
  font-style: italic;
  font-weight: 320;
}

.lede {
  margin: clamp(8px, 2vh, 16px) 0 0;
  max-width: 44ch;
  font-size: clamp(12.5px, min(3.5vw, 2.1vh), 16px);
  line-height: 1.5;
  color: var(--muted);
  text-shadow: 0 1px 8px rgba(20, 20, 45, 0.25);
}

.actions {
  margin-top: clamp(12px, 3.2vh, 26px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  height: clamp(40px, 7vh, 52px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--button-ink);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* the face: warm ivory with a lit top edge and a soft shadow that picks up the colour of the dawn */
.btn__face {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0 clamp(16px, 4.4vw, 22px);
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf4, var(--button) 55%, color-mix(in srgb, var(--button) 88%, var(--rose)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(120, 80, 90, 0.18),
    0 1px 2px rgba(20, 20, 45, 0.3),
    0 14px 30px -12px rgba(232, 140, 130, calc(0.25 + var(--glow) * 0.35));
}

/* a soft band of gold that slides across the face when it is pressed */
.btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 205, 150, 0.55) 48%, transparent 66%);
  transform: translateX(-110%);
  pointer-events: none;
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn__words {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  font-variation-settings: 'wdth' 100;
  white-space: nowrap;
  transition: font-variation-settings 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
  .btn:hover .btn__words {
    font-variation-settings: 'wdth' 110;
  }
}

.btn__icon {
  position: relative;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.btn__check {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.ghost {
  height: clamp(40px, 7vh, 52px);
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(14px, 4vw, 20px);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 540;
  color: var(--ink);
  text-decoration: none;
  background: rgba(36, 34, 66, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-shadow: 0 1px 8px rgba(40, 26, 60, 0.35);
  transition: background-color 0.3s, box-shadow 0.3s;
}

@media (hover: hover) {
  .ghost:hover {
    background: rgba(36, 34, 66, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 246, 238, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
}

/* the note: a tiny sun arc on a horizon line, which rises a little when the stay is booked */
.note {
  margin: clamp(8px, 2vh, 14px) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(40, 26, 60, 0.55);
}

.note__sun {
  width: 20px;
  height: 12px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  overflow: visible;
}

.hint {
  margin: 0;
  padding: 0 16px clamp(10px, 3vh, 22px);
  text-align: center;
  font-size: 11.5px;
  color: rgba(251, 244, 238, 0.5);
  letter-spacing: 0.01em;
}

@media (max-height: 520px) {
  .hint {
    display: none;
  }
}

@media (max-height: 440px) {
  .note {
    display: none;
  }
}

@media (max-width: 520px) {
  .nav__link--wide {
    display: none;
  }
  .lede {
    max-width: 34ch;
  }
  .actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .btn__face,
  .ghost {
    padding: 0 14px;
  }
  .btn__words,
  .ghost {
    font-size: 13px;
  }
}

@media (max-height: 460px) {
  .lede {
    max-width: 46ch;
    font-size: 12px;
  }
}

[data-in],
.title__line {
  opacity: 0;
}
