/* Meltem's bedtime ritual: a light, illustrated interlude on the continuous page wash. */
body#lemme-sleep-gummies .meltem-how-to {
  --mhu-ink: #38264b;
  --mhu-violet: #634c78;
  --mhu-rose: #efc8d8;
  --mhu-cream: #fbf2e9;
  --mhu-orange: var(--meltem-accent, #ff963d);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 6vw, 78px) clamp(18px, 5vw, 72px) clamp(42px, 5vw, 68px);
  color: var(--mhu-ink);
  background: transparent !important;
  scroll-margin-top: 135px;
}

body#lemme-sleep-gummies .meltem-how-to *,
body#lemme-sleep-gummies .meltem-how-to *::before,
body#lemme-sleep-gummies .meltem-how-to *::after {
  box-sizing: border-box;
}

body#lemme-sleep-gummies .meltem-how-to__inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}

body#lemme-sleep-gummies .meltem-how-to__header {
  position: relative;
  max-width: 760px;
  margin: 0 auto clamp(30px, 4vw, 50px);
  text-align: center;
}

body#lemme-sleep-gummies .meltem-how-to__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--mhu-violet);
  font: 700 11px/1.3 "Mier A", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body#lemme-sleep-gummies .meltem-how-to__eyebrow::before,
body#lemme-sleep-gummies .meltem-how-to__eyebrow::after {
  width: 34px;
  height: 1px;
  content: "";
  background: #a88da9;
}

body#lemme-sleep-gummies .meltem-how-to__title {
  margin: 0;
  color: var(--mhu-ink);
  font: 500 clamp(40px, 5.4vw, 66px)/1.04 Recoleta, Georgia, serif;
  letter-spacing: -.045em;
}

body#lemme-sleep-gummies .meltem-how-to__intro {
  margin: 13px 0 0;
  color: #5b4a67;
  font: 18px/1.5 "Mier A", sans-serif;
}

body#lemme-sleep-gummies .meltem-how-to__ornament {
  position: absolute;
  top: 7px;
  right: 2px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(99, 76, 120, .28);
  border-radius: 50%;
}

body#lemme-sleep-gummies .meltem-how-to__ornament::before,
body#lemme-sleep-gummies .meltem-how-to__ornament::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: #c99ab0;
  transform: translate(-50%, -50%) rotate(45deg);
}

body#lemme-sleep-gummies .meltem-how-to__ornament::before { width: 1px; height: 36px; }
body#lemme-sleep-gummies .meltem-how-to__ornament::after { width: 36px; height: 1px; }

body#lemme-sleep-gummies .meltem-how-to__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  gap: clamp(18px, 3vw, 38px);
}

body#lemme-sleep-gummies .meltem-how-to__steps::before {
  position: absolute;
  top: 25px;
  right: 16%;
  left: 16%;
  z-index: -1;
  height: 1px;
  content: "";
  background: repeating-linear-gradient(to right, rgba(99, 76, 120, .48) 0 3px, transparent 3px 8px);
}

body#lemme-sleep-gummies .meltem-how-to__step {
  min-width: 0;
}

body#lemme-sleep-gummies .meltem-how-to__step:nth-child(2) { margin-top: 22px; }
body#lemme-sleep-gummies .meltem-how-to__step:nth-child(3) { margin-top: 8px; }

body#lemme-sleep-gummies .meltem-how-to__art {
  position: relative;
  display: grid;
  min-height: 210px;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(79, 57, 93, .28);
  background: rgba(251, 242, 233, .82);
}

body#lemme-sleep-gummies .meltem-how-to__art::before,
body#lemme-sleep-gummies .meltem-how-to__art::after {
  position: absolute;
  z-index: 1;
  width: 11px;
  height: 11px;
  content: "";
  border: 1px solid rgba(99, 76, 120, .55);
  transform: rotate(45deg);
  pointer-events: none;
}

body#lemme-sleep-gummies .meltem-how-to__art::before { top: 9px; left: 9px; }
body#lemme-sleep-gummies .meltem-how-to__art::after { right: 9px; bottom: 9px; }

body#lemme-sleep-gummies .meltem-how-to__art-number {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 246, 232, .9);
  border-radius: 50%;
  color: var(--mhu-ink);
  background: var(--mhu-orange);
  font: 700 16px/1 "Mier A", sans-serif;
  letter-spacing: .04em;
}

body#lemme-sleep-gummies .meltem-how-to__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: center;
}

body#lemme-sleep-gummies .meltem-how-to__copy {
  position: relative;
  min-height: 122px;
  margin: -1px 12px 0;
  padding: 18px 14px 15px;
  border: 1px solid rgba(79, 57, 93, .28);
  border-top: 0;
  background: rgba(251, 242, 233, .84);
}

body#lemme-sleep-gummies .meltem-how-to__copy::before {
  position: absolute;
  top: 0;
  left: 14px;
  width: 34px;
  height: 2px;
  content: "";
  background: var(--mhu-orange);
}

body#lemme-sleep-gummies .meltem-how-to__step-label {
  display: block;
  margin: 0 0 7px;
  color: #745d81;
  font: 700 11px/1.3 "Mier A", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body#lemme-sleep-gummies .meltem-how-to__step-title {
  margin: 0;
  color: var(--mhu-ink);
  font: 500 clamp(20px, 2vw, 24px)/1.25 Recoleta, Georgia, serif;
  letter-spacing: -.02em;
}

body#lemme-sleep-gummies .meltem-how-to__note {
  width: fit-content;
  max-width: 100%;
  margin: 30px auto 0;
  padding: 9px 18px;
  border-top: 1px solid rgba(99, 76, 120, .28);
  border-bottom: 1px solid rgba(99, 76, 120, .28);
  color: #65536f;
  text-align: center;
  font: 13px/1.5 "Mier A", sans-serif;
}

body#lemme-sleep-gummies .meltem-how-to :focus-visible {
  outline: 3px solid var(--mhu-orange);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  body#lemme-sleep-gummies .meltem-how-to {
    padding: 48px 20px 46px;
  }

  body#lemme-sleep-gummies .meltem-how-to__header {
    margin-bottom: 30px;
    text-align: left;
  }

  body#lemme-sleep-gummies .meltem-how-to__eyebrow { justify-content: flex-start; font-size: 10px; }
  body#lemme-sleep-gummies .meltem-how-to__title { font-size: clamp(38px, 9vw, 54px); }
  body#lemme-sleep-gummies .meltem-how-to__intro { max-width: 300px; font-size: 17px; }
  body#lemme-sleep-gummies .meltem-how-to__ornament { top: 4px; right: 4px; width: 42px; height: 42px; }
  body#lemme-sleep-gummies .meltem-how-to__ornament::before { height: 28px; }
  body#lemme-sleep-gummies .meltem-how-to__ornament::after { width: 28px; }

  body#lemme-sleep-gummies .meltem-how-to__steps {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 430px);
    gap: 24px;
  }

  body#lemme-sleep-gummies .meltem-how-to__steps::before {
    top: 20px;
    bottom: 20px;
    left: 21px;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(to bottom, rgba(99, 76, 120, .48) 0 3px, transparent 3px 8px);
  }

  body#lemme-sleep-gummies .meltem-how-to__step,
  body#lemme-sleep-gummies .meltem-how-to__step:nth-child(2),
  body#lemme-sleep-gummies .meltem-how-to__step:nth-child(3) {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    margin: 0;
    gap: 14px;
  }

  body#lemme-sleep-gummies .meltem-how-to__art {
    min-height: 130px;
    aspect-ratio: 2 / 3;
  }

  body#lemme-sleep-gummies .meltem-how-to__image { min-height: 130px; }
  body#lemme-sleep-gummies .meltem-how-to__art-number { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 14px; }
  body#lemme-sleep-gummies .meltem-how-to__copy { min-height: 0; margin: 0; padding: 14px 12px 13px; border-top: 1px solid rgba(79, 57, 93, .28); }
  body#lemme-sleep-gummies .meltem-how-to__step-title { font-size: clamp(19px, 5vw, 23px); }
  body#lemme-sleep-gummies .meltem-how-to__note { margin-top: 26px; }
}

@media (max-width: 390px) {
  body#lemme-sleep-gummies .meltem-how-to { padding-inline: 16px; }
  body#lemme-sleep-gummies .meltem-how-to__eyebrow { gap: 8px; font-size: 9px; letter-spacing: .14em; }
  body#lemme-sleep-gummies .meltem-how-to__eyebrow::before,
  body#lemme-sleep-gummies .meltem-how-to__eyebrow::after { width: 22px; }
  body#lemme-sleep-gummies .meltem-how-to__ornament { right: 0; width: 34px; height: 34px; }
  body#lemme-sleep-gummies .meltem-how-to__ornament::before { height: 23px; }
  body#lemme-sleep-gummies .meltem-how-to__ornament::after { width: 23px; }
  body#lemme-sleep-gummies .meltem-how-to__steps { gap: 19px; }
  body#lemme-sleep-gummies .meltem-how-to__step,
  body#lemme-sleep-gummies .meltem-how-to__step:nth-child(2),
  body#lemme-sleep-gummies .meltem-how-to__step:nth-child(3) {
    grid-template-columns: minmax(92px, .78fr) minmax(0, 1.22fr);
    gap: 11px;
  }
  body#lemme-sleep-gummies .meltem-how-to__art,
  body#lemme-sleep-gummies .meltem-how-to__image { min-height: 110px; }
  body#lemme-sleep-gummies .meltem-how-to__copy { padding: 12px 10px; }
  body#lemme-sleep-gummies .meltem-how-to__step-title { font-size: 19px; }
}

@media (max-width: 340px) {
  body#lemme-sleep-gummies .meltem-how-to { padding-inline: 13px; }
  body#lemme-sleep-gummies .meltem-how-to__step,
  body#lemme-sleep-gummies .meltem-how-to__step:nth-child(2),
  body#lemme-sleep-gummies .meltem-how-to__step:nth-child(3) { grid-template-columns: minmax(82px, .72fr) minmax(0, 1.28fr); gap: 9px; }
  body#lemme-sleep-gummies .meltem-how-to__step-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body#lemme-sleep-gummies .meltem-how-to *,
  body#lemme-sleep-gummies .meltem-how-to *::before,
  body#lemme-sleep-gummies .meltem-how-to *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
