:root {
  --reading-copy: 16px;
  --reading-copy-mobile: 15px;
  --reading-heading: clamp(34px, 3.5vw, 48px);
}

body {
  font-size: var(--reading-copy);
}

h1 {
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

h2,
.section-heading h2 {
  font-size: var(--reading-heading);
  line-height: 1.16;
  letter-spacing: -.035em;
}

h3 {
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.section-heading > p,
.section-intro > p,
.story-grid p:not(.story-lead),
.range-story > p:last-child,
.machine-description,
.machine-feature-list,
.machine-drinks p,
.faq-intro > p:not(.eyebrow),
.faq-list details > p,
.contact > div > p:not(.eyebrow),
.catalogue-hero > div > p:not(.eyebrow),
.catalogue-section-heading > p:last-child,
.catalogue-page .catalogue-card-copy p {
  font-size: var(--reading-copy);
}

.setup-guide {
  background: #f0e9dd;
}

.setup-guide .section-heading {
  margin-bottom: 32px;
}

.setup-guide .section-heading > p {
  max-width: 40ch;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  min-width: 0;
  padding: 25px 24px 28px;
  border: 1px solid #dfd2c0;
  border-radius: 6px;
  background: #fbf8f2;
}

.setup-steps h3 {
  margin-bottom: 10px;
  color: #302116;
  font-size: 21px;
}

.setup-steps p {
  margin: 0;
  color: #5e5146;
  font-size: 15px;
  line-height: 1.75;
}

.setup-guide-link {
  display: inline-flex;
  margin-top: 24px;
}

.customer-feedback {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: start;
  background: var(--palette-secondary);
  color: #f8f4ec;
}

.customer-feedback .eyebrow {
  color: #d7ad69;
}

.customer-feedback h2 {
  margin-bottom: 22px;
  color: #fffaf1;
}

.customer-feedback h2 em {
  color: #e2bd7a;
}

.customer-feedback-intro > p:not(.eyebrow) {
  max-width: 46ch;
  color: #c8cbd0;
  font-size: 15px;
  line-height: 1.8;
}

.customer-feedback-intro .button {
  display: inline-flex;
  margin-top: 8px;
}

.customer-feedback-copy > p {
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.8;
}

.review-shuffle {
  position: relative;
  min-height: 280px;
  isolation: isolate;
  perspective: 1200px;
}

.customer-review-card {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 280px;
  padding: 24px;
  border: 1px solid #ffffffd9;
  border-radius: 22px;
  background: #fffefa;
  box-shadow: 0 20px 44px #00000038;
  color: #17191c;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.2,.75,.25,1), opacity .75s ease;
}

.customer-review-card:nth-child(2) {
  z-index: 4;
  background: #f5efe5;
  transform: translate3d(10px, 12px, -18px) scale(.97) rotate(.8deg);
}

.customer-review-card:nth-child(3) {
  z-index: 3;
  background: #eee5d8;
  transform: translate3d(20px, 24px, -36px) scale(.94) rotate(1.6deg);
}

.customer-review-card:nth-child(4) {
  z-index: 2;
  background: #e7dccb;
  transform: translate3d(29px, 35px, -54px) scale(.91) rotate(2.4deg);
}

.customer-review-card:nth-child(5) {
  z-index: 1;
  background: #dfd1bd;
  transform: translate3d(37px, 45px, -72px) scale(.88) rotate(3.2deg);
}

.customer-review-card.is-returning {
  transition: none;
}

.customer-review-title {
  margin: 0 0 14px;
  color: #9c6a22;
  font: 600 12px/1.5 Arial, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.customer-review-card blockquote {
  margin: 0 0 12px;
  color: #1b1b1b;
  font: italic clamp(19px, 1.9vw, 25px)/1.3 Georgia, serif;
}

.customer-review-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: #17191c;
  font: 12px/1.4 Arial, sans-serif;
}

.customer-review-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #9d6336, #754023);
  color: #fff;
  font-weight: 700;
}

.customer-review-attribution strong,
.customer-review-attribution small {
  display: block;
}

.customer-review-attribution small {
  margin-top: 3px;
  color: #777a80;
  font-size: 11px;
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(38px, 10.5vw, 50px);
  }

  h2,
  .section-heading h2 {
    font-size: clamp(32px, 8vw, 40px);
  }

  h3 {
    font-size: 21px;
  }

  .section-heading > p,
  .section-intro > p,
  .story-grid p:not(.story-lead),
  .range-story > p:last-child,
  .machine-description,
  .machine-feature-list,
  .machine-drinks p,
  .faq-intro > p:not(.eyebrow),
  .faq-list details > p,
  .contact > div > p:not(.eyebrow),
  .catalogue-hero > div > p:not(.eyebrow),
  .catalogue-section-heading > p:last-child,
  .catalogue-page .catalogue-card-copy p {
    font-size: var(--reading-copy-mobile);
  }

  .setup-guide .section-heading {
    margin-bottom: 23px;
  }

  .setup-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .setup-steps li {
    padding: 19px 20px 21px;
  }

  .customer-feedback {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .review-shuffle {
    min-height: 270px;
  }

  .customer-review-card {
    height: 270px;
    padding: 20px;
    border-radius: 18px;
  }

  .customer-review-card:nth-child(2) {
    transform: translate3d(5px, 8px, -12px) scale(.98) rotate(.5deg);
  }

  .customer-review-card:nth-child(3) {
    transform: translate3d(10px, 15px, -24px) scale(.96) rotate(1deg);
  }

  .customer-review-card:nth-child(4) {
    transform: translate3d(15px, 21px, -36px) scale(.94) rotate(1.5deg);
  }

  .customer-review-card:nth-child(5) {
    transform: translate3d(20px, 27px, -48px) scale(.92) rotate(2deg);
  }

  .customer-review-card blockquote {
    font-size: clamp(18px, 4.7vw, 21px);
  }

}
