.home-page {
  background: #fff8f2;
}

.home-masthead {
  background: #fff8f2;
  border-color: #e2cbc7;
}

.home-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.home-nav-link:hover {
  color: var(--rose);
}

.home-cover {
  --cover-ink: #2b1c35;
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(505px, 48vw, 632px);
  margin-top: clamp(14px, 3vw, 39px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 5px;
  background: var(--cover-ink);
  color: #fff4e5;
  box-shadow: 0 17px 38px -26px #522a45;
}

.home-visual {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
}

.home-visual img {
  position: absolute;
  inset: -16px 0;
  width: 100%;
  height: calc(100% + 32px);
  object-fit: cover;
  object-position: center 48%;
}

.home-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #25182f 0%, #25182fe8 25%, #25182f60 48%, #25182f00 66%);
}

.home-cover::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 1px solid #fff4e544;
  border-radius: 3px;
  pointer-events: none;
}

.home-copy {
  width: min(53%, 605px);
  padding: clamp(35px, 6vw, 90px);
  padding-right: 0;
}

.home-copy h1 {
  margin: 0;
  font-size: clamp(76px, 9.8vw, 136px);
  font-weight: 500;
  line-height: .87;
  letter-spacing: -.077em;
}

.home-copy h1 em {
  color: #f6b5b5;
}

.home-copy h1 em::after {
  content: none;
}

.home-copy p {
  max-width: 28ch;
  margin-top: clamp(25px, 3.2vw, 41px);
  color: #f4e5e5;
  font: 400 clamp(19px, 1.85vw, 25px)/1.45 var(--reading);
}

.home-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  margin-top: 26px;
  padding: 10px 23px;
  border: 1px solid #fff5e7;
  border-radius: 3px;
  background: #fff3e4;
  color: #34243c;
  font-size: 14px;
  font-weight: 700;
}

.home-primary:hover {
  background: #ffd8cc;
}

.home-primary:focus-visible {
  outline-color: #f6b5b5;
}

.home-chapters {
  width: min(960px, 88%);
  padding-block: clamp(48px, 7vw, 91px) clamp(54px, 7.5vw, 96px);
}

.home-section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(14px, 3vw, 32px);
  margin-bottom: clamp(25px, 4vw, 42px);
  text-align: center;
}

.home-section-heading span {
  grid-column: 2;
  color: var(--rose);
  font-size: 15px;
}

.home-section-heading h2 {
  grid-column: 2;
  grid-row: 2;
  font-size: clamp(43px, 5.6vw, 72px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.07;
}

.home-section-heading::before,
.home-section-heading::after {
  content: "";
  grid-row: 2;
  height: 1px;
  background: #e1c6c5;
}

.home-section-heading::before { grid-column: 1; }
.home-section-heading::after { grid-column: 3; }

.chapter-card {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #ddc1c2;
  border-radius: 4px;
  background: #fbebe5;
  box-shadow: 0 14px 32px -26px #56273e6b;
}

.chapter-card-art {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #e8a698;
}

.chapter-card-art::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  aspect-ratio: 1;
  translate: 0 -50%;
  background: url("assets/primera-mirada.webp") left bottom / 200% 200% no-repeat;
}

.chapter-card-copy {
  align-self: center;
  padding: clamp(26px, 5vw, 61px);
}

.chapter-card-kicker {
  color: var(--rose);
  font: 700 13px/1.4 var(--letter);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.chapter-card h3 {
  margin: 12px 0 14px;
  font-size: clamp(35px, 4.5vw, 58px);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.061em;
}

#chapter-card-description {
  max-width: 32ch;
  color: var(--muted);
  font: 400 clamp(18px, 1.5vw, 21px)/1.47 var(--reading);
}

.chapter-card-action {
  display: inline-block;
  margin-top: 23px;
  padding-bottom: 4px;
  border-bottom: 1px solid #a55d72;
  color: var(--rose);
  font-size: 14px;
  font-weight: 700;
}

.chapter-card:hover .chapter-card-action {
  color: var(--ink);
  border-color: var(--ink);
}

.home-footer {
  display: flex;
  justify-content: center;
  width: min(960px, 88%);
  padding-block: 19px 26px;
  border-top: 1px solid #e1c6c5;
}

.home-footer a {
  padding: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .home-copy { animation: home-copy-in 620ms cubic-bezier(.2,.7,.2,1) both; }
  .home-primary, .chapter-card-action { transition: background-color 180ms, color 180ms, border-color 180ms; }
}

@keyframes home-copy-in {
  from { opacity: 0; translate: 0 10px; }
}

@media (max-width: 850px) {
  .home-cover {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    width: min(92%,540px);
  }

  .home-copy {
    z-index: 0;
    order: -1;
    width: 100%;
    padding: 29px clamp(22px, 6vw, 41px) 22px;
  }

  .home-copy h1 { font-size: clamp(60px, 13vw, 88px); }
  .home-copy p { margin-top: 16px; }
  .home-primary { margin-top: 18px; }
  .home-cover::after { inset: 8px; }

  .home-visual {
    position: relative;
    z-index: 0;
    aspect-ratio: 1.45;
  }

  .home-visual img {
    object-position: 82% center;
  }

  .home-visual::after {
    background: linear-gradient(180deg, var(--cover-ink), transparent 25%);
  }

  .chapter-card { grid-template-columns: 1fr; }
  .chapter-card-art { min-height: 0; aspect-ratio: 1.24; }
  .chapter-card-copy { padding: 27px; }
}
