@font-face {
  font-family: "GFS Didot Iyoni";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/gfs-didot-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Averta Iyoni";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/averta-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Averta Iyoni";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/averta-bold.woff2") format("woff2");
}

.iyoni-ebook-hero {
  --iyoni-ebook-navy: #082755;
  --iyoni-ebook-pink: #a81d60;
  --iyoni-ebook-blush: #f8ebeb;
  position: relative;
  display: block;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  overflow: clip;
  background: var(--iyoni-ebook-blush);
  color: var(--iyoni-ebook-navy);
  line-height: normal;
}

.iyoni-ebook-hero *,
.iyoni-ebook-hero *::before,
.iyoni-ebook-hero *::after {
  box-sizing: border-box;
}

.iyoni-ebook-hero__inner {
  container-type: inline-size;
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1600 / 902;
  overflow: hidden;
  background: var(--iyoni-ebook-blush);
}

.iyoni-ebook-hero__visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.iyoni-ebook-hero__photo {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.iyoni-ebook-hero__book {
  position: absolute;
  z-index: 1;
  top: 47.2%;
  right: 5.1%;
  width: 15.1%;
  height: 44.4%;
  transform: rotate(-1deg);
  transform-origin: center bottom;
}

.iyoni-ebook-hero__book::before {
  position: absolute;
  z-index: -1;
  top: 0.6%;
  bottom: 0.8%;
  left: -4.5%;
  width: 6%;
  content: "";
  background: #761541;
  transform: skewY(8deg);
  transform-origin: right center;
}

.iyoni-ebook-hero__book img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(54, 26, 38, 0.24);
}

.iyoni-ebook-hero__copy {
  position: absolute;
  z-index: 2;
  top: 12.85%;
  left: 5.625%;
  width: 46%;
  min-width: 0;
}

.iyoni-ebook-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--iyoni-ebook-navy);
  font-family: "GFS Didot Iyoni", Didot, "Bodoni 72", serif;
  font-size: 6.6vw;
  font-size: 6.6cqw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.21;
  letter-spacing: -0.006em;
  word-spacing: -0.12em;
  text-wrap: nowrap;
}

.iyoni-ebook-hero h1 span,
.iyoni-ebook-hero__body span {
  display: block;
}

.iyoni-ebook-hero h1 span:first-child {
  transform: translateY(-0.875vw);
  transform: translateY(-0.875cqw);
}

.iyoni-ebook-hero h1 span:last-child {
  transform: translateY(-1.3125vw);
  transform: translateY(-1.3125cqw);
}

.iyoni-ebook-hero__lead {
  margin: 1.2vw 0 0;
  margin: 1.2cqw 0 0;
  color: var(--iyoni-ebook-pink);
  font-family: "Averta Iyoni", Averta, Arial, sans-serif;
  font-size: max(2.2vw, 20px);
  font-size: max(2.2cqw, 20px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transform: translateY(-0.25vw);
  transform: translateY(-0.25cqw);
  white-space: nowrap;
}

.iyoni-ebook-hero__body {
  margin: 1.275vw 0 0;
  margin: 1.275cqw 0 0;
  color: #313d5a;
  font-family: "Averta Iyoni", Averta, Arial, sans-serif;
  font-size: max(1.52vw, 14px);
  font-size: max(1.52cqw, 14px);
  font-weight: 400;
  line-height: 1.59;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.iyoni-ebook-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19.5vw;
  width: 19.5cqw;
  min-width: 178px;
  height: 5.25vw;
  height: 5.25cqw;
  min-height: 56px;
  margin-top: 2.4vw;
  margin-top: 2.4cqw;
  padding: 0 2.6vw;
  padding: 0 2.6cqw;
  border-radius: 0.625vw;
  border-radius: 0.625cqw;
  background: var(--iyoni-ebook-pink);
  color: #fff;
  gap: 1.2vw;
  gap: 1.2cqw;
  font-family: "Averta Iyoni", Averta, Arial, sans-serif;
  font-size: max(1.75vw, 16px);
  font-size: max(1.75cqw, 16px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.iyoni-ebook-hero__cta:hover,
.iyoni-ebook-hero__cta:visited {
  background: var(--iyoni-ebook-pink);
  color: #fff;
  text-decoration: none;
}

.iyoni-ebook-hero__cta:focus-visible {
  outline: 3px solid var(--iyoni-ebook-navy);
  outline-offset: 4px;
}

.iyoni-ebook-hero__cta svg {
  flex: 0 0 auto;
  width: 1.625vw;
  width: 1.625cqw;
  min-width: 22px;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.iyoni-ebook-hero__proofs {
  display: grid;
  grid-template-columns: 15.75vw 13.875vw 13.75vw;
  grid-template-columns: 15.75cqw 13.875cqw 13.75cqw;
  width: 45.375vw;
  width: 45.375cqw;
  min-width: 0;
  margin: 3.75vw 0 0;
  margin: 3.75cqw 0 0;
  padding: 0;
  color: var(--iyoni-ebook-navy);
  column-gap: 1.875vw;
  column-gap: 1.875cqw;
  list-style: none;
}

.iyoni-ebook-hero__proofs li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 4vw;
  min-height: 4cqw;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.875vw;
  gap: 0.875cqw;
  font-family: "Averta Iyoni", Averta, Arial, sans-serif;
  font-size: max(1.125vw, 13px);
  font-size: max(1.125cqw, 13px);
  font-weight: 700;
  line-height: 1.18;
}

.iyoni-ebook-hero__proofs li + li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.9375vw;
  left: -0.9375cqw;
  width: 1px;
  content: "";
  background: #afb3bd;
}

.iyoni-ebook-hero__proof-icon,
.iyoni-ebook-hero__years {
  flex: 0 0 3.75vw;
  flex: 0 0 3.75cqw;
  width: 3.75vw;
  width: 3.75cqw;
  height: 3.75vw;
  height: 3.75cqw;
}

.iyoni-ebook-hero__proof-icon {
  fill: none;
  stroke: var(--iyoni-ebook-pink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.iyoni-ebook-hero__years {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--iyoni-ebook-pink);
  border-radius: 50%;
  color: var(--iyoni-ebook-pink);
  font-size: 1.5vw;
  font-size: 1.5cqw;
  line-height: 1;
}

@media (max-width: 900px) {
  .iyoni-ebook-hero__inner {
    display: flex;
    aspect-ratio: auto;
    flex-direction: column;
  }

  .iyoni-ebook-hero__copy {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    width: 100%;
    padding: 42px 24px 30px;
  }

  .iyoni-ebook-hero h1 {
    font-size: clamp(42px, 9.8vw, 62px);
    line-height: 1.03;
    letter-spacing: -0.006em;
    text-wrap: balance;
  }

  .iyoni-ebook-hero h1 span:first-child,
  .iyoni-ebook-hero h1 span:last-child {
    transform: none;
  }

  .iyoni-ebook-hero__lead {
    margin-top: 22px;
    font-size: clamp(20px, 4.2vw, 28px);
    line-height: 1.2;
    transform: none;
    white-space: normal;
  }

  .iyoni-ebook-hero__body {
    margin-top: 18px;
    font-size: clamp(17px, 2.9vw, 20px);
    line-height: 1.48;
    white-space: normal;
  }

  .iyoni-ebook-hero__body span {
    display: inline;
  }

  .iyoni-ebook-hero__body span + span::before {
    content: " ";
  }

  .iyoni-ebook-hero__cta {
    width: 100%;
    max-width: 312px;
    height: 64px;
    min-height: 64px;
    margin-top: 28px;
    padding: 0 26px;
    border-radius: 9px;
    gap: 18px;
    font-size: 21px;
  }

  .iyoni-ebook-hero__cta svg {
    width: 25px;
  }

  .iyoni-ebook-hero__proofs {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 32px;
    row-gap: 14px;
  }

  .iyoni-ebook-hero__proofs li {
    min-height: 48px;
    gap: 14px;
    font-size: 17px;
  }

  .iyoni-ebook-hero__proofs li + li::before {
    content: none;
  }

  .iyoni-ebook-hero__proof-icon,
  .iyoni-ebook-hero__years {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .iyoni-ebook-hero__years {
    font-size: 20px;
  }

  .iyoni-ebook-hero__visual {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: clamp(360px, 105vw, 590px);
  }

  .iyoni-ebook-hero__photo {
    object-position: 70% center;
  }

  .iyoni-ebook-hero__book {
    top: auto;
    right: 5%;
    bottom: 5%;
    width: clamp(110px, 29%, 176px);
    height: auto;
    aspect-ratio: 1191 / 1684;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .iyoni-ebook-hero__copy {
    padding-right: 7%;
    padding-left: 7%;
  }

  .iyoni-ebook-hero__proofs {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
  }
}

@media (max-width: 360px) {
  .iyoni-ebook-hero__copy {
    padding-right: 20px;
    padding-left: 20px;
  }

  .iyoni-ebook-hero h1 {
    font-size: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iyoni-ebook-hero *,
  .iyoni-ebook-hero *::before,
  .iyoni-ebook-hero *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
