/* Ray Aesthetics — placeholder site. System fonts and same-origin assets only (host CSP). No motion.
   Palette from Dr. Ray's flyer (2026-09-16): cream paper, black type, gold marks and rules, dusty rose
   for headlines and the call-to-action. Text colours are measured against their paper:
   rose #a3535f on cream #f9f3ee = 4.82:1; gold #7d5a2e on cream = 5.66:1; cream on a rose button =
   4.82:1; dark mode rose #d98a95 on #171412 = 7.0:1 (all AA for body text). ⚠ Rose on the deeper
   services band (#f1e7df) is only 4.35:1 — never body-size rose text there; links in .note inherit ink. */

:root {
  --paper: #f9f3ee;
  --paper-deep: #f1e7df;
  --card: #fffaf6;
  --ink: #171412;
  --ink-soft: #4a4038;
  --gold: #7d5a2e;        /* logo gold darkened for text: 5.66:1 on cream */
  --gold-bright: #b08046; /* the logo's own gold, for rules and marks */
  --rose: #a3535f;
  --on-rose: #f9f3ee;
  --rule: #e6d9c8;
  --blush: #f3e3df;
  --max: 68rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171412;
    --paper-deep: #1f1a17;
    --card: #221d19;
    --ink: #f9f3ee;
    --ink-soft: #d2c8bd;
    --gold: #c9a24a;        /* 7.64:1 on the dark paper */
    --gold-bright: #b08046;
    --rose: #d98a95;
    --on-rose: #171412;
    --rule: #3a312a;
    --blush: #2a1f1f;
    --card: #262019;         /* one step off --paper-deep so the cards keep an edge in the dark */
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", "Iowan Old Style", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 26ch; color: var(--rose); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--rose); text-wrap: balance; }
h3 { font-size: 1.2rem; }
h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.15rem; line-height: 1.2; margin: 0 0 0.35rem; }

p { margin: 0 0 1rem; }
address { font-style: normal; margin: 0 0 0.75rem; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

sup { font-size: 0.7em; line-height: 0; }
.fine { font-size: 0.9rem; color: var(--ink-soft); }
.fine a { color: inherit; }
strong { font-weight: 600; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin: 0 auto; }

/* masthead — her logo (light/dark PNG pair keyed from the flyer PDF) over a gold ornament */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead__col { display: flex; flex-direction: column; align-items: center; padding: 1.1rem 0 0.9rem; }
.brand { display: block; text-decoration: none; }
.logo { display: block; width: min(24rem, 78vw); height: auto; }
.ornament { margin: 0 0 0.5rem; color: var(--gold-bright); line-height: 0; }
.ornament svg { width: 10px; height: 10px; }

/* hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--blush) 0%, transparent 70%);
}
.flourish { display: block; width: min(17rem, 58vw); height: auto; margin: 0 auto 0.25rem; opacity: 0.9; }
.hero h1, .hero .lede, .hero .tagline { margin-left: auto; margin-right: auto; }
.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--gold);
}
.tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--gold);
  margin: 0.25rem 0 1rem;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 52ch; color: var(--ink-soft); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.cta-row--left { justify-content: flex-start; margin-top: 1rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--on-rose);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--rose);
}
.btn--ghost { background: transparent; color: var(--rose); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* before/after page */
.hero--compact { padding-bottom: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.gallery__soon { font-size: 1.1rem; max-width: 52ch; }
.gallery { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.gallery:empty { display: none; }
.pair { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold-bright); border-radius: 0.5rem; padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pair figure { margin: 0; }
.pair img { width: 100%; height: auto; display: block; border-radius: 0.25rem; }
.pair figcaption { text-align: center; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; margin-top: 0.4rem; }
.pair__label { grid-column: 1 / -1; margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* sections */
section { padding: clamp(2rem, 5vw, 3.5rem) 0; }

/* event — the flyer's gold-bordered "limited appointments" block */
.event { padding-top: 0; }
.event__card {
  border: 2px solid var(--gold-bright);
  border-radius: 0.75rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 1rem;
  background: var(--card);
}
.event__card h2 { margin-bottom: 0.75rem; }
.event__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; color: var(--ink-soft); list-style: none; padding: 0; margin: 0 0 1rem; }
.event__meta strong { color: var(--ink); }

.services { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cards {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;             /* flex, not grid: a last row with one card centres instead of orphaning left */
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.card {
  flex: 1 1 15rem;
  max-width: 24rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold-bright);
  border-radius: 0.5rem;
  padding: 1.25rem 1.25rem 0.5rem;
}
.card__icon { display: block; width: 2.75rem; height: 2.75rem; margin: 0 0 0.75rem; }
.group { color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; font-family: inherit; font-size: 0.82rem; font-weight: 600; margin: 2rem 0 0; }
.group:first-of-type { margin-top: 1.25rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; text-wrap: pretty; }
/* the two below sit AFTER .card p on purpose — same specificity, later wins */
.card .card__brands { color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1rem; margin: 0 0 0.5rem; }
.card .price { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; color: var(--ink); margin: 0 0 0.5rem; }
.cards--medical .card { flex-basis: 17rem; max-width: none; }
.note a { color: inherit; }
.note { margin-top: 1.25rem; color: var(--ink-soft); font-size: 0.95rem; }

.about__grid, .visit__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) {
  .about__grid { grid-template-columns: 2fr 3fr; gap: 3rem; align-items: start; }
  .visit__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* photos — interim stock (see the credits comment in index.html), each in the slot her own photo takes over.
   Decorative (alt=""), same-origin, WebP + JPEG pairs; cropped short on phones so the text and the call
   button stay near the top, portrait beside the text from 52rem. Dimmed a little on dark paper. */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 0.75rem; border: 1px solid var(--rule); }
.hero__photo img, .about__photo img { aspect-ratio: 16 / 9; }
.hero__grid { display: grid; gap: 1.75rem; }
.band { margin: 0; }
.band img { border-radius: 0; border: 0; height: clamp(9rem, 22vw, 15rem); }
@media (min-width: 52rem) {
  .hero--photo { text-align: left; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3.5rem; }
  .hero--photo h1, .hero--photo .lede, .hero--photo .tagline { margin-left: 0; margin-right: 0; }
  .hero--photo .flourish { width: 18rem; margin-left: 0; }
  .hero--photo .cta-row { justify-content: flex-start; }
  .hero__photo img, .about__photo img { aspect-ratio: 4 / 5; }
}
@media (prefers-color-scheme: dark) {
  .photo img { filter: brightness(0.82) saturate(0.9); }
  .band img { filter: brightness(0.62) saturate(0.85); }   /* the pale strip glares on dark paper otherwise */
}
@media print {
  :root { --paper: #fff; --paper-deep: #fff; --card: #fff; --blush: #fff; --ink: #000; --ink-soft: #333; --rule: #999; }
  .photo, .flourish, .ornament { display: none; }
  .hero { background: none; }
  .btn, .btn--ghost { background: none; color: var(--ink); border-color: var(--ink); }
  .card, .event__card, .pair { break-inside: avoid; }
}

.facts { margin: 1rem 0 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; padding-top: 0.2rem; }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts div { grid-template-columns: 1fr; gap: 0.15rem; } }

.payments p { max-width: 60ch; }
.visit { border-top: 1px solid var(--rule); }
.maps a { display: inline-block; padding: 0.35rem 0; }

/* footer */
.footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; color: var(--ink-soft); font-size: 0.9rem; text-align: center; }
.footer__row p { margin: 0 0 0.35rem; }
.footer__fine { font-size: 0.82rem; max-width: 70ch; margin-inline: auto; }
