/* Stirling Pelvic Health
   One stylesheet for the whole site. Colors and type are set once, right below.
   To change the look, edit the values in :root. */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --sand: #ede5dc;        /* page background, matched to the portrait backdrop */
  --paper: #f8f4ee;       /* lighter panels */
  --ink: #23211f;         /* text */
  --muted: #5c564e;       /* secondary text */
  --teal: #0f4c4a;        /* buttons, links */
  --teal-deep: #0a3533;   /* dark band, button hover */
  --seaglass: #d3e2da;    /* soft tint for highlights */
  --line: #d6cabb;        /* hairlines */
  --on-teal: #f3efe8;

  /* Type */
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Layout */
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { text-wrap: pretty; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible { outline-color: var(--on-teal); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--tint { background: var(--seaglass); }
.section--tint h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.section--tint .prose { font-size: 1.125rem; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 36em; }
.label { font-weight: 650; font-size: 0.95rem; color: var(--teal); margin-bottom: 0.9rem; }
.muted { color: var(--muted); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; color: var(--muted); max-width: 38em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; border-radius: 4px;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.8rem 1.6rem;
  font: 650 1.0625rem/1.2 var(--sans);
  text-decoration: none; border-radius: 6px; border: 2px solid var(--teal);
  background: var(--teal); color: var(--on-teal);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn--quiet { background: transparent; color: var(--teal); }
.btn--quiet:hover { background: var(--seaglass); border-color: var(--teal); }
.btn--small { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 1rem; }
.band .btn { background: var(--on-teal); border-color: var(--on-teal); color: var(--teal-deep); }
.band .btn:hover { background: #fff; border-color: #fff; }
.band .btn--quiet { background: transparent; color: var(--on-teal); }
.band .btn--quiet:hover { background: rgba(243, 239, 232, 0.12); border-color: var(--on-teal); }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Header */
.site-header { position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.1rem;
}
.brand { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 0.5rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.nav-toggle { display: none; }

@media (max-width: 62rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.9rem;
    font: 600 1rem var(--sans); color: var(--ink);
    background: transparent; border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    background: var(--paper); border-block: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.75rem;
    box-shadow: 0 18px 30px -18px rgba(35, 33, 31, 0.35);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a:not(.btn) { display: block; padding-block: 0.95rem; font-size: 1.15rem; }
}

/* Hero */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 2rem; align-items: end; }
.hero-copy { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 5rem); }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.975rem; color: var(--muted); }
.hero-portrait { position: relative; justify-self: center; width: min(100%, 26rem); margin-top: -3.5rem; }
.hero-portrait img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%);
  mask-composite: intersect;
}
.hero-portrait figcaption {
  position: absolute; left: 0; bottom: 1.1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.6rem 0.9rem; font-size: 0.95rem; line-height: 1.35;
}
.hero-portrait figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }

@media (min-width: 62rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 3rem; }
  .hero-portrait { width: 100%; max-width: 30rem; justify-self: end; margin-top: 0; }
  .hero-portrait figcaption { left: -1.5rem; }
}

/* Plain facts row */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { padding: 1.15rem 1rem 1.15rem 0; font-weight: 550; line-height: 1.35; }
.facts li span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 48rem) {
  .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { padding: 1.4rem 1.5rem 1.4rem 0; }
  .facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}

/* Two-column text */
.split { display: grid; gap: 2rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose { max-width: 38em; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; }
}

/* Condition picker */
.picker { display: grid; border-top: 1px solid var(--ink); }
.picker a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: start;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.picker h3 { font-size: 1.45rem; }
.picker p { grid-column: 1; margin-top: 0.5rem; color: var(--muted); max-width: 30em; }
.picker .heard { font-size: 0.925rem; color: var(--teal); }
.picker .go { grid-row: 1 / span 3; }
.picker .go {
  grid-column: 2; align-self: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1.5px solid var(--teal); color: var(--teal);
  display: grid; place-items: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.picker a:hover .go, .picker a:focus-visible .go { background: var(--teal); color: var(--on-teal); }
.picker a:hover h3 { color: var(--teal); }
@media (min-width: 48rem) {
  .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; }
}
@media (min-width: 48rem) and (max-width: 71.99rem) {
  .picker a:nth-child(2) { border-top: 0; }
}
@media (min-width: 72rem) {
  .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; }
}

/* Steps */
.steps { display: grid; gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--teal);
  display: block; margin-bottom: 0.9rem;
}
.steps p { margin-top: 0.6rem; color: var(--muted); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }

.callout {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 0.5rem; max-width: 52rem;
}
.callout h3 { font-size: 1.3rem; }

/* About teaser */
.about { display: grid; gap: 2rem; align-items: start; }
.about-face { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; background: var(--sand); }
.about .prose h2 { margin-bottom: 1.25rem; }
.creds { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.creds li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.1rem; }
.creds strong { font-weight: 650; }
.creds span { color: var(--muted); }
.about .more { margin-top: 1.75rem; }
.more--gap { margin-top: 2rem; }
@media (min-width: 52rem) {
  .about { grid-template-columns: 13rem minmax(0, 1fr); gap: 4rem; }
  .about-face { width: 13rem; height: 13rem; }
  .creds li { grid-template-columns: 15rem 1fr; gap: 1rem; }
}

/* Photo slots for later. Hidden until a real photo is added.
   To use one: put the image in /assets/, add an <img> inside the figure, and remove the "hidden" attribute. */
.photo-slot[hidden] { display: none; }
.photo-slot img { border-radius: 8px; width: 100%; }

/* Prices */
.prices { border-top: 1px solid var(--ink); }
.prices > div {
  display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; align-items: baseline;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.prices dt { font-weight: 650; font-size: 1.1rem; }
.prices dt span { display: block; font-weight: 400; font-size: 1rem; color: var(--muted); }
.prices dd { font-family: var(--serif); font-size: 1.6rem; }
.fineprint { margin-top: 1.5rem; color: var(--muted); max-width: 40em; }
.fineprint + .more { margin-top: 1.5rem; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  padding: 1.25rem 0; font-weight: 650; font-size: 1.15rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 0.65rem; height: 0.65rem; margin-right: 0.35rem;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg); transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2rem 1.5rem 0; color: var(--muted); max-width: 40em; }
.faq + .more { margin-top: 1.75rem; }

/* Closing band */
.band { background: var(--teal-deep); color: var(--on-teal); }
.band h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 14em; }
.band p { margin-top: 1.25rem; max-width: 34em; color: #d5ddd6; font-size: 1.15rem; }
.band .actions { margin-top: 2rem; align-items: center; }
.band a:not(.btn) { color: var(--on-teal); }
.contact-lines { margin-top: 2.25rem; display: grid; gap: 0.4rem; font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc8bd; font-size: 0.975rem; padding-block: 3.5rem 2.5rem; }
.site-footer a { color: #efe9e0; }
.site-footer .cols { display: grid; gap: 2.25rem; }
.site-footer .brand { color: #f8f4ee; font-size: 1.25rem; display: inline-block; margin-bottom: 0.6rem; }
.site-footer h2 { font: 650 0.975rem var(--sans); letter-spacing: 0; color: #f8f4ee; margin-bottom: 0.7rem; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer .legal { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid #4a4640; display: grid; gap: 0.8rem; max-width: 60rem; color: #b5ada1; }
@media (min-width: 52rem) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); max-width: 16em; margin-bottom: 1.25rem; }
.crumbs { margin-bottom: clamp(1.5rem, 4vw, 2.75rem); font-size: 0.95rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--muted); }
.crumbs [aria-current] { color: var(--muted); }
.actions--gap { margin-top: 2rem; }

.wrap.article > * { max-width: 46rem; }
.about-page .article { max-width: 44rem; }
.article > h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 3rem; margin-bottom: 1rem; }
.article > h2:first-child { margin-top: 0; }
.article > p + p, .article > ul + p, .article > ol + p, .article > p + ul, .article > p + ol { margin-top: 1rem; }
.article > ul:not(.creds), .article > ol.numbered { padding-left: 1.3rem; }
.article > ul:not(.creds) { list-style: disc; }
.article > ol.numbered { list-style: decimal; }
.article > ul:not(.creds) li + li, .article > ol.numbered li + li { margin-top: 0.55rem; }
.article > ul:not(.creds) li::marker, .article > ol.numbered li::marker { color: var(--teal); font-weight: 650; }
.article .faq + h2 { margin-top: 3.5rem; }
.article .prices { margin-top: 0.5rem; }
.article .creds { margin-top: 1.75rem; }
.article .prices dt span { max-width: 30em; }

.note {
  margin-top: 3rem; padding: 1.4rem clamp(1.25rem, 3vw, 1.75rem);
  background: var(--seaglass); border-radius: 8px;
}
.note h2 { font: 650 1.1rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: 0.4rem; }

.two-up { display: grid; gap: 1.75rem; margin-top: 0.5rem; }
.two-up h3 { margin-bottom: 0.5rem; }
.two-up--cards > div { background: var(--sand); border-radius: 8px; padding: clamp(1.25rem, 3vw, 1.9rem); display: grid; gap: 1rem; align-content: start; }
.two-up--cards h2 { font-size: 1.55rem; }
.two-up--cards + h2 { margin-top: 3rem; }
@media (min-width: 44rem) { .two-up { grid-template-columns: 1fr 1fr; gap: 2.5rem; } .two-up--cards { gap: 1.5rem; } }

.about-page { display: grid; gap: 2.5rem; align-items: start; }
.about-portrait { max-width: 22rem; }
.about-portrait img { border-radius: 8px; width: 100%; background: var(--sand); }
.about-portrait figcaption { margin-top: 0.75rem; font-size: 0.95rem; color: var(--muted); }
@media (min-width: 56rem) {
  .about-page { grid-template-columns: 24rem minmax(0, 1fr); gap: 4.5rem; }
  .about-portrait { max-width: none; position: sticky; top: 2rem; }
}
