/* ==========================================================================
   About page
   ========================================================================== */

.page-about p a { color: inherit; text-decoration: none; }

/* Original theme: Epilogue paragraphs 18px / -0.05em, headings -0.05em */
:is(.about-hero, .about-story, .about-who, .about-support, .about-voices, .about-training, .about-grow, .about-doula) :is(h1, h2, h3, p) { letter-spacing: -0.05em; }
.page-about p a:hover { text-decoration: underline; }
/* Visible in-text links (the page default above hides link styling) */
.page-about p a.about-link {
  color: var(--purple);
  font-family: var(--font-ui); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  padding-block: 10px;            /* larger tap area without breaking the line box */
}
.page-about p a.about-link--block { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-block: 0; }
.page-about p a.about-link:hover { color: #62287a; }

/* Decorative doodles: SVG files used as masks so they take currentColor */
.doodle {
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--doodle) center / contain no-repeat;
          mask: var(--doodle) center / contain no-repeat;
  pointer-events: none;
}
.doodle--flower { --doodle: url("/assets/svg/doodle-flower-outline.svg"); aspect-ratio: 394 / 395; }
.doodle--small-flower { --doodle: url("/assets/svg/doodle-about-626fd7.svg"); aspect-ratio: 356 / 298; }
.about-curve { display: block; pointer-events: none; }

.about-eyebrow {
  font-size: clamp(20px, 1.9vw, 27px);
  color: var(--purple);
}

/* ---------- Hero ---------- */
.about-hero { min-height: min(800px, 96vh); }
.about-hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px clamp(32px, 5vw, 80px);
}
.about-hero__title {
  color: var(--butter);
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: 0.98;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(58, 35, 66, .25);
}
.about-hero__intro {
  color: #fffef0;
  font-size: 18px;
  line-height: 1.5;
  max-width: 460px;
  text-shadow: 0 1px 12px rgba(58, 35, 66, .45);
}
.about-hero.hero-card--scrim::after {
  background:
    linear-gradient(90deg, rgba(58,35,66,.38) 0%, rgba(58,35,66,.18) 45%, rgba(58,35,66,0) 70%),
    linear-gradient(0deg, rgba(58,35,66,.62) 0%, rgba(58,35,66,.34) 45%, rgba(58,35,66,0) 78%);
}
@media (max-width: 900px) {
  .about-hero.hero-card--scrim::after {
    background: linear-gradient(180deg, rgba(58,35,66,.30) 0%, rgba(58,35,66,.58) 22%, rgba(58,35,66,.62) 55%, rgba(58,35,66,.40) 100%);
  }
}
.about-hero__proof { margin-top: 24px; width: fit-content; max-width: 100%; }
.about-hero__portrait {
  position: relative;
  width: clamp(250px, 23vw, 330px);
  margin-right: clamp(0px, 2vw, 24px);
}
.about-hero__portrait .photo-frame__img { padding: 8px; box-shadow: 0 18px 50px rgba(58, 35, 66, .28); }
.about-hero__portrait .photo-frame__img img { object-position: 50% 30%; }
.about-hero__btn {
  position: absolute;
  left: 0; bottom: 34px;
  transform: translateX(-62%);
  box-shadow: 0 10px 30px rgba(58, 35, 66, .25);
}

/* ---------- Story ---------- */
.about-story { padding-top: clamp(48px, 5.4vw, 78px); }
.about-story__lead { max-width: 1260px; }
.about-story__lead p:first-child { font-size: 18px; line-height: 1.5; }
.about-story__quote {
  margin-top: 36px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.5;
  max-width: 1140px;
}
.about-story__grid {
  display: grid;
  grid-template-columns: 1fr 490px 258px;
  gap: 0 40px;
  margin-top: 60px;
  align-items: end;
}
.about-story__text { grid-column: 2; font-size: 18px; line-height: 1.5; }
.about-story__text p + p { margin-top: 27px; }
.about-story__photo { grid-column: 3; margin: 0; border-radius: var(--radius-md); overflow: hidden; }
.about-story__photo img { width: 100%; aspect-ratio: 258 / 312; object-fit: cover; }

.about-philosophy {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  margin-top: -90px;
  min-height: 410px;
  color: var(--purple);
}
.about-philosophy__title {
  grid-column: 2;
  font-size: clamp(32px, 6.7vw, 96px);
  line-height: 1;
  text-align: center;
  color: var(--mauve);
  margin-top: 210px;
  max-width: 6em;
}
.about-philosophy__doodle-l {
  grid-column: 1; grid-row: 1;
  width: 345px; margin: 105px 0 0 76px;
  transform: rotate(-4deg);
}
.about-philosophy__doodle-r {
  grid-column: 3; grid-row: 1;
  width: 382px; margin: 300px 0 0 auto;
}

.about-beliefs {
  display: grid;
  grid-template-columns: 384px 420px 1fr;
  gap: 0 50px;
  align-items: start;
  margin-top: 0;
  padding-bottom: clamp(80px, 11vw, 160px);
}
.about-beliefs__photo { margin: 0; border-radius: var(--radius-md); overflow: hidden; align-self: end; }
.about-beliefs__photo img { width: 100%; aspect-ratio: 384 / 480; object-fit: cover; }
.about-beliefs__text { font-size: 18px; line-height: 1.5; padding-top: 0; }
.about-beliefs__text p + p { margin-top: 27px; }
.about-beliefs__text .about-beliefs__sign {
  margin-top: 54px;
  font-size: clamp(22px, 2.2vw, 32px);
  color: var(--purple);
}

/* ---------- Who I work with ---------- */
.about-who__panel {
  margin-inline: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffdb5 0%, #fffff0 78%, rgba(255,255,255,0) 100%);
  padding: 80px 0 60px;
}
.about-who__panel > .container { padding-inline: clamp(16px, 3.6vw, 52px); max-width: 1384px; }
.about-who__head { text-align: center; }
.about-who__title {
  margin-top: 14px;
  font-weight: 500;
  font-size: clamp(26px, 4.2vw, 60px);
  line-height: 1.2;
}
.about-who__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 100px;
  align-items: start;
}
.who-card--low { margin-top: 60px; }
.who-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.who-card h3 {
  margin-top: 28px;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.3;
  color: var(--purple);
  padding-right: 8px;
}

.about-who__cta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
  margin-top: 0;
  padding-bottom: clamp(80px, 9vw, 140px);
}
.about-who__curve { width: 352px; color: var(--mauve); justify-self: start; margin-left: 120px; transform: rotate(-2deg); }
.about-who__cta-text { text-align: right; max-width: 520px; }
.about-who__cta-title {
  font-weight: 500;
  font-size: clamp(20px, 3.05vw, 44px);
  line-height: 1.2;
}
.about-who__cta-sub { margin-top: 24px; font-size: clamp(20px, 2vw, 29px); color: var(--purple); }

/* ---------- How I support ---------- */
.about-support__grid {
  max-width: 1384px;
  display: grid;
  grid-template-columns: minmax(0, 820px) 420px;
  justify-content: space-between;
  gap: 40px;
  align-items: start;
}
.about-support__title { margin: 0 0 40px 16px; font-weight: 400; }
.about-support__list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.support-pill {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 790px;
  border-radius: 999px;
  padding: 36px 40px 30px 58px;
  background: linear-gradient(90deg, #eeaeb3 0%, #f2c9b5 30%, #f7ecc4 62%, #fffff4 92%, rgba(255,255,255,0) 100%);
}
.support-pill h3 {
  font-weight: 500;
  font-size: clamp(22px, 3.05vw, 44px);
  line-height: 1.12;
}
.support-pill__num { font-size: clamp(17px, 1.6vw, 22px); color: var(--purple); margin-top: -6px; flex: none; }
.about-support__note { margin-top: 56px; font-size: 18px; }
.about-support__photo { margin: 22px 0 0; border-radius: var(--radius-md); overflow: hidden; }
.about-support__photo img { width: 100%; aspect-ratio: 420 / 690; object-fit: cover; }

/* ---------- Training ---------- */
.about-training { padding-top: clamp(80px, 10vw, 150px); }
.about-training__head { text-align: center; }
.about-training__eyebrow { font-size: 18px; }
.about-training__title {
  margin: 24px auto 0;
  max-width: 980px;
  font-weight: 500;
  font-size: clamp(24px, 4.2vw, 60px);
  line-height: 1.5;
}
.about-training__panel {
  margin: clamp(48px, 5.5vw, 80px) 28px 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffdb5 0%, #fffff0 72%, rgba(255,255,255,0) 100%);
  padding: 50px 0 30px;
}
.about-training__panel > .container { max-width: 1384px; padding-inline: clamp(16px, 3.6vw, 52px); }
.about-training__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.cert-card {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #eeaeb3 0%, #e4c4c8 45%, #dbdadb 100%);
  padding: 38px 22px 36px;
  font-size: 18px;
  line-height: 1.5;
}
.cert-card h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; color: var(--purple); margin: 0 0 22px 16px; }
.cert-card p { max-width: 480px; }
.cert-card p + p { margin-top: 27px; }

/* ---------- Grow ---------- */
.about-grow { padding: 40px 0 clamp(80px, 9vw, 150px); }
.about-grow__grid {
  display: grid;
  grid-template-columns: 1fr 540px 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1440px;
}
.about-grow__curve { width: 352px; color: var(--purple); transform: scaleX(1) rotate(2deg); margin-left: -40px; }
.about-grow__text { text-align: center; }
.about-grow__title,
.about-grow__close {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 32px);
  line-height: 1.5;
}
.about-grow__text p:not(.about-grow__close) { margin-top: 20px; font-size: 18px; line-height: 1.5; }
.about-grow__close { margin-top: 28px; }
.about-grow__flower { width: 285px; color: var(--purple); justify-self: end; margin-right: 50px; }

/* ---------- Testimonials ---------- */
.about-voices { padding: clamp(80px, 10vw, 150px) 0 0; }
.about-voices__head { text-align: center; max-width: 900px; margin: 0 auto clamp(36px, 4vw, 56px); }
.about-voices__title {
  margin-top: 14px;
  text-wrap: balance;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.2;
}
.about-voices__grid { max-width: 1180px; margin-inline: auto; }
.about-voices__more { text-align: center; margin-top: 24px; font-size: 18px; }

/* ---------- What is a doula? ---------- */
.about-doula { padding: 0 0 clamp(80px, 9vw, 140px); }
.about-doula__grid {
  max-width: 1384px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-doula__intro { font-size: 18px; line-height: 1.5; }
.about-doula__title {
  margin: 10px 0 24px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.1;
}
.about-doula__def {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  color: var(--purple);
  letter-spacing: -0.02em !important;
  margin-bottom: 20px;
}
.about-doula__faq { padding-top: 8px; }
.about-doula__faq details > p { letter-spacing: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
  .about-story__grid { grid-template-columns: 0.4fr 1fr 220px; }
  .about-beliefs { grid-template-columns: 320px 1fr; }
  .about-philosophy__doodle-l { width: 260px; margin-left: 20px; }
  .about-philosophy__doodle-r { width: 280px; }
  .about-who__curve { margin-left: 0; width: 280px; }
  .about-grow__grid { grid-template-columns: 1fr 480px 1fr; }
  .about-grow__curve { width: 240px; margin-left: 0; }
  .about-grow__flower { width: 220px; margin-right: 0; }
}

@media (max-width: 900px) {
  .about-story__lead p:first-child, .about-story__text p,
  .about-beliefs__text p:not(.about-beliefs__sign),
  .about-grow__text p:not(.about-grow__close) { font-size: 16px; }
  .about-hero { min-height: 0; }
  .about-hero__body { grid-template-columns: 1fr; gap: 28px; }
  .about-hero__title { margin-top: 48px; margin-bottom: 18px; font-size: clamp(30px, 8.4vw, 56px); }
  .about-hero__intro { font-size: 16px; }
  .about-hero__proof { margin-top: 18px; }
  .about-hero .btn-circle { width: 112px; font-size: 17px; }
  .about-hero__portrait { width: 58%; max-width: 300px; margin: 0 0 0 auto; }
  .about-hero__btn { bottom: 24px; transform: translateX(-70%); }

  .about-story__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 52px; }
  .about-story__photo { grid-column: 1; grid-row: 1; }
  .about-story__photo img { aspect-ratio: 326 / 300; object-position: 50% 0; }
  .about-story__text { grid-column: 1; }

  .about-philosophy {
    margin-top: 40px; min-height: 0;
    grid-template-columns: 1fr auto 1fr;
    padding-bottom: 20px;
  }
  .about-philosophy__title { margin-top: 56px; font-size: 32px; max-width: 7em; }
  .about-philosophy__doodle-l { width: 88px; margin: 0; align-self: start; }
  .about-philosophy__doodle-r { width: 88px; margin: 120px 0 0 auto; }

  .about-beliefs { grid-template-columns: 1fr; gap: 40px; margin-top: 30px; padding-bottom: 64px; }
  .about-beliefs__photo { margin-bottom: 0; }
  .about-beliefs__photo img { aspect-ratio: 330 / 300; }
  .about-beliefs__text .about-beliefs__sign { margin-top: 44px; font-size: 22px; }

  .about-who__panel { margin-inline: 16px; padding: 40px 0 40px; }
  .about-who__panel > .container { padding-inline: 20px; }
  .about-who__title { font-size: 26px; letter-spacing: -0.04em; margin-top: 12px; }
  .about-eyebrow { font-size: 17px; }
  .about-who__cards { grid-template-columns: 1fr; gap: 44px; margin-top: 36px; }
  .who-card--low { margin-top: 0; }
  .who-card img { aspect-ratio: 318 / 240; }
  .who-card h3 { text-align: center; font-size: 20px; margin-top: 22px; padding-inline: 10px; }

  .about-who__cta {
    position: relative;
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 0;
    padding-top: 40px;
    padding-bottom: 64px;
  }
  .about-who__curve { position: absolute; left: 46px; top: 40px; width: 150px; margin: 0; }
  .about-who__btn { order: -1; width: 110px; font-size: 16px; margin-right: 0; }
  .about-who__cta-text { margin-top: 8px; max-width: 250px; }
  .about-who__cta-title { font-size: 20px; letter-spacing: -0.04em; }
  .about-who__cta-sub { font-size: 19px; margin-top: 22px; }

  .about-support__grid { grid-template-columns: 1fr; gap: 40px; }
  .about-support__title { margin: 0 0 24px 0; font-size: 19px; }
  .about-support__list { gap: 12px; }
  .support-pill { padding: 18px 26px 18px 24px; justify-content: space-between; }
  .support-pill h3 { flex: 1; }
  .support-pill h3 { font-size: 22px; letter-spacing: -0.04em; }
  .support-pill__num { font-size: 16px; margin-top: 2px; }
  .about-support__note { margin-top: 26px; text-align: center; font-size: 15px; padding-inline: 10px; }
  .about-support__photo { margin: 0; }
  .about-support__photo img { aspect-ratio: 338 / 240; object-position: 50% 22%; }

  .about-training { padding-top: 80px; }
  .about-training__eyebrow { font-size: 15px; }
  .about-training__title { font-size: 24px; line-height: 1.6; margin-top: 18px; letter-spacing: -0.03em; }
  .about-training__panel { margin: 44px 16px 0; padding: 22px 0 10px; }
  .about-training__panel > .container { padding-inline: 20px; }
  .about-training__grid { grid-template-columns: 1fr; gap: 22px; }
  .cert-card { padding: 30px 24px; font-size: 15px; }
  .cert-card h3 { font-size: 21px; margin: 0 0 22px; }
  .cert-card p + p { margin-top: 24px; }

  .about-grow { padding: 20px 0 60px; }
  .about-grow__grid { grid-template-columns: 1fr; justify-items: center; gap: 30px; }
  .about-grow__curve { width: 130px; margin: 0; }
  .about-grow__title, .about-grow__close { font-size: 19px; }
  .about-grow__text p:not(.about-grow__close) { font-size: 15px; }
  .about-grow__flower { width: 104px; justify-self: center; margin: 10px 0 0; }

  .about-voices { padding-top: 64px; }
  .about-voices__title { font-size: 26px; letter-spacing: -0.04em; }
  .about-doula { padding-bottom: 64px; }
  .about-doula__grid { grid-template-columns: 1fr; gap: 28px; }
  .about-doula__intro { font-size: 16px; }
  .about-doula__title { font-size: 34px; }
  .about-doula__def { font-size: 22px; }
}

/* Original theme sets sans headings (Duda h1/h3/h4) in InstrumentSans-Medium, not Epilogue */
.about-hero__title,
.about-who__title,
.about-who__cta-title,
.support-pill h3,
.about-training__title { font-family: var(--font-ui); font-weight: 500; }

/* Original circle CTAs use the theme's 30px button text on desktop */
@media (min-width: 901px) {
  .about-hero .btn-circle,
  .about-who__btn { width: clamp(150px, 14.2vw, 205px); font-size: clamp(20px, 2.1vw, 30px); }
}

/* Desktop vertical rhythm matched to the original (measured at 1440px) */
@media (min-width: 901px) {
  .about-beliefs { margin-top: -48px; }
  .about-who__panel { padding-top: 110px; }
  .about-who__cta { margin-top: 30px; padding-bottom: clamp(80px, 14.6vw, 210px); }
  .about-support__list { gap: 25px; }
  .support-pill { padding-top: 41px; padding-bottom: 35px; }
  .about-support__note { margin-top: 67px; }
  .about-training { padding-top: clamp(80px, 13.6vw, 196px); }
}

/* Mobile sizes/gutters matched to the original at 390px */
@media (max-width: 900px) {
  .page-about .hero-frame { padding: 14px 16px 17px; }
  .about-hero { min-height: 497px; padding-bottom: 40px; }
  .about-story { padding-top: 34px; }
  .about-hero__title { font-size: 40px; line-height: 1.05; }

  .about-story > .container,
  .about-voices > .container,
  .about-doula__grid,
  .about-who__cta,
  .about-support__grid,
  .about-training__head,
  .about-grow__grid { padding-inline: 31px; }

  .who-card h3 { font-size: 23px; }
  .about-who__cta-title { font-size: 24px; }
  .about-who__cta-sub { font-size: 23px; }

  .about-support__title { font-size: 24px; }
  .support-pill h3 { font-size: 25px; }
  .about-support__note { font-size: 16px; }

  .about-training__eyebrow { font-size: 16px; }
  .about-training__title { font-size: 26px; line-height: 1.5; }
  .cert-card { font-size: 16px; }
  .cert-card h3 { font-size: 24px; }

  .about-grow__title, .about-grow__close { font-size: 21px; }
  .about-grow__text p:not(.about-grow__close) { font-size: 16px; }
}
@media (max-width: 900px) {
  .about-support__grid { padding-inline: 26px; }
  .about-support__title { margin-left: 4px; }
  .about-support__note { padding-inline: 0; }
}

/* Review fixes: legibility + live "How I support" pills */
.cert-card p { color: #62287a; }                      /* purple on pink→grey gradient was ~4.0:1 */
.about-hero__proof { background: rgba(255,255,255,.86); }
.support-pill { position: relative; }
.support-pill__link { color: inherit; text-decoration: none; }
.support-pill__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.support-pill__arrow { display: inline-block; margin-left: .3em; font-size: .62em; vertical-align: .18em; transition: transform .2s ease; }
.support-pill:hover .support-pill__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.support-pill:hover .support-pill__arrow { transform: translateX(4px); }
.support-pill:has(.support-pill__link:focus-visible) { outline: 3px solid var(--purple); outline-offset: 3px; }
.support-pill__link:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .support-pill__arrow { transition: none; } }
