/* noise'r'us. slime v3 concept. white text in difference blend over a webgl background. */
html { background: #8d9e1f; }
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  font-family: 'Libre Caslon Text', serif;
  color: #fff;
  overflow-x: hidden;
}
a { color: #fff; }
a:hover { color: #f28ca0; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.blend { mix-blend-mode: difference; }

/* header: wordmark */
header { padding: 6px 22px 0; display: flex; flex-direction: column; gap: 6px; mix-blend-mode: difference; }
.title {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: clamp(90px, 21vw, 360px);
  line-height: .78;
  letter-spacing: -.01em;
  color: #fff;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}
a.title:hover { color: #fff; }
.tagline-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid #fff; padding-top: 10px;
}
.tagline { font-style: italic; font-size: 19px; text-wrap: pretty; }
.crumbs { display: flex; gap: 6px; font-size: 17px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }

main { flex: 1; display: flex; flex-direction: column; padding: 72px 22px 50px; }

/* home: the sounds */
main.home { justify-content: center; }
.sound {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: clamp(52px, 10vw, 170px);
  line-height: .98;
  mix-blend-mode: difference;
  color: #fff;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .06em;
  width: fit-content;
  max-width: 100%;
}
.sound:hover { color: #fff; text-decoration-color: #f28ca0; }

/* sound page: the lengths */
main.lengths { gap: 34px; }
.big {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: clamp(52px, 11vw, 200px);
  line-height: .9;
  mix-blend-mode: difference;
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: normal;
}
.durations { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dot {
  width: var(--s); height: var(--s); border-radius: 50%;
  background: #111; color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--s) * .34);
}
.dot:hover, .pill:hover { background: #fff; color: #111; }
.dot:hover { transform: scale(1.15); }

/* length page */
main.detail { justify-content: center; gap: 24px; }
.hero { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.number {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: clamp(160px, 30vw, 440px);
  line-height: .8;
  mix-blend-mode: difference;
  user-select: none;
  -webkit-user-select: none;
}
.play {
  width: 120px; height: 120px; border-radius: 50%; border: 0; padding: 0;
  background: #111; color: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
/* state, not hover: black + white play when idle, white + small black stop while playing */
.play svg { width: 44px; height: 44px; fill: currentColor; display: none; }
.play .ic-play { display: block; margin-left: 4px; }
.play[data-playing] { background: #fff; color: #111; }
.play[data-playing] .ic-play { display: none; }
.play[data-playing] .ic-stop { display: block; width: 28px; height: 28px; }
.sound-name {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  mix-blend-mode: difference;
  overflow-wrap: anywhere;
}
.sound-name a { text-decoration: none; }
.sound-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: #111; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; }
.pill:hover { transform: scale(1.08); }
/* about */
main.about { max-width: 860px; font-size: 17px; line-height: 1.55; mix-blend-mode: difference; }
main.about h1, main.about h2 { font-family: 'UnifrakturMaguntia', serif; font-weight: normal; line-height: 1; margin: 1.2em 0 .4em; }
main.about h1 { font-size: clamp(52px, 8vw, 120px); margin-top: 0; }
main.about h2 { font-size: clamp(32px, 4vw, 48px); }
main.about pre, main.about code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; }
main.about pre { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 1px solid #fff; padding-left: 12px; }
main.about table { border-collapse: collapse; width: 100%; }
main.about td, main.about th { text-align: left; vertical-align: top; padding: 4px 18px 4px 0; border-bottom: 1px solid rgba(255,255,255,.4); }
main.about td:nth-child(1), main.about td:nth-child(2) { white-space: nowrap; }
main.about td:nth-child(3) { width: 100%; }
@media (max-width: 760px) {
  /* stack: ext + content-type on one line, description under it */
  main.about table, main.about tbody, main.about tr, main.about td { display: block; }
  main.about tr:first-child { display: none; }
  main.about tr { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.4); }
  main.about td { border: 0; padding: 0; width: auto; }
  main.about td:nth-child(1), main.about td:nth-child(2) { display: inline; margin-right: 14px; }
  main.about td:nth-child(2) { white-space: normal; }
}

footer {
  background: #111; color: #fff; font-size: 13px; padding: 12px 22px;
  display: flex; flex-wrap: wrap; gap: 8px 26px;
}
footer a:hover { color: #f28ca0; }
