@font-face {
  font-family: "Excelsior LT Std";
  src: url("assets/ExcelsiorLTStd.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* EDIT THESE SETTINGS */
:root {
  --font-size: 300pt;
  --desktop-screen-occupancy: 70;
  --mobile-screen-occupancy: 70;
  --animation-speed: 100ms;

  /* PETERSENYC: one vibrant color per letter position */
  --letter-color-1: #F44336;  /* P - red */
  --letter-color-2: #FF9800;  /* E - orange */
  --letter-color-3: #FFEB3B;  /* T - yellow */
  --letter-color-4: #8BC34A;  /* E - lime */
  --letter-color-5: #00C853;  /* R - green */
  --letter-color-6: #00BCD4;  /* S - cyan */
  --letter-color-7: #2196F3;  /* E - blue */
  --letter-color-8: #3F51B5;  /* N - indigo */
  --letter-color-9: #9C27B0;  /* Y - violet */
  --letter-color-10: #E91E63; /* C - magenta */
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; min-height: 100%; margin: 0; }
body { background: #fff; overflow: hidden; }
.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin: 0;
  padding: 0;
}
.letter {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--current-letter-color, #F44336);
  font-family: "Excelsior LT Std", serif;
  /*
    Responsive sizing: the glyph is sized to occupy about 70% of the
    available screen, constrained by both viewport width and height.
    --font-size remains the desktop maximum and can still be customized.
  */
  font-size: min(
    var(--font-size),
    70vw,
    70svh
  );
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  white-space: pre;
  text-align: center;
  font-kerning: none;
  user-select: none;
  justify-self: center;
  align-self: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Mobile: independent 70% viewport sizing controls. */
@media (max-width: 600px) {
  .letter {
    font-size: min(
      var(--font-size),
      calc(var(--mobile-screen-occupancy) * 1vw),
      calc(var(--mobile-screen-occupancy) * 1svh)
    );
  }
}

/* Desktop: use the desktop occupancy controls above 600px. */
@media (min-width: 601px) {
  .letter {
    font-size: min(
      var(--font-size),
      calc(var(--desktop-screen-occupancy) * 1vw),
      calc(var(--desktop-screen-occupancy) * 1svh)
    );
  }
}
