:root {
  --paper: #ffffff;
  --ink: #0b0c0e;
  --on-ink: #f4f3ef;
  --accent: #ff5a3c;
  --hush: #9a9a96;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}
.mute {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 999px;
}
.mute:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* the pill: GSAP moves this element, the CSS shadow stays on it */
.mute__body {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vmin, 12px);
  height: clamp(52px, 9vmin, 64px);
  padding: 0 clamp(22px, 3.6vmin, 30px) 0 clamp(16px, 2.6vmin, 22px);
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 10px 24px -14px rgba(11,12,14,.55), 0 2px 4px -2px rgba(11,12,14,.3);
  will-change: transform;
}
.mute__icon {
  width: clamp(28px, 4.8vmin, 34px);
  height: clamp(28px, 4.8vmin, 34px);
  overflow: visible;
  flex: none;
}
.mute__speaker { fill: var(--on-ink); }
.mute__wave {
  fill: none;
  stroke: var(--on-ink);
  stroke-width: 2;
  stroke-linecap: round;
}
.mute__slash {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
}
/* a slightly wider stroke in the pill's colour under the slash, so it cuts the speaker cleanly */
.mute__slash--gap { stroke: var(--ink); stroke-width: 5.2; }
.mute__label {
  position: relative;
  display: grid;
  height: 1.2em;
  /* clipped only above and below: the word may open a hair wider than its slot while it settles */
  clip-path: inset(0 -24px);
  font-size: clamp(17px, 2.8vmin, 20px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.mute__word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  width: max-content;
  font-variation-settings: 'wght' 560, 'wdth' 100;
  will-change: transform;
}
.mute__word[data-word="off"] { color: var(--on-ink); }
