.store-badges {
  --badge-height: clamp(41px, 10.8vw, 53px);

  align-items: center;
  gap: clamp(8px, 1.3vw, 16px);
}

.store-badges .store-badge {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  border-radius: 8px;
  transition: filter 160ms ease;
}

.store-badges .store-badge:hover {
  filter: brightness(1.18);
}

.store-badges .store-badge img {
  width: auto;
  height: var(--badge-height);
  max-width: 100%;
  object-fit: contain;
}

.editorial,
.install-scene,
.journal {
  --editorial-ink: #fbf2ec;
  --editorial-muted: #e0cfc7;
  --editorial-accent: #ffd0b9;
  --editorial-line: #644e46;

  background: #1c1819;
  color: var(--editorial-ink);
}

:is(.editorial, .install-scene, .journal, .access) :focus-visible {
  outline-color: var(--editorial-accent);
}

.editorial {
  padding-block: clamp(56px, 7vw, 102px) clamp(40px, 6vw, 88px);
}

.editorial-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .76fr);
  align-items: center;
  gap: clamp(30px, 7vw, 105px);
}

.editorial-portrait {
  display: grid;
  width: min(100%, 385px);
  justify-self: end;
  justify-items: center;
  gap: clamp(13px, 1.8vw, 22px);
  padding: clamp(19px, 3vw, 36px);
  border-radius: clamp(19px, 2.7vw, 32px);
  background: #e8beae;
  color: #362323;
  text-align: center;
}

.editorial-portrait img {
  width: min(100%, 310px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.editorial-portrait figcaption {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.editorial-portrait figcaption strong {
  font-size: 17px;
}

.editorial-copy h2 {
  max-width: 17ch;
  font-size: clamp(37px, 4.1vw, 59px);
  letter-spacing: -.038em;
  text-wrap: balance;
}

.editorial-copy > p {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--editorial-muted);
  font-size: clamp(15px, 1.25vw, 18px);
  text-wrap: pretty;
}

.editorial-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 11px;
}

.editorial-about,
.journal-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 620;
}

:is(.editorial-about, .install-proof a, .journal-heading a):hover {
  color: var(--editorial-accent);
}

.install-frame {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 45vw, 680px);
  max-width: 1600px;
  margin-inline: auto;
  width: calc(100% - clamp(16px, 3vw, 48px));
  isolation: isolate;
  overflow: clip;
  border-radius: clamp(20px, 3vw, 40px);
  background: #201e19;
}

.install-image,
.install-frame::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.install-image {
  inset-inline-start: 24%;
  width: 76%;
  object-fit: cover;
  object-position: center 52%;
}

.install-frame::after {
  content: "";
  background:
    linear-gradient(90deg, #201e19 21%, #201e19f7 29%, #201e19cd 44%, #201e1938 65%, transparent 84%),
    linear-gradient(0deg, #201e1980, transparent 40%);
}

.install-content {
  display: grid;
  justify-items: start;
  width: min(100%, 1240px);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 70px) clamp(30px, 5vw, 72px);
}

.install-content h2 {
  max-width: 12ch;
  font-size: clamp(46px, 5.8vw, 82px);
  letter-spacing: -.037em;
}

.install-content > p {
  margin: 12px 0 21px;
  color: #f7e7da;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 520;
}

.install-stores {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 14px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px 8px 15px;
  border: 1px solid #fff4;
  border-radius: 14px;
  background: #292721;
}

.install-stores > span {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.install-content .store-badges {
  --badge-height: clamp(39px, 5vw, 45px);

  justify-content: center;
  gap: 8px;
}

.install-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  width: min(100%, 408px);
  margin-top: clamp(18px, 3vw, 32px);
}

.install-proof a {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-block: 9px 3px;
  border-top: 1px solid #fff5;
  text-decoration: none;
}

.install-proof a strong {
  font: 650 clamp(16px, 1.65vw, 23px)/1.13 var(--font-display);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #fff6;
  text-underline-offset: .18em;
  text-wrap: balance;
}

.install-proof a span {
  color: var(--editorial-muted);
  font-size: 12px;
  line-height: 1.35;
  text-wrap: pretty;
}

.journal {
  padding-block: clamp(46px, 7vw, 92px) clamp(42px, 6vw, 78px);
}

.journal > .wrap {
  width: min(1320px, calc(100% - 2 * var(--gutter)));
}

:is(.quiz-section, .access) {
  --editorial-accent: #ffd0b9;
  --conversion-ink: #fff5ed;
  --conversion-muted: #ead6cf;
  --conversion-line: #624c55;

  background: #282124;
  color: var(--conversion-ink);
}

.quiz-section {
  padding-block: clamp(39px, 5.4vw, 78px) clamp(33px, 4.5vw, 64px);
  border-radius: 0;
}

.quiz-section h2,
.access h2 {
  font-size: clamp(33px, 4.3vw, 59px);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.quiz-section .chapter-heading p {
  color: var(--conversion-muted);
}

.quiz-card {
  border-radius: clamp(16px, 2.5vw, 27px);
  background: #faeee7;
  color: #2f2326;
  box-shadow: none;
}

.access {
  padding-bottom: clamp(37px, 5.4vw, 77px);
}

.access .wrap {
  padding-top: clamp(36px, 5vw, 70px);
  border-top: 1px solid var(--conversion-line);
}

.access-grid {
  margin-top: clamp(22px, 3vw, 35px);
  border-color: var(--conversion-line);
  border-radius: 18px;
}

.access-plan {
  background: #31272c;
}

.access-plus {
  background: #392c33;
}

.access-plan :is(.plan-note, ul, .plan-price span) {
  color: var(--conversion-muted);
}

@media (max-width: 760px) {
  .install-frame {
    min-height: clamp(612px, 169vw, 720px);
    align-items: end;
  }

  .install-image {
    inset-inline-start: 0;
    width: 100%;
    object-position: 50% 29%;
  }

  .install-frame::after {
    background: linear-gradient(0deg, #201e19 0%, #201e19ed 31%, #201e1990 54%, #201e1912 76%, transparent 100%);
  }

  .install-content {
    justify-items: center;
    padding: 26px clamp(13px, 4.25vw, 28px);
    text-align: center;
  }

  .install-content h2 {
    max-width: 13ch;
    font-size: clamp(36px, 9.7vw, 53px);
    text-wrap: balance;
  }

  .install-stores {
    display: grid;
    justify-items: center;
    padding-inline: 7px;
  }

  .install-proof {
    max-width: 340px;
  }
}

@media (max-width: 520px) {
  .access-plus {
    border-top-color: var(--conversion-line);
  }
}

@media (max-height: 740px) and (max-width: 700px) {
  .hero .hero-copy {
    padding-top: min(28svh, 169px);
  }
}

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