/* The Reed Skin Clinic - tokens from _brief.md.
   Sage #93B893 and olive #556342 are sampled from the clinic's own wordmark. */

:root {
  --surface: #FAFBF9;
  --wash: #EDF2EC;
  --ink: #28331F;
  --muted: #54634C;
  --sage: #93B893;        /* brand block, rules, dots - never behind text */
  --sage-text: #526E4B;   /* the same hue taken to AA: 5.5:1 on surface, 5.0:1 on wash */
  --olive: #3F5237;
  --pale: #C9D9C4;
  --line: #DBE4D8;

  --display: 'Albert Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Work Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gut: clamp(1.25rem, 5vw, 2.5rem);
  --measure: 64ch;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  width: min(100% - (var(--gut) * 2), 68rem);
  margin-inline: auto;
}

.sr-only {
  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(--olive); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--display); text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- sticky bar: the menu the old site never rendered ---------- */

.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 251, 249, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar__in {
  width: min(100% - (var(--gut) * 2), 68rem);
  margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}

.mark {
  font-family: var(--display);
  text-decoration: none;
  line-height: 1.1;
  display: grid;
  align-content: center;
  min-height: 44px;
  margin-right: auto;
}
.mark__the, .mark__kind {
  font-size: 0.5rem; font-weight: 400; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--muted);
}
.mark__kind { justify-self: end; }
.mark__name {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  font-weight: 200; letter-spacing: 0.16em; text-transform: uppercase;
}

.nav {
  display: flex; gap: clamp(0.9rem, 2.5vw, 1.9rem);
  font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.02em;
  order: 3; width: 100%;
  border-top: 1px solid var(--line); padding-top: 0.55rem;
}
.nav a {
  text-decoration: none; color: var(--muted);
  padding: 0.35rem 0; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); border-bottom-color: var(--sage); }

/* ---------- buttons: varied on purpose, pill only here ---------- */

.btn {
  font-family: var(--display);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 44px; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 170ms ease, color 170ms ease, border-color 170ms ease;
}
.btn--call { background: var(--wash); color: var(--ink); border-color: var(--line); white-space: nowrap; }
.btn--call:hover, .btn--call:focus-visible { background: var(--sage); border-color: var(--sage); }
.btn--solid { background: var(--olive); color: #fff; }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--muted); }
.btn--line:hover, .btn--line:focus-visible { border-color: var(--ink); background: var(--wash); }
.btn--pale { background: var(--pale); color: var(--ink); border: 0; font-size: 0.95rem; }
.btn--pale:hover, .btn--pale:focus-visible { background: #fff; }
.btn--block { width: 100%; }

/* ---------- hero: typographic, no stock photography ---------- */

.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 7vw, 4.5rem); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.4rem;
}
.eyebrow::after {
  content: ''; display: block; width: 3rem; height: 2px;
  background: var(--sage); margin-top: 1rem;
}

h1 {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
  max-width: 17ch;
}

.lede {
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: clamp(2.5rem, 6vw, 3.75rem); }

.facts {
  list-style: none; margin: 0; padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 1.1rem;
}
.facts li { font-size: 0.97rem; }
.facts span {
  display: block;
  font-family: var(--display);
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--sage-text); margin-bottom: 0.2rem;
}

/* ---------- section headings ---------- */

.sec-h {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.sec-h--light { color: #fff; }
.sec-lede { color: var(--muted); max-width: var(--measure); margin: 0 0 clamp(2rem, 5vw, 3rem); }

/* ---------- the signature element: numbered treatment index ---------- */

.treatments {
  background: var(--wash);
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-block: 1px solid var(--line);
}
.treatments .sec-lede { color: var(--muted); }

.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sage); }

.index li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.index__n {
  font-family: var(--display);
  font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--sage-text); padding-top: 0.35rem;
  grid-row: 1 / span 2;
}
.index h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  letter-spacing: -0.005em;
  margin: 0;
}
.index p { margin: 0.4rem 0 0; color: var(--muted); max-width: 58ch; }

.note {
  margin: 2.25rem 0 0; padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--sage);
  background: var(--surface);
  color: var(--muted); font-size: 0.94rem; max-width: var(--measure);
}

/* ---------- about ---------- */

.emma { padding-block: clamp(3rem, 8vw, 5.5rem); }
.emma__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.emma p { max-width: 58ch; color: var(--muted); }
.emma p:first-of-type { color: var(--ink); font-size: 1.08rem; }

.card {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 2.1rem);
  align-self: start;
}
.card h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.05rem; letter-spacing: 0.02em;
  margin: 0 0 1rem;
}
.ticks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; color: var(--muted); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--sage);
}

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

.says { padding-block: 0 clamp(3rem, 8vw, 5.5rem); }
.quotes { display: grid; gap: 1.25rem; }
.quotes figure {
  margin: 0; padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--line); border-top: 3px solid var(--sage);
  border-radius: 2px; background: #fff;
}
.quotes blockquote { margin: 0; }
.quotes blockquote p {
  margin: 0;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.45;
}
.quotes figcaption {
  margin-top: 1.1rem;
  font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted);
}
.quotes figcaption span { color: var(--sage-text); }

/* ---------- visit: the olive block ---------- */

.visit { background: var(--olive); color: #fff; padding-block: clamp(3rem, 8vw, 5.5rem); }
.visit__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

.hours { border-collapse: collapse; width: 100%; max-width: 22rem; margin: 0 0 2rem; }
.hours th, .hours td {
  text-align: left; padding: 0.62rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 400; font-size: 0.97rem;
}
.hours th { font-family: var(--display); letter-spacing: 0.02em; }
.hours td { text-align: right; }
.hours .shut, .hours .shut th { color: var(--pale); }

address {
  font-style: normal; color: var(--pale);
  padding-left: 1rem; border-left: 2px solid var(--sage);
  margin-bottom: 1.5rem;
}
/* stacked links are real tap targets here, so they get real height */
.visit__links { margin: 0; }
.visit__links a {
  color: #fff; text-underline-offset: 4px; text-decoration-color: var(--sage);
  display: inline-block; padding-block: 0.6rem; min-height: 44px;
}
.visit__links a:hover, .visit__links a:focus-visible { text-decoration-color: #fff; }

.enquire { align-self: start; }
.enquire__lede { color: var(--pale); max-width: 44ch; margin: 0 0 1.75rem; }
.field { margin: 0 0 1.1rem; display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--display); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--pale);
}
.field input, .field textarea {
  font: inherit; color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  width: 100%;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: rgba(255, 255, 255, 0.13);
}
.enquire__alt { margin: 1rem 0 0; font-size: 0.9rem; color: var(--pale); }
.enquire__alt a { color: #fff; }

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

.foot { padding-block: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px solid var(--line); }
.foot__mark {
  font-family: var(--display); font-weight: 200;
  font-size: 1.1rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.foot__meta { margin: 0 0 0.4rem; font-size: 0.9rem; color: var(--muted); }
.foot__meta a { text-underline-offset: 3px; display: inline-block; padding-block: 0.55rem; }

/* ---------- focus + motion ---------- */

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 2px;
}
.visit :focus-visible, .btn--solid:focus-visible { outline-color: var(--sage); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- breakpoints: reflow, not shrink ---------- */

@media (min-width: 48rem) {
  .nav { order: 0; width: auto; border-top: 0; padding-top: 0; margin-right: 1.5rem; }
  .bar__in { flex-wrap: nowrap; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .index li { grid-template-columns: 3.5rem 15rem 1fr; align-items: baseline; }
  .index__n { grid-row: auto; padding-top: 0; }
  .index p { margin-top: 0; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .emma__grid { grid-template-columns: 1.55fr 1fr; }
  .visit__grid { grid-template-columns: 1fr 1.15fr; }
}

@media (min-width: 64rem) {
  .index li { grid-template-columns: 4rem 18rem 1fr; padding: 1.9rem 0; }
}
