:root {
  --black: #090909;
  --red: #d71920;
  --white: #ffffff;
  --soft-white: #f7f3ef;
  --button-shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(90deg, var(--black) 0 50%, var(--red) 50% 100%);
}

.page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
}

.site-header {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: clamp(1rem, 3vw, 1.75rem) 1.5rem 0;
  text-align: center;
  pointer-events: none;
}

.site-logo {
  width: clamp(4.5rem, 10vw, 7rem);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 0.55rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
}

.download-side {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.35rem, 3vw, 2.5rem);
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 4rem);
  overflow: hidden;
}

.download-side::before {
  position: absolute;
  inset: auto auto -10rem -9rem;
  width: clamp(17rem, 32vw, 28rem);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.download-side::after {
  position: absolute;
  top: 12%;
  right: -11rem;
  width: clamp(16rem, 30vw, 26rem);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.download-side--infantil {
  background: var(--red);
}

.download-side--adult {
  background: var(--black);
}

.book-cover {
  position: relative;
  z-index: 1;
  width: min(100%, 23rem);
  max-height: min(48vh, 31rem);
  object-fit: contain;
}

.download-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 23rem);
  min-height: 3.75rem;
  padding: 0.75rem clamp(1rem, 2.4vw, 1.45rem);
  border: 0.15rem solid rgba(255, 255, 255, 0.72);
  border-radius: 1rem;
  font-size: clamp(0.9rem, 1.45vw, 1.05rem);
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1.1rem 2.2rem var(--button-shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.download-button--infantil {
  background: var(--white);
  color: var(--black);
}

.download-button--adult {
  background: var(--white);
  color: var(--black);
}

.download-button:hover,
.download-button:focus-visible {
  box-shadow: 0 0.75rem 1.6rem rgba(0, 0, 0, 0.32);
  transform: translateY(-0.18rem);
}

.download-button:focus-visible {
  outline: 0.22rem solid rgba(255, 255, 255, 0.7);
  outline-offset: 0.35rem;
}

@media (max-width: 720px) {
  body {
    background: linear-gradient(180deg, var(--black) 0 50%, var(--red) 50% 100%);
  }

  .page {
    grid-template-rows: auto auto;
  }

  .site-header {
    padding-bottom: 0.75rem;
    background: var(--black);
  }

  .download-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .download-side {
    min-height: calc((100vh - 6.25rem) / 2);
    padding-block: 1.75rem;
  }

  .book-cover {
    width: min(72vw, 17rem);
    max-height: 28vh;
    border-radius: 0.7rem;
  }

  .download-button {
    width: min(100%, 18.5rem);
    min-height: 3.8rem;
  }
}

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