/* Selah Birth Support. Tokens come from docs/design-system. */

/* Fonts are served from this site (Latin subset, SIL Open Font License). */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lato-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lato-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/lato-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/marcellus-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rose: #9a7773;
  /* Dusty Rose darkened so cream button labels read at 4.7:1. */
  --rose-deep: #8a6864;
  --rose-darker: #7e5d59;
  --blush: #f1e6df;
  --sage: #8a9a7b;
  /* Primary accent. Brand sage is too light for text (2.9:1 on cream), so text and
     buttons use Deep Sage: 4.7:1 on cream, and 4.7:1 for cream labels on it. */
  --sage-deep: #66765a;
  --sage-darker: #56654b;
  --sage-tint: rgb(138 154 123 / 0.3);
  --sand: #d0bba2;
  --cream: #fff9f4;
  --espresso: #514541;
  --espresso-deep: #3f3532;

  --font-heading: "Marcellus", Georgia, serif;
  --font-body: "Lato", system-ui, sans-serif;

  /* Classic typographic scale: 15 / 18 / 21 / 24 / 36 / 48 / 72 */
  --size-small: 0.9375rem;
  --size-body: 1.125rem;
  --size-lead: 1.3125rem;
  --size-h3: 1.5rem;
  --size-h2: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
  --size-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3rem);
  --size-display: clamp(2.75rem, 1.4rem + 5.6vw, 4.5rem);

  --measure: 34em;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --page: 72rem;
  --section-space: clamp(4rem, 9vw, 7.5rem);

  --radius-panel: 2rem;
  --radius-field: 0.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* A faint neutral edge so light photos keep their shape against cream,
   and a soft sand fill so a photo still loading reads as a frame, not a gap. */
.hero-photo,
.portrait,
.intro-photo,
.verse-photo {
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
  background: rgb(208 187 162 / 0.35);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: var(--size-h1);
  line-height: 1.2;
}

h2 {
  font-size: var(--size-h2);
  line-height: 1.25;
  color: var(--sage-deep);
}

h2.is-espresso {
  color: var(--espresso);
}

/* Marcellus has one weight, so the browser draws this bold. It holds up at heading sizes. */
h2.is-bold {
  font-weight: 700;
}

h3 {
  font-size: var(--size-h3);
  line-height: 1.3;
}

p,
ul {
  margin: 0;
}

.flow > * + * {
  margin-top: 1em;
}

/* A hidden heading takes no space, so the first visible item after it gets no gap either. */
.flow > .visually-hidden:first-child + * {
  margin-top: 0;
}

/* Keeps a short phrase, like "thank-you", from breaking at its hyphen. */
.nowrap {
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 150ms ease-out;
}

@media (hover: hover) {
  a:hover {
    text-decoration-color: var(--rose);
  }
}

:focus-visible {
  outline: 3px solid var(--espresso);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--espresso);
  color: var(--cream);
  border-radius: 999px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
  background: var(--sage-tint);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

/* The phone link sits outside the collapsible nav on purpose. On phones the
   nav hides behind the Menu button, and that is exactly where someone in
   labour should not have to go looking for a number.

   It shows the icon alone at every width. The number itself lives in the
   accessible name and the title, so screen readers announce it and a desktop
   hover reveals it; the footer still prints it in full.

   44x44 is the minimum comfortable tap target, and with no text to give the
   link width it has to be set explicitly. */
.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin-inline-start: auto;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-call svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

/* Wide screens put the number last, to the right of the Contact me button:
   brand, links, call to action, then the number. The nav takes over the auto
   margin so everything after it is pushed hard right. Below this width the nav
   is absolutely positioned behind the Menu button, so it cannot hold that
   margin and the number keeps it instead. */
@media (min-width: 52.01rem) {
  .site-header .site-nav {
    margin-inline-start: auto;
  }

  .header-call {
    order: 1;
    margin-inline-start: 0;
  }
}

@media (hover: hover) {
  .header-call:hover {
    text-decoration: underline;
    text-decoration-color: var(--sage);
    text-decoration-thickness: 2px;
  }
}


.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  line-height: 1.1;
  text-decoration: none;
}

.brand img {
  width: 3.5rem;
  height: 3.5rem;
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
}

.nav-list a {
  text-decoration: none;
  padding-block: 0.375rem;
}

.nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
}

@media (hover: hover) {
  .nav-list a:hover {
    text-decoration: underline;
    text-decoration-color: var(--sage);
    text-decoration-thickness: 2px;
  }
}

.nav-list .button {
  padding: 0.75rem 1.375rem;
}

.nav-list .button[aria-current="page"] {
  text-decoration: none;
  background: var(--sage-darker);
}

@media (max-width: 52rem) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.125rem;
    border: 2px solid var(--espresso);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: 700 1rem/1 var(--font-body);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    padding: 1.5rem;
    background: var(--cream);
    border: 1px solid var(--sand);
    border-radius: 1.5rem;
    box-shadow: 0 1.5rem 3rem -1.5rem rgb(81 69 65 / 0.35);
  }

  .js .site-nav.is-open {
    display: block;
    transition: opacity 150ms ease-out;
  }

  /* The menu fades in as it opens. Closing is instant, so nothing lingers. */
  @starting-style {
    .js .site-nav.is-open {
      opacity: 0;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    .js .site-nav.is-open {
      transition-property: opacity, translate;
    }

    @starting-style {
      .js .site-nav.is-open {
        translate: 0 -8px;
      }
    }
  }

  .js .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.125rem;
  }

  .site-header .wrap {
    flex-wrap: wrap;
  }

  .brand img {
    width: 3rem;
    height: 3rem;
  }
}

/* The brand, the number and the Menu button have to share one row: letting the
   header wrap to two rows made it 156px tall instead of 88px, which pushed the
   hero down and undid the point of putting the number up here. The brand gives
   up a little size so all three fit. */
@media (max-width: 34rem) {
  .site-header .wrap {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 1.0625rem;
  }

  .brand img {
    width: 2.75rem;
    height: 2.75rem;
  }

}

/* Buttons */

.button {
  display: inline-block;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--cream);
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 150ms ease-out,
    color 150ms ease-out;
}

.button:disabled {
  cursor: default;
}

@media (hover: hover) {
  .button:not(:disabled):hover {
    background: var(--sage-darker);
    color: var(--cream);
  }
}

/* A pressed button settles slightly. Disabled buttons stay still. */
@media (prefers-reduced-motion: no-preference) {
  .button {
    transition-property: background-color, color, scale;
  }

  .button:not(:disabled):active {
    scale: 0.96;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

/* Sections */

.section {
  padding-block: var(--section-space);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head > * + * {
  margin-top: 1rem;
}

.lead {
  font-size: var(--size-lead);
  line-height: 1.55;
}

.prose {
  max-width: var(--measure);
}

/* A wider column for a single section that runs alone, still under about 80 characters a line. */
.prose.is-wide {
  max-width: 42em;
}

/* A section set down the middle of the page: heading and text centered. */
.section.is-centered {
  text-align: center;
}

.section.is-centered .section-head,
.section.is-centered .prose {
  margin-inline: auto;
}

.section.is-centered .prose {
  text-wrap: pretty;
}

/* Home hero: the promise, then the tagline set as one breath */

.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-title {
  max-width: 9em;
  color: var(--sage-deep);
  font-size: var(--size-display);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.breath {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  line-height: 1.2;
}

.breath span {
  display: block;
}

.breath span:nth-child(2) {
  padding-left: 1.1em;
  color: var(--rose);
}

.breath span:nth-child(3) {
  padding-left: 2.2em;
}

.hero-copy {
  max-width: 27em;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hero-copy .actions {
  margin-top: 2rem;
}

.hero-photo {
  width: min(100%, 28rem);
  aspect-ratio: 4 / 5;
  justify-self: end;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius-panel);
}

/* On phones the photo sits under the text in a shorter crop. */
@media (max-width: 48rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: 100%;
    max-width: 26rem;
    aspect-ratio: 4 / 3;
    justify-self: start;
    object-position: 50% 50%;
  }
}

@media (max-width: 40rem) {
  .breath span:nth-child(2) {
    padding-left: 0.6em;
  }

  .breath span:nth-child(3) {
    padding-left: 1.2em;
  }
}

/* The hero arrives once, in reading order: title, the three breaths, then the copy.
   Full motion rises out of a blur; reduced motion keeps the order as a plain fade.

   The title and the photo are the two Largest Contentful Paint candidates, so
   they must never start at opacity 0: Chrome refuses to count a fully
   transparent element as painted, which pushed LCP back by the length of the
   animation. They rise and unblur instead, which reads the same but paints
   immediately. Only the breaths and the copy still fade. */
.breath span,
.hero-copy {
  animation: fade 300ms ease-out both;
}

@media (prefers-reduced-motion: no-preference) {
  .breath span,
  .hero-copy {
    animation-name: arrive;
  }

  .hero-title,
  .hero-photo {
    animation: arrive-opaque 300ms ease-out both;
  }
}

.breath span:nth-child(1) {
  animation-delay: 100ms;
}

.breath span:nth-child(2) {
  animation-delay: 200ms;
}

.breath span:nth-child(3) {
  animation-delay: 300ms;
}

.hero-copy {
  animation-delay: 400ms;
}

@keyframes arrive {
  from {
    opacity: 0;
    filter: blur(4px);
    translate: 0 12px;
  }
}

/* Same movement as `arrive`, but it never hides the element. Used for the LCP
   candidates in the hero. */
@keyframes arrive-opaque {
  from {
    filter: blur(4px);
    translate: 0 12px;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

/* Two-column intro */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 48rem) {
  .split {
    grid-template-columns: 1fr;
  }
}

.section.is-sage {
  background: var(--sage-tint);
}

.section.is-blush {
  background: var(--blush);
}

/* The About page's Selah band follows the photo's even spacing, so its padding matches that gap. */
.section.is-blush.is-even {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.split:has(.portrait) {
  align-items: center;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-panel);
}

@media (max-width: 48rem) {
  .portrait {
    max-width: 26rem;
  }

  /* On phones the words come first and the photo follows, even where the photo leads on desktop. */
  .split > .portrait {
    order: 1;
  }
}

/* Intro band with a photo: text on the left, a rounded landscape photo on the right. */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.intro-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 60%;
  border-radius: var(--radius-panel);
}

@media (max-width: 48rem) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

/* Intro band text: two paragraphs of regular body text, stacked. */
.intro-stack .split-statement,
.intro-stack .prose {
  max-width: var(--measure);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  text-wrap: pretty;
}

.intro-stack .prose {
  margin-top: 1em;
}

/* A large opening sentence beside body text, for intro bands without a photo. */
.split-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.35;
  text-wrap: balance;
}

.split-heading {
  font-size: var(--size-h1);
  line-height: 1.15;
  color: var(--espresso);
}

/* The Selah pause: the one blush panel per page */

.pause {
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 7vw, 6rem);
  border-radius: var(--radius-panel);
  background: var(--blush);
}

.pause-word {
  font-family: var(--font-heading);
  font-size: var(--size-display);
  line-height: 1;
  color: var(--sage-deep);
}

.pause-body {
  max-width: 30em;
  margin-top: 1.5rem;
  font-size: var(--size-lead);
  line-height: 1.6;
}

.pause .text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: var(--size-body);
}

/* Prices, used on the Services page */

.price {
  font-family: var(--font-heading);
  font-size: var(--size-h3);
  line-height: 1.3;
  color: var(--sage-deep);
  white-space: nowrap;
}

/* My Services: stacked rows on the home page, details live on the Services page */

.services-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--sand);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--sand);
}

.service p {
  grid-column: 1;
  max-width: var(--measure);
}

.service .button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 36rem) {
  .service {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .service .button {
    grid-column: 1;
    grid-row: auto;
  }
}

.service h3 {
  color: var(--espresso);
}

.button.is-espresso {
  background: var(--espresso);
}

@media (hover: hover) {
  .button.is-espresso:not(:disabled):hover {
    background: var(--espresso-deep);
  }
}

.button.is-rose {
  background: var(--rose-deep);
}

@media (hover: hover) {
  .button.is-rose:not(:disabled):hover {
    background: var(--rose-darker);
  }
}

.button.is-outline {
  padding: 0.875rem 1.75rem;
  border: 2px solid var(--sage-deep);
  background: transparent;
  color: var(--sage-deep);
}

@media (hover: hover) {
  .button.is-outline:not(:disabled):hover {
    background: var(--sage-deep);
    color: var(--cream);
  }
}

/* A client's words on the home page: one quote set down the middle, between the
   services and the closing verse. Deliberately not a carousel — there is one
   review, and one quote presented plainly reads stronger than one in a slider.
   The section heading and centring come from .section-head and .section.is-centered. */

.testimonial-quote {
  margin: 0 auto;
  max-width: 30em;
  text-align: center;
}

.testimonial-quote blockquote {
  margin: 0;
}

.testimonial-quote blockquote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.25rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.testimonial-quote figcaption {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.testimonial-name {
  display: block;
  font-weight: 700;
}

.testimonial-detail {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--size-small);
}

.testimonial-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: var(--size-small);
}

/* Closing verse on the home page: mirrors the hero, words beside a photo */

.section.verse-feature {
  background: var(--blush);
}

/* When a page ends on a padded section, that section's padding already gives the
   space above the footer, so the footer drops its own gap. Keeps every page at one gap. */
main:has(> .section:last-child) + .site-footer {
  margin-top: 0;
}

.verse-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.verse-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 62%;
  border-radius: var(--radius-panel);
  /* A light warm tone so the black-and-white photo sits with the cream palette. */
  filter: sepia(0.22);
}

.verse-quote {
  margin: 0;
}

.verse-quote p {
  max-width: 16em;
  /* Hangs the opening quote mark in the margin so the letters line up with the reference below. */
  text-indent: -0.4em;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);
  line-height: 1.3;
  text-wrap: pretty;
}

.verse-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 48rem) {
  .verse-feature-grid {
    grid-template-columns: 1fr;
  }

  .verse-photo {
    max-width: 26rem;
    aspect-ratio: 4 / 3;
  }
}

/* Share the Love: the referral offer at the end of the Services page. The photo runs from the left
   edge of the screen and a cream card overlaps its right end, with heart dividers from Laura's flyer. */

.referral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(34rem, 48%) max(var(--gutter), (100% - var(--page)) / 2);
  margin-top: var(--section-space);
}

/* The photo is shorter than the card and centred on it, so the card rises above and below it. */
.referral-photo {
  grid-area: 1 / 1;
  align-self: center;
  width: 100%;
  height: clamp(22rem, 30vw, 28rem);
  object-fit: cover;
  object-position: 40% 30%;
  /* Warms and softens the close-up so its pinks sit with the cream palette, like the verse photo. */
  filter: sepia(0.2) saturate(0.8) contrast(0.9) brightness(1.03);
}

/* The photo's filter puts it on its own layer, so the card is lifted to stay in front of it. */
.referral-card {
  position: relative;
  z-index: 1;
  grid-area: 1 / 2;
  align-self: center;
  margin-left: -4rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--sand);
  border-radius: var(--radius-panel);
  background: var(--cream);
}

.referral-card > * + * {
  margin-top: 1.25rem;
}

.referral-card h2 {
  color: var(--sage-deep);
  font-size: var(--size-h1);
  line-height: 1.05;
}

/* The gift sits on its own line, as on the flyer. */
.referral-gift {
  display: block;
  margin-block: 0.25em;
  color: var(--rose-deep);
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
}

/* A fine rose rule broken by an outlined heart, from Laura's flyer. */
.heart-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rose);
}

.heart-rule span {
  flex: 1;
  height: 1px;
  background: currentColor;
}

.heart-rule svg {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
}

.referral-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 0.5rem;
}

.share-button[hidden],
.share-status:empty {
  display: none;
}

/* On phones the photo comes first and the card overlaps its lower edge. */
@media (max-width: 48rem) {
  .referral {
    grid-template-columns: 1fr;
  }

  .referral-photo {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .referral-card {
    grid-area: 2 / 1;
    margin: -3rem var(--gutter) 0;
    border: 0;
  }
}

/* Inner page header */

.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

.page-head h1 {
  max-width: 16em;
}

/* Same space above and below, for headings that sit beside a photo. */
.page-head.is-even {
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.page-head .lead {
  max-width: 30em;
  margin-top: 1.5rem;
}

.page-head.is-centered {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.page-head.is-centered h1,
.page-head.is-centered .lead {
  margin-inline: auto;
}

.page-head.is-centered .lead {
  max-width: 36em;
  text-wrap: balance;
}

.section.is-tight {
  padding-top: clamp(1rem, 3vw, 2rem);
}

/* Package timeline: follows the weeks of pregnancy */

.package {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.package-summary {
  position: sticky;
  top: 2rem;
}

.package-summary .price {
  display: block;
  margin-top: 0.75rem;
  font-size: var(--size-h1);
}

.package-summary p {
  margin-top: 1rem;
}

.package-summary .button {
  margin-top: 2rem;
}

/* A quiet line of reassurance under the price, before the call to action. */
.package-note {
  font-size: var(--size-small);
  color: var(--sage-deep);
}

@media (max-width: 48rem) {
  .package {
    grid-template-columns: 1fr;
  }

  .package-summary {
    position: static;
  }
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: 0.6875rem;
  width: 2px;
  background: var(--rose);
  opacity: 0.6;
}

.moment {
  position: relative;
  padding-left: 3.25rem;
}

.moment + .moment {
  margin-top: 2.5rem;
}

.moment::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 1.375rem;
  height: 1.375rem;
  border: 2px solid var(--rose);
  border-radius: 50%;
  background: var(--cream);
}

.moment.is-payment::before {
  border-color: var(--sand);
  background: var(--sand);
}

.moment-when {
  font-family: var(--font-heading);
  font-size: var(--size-h3);
  line-height: 1.3;
  color: var(--sage-deep);
}

.moment-body {
  margin-top: 0.5rem;
}

.moment-body > * + * {
  margin-top: 0.5rem;
}

.checklist {
  padding-left: 1.25em;
}

.checklist li + li {
  margin-top: 0.375rem;
}

.checklist li::marker {
  color: var(--rose);
}

/* Secondary offerings */

.offerings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 48rem) {
  .offerings {
    grid-template-columns: 1fr;
  }
}

.offering {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--sand);
  border-radius: 1.5rem;
}

.offering-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* These offerings are siblings of the Selah Birth Support Package, so they are
   h2 in the markup. They keep the smaller h3 scale for visual hierarchy. */
.offering-head h2 {
  font-size: var(--size-h3);
  line-height: 1.3;
  color: var(--espresso);
}

.offering > p,
.offering > ul {
  margin-top: 1rem;
}

.status {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  background: var(--blush);
  font-size: var(--size-small);
  font-weight: 700;
}

/* A soft blush note under a package title: payment and insurance details. */
.pay-note {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--blush);
  font-size: var(--size-small);
  line-height: 1.6;
  color: var(--espresso);
}

.pay-note strong {
  font-weight: 700;
}

.pay-note .pay-note-more {
  display: block;
  margin-top: 0.35rem;
}

.pay-note a {
  color: var(--rose-darker);
}

/* Benefits */

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 6vw, 5rem);
}

@media (max-width: 48rem) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

.benefit {
  padding-top: 1.25rem;
  border-top: 1px solid var(--sand);
}

.benefit h3 {
  color: var(--espresso);
}

.benefit p {
  margin-top: 0.75rem;
}

.sign-off {
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  line-height: 1.25;
  color: var(--sage-deep);
}

.sign-off span {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--size-h3);
  color: var(--espresso);
}

/* A verse set apart on a cream card, like a pause inside the section. */
.verse-card {
  padding: clamp(2rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-panel);
  background: var(--cream);
}

.verse-card p {
  font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem);
}

.selah-body {
  max-width: var(--measure);
  margin-top: 1.25rem;
  font-size: var(--size-lead);
  line-height: 1.6;
}

/* About: Laura's photo on the right of the page heading, like the home banner. */

.split.has-photo-right {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
}

@media (max-width: 48rem) {
  .split.has-photo-right {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 52rem) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.contact-details > * + * {
  margin-top: 2rem;
}

.contact-details h2 {
  font-size: var(--size-h3);
  color: var(--espresso);
}

.contact-details h2 + p {
  margin-top: 0.5rem;
}

.form {
  scroll-margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--radius-panel);
  background: var(--blush);
}

.field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.field.is-wide,
.form-footer {
  grid-column: 1 / -1;
}

@media (max-width: 36rem) {
  .form {
    grid-template-columns: 1fr;
  }
}

.field label,
.field legend {
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
}

.optional {
  font-weight: 400;
  font-style: italic;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-field);
  background: var(--cream);
  color: var(--espresso);
  font: inherit;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--espresso);
  outline-offset: 1px;
  border-color: var(--espresso);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Plain checkboxes in a vertical list, tinted with the primary accent. */
.checks {
  display: grid;
  gap: 0.875rem;
  margin-top: 0.75rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  cursor: pointer;
}

/* Options read as answers, not labels, so they drop the bold that .field label adds. */
.field .check {
  font-size: var(--size-body);
  font-weight: 400;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--sage-deep);
  cursor: pointer;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.form-error {
  grid-column: 1 / -1;
  font-weight: 700;
}

.form-success {
  font-weight: 700;
}

/* Footer: no fill, set off by a sand rule. Name and links on the left, the contact prompt on the right. */

.site-footer {
  margin-top: var(--section-space);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--sand);
  color: var(--espresso);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-left: clamp(2rem, 5vw, 4rem);
  border-left: 1px solid var(--sand);
}

.footer-cta-title {
  color: var(--espresso);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 52rem) {
  .footer-cta {
    padding-left: 0;
    border-left: 0;
  }
}

.footer-name {
  font-family: var(--font-heading);
  font-size: var(--size-lead);
  line-height: 1.4;
  text-wrap: balance;
}

/* On phones the name and role stack, so the divider never dangles at a line end. */
@media (max-width: 30rem) {
  .footer-sep {
    display: none;
  }

  .footer-role {
    display: block;
  }
}

.footer-area {
  margin-top: 0.5rem;
  text-wrap: balance;
}

.footer-phone {
  margin-top: 0.5rem;
}

/* Plain icons with a full-size tap area. Each link names itself for screen readers. */
.social {
  display: flex;
  gap: 0.375rem;
  margin: 1.25rem 0 0 -0.5625rem;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: var(--espresso);
  transition: color 150ms ease-out;
}

@media (hover: hover) {
  .social a:hover {
    color: var(--sage-deep);
  }
}

.social svg {
  width: 1.875rem;
  height: 1.875rem;
}

.pause > .button {
  margin-top: 2rem;
}
