/* ==========================================================================
   Lux Lipo — base: reset, type, layout, buttons, focus, reveals
   Ported from docs/character-v3.html (the approved mockup) and tokenised.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--ll-cream);
  color: var(--ll-ink);
  font-family: var(--ll-body);
  font-size: var(--ll-fs-body);
  line-height: var(--ll-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

/* ---- Fonts ---------------------------------------------------------------
   Self-hosted when the woff2 files exist; inc/enqueue.php falls back to Google
   Fonts otherwise. Manrope is one variable file across 200–800. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2-variations"),
       url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400i.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---- Headings ------------------------------------------------------------
   Instrument Serif, weight 400 always. The signature device is an italic
   coloured clause inside the heading — copper-deep on cream (5.0:1), copper
   on espresso (6.2:1). Copper itself never carries text on cream. */
h1, h2, h3, h4 {
  font-family: var(--ll-display);
  font-weight: 400;
  margin: 0;
  letter-spacing: var(--ll-tracking-heading);
  color: var(--ll-ink);
}
h1 { font-size: var(--ll-fs-h1); line-height: var(--ll-lh-tight); }
h2 { font-size: var(--ll-fs-h2); line-height: 1; }
h3 { font-size: var(--ll-fs-h3); line-height: var(--ll-lh-snug); }
h4 { font-size: 20px; line-height: 1.2; }

h1 em, h2 em, h3 em,
.ll-sub {
  font-style: italic;
  color: var(--ll-copper-deep);
}
.ll-on-dark h1 em, .ll-on-dark h2 em, .ll-on-dark h3 em,
.ll-on-dark .ll-sub,
.ll-band--dark h1 em, .ll-band--dark h2 em { color: var(--ll-copper); }

/* The italic second line. It is normally part of the heading itself; when a
   block supplies it as its own paragraph it takes the size of the heading it
   follows, never the H1 scale on its own. */
.ll-sub {
  font-family: var(--ll-display);
  font-size: var(--ll-fs-h2);
  line-height: var(--ll-lh-snug);
  letter-spacing: var(--ll-tracking-heading);
  margin: 0;
}
h1 + .ll-sub { font-size: var(--ll-fs-h1); line-height: var(--ll-lh-tight); margin-top: -.08em; }

.ll-lead, .ll-lede {
  font-size: var(--ll-fs-lede);
  line-height: 1.6;
  max-width: 620px;
  color: var(--ll-ink-soft);
}
.ll-on-dark .ll-lead, .ll-on-dark .ll-lede { color: var(--ll-on-dark-soft); }

.ll-eyebrow {
  display: block;
  font-family: var(--ll-body);
  font-size: 11px;
  letter-spacing: var(--ll-tracking-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ll-copper-deep);
}
.ll-on-dark .ll-eyebrow, .ll-band--dark .ll-eyebrow { color: var(--ll-copper); }

.ll-small, .ll-muted { font-size: 14px; color: var(--ll-ink-soft); }

/* ---- Layout -------------------------------------------------------------- */
.ll-container {
  max-width: var(--ll-content);
  margin-inline: auto;
  padding-inline: var(--ll-gutter);
  width: 100%;
}

.ll-section { padding-block: var(--ll-section-y); }
.ll-section--flush { padding-block: 0; }
.ll-section--sand, .ll-section--cream2 { background: var(--ll-sand); }

/* Dark bands carry the radial and nothing else — no grain, no drift. */
.ll-band--dark, .ll-on-dark, .ll-hero--dark {
  background: var(--ll-dark-bg);
  color: var(--ll-cream);
}
.ll-on-dark h1, .ll-on-dark h2, .ll-on-dark h3 { color: var(--ll-cream); }
.ll-on-dark p { color: var(--ll-on-dark-soft); }

/* Every grid child may shrink below its content, or a long word forces the
   document wider than the viewport (build-log defect 20: a table pushed the
   document to 534px at 390 and floated the sticky bar off-screen). */
.ll-container > *, .ll-grid > *, .ll-doors > *, .ll-clinic > *,
.ll-head > *, .ll-finder > *, .ll-everyday > *, .ll-two > *,
.ll-frame > *, .ll-hero-quiet__grid > *, .ll-split > *, .ll-privacy > *,
.ll-cost > *, .ll-doctor-block > * { min-width: 0; }

/* ---- Prose --------------------------------------------------------------- */
.ll-prose p, .ll-prose li {
  max-width: var(--ll-prose);
  color: var(--ll-ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
.ll-prose p { margin: 0 0 18px; }
.ll-prose p:last-child { margin-bottom: 0; }
.ll-prose h3 { margin: 32px 0 12px; }
.ll-prose a, .ll-section p a {
  color: var(--ll-copper-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(140, 97, 66, .35);
}
.ll-on-dark p a, .ll-on-dark .ll-prose a {
  color: var(--ll-copper-light);
  border-bottom-color: rgba(232, 204, 175, .4);
}

/* ---- Buttons -------------------------------------------------------------
   Rectangular, 2px radius, Manrope 700 / 12px / .18em uppercase, 52px tall.
   No pill, no glow, no breathe: the pass-1 button was the loudest thing on
   the page and the copper is supposed to be the quietest kind of loud. */
.ll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 52px;
  padding: 16px 28px;
  font-family: var(--ll-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ll-tracking-btn);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--ll-r);
  cursor: pointer;
  background: none;
  color: var(--ll-ink);
  transition: transform .25s var(--ll-ease), box-shadow .25s var(--ll-ease),
              background var(--ll-color-transition), color var(--ll-color-transition);
}
.ll-btn--primary { background: var(--ll-copper); color: var(--ll-espresso-deep); }
.ll-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--ll-e2); }

.ll-btn--ghost { border-color: var(--ll-rule); color: var(--ll-ink); }
.ll-btn--ghost:hover { background: var(--ll-copper-tint); border-color: var(--ll-copper); }
.ll-on-dark .ll-btn--ghost, .ll-btn--light {
  border-color: rgba(246, 243, 238, .4);
  color: var(--ll-cream);
  background: none;
}
.ll-on-dark .ll-btn--ghost:hover, .ll-btn--light:hover { background: rgba(246, 243, 238, .08); }

.ll-btn--dark { background: var(--ll-espresso); color: var(--ll-cream); }
.ll-btn--dark:hover { transform: translateY(-2px); box-shadow: var(--ll-e2); }

.ll-btn--sm { min-height: 44px; padding: 12px 20px; font-size: 11px; }
.ll-btn--lg { min-height: 52px; padding: 18px 32px; }
.ll-btn--block { width: 100%; }

/* On a phone a row of buttons is a column of full-width buttons — and the
   label wraps rather than forcing the grid track wider than the screen. A
   nowrap button's min-content width is what pushed the document to 398px and
   floated the sticky bar off the viewport. */
@media (max-width: 478px) {
  .ll-btn { width: 100%; white-space: normal; text-align: center; padding-inline: 18px; }
  .ll-btn--lg { padding-inline: 18px; }
}

.ll-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
}
.ll-cta-note {
  margin-top: 18px;
  font-size: var(--ll-fs-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ll-ink-soft);
}
.ll-on-dark .ll-cta-note { color: var(--ll-on-dark-mute); }

/* ---- Focus + skip -------------------------------------------------------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ll-focus);
  outline-offset: 3px;
}

.ll-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ll-espresso);
  color: var(--ll-cream);
  padding: 12px 20px;
}
.ll-skip:focus { left: 0; }

/* ---- Reveals ------------------------------------------------------------- */
[data-reveal], [data-r] {
  opacity: 0;
  transform: translateY(var(--ll-reveal-distance));
  transition: opacity var(--ll-reveal-duration) var(--ll-ease),
              transform var(--ll-reveal-duration) var(--ll-ease);
}
[data-reveal].is-in, [data-r].is-in, [data-r].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-r] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
