@media (max-width: 860px) {
  .site-header {
    position: sticky;
    align-items: center;
    flex-direction: row;
    gap: 0.8rem;
    padding: 0.75rem var(--gutter);
  }

  .nav {
    justify-content: flex-end;
    gap: 0.3rem;
    font-size: 0.82rem;
  }

  .nav a {
    padding: 0.28rem 0.48rem;
  }

  .brand {
    max-width: 12rem;
    font-size: 0.93rem;
    line-height: 1.2;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(247, 243, 236, 0.98), rgba(247, 243, 236, 0.9) 42%, rgba(247, 243, 236, 0.74)),
      url("images/janela-uiclap-sem-numero.jpg") center top / cover no-repeat;
  }

  .hero-inner,
  .section,
  .details,
  .author,
  .buy {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    gap: 1.35rem;
    padding: 1.35rem 0 3rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11.5vw, 3.65rem);
    line-height: 1.04;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .script-note {
    font-size: 0.78rem;
  }

  .subtitle {
    margin-bottom: 0.85rem;
    font-size: clamp(1.05rem, 5vw, 1.45rem);
  }

  .intro,
  .section-copy p,
  .author-copy p,
  .buy-copy p {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-copy {
    padding: 1rem 0 0;
    border-left: 0;
    background: transparent;
  }

  .cover-showcase {
    order: -1;
    width: min(58vw, 255px);
    margin: 0 auto;
    transform: rotate(-1deg);
  }

  .actions {
    gap: 0.6rem;
    margin-top: 1.1rem;
  }

  .button {
    min-height: 46px;
    padding: 0.72rem 1rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .story {
    width: min(620px, calc(100% - (var(--gutter) * 2)));
  }

  .selling-strip {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: min(520px, calc(100% - (var(--gutter) * 2)));
    margin-top: 1rem;
    padding: 0.65rem;
  }

  .selling-strip div {
    min-height: auto;
    padding: 0.82rem;
  }

  .selling-strip strong {
    font-size: 0.92rem;
  }

  .selling-strip span {
    font-size: 0.84rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .preview {
    padding-right: 0;
    padding-left: 0;
  }

  .preview-head,
  .carousel {
    width: min(480px, calc(100% - (var(--gutter) * 2)));
    margin-right: auto;
    margin-left: auto;
  }

  .preview-head h2 {
    font-size: clamp(1.7rem, 7.6vw, 2.35rem);
  }

  .carousel-stage {
    min-height: 0;
    overflow: visible;
  }

  .carousel-slide {
    position: relative;
    grid-template-columns: 1fr;
  }

  .carousel-slide:not(.is-active) {
    display: none;
  }

  .carousel-slide img {
    min-height: 0;
    aspect-ratio: 1.22;
    border-radius: 8px 8px 0 0;
  }

  .carousel-slide figcaption {
    min-height: 0;
    padding: 0.9rem;
    border-top: 1px solid rgba(63, 58, 53, 0.08);
    border-left: 0;
    border-radius: 0 0 8px 8px;
  }

  .carousel-slide strong {
    font-size: 1.08rem;
  }

  .carousel-slide span {
    margin-top: 0.45rem;
    font-size: 0.88rem;
  }

  .carousel-controls {
    padding-top: 0.75rem;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .detail-grid article {
    min-height: auto;
  }

  .buy-actions {
    justify-content: stretch;
  }

  .checkout-form {
    justify-items: stretch;
  }

  .checkout-status {
    max-width: none;
    text-align: left;
  }

  .quote-band {
    min-height: 240px;
    background-attachment: scroll;
  }

  .quote-band p {
    font-size: clamp(1.55rem, 8vw, 2.45rem);
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .actions,
  .buy-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .buy {
    width: min(100% - (var(--gutter) * 2), 520px);
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
