:root {
  --cover-size: clamp(250px, 90vmin, 625px);
  --logo-scale: calc(700 / 500);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --bg: #333;
  --text: #eee;
  --link: #fff;
  --link-hover: #ccc;

  --ease: ease;
  --dur-fast: 100ms;
  --dur: 200ms;
  --dur-slow: 250ms;
  --dur-long: 10s;
  --dur-cover: 120s;
  --dur-fade: 2s;

  --stack-gap: 3rem;
}

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

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.2px;
  font-weight: 400;
}

.logo {
  width: calc(var(--cover-size));
  max-width: 100%;
  height: auto;
  padding-top: clamp(0px, calc((600px - 100vw) / 3.5), 80px);
  margin-bottom: var(--stack-gap);
}

.player-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9375rem;
  margin-top: 0;
  position: relative;
}

#cover-container {
  position: relative;
  width: var(--cover-size);
  height: var(--cover-size);
  overflow: hidden;
}

#cover-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.play-icon {
  z-index: 2;
  cursor: pointer;
  opacity: 1;
  transition: opacity var(--dur-long) var(--ease);
}

img.cover {
  z-index: 1;
  opacity: 0;
  transition: opacity var(--dur-cover) ease-in-out;
}

.bold-text {
  font-weight: bold;
}

.text-block a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.text-block a:hover {
  color: var(--link-hover);
}

#text-toggle {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 2.8125rem;
  height: 2.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  font-size: 1.375rem;
  color: var(--link);
  background: transparent;
  border: none;
  border-radius: 0;
  z-index: 10;
  cursor: pointer;
  transition: color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

#text-toggle:hover {
  color: var(--link-hover);
}
#text-toggle:active {
  transform: scale(0.98);
}
#text-toggle:focus-visible {
  outline: 2.5px solid #fff;
  outline-offset: 2.5px;
}

.text-block {
  width: min(90vw, var(--cover-size));
  padding-inline: 1rem;
  padding-block: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  line-height: 1.4;
  text-align: center;
  text-indent: 0;
  backdrop-filter: none;
  box-sizing: border-box;
  font-size: 1.125rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-0.15625rem);
  transition: opacity var(--dur-fade) var(--ease), max-height var(--dur-fade) var(--ease), transform var(--dur-fade) var(--ease), padding-block var(--dur-fade) var(--ease);
}

.text-block p + p {
  position: relative;
  margin-top: 1.875rem;
}
.text-block p + p::before {
  content: "";
  position: absolute;
  top: -1.125rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.46875rem;
  height: 0.46875rem;
  background: var(--link);
  border-radius: 50%;
}

#text-bottom.text-block {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--cover-size) + var(--stack-gap));
  transform: none;
  margin: 0 auto;
  z-index: 5;
}

body.show-text .text-block {
  opacity: 1;
  max-height: 100vh;
  pointer-events: auto;
  transform: translateY(0);
  padding-block: 0.85rem;
}

.contact-text {
  font-size: 1rem;
  padding-top: 0.625rem;
}

.contact-container {
  font-family: var(--font-sans);
  position: absolute;
  top: 0.25rem;
  right: calc(0.25rem + 2.8125rem);
  z-index: 10;
  text-align: right;
  height: 2.8125rem;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fade) var(--ease);
}

body.show-text .contact-container {
  opacity: 1;
  pointer-events: auto;
}

.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;
}

.mail-icon {
  appearance: none;
  background: transparent;
  border: none;
  width: 2.8125rem;
  height: 2.8125rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.mail-icon img {
  display: block;
}
.mail-icon:hover {
  opacity: 0.85;
}
.mail-icon:active {
  transform: scale(0.98);
}
.mail-icon:focus-visible {
  outline: 2px solid #ffffff99;
  outline-offset: 3px;
  border-radius: 8px;
}

.contact-container a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.contact-container a:hover {
  color: var(--link-hover);
}
