:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  --background: #ffeb3b;
  --text: #333;
  --text-muted: #555;
  --green: #1db954;
  --green-hover: #1ed760;
  --link: #0066cc;
  --white: #fff;
  --white-hover: #f0f0f0;
  color: var(--text);
  background: var(--background);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  min-height: 900px;
  margin: 32px auto;
  padding: 48px 24px 28px;
  background: var(--background);
}

.release {
  width: min(100%, 520px);
  margin-inline: auto;
}

.cover,
.cover img {
  display: block;
  width: 100%;
}

.cover img {
  height: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 0;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.button--spotify {
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
}

.button--spotify:hover {
  background: var(--green-hover);
}

.button--download {
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
}

.button--download:hover {
  background: var(--white-hover);
}

.button__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer {
  margin-top: auto;
  padding-top: 88px;
  text-align: center;
}

.footer__logo {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin-inline: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 64px;
  margin-top: 36px;
}

.footer__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--link);
  font-size: 15px;
  text-decoration: none;
  text-underline-offset: 4px;
}

.footer__links a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 5px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.page--legal {
  min-height: calc(100svh - 64px);
  padding-inline: clamp(24px, 7vw, 64px);
}

.back-link {
  align-self: flex-start;
  padding-block: 10px;
  color: var(--link);
  text-underline-offset: 4px;
}

.legal-content {
  margin-block: 24px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-content .content {
  white-space: pre-line;
}

.legal-content a {
  color: var(--link);
  text-underline-offset: 3px;
}

.legal-content h1 {
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.2;
}

.legal-content h2 {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  :root {
    background: var(--background);
  }

  .page {
    min-height: 100svh;
    margin: 0 auto;
    padding-top: 32px;
  }

  .page--legal {
    min-height: 100svh;
  }

  .footer {
    padding-top: 64px;
  }
}

@media (max-width: 420px) {
  .actions {
    gap: 12px;
    margin-top: 28px;
  }

  .button {
    width: 100%;
    max-width: 280px;
  }

  .footer__links {
    gap: 12px 40px;
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
