:root {
  color-scheme: light;
  --paper: #f7f6ef;
  --pine: #18342e;
  --pine-dark: #102923;
  --sea-glass: #dde8de;
  --terracotta: #a34836;
  --terracotta-hover: #893d2e;
  --sage: #4d6259;
  --line: #c9d4ca;
  --content-gutter: 32px;
  --display: "Cormorant Garamond", Georgia, serif;
  --text: Manrope, Arial, sans-serif;
  color: var(--pine);
  background: var(--paper);
  font-family: var(--text);
  line-height: 1.65;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.02; }
h1, h2 { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(2.8rem, 5.7vw, 5.25rem); letter-spacing: -.044em; }
h3 { font-size: 1.0625rem; font-weight: 750; line-height: 1.35; }
main [id] { scroll-margin-top: 1.5rem; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.shell {
  width: min(1140px, calc(100% - 2 * var(--content-gutter)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-160%);
  color: var(--paper);
  background: var(--pine);
}

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

.page-loader {
  position: fixed;
  z-index: 4;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .9rem;
  padding: 1rem;
  color: var(--paper);
  background: var(--pine);
  font-size: .95rem;
  text-align: center;
  pointer-events: none;
  animation: loader-expiry 1ms 4.5s forwards;
  transition: opacity .28s ease-out;
}

.page-loader.is-complete { opacity: 0; }
.loader-name { font: 600 clamp(2.6rem, 8vw, 5rem) / 1 var(--display); }

.loader-spinner {
  width: 2rem;
  aspect-ratio: 1;
  border: 2px solid #6e907e;
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: loader-spin .75s linear infinite;
}

@keyframes loader-spin { to { transform: rotate(1turn); } }
@keyframes loader-expiry { to { visibility: hidden; } }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 5.4rem;
  column-gap: clamp(1rem, 3vw, 3.5rem);
}

.site-name {
  width: fit-content;
  text-decoration: none;
  font-weight: 750;
}

.mobile-nav-fallback { display: none; }

#site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem clamp(.85rem, 2.25vw, 2.2rem);
}

#site-nav a {
  color: var(--sage);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: .3em;
}

#site-nav a:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: 3rem;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  font-size: .9rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.header-appointment { border: 0; }
.header-appointment:hover { background: var(--sea-glass); }
.button-terracotta { background: var(--terracotta); color: #fff; }
.button-terracotta:hover { background: var(--terracotta-hover); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  min-height: clamp(31rem, 47vw, 40rem);
  margin-top: clamp(1rem, 2.4vw, 2.5rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.75rem);
  color: var(--paper);
  background: var(--pine);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-kicker { color: var(--sea-glass); }
.hero-kicker::before { content: ""; width: 1.65rem; border-top: 1px solid currentColor; }
.hero h1 {
  margin-top: .19em;
  font-size: clamp(5rem, 10.15vw, 9rem);
  line-height: .84;
  letter-spacing: -.045em;
}

.hero-specialty {
  margin-top: 1.85rem;
  margin-bottom: 1.7rem;
  color: var(--sea-glass);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.42;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.5rem; }
.hero-media { position: relative; min-width: 0; background: var(--pine-dark); }
.hero-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 52% 61%; }
.hero-media figcaption {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline-end: 1rem;
  padding: .3rem .7rem;
  background: var(--pine-dark);
  color: var(--paper);
  font-size: .825rem;
}

.text-link { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.text-link:hover { text-decoration-thickness: 2px; }
.prose { max-width: 66ch; }
.prose p + p, .prose h2 + p { margin-top: .85rem; }
.doctor-full-name { color: var(--sage); font-weight: 750; }
.introduction .intro-text + p { margin-top: 1.25rem; color: var(--sage); }
.legal { padding-block: 1.25rem; }
.legal-disclosure { border-bottom: 1px solid var(--line); }
.legal-disclosure summary { padding-block: .75rem; font-weight: 750; cursor: pointer; }
.legal-copy { padding-block: .5rem 1.5rem; }
.legal-copy h2 { font-size: clamp(1.85rem, 4vw, 3.2rem); }
.legal-copy h2:not(:first-child) { margin-top: 2rem; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: center; }
.story img { display: block; width: 100%; max-height: 23rem; aspect-ratio: 5 / 4; height: auto; object-fit: cover; }
.story .intro-text { margin-block: 1.15rem; }

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: clamp(1.25rem, 4vw, 3.5rem);
  border-block: 1px solid var(--line);
}
.proof > div { padding: 1.35rem clamp(.8rem, 3vw, 2.25rem); }
.proof > div + div { border-inline-start: 1px solid var(--line); }
.proof strong { display: block; font: 600 clamp(1.65rem, 3vw, 2.5rem) / 1.08 var(--display); }
.proof span, .proof a { display: inline-block; margin-top: .4rem; color: var(--sage); }

.section { padding-block: clamp(3.5rem, 7.5vw, 7.25rem); }
.section-intro, .experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(1.6rem, 5vw, 6rem);
  align-items: start;
}

.intro-text { font: 600 clamp(1.5rem, 2.75vw, 2.55rem) / 1.18 var(--display); }

.profile-grid, .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid { margin-top: clamp(2.5rem, 5vw, 4.5rem); border-block: 1px solid var(--line); }
.profile-grid article { padding: 1.5rem min(2rem, 3vw) 1.75rem 0; }
.profile-grid article + article { border-left: 1px solid var(--line); padding-left: min(2rem, 3vw); }
.profile-grid p, .credentials li, .service-grid p, .timeline h3 + p { color: var(--sage); }
.profile-grid p, .service-grid p { margin-top: .6rem; }

.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: var(--line);
  border: 1px solid var(--line);
}

.credentials article { padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--paper); }
.credentials h3 { font: 600 clamp(1.7rem, 3vw, 2.7rem) / 1 var(--display); }
.credentials ul { margin-top: 1rem; padding-left: 1.25rem; }
.credentials li + li { margin-top: .65rem; }
.credentials li::marker { color: var(--terracotta); }

.services { background: var(--sea-glass); }
.service-grid { gap: 0 clamp(1rem, 3.5vw, 3.5rem); margin-top: clamp(1.6rem, 4vw, 3.5rem); }
.service-grid article { padding-block: 1.5rem 2rem; border-top: 1px solid #b5c5b8; }
.service-grid h3 { font: 600 clamp(1.55rem, 2.75vw, 2.45rem) / 1.04 var(--display); }
.service-detail { margin-top: .45rem; }
.service-detail summary { min-height: 2.75rem; width: fit-content; padding-block: .6rem; cursor: pointer; font-weight: 750; }
.service-detail summary:hover { text-decoration: underline; }
.related-services { margin-top: .7rem; padding-inline-start: 1.15rem; }

.timeline { padding: 0; list-style: none; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 8.4rem 1fr;
  gap: 1rem;
  padding: 1.2rem 0 1.2rem 1.05rem;
  border-bottom: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -.25rem;
  inset-block-start: 1.7rem;
  width: .45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--terracotta);
}

.experience > div { border-top: 1px solid var(--line); }
.period { color: var(--terracotta); font-size: .875rem; font-weight: 750; }
.timeline h3 + p { margin-top: .35rem; }


.profiles { border-top: 1px solid var(--line); }
.profile-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.25rem, 4vw, 3rem);
  padding: 1px;
  list-style: none;
  background: var(--line);
}
.profile-links a {
  display: grid;
  align-content: center;
  min-height: 100%;
  gap: .35rem;
  padding: 1.15rem clamp(.85rem, 3vw, 1.65rem);
  color: var(--pine);
  background: var(--paper);
  text-decoration: none;
}
.profile-links a:hover { background: var(--sea-glass); }
.profile-links :focus-visible { outline-offset: -4px; }
.profile-links span { color: var(--sage); }

.appointment { background: var(--pine); color: var(--paper); }
.appointment-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.appointment p { margin-top: 1rem; color: var(--sea-glass); max-width: 25rem; }
.visit-details { padding-top: 1.25rem; border-top: 1px solid #7e998b; }
.visit-details address { margin-top: .35rem; font-style: normal; }
.visit-details .contact-note { font-size: .95rem; }
.phone {
  display: inline-block;
  margin-block-start: 1.7rem;
  color: var(--paper);
  font: 600 clamp(2.05rem, 4.5vw, 4rem) / 1 var(--display);
  letter-spacing: -.024em;
  text-decoration-color: #a8b9ab;
  text-underline-offset: .2em;
  white-space: nowrap;
}

.site-footer { padding-block: 1.2rem; background: var(--pine-dark); color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .2em; }

.back-to-top, .menu-toggle {
  display: grid;
  place-items: center;
  inline-size: 2.875rem;
  block-size: 2.875rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  color: inherit;
  background: transparent;
}

.back-to-top { border: 0; }
.back-to-top:hover { background: var(--paper); color: var(--pine); }

@media (prefers-reduced-motion: no-preference) {
  .will-reveal {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity .85s ease-out, transform .95s cubic-bezier(.2, .7, .25, 1);
  }
  .revealed, .will-reveal:focus-within, .will-reveal:target { opacity: 1; transform: none; }
  .button, .profile-links a, .back-to-top { transition: background-color .18s ease-out, border-color .18s ease-out; }
}

.lift-icon {
  position: relative;
  width: 1.125rem;
  height: 1.1rem;
  border-top: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center bottom / 2px .7rem no-repeat;
}

.lift-icon::before {
  content: "";
  position: absolute;
  inset-block-start: .25rem;
  inset-inline-start: 50%;
  width: .55rem;
  height: .55rem;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 61rem) {
  .header-inner { min-height: 4.5rem; }
  .header-appointment { display: none; }
  #site-nav { justify-content: flex-end; }
}

@media (max-width: 52rem) {
  :root { --content-gutter: 24px; }
  .header-inner { position: relative; grid-template-columns: minmax(0, 1fr) auto; }
  .header-inner .site-name { padding-block: .75rem; }
  .menu-toggle { grid-column: 2; padding: 0; cursor: pointer; }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--sea-glass); }

  .menu-icon {
    position: relative;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
  }

  .menu-icon::before, .menu-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    transform: translateY(-6px);
  }

  .menu-icon::after { transform: translateY(6px); }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }

  #site-nav { display: none; }
  .header-inner > noscript { grid-column: 1 / -1; }
  .mobile-nav-fallback { display: grid; }
  #site-nav a, .mobile-nav-fallback a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: .65rem .9rem;
    color: var(--pine);
    font-size: 1rem;
    text-decoration: none;
  }
  #site-nav a + a, .mobile-nav-fallback a + a { border-top: 1px solid var(--line); }
  #site-nav a:hover, #site-nav a:focus-visible, .mobile-nav-fallback a:focus-visible { background: var(--sea-glass); }
  #site-nav a:focus-visible, .mobile-nav-fallback a:focus-visible { outline-offset: -4px; }
  [data-menu-open="true"] #site-nav {
    display: grid;
    justify-content: stretch;
    gap: 0;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    max-block-size: 70dvh;
    overflow: auto;
    padding: .25rem .5rem;
    border: 1px solid var(--line);
    border-radius: .25rem;
    background: var(--paper);
    box-shadow: 0 .65rem 1.5rem #10292326;
  }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .hero-content { padding: clamp(1.6rem, 6vw, 3.25rem); }
  .hero h1 { font-size: clamp(4.15rem, 16vw, 7.4rem); }
  .hero-media { max-height: 25rem; aspect-ratio: 16 / 10; }
  .hero-media img { object-position: center 68%; }
  .section-intro, .experience, .appointment-grid, .story { grid-template-columns: 1fr; }
  .story img { grid-row: 2; max-height: 16rem; }
  .credentials { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 33rem) {
  :root { --content-gutter: 16px; }
  .profile-grid, .service-grid, .proof, .profile-links { grid-template-columns: 1fr; }
  .profile-grid article, .profile-grid article + article { padding: 1.15rem 0; }
  .profile-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .proof > div { padding: .85rem 0; }
  .proof > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .service-grid article { padding-block: 1rem 1.25rem; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; }
  .footer-links { order: 1; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-spinner { animation: none; }
  .page-loader { transition: none; }
}
