:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #262624;
  background: #e9e7e1;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
main {
  height: 100svh;
  min-height: 360px;
}
#sand {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: none;
  background: radial-gradient(ellipse, #f3f1ec, #e3e0d8);
}
header,
footer {
  position: fixed;
  left: 45px;
  right: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
header {
  top: 36px;
}
.eyebrow {
  font:
    9px/1.4 "Courier New",
    monospace;
  letter-spacing: 2.1px;
  margin: 0 0 12px;
  color: #62635d;
}
h1 {
  font:
    400 clamp(32px, 3.3vw, 49px)/1 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 0;
}
.period {
  color: #9d492f;
}
.specimen {
  display: flex;
  align-items: center;
  gap: 13px;
  font:
    9px/1.5 "Courier New",
    monospace;
  letter-spacing: 1px;
}
.symbol {
  font:
    28px Georgia,
    serif;
  border: 1px solid #7c7c7360;
  padding: 8px 10px;
}
.specimen small {
  display: block;
  font-size: 8px;
  color: #676862;
  margin-top: 4px;
}
.instruction {
  position: fixed;
  left: 0;
  right: 0;
  top: 76%;
  text-align: center;
  pointer-events: none;
  transition:
    opacity 0.65s,
    transform 0.65s;
}
.instruction.hidden {
  opacity: 0;
  transform: translateY(8px);
}
.instruction p {
  font:
    italic 19px Georgia,
    serif;
  margin: 11px 0;
}
.instruction small {
  font-size: 10px;
  color: #62635d;
  letter-spacing: 0.06em;
}
.cross {
  font-size: 22px;
  font-weight: 200;
}
footer {
  bottom: 27px;
  gap: 20px;
}
.note {
  font:
    9px "Courier New",
    monospace;
  letter-spacing: 1.2px;
}
.note small {
  display: block;
  font:
    italic 12px Georgia,
    serif;
  letter-spacing: 0;
  margin-top: 9px;
  color: #696a63;
}
.indicator {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #77786f;
  border-radius: 50%;
  margin-right: 7px;
}
.active .indicator {
  background: #9d492f;
}
nav {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  background: #f4f2edd9;
  border: 1px solid #b8b7ac;
  box-shadow: 0 5px 30px #32312608;
  border-radius: 6px;
  padding: 4px;
  backdrop-filter: blur(12px);
}
button {
  font:
    11px Arial,
    sans-serif;
  color: inherit;
  background: transparent;
  border: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: #dddcd4;
}
button[aria-pressed="true"] {
  background: #292b27;
  color: #f6f3eb;
}
button:focus-visible,
canvas:focus-visible {
  outline: 2px solid #9d492f;
  outline-offset: 3px;
}
.strength {
  display: flex;
  align-items: center;
  gap: 2px;
}
.control-label {
  font:
    8px "Courier New",
    monospace;
  letter-spacing: 1px;
  padding: 0 12px;
}
.divider {
  height: 20px;
  width: 1px;
  background: #b8b7ac;
  margin: 0 4px;
}
#release span {
  font-size: 17px;
  margin-left: 4px;
}
#sound {
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
}
#sound svg {
  width: 18px;
  height: 18px;
}
.waves {
  display: none;
}
#sound[aria-pressed="true"] .waves {
  display: block;
}
#sound[aria-pressed="true"] .muted {
  display: none;
}
#cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  margin: -26px;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  color: white;
  will-change: transform;
}
#cursor.visible {
  opacity: 1;
}
#cursor span {
  position: absolute;
  inset: 0;
  border: 1px solid #fffc;
  border-radius: 50%;
  transition: scale 0.2s;
}
#cursor.boost span {
  scale: 0.7;
}
#cursor i {
  font: 16px Arial;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-style: normal;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.fallback {
  position: fixed;
  top: 42%;
  left: 15%;
  right: 15%;
  text-align: center;
  font:
    18px/1.7 Georgia,
    serif;
  background: #e9e7e1;
  padding: 20px;
}
@media (max-width: 700px) {
  header {
    left: 22px;
    right: 22px;
    top: 28px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  h1 {
    font-size: 33px;
    letter-spacing: -1.5px;
  }
  .specimen {
    gap: 6px;
  }
  .specimen > span:last-child {
    display: none;
  }
  .symbol {
    font-size: 23px;
  }
  .instruction {
    top: 71%;
  }
  .instruction p {
    font-size: 17px;
  }
  footer {
    left: 12px;
    right: 12px;
    bottom: 22px;
    flex-direction: column;
    gap: 16px;
  }
  .note small {
    display: none;
  }
  nav {
    gap: 0;
    padding: 3px;
  }
  button {
    font-size: 10px;
    padding: 0 10px;
  }
  .control-label {
    font-size: 7px;
    padding: 0 8px;
  }
  .divider {
    margin: 0 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
