:root {
  color-scheme: light dark;
  --page: #f9fbf6;
  --ink: #18362d;
  --muted: #415d52;
  --band: #eef5e9;
  --surface: #fff;
  --line: #839b8f;
  --action: #205a47;
  --on-action: #fff;
  --art: #e6f2de;
  --heading: Georgia, 'Times New Roman', serif;
  --body: system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; --page: #14231e; --ink: #ecf6ea; --muted: #c1d4c8; --band: #1e3229; --surface: #243a30; --line: #819b8d; --action: #bfe8cd; --on-action: #132d22; --art: #d6e9cf; }
}
:root[data-theme="dark"] { color-scheme: dark; --page: #14231e; --ink: #ecf6ea; --muted: #c1d4c8; --band: #1e3229; --surface: #243a30; --line: #819b8d; --action: #bfe8cd; --on-action: #132d22; --art: #d6e9cf; }
:root[data-theme="light"] { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.65 var(--body); }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2 { font-family: var(--heading); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2.15rem, 4.5vw, 4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: .5rem; }
p, dd { color: var(--muted); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.wrap { width: min(100% - 2.25rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; left: 1rem; top: 1rem; padding: .5rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead, .brand, nav { display: flex; align-items: center; }
.masthead { padding-block: .85rem; gap: .75rem 1.25rem; flex-wrap: wrap; }
.brand { gap: .6rem; margin-right: auto; line-height: 1.1; text-decoration: none; }
.brand img { border-radius: 50%; }
nav { gap: .75rem; font-size: .9rem; }
nav a { padding-block: .5rem; }
#theme { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 50%; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; }
.hero { display: grid; margin-block: 1rem 0; border: 1px solid var(--line); border-radius: 1.5rem; overflow: hidden; background: var(--band); }
.hero-copy { padding: clamp(1.4rem, 5vw, 4rem); align-self: center; }
.kicker { font-size: .83rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.intro { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 42ch; }
.hero-art { display: grid; place-items: center; background: var(--art); overflow: hidden; }
.hero-art img { width: min(69%, 26rem); margin-block: .5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: .6rem; text-decoration: none; font-weight: 650; background: var(--surface); }
.button:hover { text-decoration: underline; }
.primary { color: var(--on-action); background: var(--action); border-color: transparent; }
.section { padding-block: clamp(3rem, 7vw, 5.75rem); }
.doctor, .resource, .visit { display: grid; align-items: start; gap: 1.7rem; }
.doctor { align-items: center; }
.portrait { background: var(--band); border: 1px solid var(--line); border-radius: 1rem; min-height: 14rem; display: grid; place-content: center; justify-items: center; padding: 1rem; text-align: center; }
.portrait img { width: 6rem; border-radius: 50%; }
.portrait p { margin: .6rem 0 0; font-size: .9rem; }
.band { background: var(--band); }
.services, .steps { display: grid; gap: .85rem; }
.services article, .steps li, .visit > div { border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); padding: 1.25rem; }
.services p, .steps p { margin-bottom: 0; }
.steps { padding: 0; margin: 0; list-style-position: inside; }
.steps h3 { display: inline; }
.steps p { margin-top: .5rem; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; padding: .8rem .2rem; }
address { font-style: normal; }
dt { font-weight: 650; }
dd { margin: 0 0 .75rem; }
.phones { list-style: none; margin: 0; padding: 0; }
.phones a { display: inline-flex; min-height: 44px; align-items: center; }
.footer { border-top: 1px solid var(--line); padding-block: 1.25rem calc(6.5rem + env(safe-area-inset-bottom)); }
.footer p { margin-block: .5rem; }
.mobile-actions { position: fixed; z-index: 2; inset: auto 0 0; background: var(--page); border-top: 1px solid var(--line); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
html { scroll-padding-bottom: 6rem; }
@media (min-width: 36rem) {
  .services, .visit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.4fr 1fr; }
  .doctor { grid-template-columns: 1fr 1.45fr; gap: clamp(2rem, 6vw, 6rem); }
  .resource { grid-template-columns: 1fr 1.25fr; gap: 4rem; }
  .steps, .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobile-actions { display: none; }
  .footer { padding-bottom: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
