/* Changa One by Eduardo Tunni, SIL Open Font License 1.1 (fonts/OFL.txt). Served from this
   site rather than Google Fonts, so visitors make no third-party requests. */
@font-face {
  font-family: "Changa One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/changa-one.woff2") format("woff2");
}

:root {
  --face: #fff;
  --dim: rgba(255, 255, 255, 0.78);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #6a45f5;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  /* Violet, light enough for the shadow under the letters to show, dark enough for white text. */
  background: linear-gradient(180deg, #8a63ff 0%, #6a45f5 100%) fixed;
  color: var(--face);
  font-family: "Changa One", "Arial Black", Impact, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { text-align: center; }

/* White letters on a stack of gray layers, so they read as solid, bouncing above a shadow that
   tightens as they land. Sizes are in em, so the depth scales with the text. */
.bounce {
  margin: 0;
  font-size: clamp(40px, 10vw, 96px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  color: var(--face);
  text-shadow:
    0 0.017em 0 #ccc,
    0 0.033em 0 #c4c4c4,
    0 0.05em 0 #bbb,
    0 0.067em 0 #b3b3b3,
    0 0.083em 0 #aaa,
    0 0.1em 0 #a2a2a2,
    0 0.167em 0.15em rgba(0, 0, 0, 0.9);
  animation: bounce 0.4s ease infinite alternate;
  will-change: transform;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-20%);
    text-shadow:
      0 0.017em 0 #ccc,
      0 0.033em 0 #c4c4c4,
      0 0.05em 0 #bbb,
      0 0.067em 0 #b3b3b3,
      0 0.083em 0 #aaa,
      0 0.1em 0 #a2a2a2,
      0 0.333em 0.333em rgba(0, 0, 0, 0.35);
  }
}

.note {
  margin: 1.4em 0 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.note a {
  color: var(--dim);
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
}

.note a:hover,
.note a:focus-visible {
  color: var(--face);
  text-decoration-color: currentColor;
  outline: none;
}

/* People who ask their system for less motion get the letters standing still. */
@media (prefers-reduced-motion: reduce) {
  .bounce { animation: none; }
}
