/* The word in the mirage: one word on a horizon on warm paper, its mirage under the line. The canvas fills the page;
   the colours below are read by the script. */
:root {
  --paper: #f3efe6;    /* the page, and the air */
  --ink: #141414;      /* the word and the horizon */
  --accent: #2f5bff;   /* the mirage: the blue of water that is not there */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: fixed;
  inset: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

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

/* one small line under the mirage; the script sets its height */
.caption {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--caption-y, 78%);
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 460;
  font-variation-settings: 'wdth' 118;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

/* the one line of help, small and quiet at the bottom */
.hint {
  position: absolute;
  left: 50%;
  bottom: max(28px, 5vh);
  margin: 0;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 450;
  font-variation-settings: 'wdth' 112;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* without WebGL: the word on its line */
.fallback {
  position: absolute;
  left: 50%;
  top: 46%;
  margin: 0;
  padding-bottom: 0.04em;
  transform: translate(-50%, -100%);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(56px, 15vw, 210px);
  font-weight: 760;
  font-variation-settings: 'wdth' 125;
  line-height: 0.8;
}
