/* The pond under the pointer: one screen of water seen from above, drawn on a canvas.
   The garden's sign and the two notes are ordinary HTML laid on top; the words of the title float on the water. */
:root {
  --deep: #0c3b40;          /* the water in the middle of the pond */
  --shallow: #2c7a6f;       /* the water near the edges */
  --glint: #e6f5e4;         /* the light on the crest of a ring */
  --pad: #4c8a3c;           /* a lily pad */
  --pad-light: #9cc85f;     /* its rim and its veins */
  --petal: #f19fb6;         /* the flowers */
  --heart: #f4c545;         /* the middle of a flower */
  --koi-pale: #f7efe2;      /* the white of the koi */
  --koi-red: #e2552a;       /* their red patches */
  --koi-gold: #f0a23c;      /* the golden koi */
  --koi-ink: #221b1d;       /* the black koi and the eyes */
  --stone: #9b978b;         /* the pebbles and the stones on the edge */
  --text: #f2ecd8;          /* the words on the sign */
  --edge: clamp(16px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--deep);
  color: var(--text);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pond {
  position: fixed;
  inset: 0;
  overflow: hidden;
  /* a finger on the water makes rings in every direction: the page does not scroll here */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.pond__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------------- the sign in the corner */
.sign {
  position: absolute;
  top: var(--edge);
  left: var(--edge);
  z-index: 2;
  max-width: min(78vw, 420px);
  pointer-events: none;
  text-shadow: 0 1px 14px rgba(4, 22, 24, 0.55);
}
.sign__tag,
.foot__note {
  margin: 0;
  font-size: 11px;
  font-weight: 620;
  font-stretch: 110%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.86;
}
.sign__title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.22em;
  margin: 10px 0 8px;
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.4rem);
  font-style: italic;
  font-weight: 420;
  line-height: 0.96;
  letter-spacing: -0.015em;
}
/* the word floats with the water (the script moves it), the inside rises in at the start (GSAP moves it) */
.word {
  display: inline-block;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  overflow: hidden;
  will-change: transform;
}
.word__in {
  display: inline-block;
}
.sign__line {
  margin: 0;
  max-width: 30ch;
  font-size: 14px;
  font-weight: 460;
  line-height: 1.4;
  opacity: 0.8;
}

/* ---------------------------------------------------------------- the notes at the bottom */
.foot {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: var(--edge);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  text-shadow: 0 1px 12px rgba(4, 22, 24, 0.6);
}
.foot__note {
  max-width: 34ch;
  line-height: 1.5;
}
.foot__note--right {
  text-align: right;
}

@media (max-width: 640px) {
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .foot__note--right {
    text-align: left;
    opacity: 0.6;
  }
  .sign__line {
    font-size: 13px;
  }
}
