:root {
  color-scheme: light;
  --ink: #161616;
  --navy: #102846;
  --purple: #753991;
  --gold: #ffe76a;
  --cream: #fff8dd;
  --sky: #d8eef7;
  --tortoise: #d8f0ff;
  --border: #10202c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #eef7ff 0%, #fff8e5 50%, #171d34 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

.comic {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px 18px 40px;
}

html[data-export-slide] body {
  background: #fff;
}

html[data-export-slide] .comic {
  width: 1080px;
  padding: 0;
}

html[data-export-slide] .intro {
  display: none;
}

html[data-export-slide="slide-01"] .slide:not(#slide-01),
html[data-export-slide="slide-02"] .slide:not(#slide-02),
html[data-export-slide="slide-03"] .slide:not(#slide-03),
html[data-export-slide="slide-04"] .slide:not(#slide-04) {
  display: none;
}

html[data-export-slide] .slide {
  width: 1080px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.intro {
  margin: 0 auto 22px;
  text-align: center;
  color: var(--navy);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--purple);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  text-wrap: balance;
}

.intro p:last-child {
  max-width: 760px;
  margin: 12px auto 0;
  font-size: 20px;
  line-height: 1.35;
}

.slide {
  position: relative;
  width: min(100%, 1080px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 4px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 24, 42, 0.22);
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "© 2026 Merci Soothing Touch Massage and Bodywork, LLC. All rights reserved.";
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 5;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #1e2830;
  font-size: 10px;
  font-weight: 700;
}

.bubble {
  position: absolute;
  z-index: 3;
  max-width: 380px;
  padding: 16px 18px;
  border: 3px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: #111;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.08;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  width: 0;
  height: 0;
  border-top: 20px solid var(--border);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
}

.bubble::before {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: -14px;
  width: 0;
  height: 0;
  border-top: 16px solid #fff;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
}

.bubble-tortoise {
  background: var(--tortoise);
}

.bubble-tortoise::before {
  border-top-color: var(--tortoise);
}

.bubble-rabbit {
  background: var(--cream);
}

.bubble-rabbit::before {
  border-top-color: var(--cream);
}

.s1-tortoise {
  left: 42px;
  top: 44px;
  max-width: 380px;
}

.s1-tortoise::after {
  left: 72px;
}

.s1-tortoise::before {
  left: 75px;
}

.s1-rabbit {
  right: 32px;
  top: 48px;
  max-width: 410px;
}

.s1-rabbit::after {
  right: 126px;
}

.s1-rabbit::before {
  right: 129px;
}

.s2-tortoise {
  left: 40px;
  top: 44px;
  max-width: 330px;
}

.s2-tortoise::after {
  left: 88px;
}

.s2-tortoise::before {
  left: 91px;
}

.s2-rabbit {
  right: 36px;
  top: 36px;
  max-width: 440px;
}

.s2-rabbit::after {
  right: 118px;
}

.s2-rabbit::before {
  right: 121px;
}

.s3-tortoise {
  left: 300px;
  top: 34px;
  max-width: 385px;
  font-size: 24px;
}

.s3-tortoise::after {
  left: 168px;
}

.s3-tortoise::before {
  left: 171px;
}

.s3-rabbit {
  left: 36px;
  top: 178px;
  max-width: 420px;
  font-size: 21px;
}

.s3-rabbit::after {
  left: 118px;
}

.s3-rabbit::before {
  left: 121px;
}

.open-ribbon {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 34px;
  z-index: 4;
  padding: 16px 22px;
  border: 3px solid var(--border);
  border-radius: 12px;
  background: var(--gold);
  color: #142030;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

.membership-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 248, 221, 0.9)),
    url("./assets/02-open-july-4.png") center / cover;
}

.membership-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 34px;
  border: 5px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.2);
  text-align: center;
}

.membership-eyebrow {
  margin: 0;
  color: var(--purple);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.membership-card h2 {
  margin: 10px 0 26px;
  color: var(--navy);
  font-size: 70px;
  line-height: 0.94;
}

.membership-subhead {
  width: fit-content;
  margin: 18px auto 22px;
  padding: 10px 26px;
  border: 4px solid var(--border);
  border-radius: 999px;
  background: var(--gold);
  color: #151a24;
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.benefit-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 138px;
  padding: 18px;
  border: 4px solid var(--border);
  border-radius: 14px;
  background: var(--tortoise);
  font-size: 29px;
  font-weight: 950;
  line-height: 1.05;
}

.benefit-box.highlight {
  background: var(--gold);
}

.fine-print {
  margin-top: 20px;
  padding: 13px 18px;
  border: 3px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.2;
}

.membership-footer {
  margin-top: 18px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 950;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .comic {
    padding: 16px 10px 28px;
  }

  .intro p:last-child {
    font-size: 16px;
  }

  h1 {
    max-width: 300px;
    margin: 0 auto;
    font-size: 27px;
    line-height: 1.05;
  }

  .slide {
    border-width: 3px;
    border-radius: 8px;
    margin-bottom: 18px;
  }

  .bubble {
    width: 42%;
    max-width: none;
    padding: 9px 10px;
    border-width: 2px;
    border-radius: 12px;
    font-size: clamp(10px, 2.25vw, 17px);
    overflow-wrap: break-word;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
  }

  .bubble::after {
    bottom: -13px;
    border-top-width: 13px;
    border-left-width: 10px;
    border-right-width: 10px;
  }

  .bubble::before {
    bottom: -9px;
    border-top-width: 11px;
    border-left-width: 8px;
    border-right-width: 8px;
  }

  .s1-tortoise {
    left: 4%;
    top: 4%;
  }

  .s1-rabbit {
    right: 4%;
    top: 4%;
    width: 38%;
  }

  .s2-tortoise {
    left: 4%;
    top: 4%;
  }

  .s2-rabbit {
    right: 4%;
    top: 3%;
    width: 38%;
  }

  .s3-tortoise {
    left: 25%;
    top: 3%;
    max-width: 40%;
    font-size: clamp(11px, 2.3vw, 17px);
  }

  .s3-rabbit {
    left: 4%;
    top: 18%;
    width: 40%;
    max-width: none;
    font-size: clamp(9px, 2vw, 15px);
  }

  .open-ribbon {
    left: 3%;
    right: 3%;
    bottom: 4%;
    padding: 9px 10px;
    border-width: 2px;
    border-radius: 8px;
    font-size: clamp(12px, 3vw, 22px);
  }

  .membership-slide {
    padding: 4%;
  }

  .membership-card {
    padding: 4%;
    border-width: 3px;
    border-radius: 10px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  }

  .membership-eyebrow {
    font-size: clamp(10px, 3vw, 18px);
  }

  .membership-card h2 {
    font-size: clamp(30px, 9vw, 56px);
    margin-bottom: 4%;
  }

  .membership-subhead {
    margin: 3% auto 4%;
    padding: 7px 14px;
    border-width: 2px;
    font-size: clamp(20px, 6vw, 34px);
  }

  .benefit-grid {
    gap: 8px;
  }

  .benefit-box {
    min-height: 76px;
    padding: 8px;
    border-width: 2px;
    border-radius: 8px;
    font-size: clamp(12px, 3.25vw, 22px);
  }

  .fine-print {
    margin-top: 10px;
    padding: 8px;
    border-width: 2px;
    border-radius: 8px;
    font-size: clamp(10px, 2.7vw, 16px);
  }

  .membership-footer {
    margin-top: 10px;
    font-size: clamp(12px, 3.4vw, 20px);
  }

  .slide::after {
    right: 6px;
    bottom: 4px;
    font-size: 7px;
  }
}
