:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf6f3;
  --surface: #fffcfa;
  --ink: #423137;
  --muted: #715961;
  --line: #e5d5d5;
  --accent: #8a4d62;
  --accent-ink: #ffffff;
  --ridge: #996048;
  --soft: #f4e8e7;
  --hero-bg: #f6e5e5;
  --hero-bg2: #ead5d8;
  --hero-bg3: #f5e6db;
  --hero-fg: #423137;
  --hero-muted: #715961;
  --hero-line: #ddbcc4;
  --mint: #8a4d62;
  --gold: #8a4d62;
  --btn-ink: #ffffff;
  --display: "Nunito Sans", sans-serif;
  --serif: "Nunito Sans", sans-serif;
  --body: "DM Sans", sans-serif;
  --mono: "DM Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #281f24;
    --surface: #34282f;
    --ink: #fbefef;
    --muted: #d3bfc6;
    --line: #5c444f;
    --accent: #e5acbd;
    --accent-ink: #281f24;
    --ridge: #d9ae98;
    --soft: #3e2e36;
    --hero-bg: #35262d;
    --hero-bg2: #49323d;
    --hero-bg3: #48342e;
    --hero-fg: #fbefef;
    --hero-muted: #d3bfc6;
    --hero-line: #725360;
    --mint: #e5acbd;
    --gold: #e5acbd;
    --btn-ink: #281f24;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #281f24;
  --surface: #34282f;
  --ink: #fbefef;
  --muted: #d3bfc6;
  --line: #5c444f;
  --accent: #e5acbd;
  --accent-ink: #281f24;
  --ridge: #d9ae98;
  --soft: #3e2e36;
  --hero-bg: #35262d;
  --hero-bg2: #49323d;
  --hero-bg3: #48342e;
  --hero-fg: #fbefef;
  --hero-muted: #d3bfc6;
  --hero-line: #725360;
  --mint: #e5acbd;
  --gold: #e5acbd;
  --btn-ink: #281f24;
}

:root body :is(h1, h2, h3) {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-transform: none;
}

:root body :is(em, i, cite, .s, .mark .m2) {
  font-style: normal;
}

:root body :is(.mark, .mark .m1, footer b, .chip b, .v-cap b) {
  font-family: var(--display);
  text-transform: none;
  letter-spacing: -.015em;
  line-height: 1.25;
}

:root body .mark .m2 {
  font: 500 .82rem/1.5 var(--body);
  letter-spacing: 0;
}

.hero-grid {
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 52px 72px;
}

:root body .hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  line-height: 1.12;
}

:root body h1 .s {
  display: inline;
  font: inherit;
  color: var(--accent);
}

:root body h2 .s {
  font: inherit;
  color: var(--accent);
}

.hero .lede {
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.hero-note {
  max-width: 48ch;
  margin: 16px 0 0;
  color: var(--hero-muted);
  font-size: .98rem;
}

.sq img {
  border-radius: 40% 40% 24px 24px;
  box-shadow: 0 18px 45px -25px #51323f40;
}

.sec-head {
  align-items: start;
  gap: 40px;
}

:root body .sec-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

:root body :is(.session, .why4, .philo, .route, .care, .how) h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.care-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.offering-label {
  margin-bottom: 18px;
  color: var(--accent);
}

.wellbeing-focus {
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.wellbeing-focus .sec-head .label {
  margin-top: 0;
}

.life-stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.life-stages article {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.life-stages article:nth-child(2),
.life-stages article:nth-child(3) {
  background: var(--hero-bg);
}

.life-stages article .label {
  margin: 0;
  color: var(--accent);
}

.life-stages h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

.life-stages p:not(.label) {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.life-stages .book {
  margin-top: auto;
  padding-block: 12px;
  text-align: left;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.life-stage-note {
  max-width: 85ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.principles-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles-list li {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.principles-list li:nth-child(1),
.principles-list li:nth-child(6) {
  background: var(--hero-bg);
}

.principles-list li:last-child {
  grid-column: 1 / -1;
  background: var(--hero-bg3);
}

.principle-number {
  font: 700 1rem/1.3 var(--display);
  color: var(--accent);
  letter-spacing: .08em;
}

.principles-list h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.principles-list p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
}

.sq .chip span {
  font-size: .68rem;
  letter-spacing: .035em;
}

.writing-grid {
  margin-bottom: 36px;
}

.talks-heading {
  margin-bottom: 24px;
}

.care {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.care.psychology {
  background: var(--hero-bg2);
}

.care.natural {
  background: var(--hero-bg3);
}

.care p:not(.label) {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

.care .care-note {
  font-size: .88rem;
}

.care :is(a, button) {
  margin-top: auto;
  padding-top: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.label,
.stage-l,
.aud,
.where li {
  letter-spacing: .07em;
  line-height: 1.4;
}

.creds span {
  line-height: 1.6;
}

.btn {
  line-height: 1.3;
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px -8px var(--accent);
}

.btn:active {
  transform: translateY(0);
}

:root body .perma.statement div {
  align-content: center;
  gap: 20px;
  text-align: left;
  background: var(--hero-bg2);
  padding: 36px;
}

:root body .perma.statement span {
  font: 700 clamp(1.8rem, 3.8vw, 3rem)/1.2 var(--display);
  letter-spacing: -.025em;
  color: var(--ink);
}

:root body .perma.statement small {
  font: 500 .85rem/1.5 var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.pos-text p.big {
  font-weight: 600;
  line-height: 1.45;
}

.spec {
  line-height: 1.7;
}

:root body .art text.big {
  font: 600 22px var(--display);
}

.drawing-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.care-drawing {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawing-wash {
  fill: var(--accent);
  fill-opacity: .09;
  stroke: none;
}

.drawing-detail {
  stroke: var(--ridge);
}

.menu-toggle,
.mobile-actions {
  display: none;
}

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

.media-list li {
  border-bottom: 1px solid var(--line);
}

.media-link {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.8fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 16px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
}

.media-link:hover,
.media-link:focus-visible {
  background: var(--soft);
}

.media-copy h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.media-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.media-action {
  color: var(--accent);
  font-size: .95rem;
  font-weight: 600;
}

.media-link:hover .media-action,
.media-link:focus-visible .media-action {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  html {
    scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .clinic-home {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  section {
    scroll-margin-top: 20px;
  }

  :is(.btn, .book, .back, .filters button, .small-btns button, .scale label, .checks label, .del, .tabs a) {
    min-height: 44px;
  }

  :is(.btn, .book, .back) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 12px;
    padding-block: 18px;
  }

  .site-nav .mark {
    min-width: 0;
  }

  .site-nav .mark .m1 {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
  }

  :root body .site-nav .mark .m2 {
    font-size: .75rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: var(--surface);
    color: var(--accent);
    font: 600 .95rem var(--body);
    cursor: pointer;
  }

  .site-nav ul {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--hero-line);
    border-radius: 16px;
    background: var(--surface);
  }

  .site-nav.nav-ready .menu-toggle[aria-expanded="false"] + ul {
    display: none;
  }

  .site-nav ul a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px;
    border-radius: 10px;
  }

  .site-nav ul a:hover {
    background: var(--soft);
  }

  .mobile-actions {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }

  .mobile-actions > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-actions .btn {
    padding: 12px 16px;
  }

  .cta-row .btn {
    width: 100%;
  }

  :is(form, .log) {
    padding: 20px 16px;
  }

  :is(input, select, textarea) {
    font-size: 16px;
  }

  .scale label {
    min-width: 44px;
    display: grid;
    place-items: center;
  }

  .checks label {
    padding-block: 10px;
  }

  .del {
    min-width: 44px;
  }

  .tabs ul {
    flex-wrap: nowrap;
    width: max-content;
  }

  .back,
  .side a {
    overflow-wrap: anywhere;
  }

  .media-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 24px 12px;
  }

  .hero-grid,
  .care-grid,
  .life-stages,
  .principles-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    padding-block: 28px 48px;
  }

  nav ul {
    gap: 10px 16px;
  }

  .sec-head {
    gap: 18px;
    margin-bottom: 28px;
  }

  .care {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
