/* The equaliser word: a minimal type piece. Warm paper, one word whose letters are the bands of an equaliser, in a
   variable typeface with a cap height axis (Roboto Flex), a hairline bed, a fine scale and a thin peak mark over
   every letter that turns vermilion when the band hits the top. */
:root {
  --paper: #f3f0e8;    /* the page */
  --ink: #141414;      /* the letters */
  --peak: #8f887c;     /* the peak marks over the letters */
  --clip: #e2471d;     /* a peak mark at the very top, the only accent */
  --rule: #d3cdc1;     /* the scale and the bed */
  --mark: #9b9488;     /* the notes */
}

* {
  box-sizing: border-box;
}

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

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

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}

.meter {
  position: relative;
}

.word {
  position: relative;
  margin: 0;
  display: flex;
  align-items: baseline;
  font-size: var(--size, 160px);
  font-weight: 400;
  line-height: 1;
}

/* every letter stands centred in a cell as wide as it can get, so its neighbours never move */
.cell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: baseline;
  width: var(--w, 1em);
  opacity: 0;
}

.l {
  display: inline-block;
}

.peak {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: var(--peak);
  will-change: transform;
}

.bed {
  position: absolute;
  left: -2%;
  right: -2%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
}

.scale {
  position: absolute;
  right: 100%;
  margin-right: 18px;
  width: 1px;
  background: var(--rule);
  opacity: 0;
}

.scale i {
  position: absolute;
  right: 0;
  width: 7px;
  height: 1px;
  background: var(--rule);
}

.scale span {
  position: absolute;
  right: 12px;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 0.02em;
  font-variation-settings: 'wdth' 100, 'wght' 460;
  font-variant-numeric: tabular-nums;
  color: var(--mark);
  white-space: nowrap;
}

.foot {
  position: absolute;
  left: max(20px, 4vw);
  right: max(20px, 4vw);
  bottom: max(20px, 4vh);
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-variation-settings: 'wdth' 100, 'wght' 460;
  color: var(--mark);
  opacity: 0;
}

.foot__brand {
  color: var(--ink);
}

@media (max-width: 560px) {
  .foot {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .scale {
    display: none;
  }
}
