/* Apothecary theme: a bright white storefront with sun-warmed clay, blush and cream panels, Libre Baskerville headings, a Jost body, a slim announcement bar and a centred header. Loaded last so it sets the final look across every page. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8f6f3;
  --ink: #3f3a38;
  --muted: #6b6360;
  --line: #e6dfd8;
  --accent: #7e5a59;
  --accent-ink: #ffffff;
  --ridge: #7e5a59;
  --soft: #f3ede6;
  --tan: #c1a286;
  --cream: #fcebca;
  --clay: #e0c0ac;
  --blush: #fce3e1;
  --sand: #eee9e3;
  --hero-bg: #ffffff;
  --hero-bg2: #f3ede6;
  --hero-bg3: #fcebca;
  --hero-fg: #3f3a38;
  --hero-muted: #6b6360;
  --hero-line: #e6dfd8;
  --mint: #7e5a59;
  --gold: #3f3a38;
  --btn-ink: #ffffff;
  --display: "Libre Baskerville", Baskerville, Georgia, serif;
  --serif: "Libre Baskerville", Baskerville, Georgia, serif;
  --body: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: .16em;
}

body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--body);
}

a {
  color: var(--accent);
}

::selection {
  background: var(--clay);
  color: var(--ink);
}

/* Announcement bar */
.announce {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 9px 16px;
  background: var(--clay);
  color: var(--ink);
  text-align: center;
}

.announce p {
  margin: 0;
  font: 500 .72rem/1.5 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.announce a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Type */
:root body :is(h1, h2, h3, h4) {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
}

:root body h1 .s,
:root body h2 .s,
:root body h3 .s {
  font-style: italic;
  color: var(--accent);
}

:root body .hero h1,
:root body .page-title {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}

:root body .page-title {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
}

:root body .sec-head h2,
:root body h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.25;
}

:root body :is(.session, .why4, .philo, .route, .care, .how, .life-stages, .principles-list, .media-copy) h3,
:root body h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.3;
}

:root body .writing-quotes h4 {
  font: 400 1.3rem/1.35 var(--display);
}

.label,
.stage-l,
.aud,
.principle-number,
.offering-label {
  font: 500 .74rem/1.5 var(--body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--accent);
}

.lede,
.hero .lede {
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--muted);
}

.lede b {
  font-weight: 500;
  color: var(--ink);
}

/* Header: centred wordmark with a tracked uppercase menu beneath */
.site-header,
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 18px;
  padding-block: 26px 0;
}

.site-nav .mark {
  justify-items: center;
  gap: 4px;
  color: var(--ink);
}

:root body .site-nav .mark .m1 {
  font: 400 2.3rem/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

:root body .site-nav .mark .m2 {
  padding-left: .5em;
  font: 500 .68rem/1.2 var(--body);
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-nav ul {
  justify-content: center;
  gap: 4px 34px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.site-nav ul a {
  min-height: 48px;
  padding: 14px 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font: 500 .76rem/1.4 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  background: transparent;
  border-bottom-color: var(--tan);
  color: var(--accent);
}

.site-nav a:focus-visible,
.site-nav button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Buttons */
.btn,
.hero .btn {
  padding: 16px 28px;
  border: 1px solid var(--ink);
  border-radius: .2rem;
  font: 500 .76rem/1.2 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.btn.primary,
.hero .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover {
  background: #634545;
  border-color: #634545;
}

.btn.ghost,
.hero .btn.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn.ghost:hover,
.hero .btn.ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Home banner: photo flush left, copy on a warm sand panel */
.clinic-home .hero {
  border-bottom: 0;
}

.clinic-home .hero-grid {
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 0;
  align-items: stretch;
  margin-top: 28px;
  padding: 0;
  background: var(--soft);
}

.clinic-home .hero-grid > div {
  align-self: center;
  padding: clamp(32px, 5vw, 72px);
}

.clinic-home .hero-grid .sq {
  order: -1;
  max-width: none;
  margin: 0;
}

:root body .clinic-home .sq img,
.clinic-home .sq img {
  height: 100%;
  min-height: 360px;
  max-height: 520px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 30%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sq .chip {
  left: 20px;
  bottom: 20px;
  padding: 12px 18px;
  border-radius: .2rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: none;
}

:root body .sq .chip b,
:root body .chip b {
  font: 400 1.1rem/1.2 var(--display);
  letter-spacing: 0;
  text-transform: none;
}

.sq .chip span,
.chip span {
  font: 500 .64rem/1.4 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-note {
  color: var(--muted);
  font-size: .95rem;
}

.creds {
  justify-content: center;
  gap: 10px 0;
  margin-top: 0;
  padding-block: 18px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.creds span {
  padding-inline: 22px;
  border-right: 1px solid var(--tan);
  font: 400 .72rem/1.6 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.creds span:last-child {
  border-right: 0;
}

.creds span b {
  font-weight: 600;
  color: var(--ink);
}

section + section {
  border-top-color: var(--line);
}

/* Collection grid: product-style tiles */
.collection-head {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.collection-head h2 {
  margin: 10px 0 14px;
}

.collection-head p:not(.label) {
  margin: 0;
  color: var(--muted);
}

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

.tile {
  display: grid;
  gap: 4px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.tile-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: .2rem;
  background: var(--tile, var(--soft));
  transition: filter .25s ease;
}

.tile-art svg {
  width: 46%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s ease;
}

.t-cream { --tile: var(--cream); }
.t-clay { --tile: var(--clay); }
.t-blush { --tile: var(--blush); }
.t-sand { --tile: var(--sand); }

.tile:hover .tile-art {
  filter: brightness(.97);
}

.tile:hover .tile-art svg {
  transform: scale(1.06);
}

.tile-tag {
  font: 500 .66rem/1.4 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile-name {
  font: 400 1.05rem/1.35 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tile-sub {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.tile:hover .tile-name {
  text-decoration: underline;
  text-decoration-color: var(--tan);
  text-underline-offset: 5px;
}

.tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

/* Cards and panels */
.care,
.life-stages article,
.principles-list li,
.writing-quotes article,
.media-link,
form,
.log {
  border-radius: .2rem;
  box-shadow: none;
}

.care,
.life-stages article,
.principles-list li {
  background: var(--surface);
  border-color: var(--line);
}

.care.psychology,
.life-stages article:nth-child(2),
.principles-list li:nth-child(1),
.principles-list li:nth-child(6) {
  background: var(--cream);
  border-color: transparent;
}

.care.natural,
.life-stages article:nth-child(3),
.principles-list li:last-child,
.writing-quotes article,
.writing-quotes article:last-child {
  background: var(--blush);
  border-color: transparent;
}

.writing-quotes article {
  border-left: 2px solid var(--tan);
}

.care :is(a, button),
.media-action {
  color: var(--accent);
  font: 500 .74rem/1.5 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}

:is(input, select, textarea) {
  border-radius: .2rem;
  font-family: var(--body);
}

/* Footer */
footer {
  background: var(--soft);
  border-top: 0;
  color: var(--muted);
}

footer .wrap {
  align-items: center;
}

:root body footer b {
  font: 400 1.2rem/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

footer a {
  color: var(--accent);
  font: 500 .74rem/1.5 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .announce p {
    font-size: .64rem;
    letter-spacing: .12em;
  }

  .site-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    padding-block: 18px;
  }

  .site-nav .mark {
    justify-items: start;
  }

  :root body .site-nav .mark .m1 {
    font-size: 1.7rem;
  }

  :root body .site-nav .mark .m2 {
    padding-left: .1em;
    font-size: .6rem;
    letter-spacing: .4em;
  }

  .site-nav .menu-toggle,
  .menu-toggle {
    border: 1px solid var(--ink);
    border-radius: .2rem;
    background: transparent;
    color: var(--ink);
    font: 500 .72rem/1.2 var(--body);
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .site-nav ul {
    justify-content: stretch;
    gap: 0 16px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: .2rem;
    background: var(--surface);
  }

  .site-nav ul a {
    padding: 10px 0;
    border-radius: 0;
    font-size: .72rem;
  }

  .clinic-home .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 8px;
  }

  :root body .clinic-home .sq img,
  .clinic-home .sq img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }

  .clinic-home .hero-grid .sq {
    width: min(100%, 300px);
    margin: 24px auto 0;
  }

  .clinic-home .hero-grid > div {
    padding: 28px 22px 36px;
  }

  :root body .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .creds {
    justify-content: flex-start;
  }

  .creds span {
    padding-inline: 0 14px;
    margin-right: 14px;
  }

  .tiles {
    gap: 24px 14px;
  }

  .mobile-actions {
    background: var(--bg);
  }

  .mobile-actions > a:not(.btn) {
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile-art,
  .tile-art svg {
    transition: none;
  }

  .tile:hover .tile-art svg {
    transform: none;
  }
}

/* Talk enquiry form */
#talkForm {
  display: grid;
  gap: 16px;
}

.topics {
  border: 0;
  margin: 0;
  padding: 0;
}

.topics legend {
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 6px;
}

.topics label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.topics input {
  width: auto;
  margin-top: .3em;
}

.field .opt {
  color: var(--muted);
  font-weight: 400;
}
