/* Fonts are self-hosted (no requests to Google). Both are SIL Open Font
   Licence; each file is a variable font covering every weight used here. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda.woff2") format("woff2");
  font-style: normal; font-weight: 400 500; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-italic.woff2") format("woff2");
  font-style: italic; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost.woff2") format("woff2");
  font-style: normal; font-weight: 300 500; font-display: swap;
}

:root {
  --ivory: #F4EADC;
  --porcelain: #FBF7F1;
  --espresso: #3A2A1F;
  --espresso-soft: #6B5646;
  --bronze: #8A6A3E;
  --gold: #B8914F;
  --line: #DFCFB6;

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body: "Jost", "Futura", system-ui, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 4.5rem;
}
.wordmark {
  font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em;
  text-decoration: none;
}
.wordmark span { color: var(--bronze); font-style: italic; font-size: 1rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { text-decoration: none; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--bronze); }

.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  background: var(--espresso); color: var(--porcelain);
  text-decoration: none; font-weight: 400; font-size: .95rem;
  border-radius: 999px;
  transition: background .2s;
}
.btn:hover { background: var(--bronze); }
.btn-quiet {
  background: transparent; color: var(--espresso);
  box-shadow: inset 0 0 0 1px var(--espresso);
}
.btn-quiet:hover { background: var(--espresso); color: var(--porcelain); }

/* Hero */
/* The logo photo is warmer at its centre than at its edges, and carries a
   leaf shadow on the left; the hero glow matches its centre tone and the
   mask fades the edges and shadow away so the mark sits on the page itself. */
.hero {
  padding: 1rem 0 5rem; text-align: center;
  background: radial-gradient(ellipse 60% 45% at 50% 28%, #F7EEE0 0%, var(--ivory) 100%);
}
.hero-mark {
  width: min(100%, 52rem); height: auto; margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 46% 58% at 52% 52%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 46% 58% at 52% 52%, #000 45%, transparent 100%);
}
.hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  max-width: 22em; margin: .5rem auto 0;
}
.hero p {
  max-width: var(--measure); margin: 1.25rem auto 2rem;
  color: var(--espresso-soft);
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy { animation: rise 1s .6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: scale(1.04); filter: blur(6px); } }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

/* Sections */
section { scroll-margin-top: 4.5rem; }
.section { padding: 6rem 0; }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); }
.lede { color: var(--espresso-soft); max-width: var(--measure); margin: 1rem 0 0; }

/* About */
.about { background: var(--porcelain); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-head .qual { font-family: var(--display); font-style: italic; color: var(--bronze); font-size: 1.15rem; margin: 1.25rem 0 0; max-width: 20rem; }
.about-text p { max-width: var(--measure); margin: 0 0 1.1rem; }

/* Treatments */
.menu-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.consult {
  margin-top: 2.5rem; padding: 1.25rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; gap: 1rem; align-items: baseline;
}
.consult strong { font-weight: 400; }
.consult small { color: var(--espresso-soft); font-size: .9rem; }

.menu { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 5rem); margin-top: 3rem; }
.tabs { display: flex; flex-direction: column; gap: .25rem; position: sticky; top: 6rem; align-self: start; }
.tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  text-align: left; padding: .6rem 0 .6rem 1rem;
  font: 400 1.35rem/1.2 var(--display); color: var(--espresso-soft);
  border-left: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--espresso); }
.tab[aria-selected="true"] { color: var(--espresso); border-left: 2px solid var(--gold); padding-left: calc(1rem - 1px); }

.panel[hidden] { display: none; }
.panel > p { color: var(--espresso-soft); max-width: var(--measure); margin: 0 0 2rem; }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
}
.prices { list-style: none; margin: 0; padding: 0; }
.prices li {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .7rem 0;
}
.prices .name { flex: 0 1 auto; }
.prices .name em { font-style: normal; color: var(--espresso-soft); font-size: .9rem; }
.prices .dots { flex: 1 1 2rem; border-bottom: 1px dotted var(--gold); transform: translateY(-.3em); min-width: 1.5rem; }
.prices .price { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; color: var(--bronze); }
.prices .price small { font-family: var(--body); font-size: .8rem; color: var(--espresso-soft); }

/* Visit */
.visit { background: var(--espresso); color: var(--ivory); }
.visit .lede { color: color-mix(in srgb, var(--ivory) 75%, transparent); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.visit address { font-style: normal; font-size: 1.15rem; line-height: 1.7; }
.visit address .clinic { font-family: var(--display); font-size: 1.6rem; display: block; margin-bottom: .5rem; color: #fff; }
.visit .btn { background: var(--gold); color: var(--espresso); }
.visit .btn:hover { background: var(--ivory); }
.visit .btn-quiet { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--ivory); }
.visit .btn-quiet:hover { background: var(--ivory); color: var(--espresso); }
.visit-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

footer {
  background: var(--espresso); color: color-mix(in srgb, var(--ivory) 60%, transparent);
  font-size: .85rem; padding: 2rem 0 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--ivory) 15%, transparent);
}
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 860px) {
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .menu { grid-template-columns: 1fr; gap: 1.5rem; }
  .tabs {
    position: sticky; top: 4.5rem; z-index: 5;
    flex-direction: row; overflow-x: auto; gap: 1.25rem;
    background: var(--ivory); padding: .5rem 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .tab { border: 0; padding: .4rem 0; font-size: 1.1rem; white-space: nowrap; border-bottom: 2px solid transparent; }
  .tab[aria-selected="true"] { border-left: 0; padding-left: 0; border-bottom: 2px solid var(--gold); }
}
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .section { padding: 4rem 0; }
  .hero { padding-bottom: 3.5rem; }
  .consult { flex-direction: column; gap: .25rem; }
  .prices li { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .wordmark span { display: none; }
  .site-nav .btn { padding: .6rem 1rem; font-size: .85rem; white-space: nowrap; }
}

/* Treatment guide page */
.guide-hero { padding: 4rem 0 3rem; }
.guide-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.guide-hero .lede { font-size: 1.1rem; }

.jump {
  position: sticky; top: 4.5rem; z-index: 5;
  background: var(--ivory);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.jump ul {
  list-style: none; margin: 0; padding: .9rem 0;
  display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none;
}
.jump a {
  font-family: var(--display); font-size: 1.1rem; white-space: nowrap;
  text-decoration: none; color: var(--espresso-soft);
}
.jump a:hover { color: var(--espresso); }

.category { padding: 5rem 0 2rem; scroll-margin-top: 8.5rem; }
.category + .category { border-top: 1px solid var(--line); }
.category > .wrap > h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.category > .wrap > .lede { margin-bottom: 2.5rem; }

.entry {
  display: grid; grid-template-columns: 17rem 1fr; gap: 1rem clamp(2rem, 5vw, 5rem);
  padding: 2.25rem 0; border-top: 1px solid var(--line);
}
.entry h3 { font-size: 1.6rem; }
.entry .from { margin: .4rem 0 0; font-family: var(--display); color: var(--bronze); font-size: 1.05rem; }
.entry .from small { font-family: var(--body); color: var(--espresso-soft); font-size: .85rem; }
.entry-body { max-width: 38rem; }
.entry-body p { margin: 0 0 1rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 1.25rem 0 0; font-size: .95rem; }
.facts dt { color: var(--bronze); font-weight: 400; }
.facts dd { margin: 0; color: var(--espresso-soft); }

.small-print {
  padding: 3rem 0 5rem; color: var(--espresso-soft); font-size: .9rem;
}
.small-print p { max-width: 44rem; margin: 0 0 .75rem; }

@media (max-width: 760px) {
  .entry { grid-template-columns: 1fr; }
  .category { padding-top: 3.5rem; }
}

.visit address .email {
  display: block; width: fit-content; margin-top: 1rem;
  color: var(--gold); text-decoration: none; border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}
.visit address .email:hover { color: var(--ivory); }
