/* Teddy's Beauty & Aesthetics - Sydenham SE23
   Palette sampled from the client's own live pages, see ../_brief.md */

:root {
  --ink: #291130;
  --wine: #582b3f;
  --rose: #97596e;
  --rose-lit: #d9afc0;
  --slate: #454f5e;
  --shell: #f6f2f4;
  --paper: #ffffff;
  --line: rgba(41, 17, 48, .14);
  --line-lit: rgba(217, 175, 192, .28);

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: Karla, "Helvetica Neue", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.65 var(--body);
  letter-spacing: .003em;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.005em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.1rem); line-height: 1.02; }
h2 { font-size: clamp(1.95rem, 1.35rem + 2.5vw, 3.1rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.6rem); line-height: 1.15; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.shell {
  width: min(100% - (var(--gutter) * 2), 76rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: .85rem 1.25rem; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- shared bits ---------- */

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 .9rem;
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { max-width: 18ch; }

.section-head--split {
  display: grid;
  gap: 1.25rem clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.section-head__aside {
  font-size: .9rem;
  color: var(--slate);
  max-width: 42ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .8rem 1.6rem;
  border-radius: 3px;
  font: 700 .78rem/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--wine); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--shell); }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem clamp(1rem, 4vw, 3rem);
  min-height: 4.25rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  margin-right: auto;
}
.wordmark img { width: 34px; height: 34px; mix-blend-mode: multiply; }
.wordmark span {
  display: block;
  font-family: var(--display);
  font-size: 1.06rem;
  line-height: 1.1;
  color: var(--ink);
}
.wordmark strong { font-weight: 400; }
.wordmark em { display: block; font-size: .82rem; color: var(--rose); font-style: italic; }

.masthead__nav { display: none; gap: clamp(1.1rem, 2.4vw, 2.1rem); }
.masthead__nav a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: .5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.masthead__nav a:hover { border-bottom-color: var(--rose); color: var(--rose); }

.masthead__cta { min-height: 2.6rem; padding: .6rem 1.15rem; }

@media (min-width: 62rem) {
  .masthead__nav { display: flex; }
}

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }

.hero__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--rose); }

.lede {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0 1.25rem;
}

.hero__note {
  font-size: .88rem;
  color: var(--rose);
  border-left: 2px solid var(--rose-lit);
  padding-left: .9rem;
  max-width: 34ch;
}

.hero__portrait { margin: 0; }
.hero__portrait img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero__portrait figcaption {
  margin-top: .85rem;
  font-size: .82rem;
  color: var(--slate);
  letter-spacing: .01em;
}

@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .hero__portrait img { aspect-ratio: 5 / 6; }
}

/* ---------- proof strip ---------- */

.proof {
  background: var(--wine);
  color: var(--paper);
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

.proof__grid {
  display: grid;
  gap: 1.75rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(2, 1fr);
}

.proof__item { display: flex; flex-direction: column; gap: .3rem; }

.proof__figure {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.7rem);
  line-height: 1;
  color: var(--paper);
}

.proof__label {
  font-size: .8rem;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--rose-lit);
}

@media (min-width: 52rem) {
  .proof__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- treatments ---------- */

.treatments { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.card h3 { margin-bottom: .3rem; }
.card p { font-size: .95rem; max-width: 38ch; }

.card__from {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}

@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .cards { grid-template-columns: repeat(4, 1fr); } }

.treatments__note {
  margin-top: 1.75rem;
  font-size: .9rem;
  color: var(--slate);
}

/* ---------- price list, the signature block ---------- */

.prices { background: var(--shell); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.prices__inner { max-width: 54rem; }

.pricetable {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.pricetable thead th {
  font: 700 .72rem/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  text-align: left;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--rose);
}
.pricetable thead th:nth-child(2) { text-align: right; width: 7.5rem; }
.pricetable thead th:last-child { text-align: right; width: 7rem; }

.pricetable tbody th {
  font: 400 clamp(1.05rem, 1rem + .35vw, 1.28rem)/1.3 var(--display);
  color: var(--ink);
  text-align: left;
  padding: .95rem 1rem .95rem 0;
  border-bottom: 1px solid var(--line);
}
.pricetable tbody td {
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-size: .92rem;
  vertical-align: baseline;
  white-space: nowrap;
}
.pricetable tbody td:last-child { font-weight: 700; color: var(--ink); }
.pricetable tbody tr:last-child th,
.pricetable tbody tr:last-child td { border-bottom: 0; }

.prices__cta { margin-top: 2.5rem; }

@media (max-width: 34rem) {
  .pricetable thead { display: none; }
  .pricetable tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .pricetable tbody th { border: 0; padding: 0; grid-column: 1 / -1; }
  .pricetable tbody td { border: 0; padding: .25rem 0 0; text-align: left; font-size: .85rem; }
  .pricetable tbody td:last-child { text-align: right; font-size: .95rem; }
}

/* ---------- reviews ---------- */

.reviews {
  background: var(--ink);
  color: var(--rose-lit);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.reviews h2 { color: var(--paper); }
.reviews .eyebrow { color: var(--rose-lit); }

.quotes {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem);
  line-height: 1.35;
  color: var(--paper);
  max-width: 32ch;
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }

.quote figcaption {
  margin-top: 1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose-lit);
}
.quote figcaption span { font-weight: 400; letter-spacing: .06em; text-transform: none; }

.reviews__source {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-lit);
  font-size: .88rem;
  max-width: 52ch;
}
.reviews__source a { color: var(--paper); text-decoration-color: var(--rose); text-underline-offset: 3px; }

@media (min-width: 52rem) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- injectables note ---------- */

.safety { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.safety__inner { max-width: 44rem; }
.safety h2 { margin-bottom: 1.4rem; }
.safety p { font-size: 1rem; }
.safety__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- visit ---------- */

.visit { background: var(--shell); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.visit__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.visit h2 { margin-bottom: 2rem; }

.facts { margin: 0; display: grid; gap: 1.35rem; }
.facts dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .35rem;
}
.facts dd { margin: 0; font-size: .98rem; line-height: 1.55; }

.facts__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;      /* tap target, the link sits inside a definition list */
  margin-top: .25rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration-color: var(--rose-lit);
  text-underline-offset: 4px;
}

.visit__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.visit__images { display: grid; gap: 1rem; }
.visit__images figure { margin: 0; }
.visit__images img { width: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

@media (min-width: 56rem) {
  .visit__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .visit__images { gap: 1.25rem; }
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--rose-lit);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.footer__grid { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); }

.footer__mark {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: .6rem;
}
.footer__mark em { font-style: italic; color: var(--rose-lit); }

.footer__addr { font-size: .92rem; line-height: 1.7; }
.footer__addr a { color: var(--paper); text-decoration-color: var(--rose); text-underline-offset: 3px; }

.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-content: start; }
.footer__links a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  padding: .5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.footer__links a:hover { border-bottom-color: var(--rose-lit); }

.footer__legal {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-lit);
  font-size: .78rem;
  line-height: 1.6;
  max-width: 68ch;
  color: var(--rose-lit);
}

@media (min-width: 52rem) {
  .footer__grid { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
