:root {
  --ink: #243f46;
  --soft: rgba(36, 63, 70, 0.62);
  --mint: #58b8ad;
  --paper: #f4fbf8;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

body {
  position: fixed;
  inset: 0;
  touch-action: none;
}

#app {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(88, 184, 173, .26), transparent 31%),
    radial-gradient(ellipse at 50% 82%, rgba(88, 184, 173, .14), transparent 34%),
    linear-gradient(180deg, #fbfff9 0%, #ecf8f4 58%, #f7fbf3 100%);
}

#app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(36, 63, 70, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 63, 70, .045) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 74%);
}

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

canvas.is-dragging {
  cursor: grabbing;
}

.title {
  position: absolute;
  left: clamp(18px, 4.4vw, 64px);
  top: clamp(18px, 4vw, 54px);
  z-index: 2;
  width: min(430px, calc(100vw - 112px));
  pointer-events: none;
  mix-blend-mode: multiply;
}

.kicker {
  margin: 0 0 10px;
  color: rgba(36, 95, 102, .72);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: 0;
  white-space: nowrap;
}

.subtitle {
  max-width: 360px;
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.8;
}

.sound {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  top: clamp(18px, 4vw, 48px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(58, 114, 110, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 14px 38px rgba(74, 119, 112, .12);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.sound span,
.sound span::before,
.sound span::after {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: rgba(42, 65, 72, .62);
}

.sound span {
  height: 18px;
}

.sound span::before,
.sound span::after {
  content: "";
  position: absolute;
  height: 11px;
  transform: translate(-8px, 4px);
}

.sound span::after {
  height: 14px;
  transform: translate(8px, 2px);
}

.sound.is-on {
  border-color: rgba(88, 184, 173, .46);
  box-shadow: 0 0 0 7px rgba(88, 184, 173, .16), 0 18px 44px rgba(36, 95, 102, .14);
}

.hint {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(16px, 3.6vw, 40px);
  z-index: 2;
  color: rgba(36, 63, 70, .56);
  font-size: 12px;
  pointer-events: none;
}

@media (max-width: 720px) {
  .title {
    width: min(330px, calc(100vw - 82px));
    left: 18px;
    top: 18px;
  }

  .kicker {
    margin-bottom: 7px;
    font-size: 9px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .subtitle {
    max-width: 255px;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.65;
  }

  .sound {
    width: 40px;
    height: 40px;
  }

  .hint {
    left: 18px;
    right: auto;
    bottom: 15px;
    max-width: calc(100vw - 36px);
    font-size: 10px;
  }
}
