/* LUMEN B — THE CONSULTATION
   Tatcha / Aesop / ILIA lineage. Centred, unboxed, no grid anywhere.
   Hierarchy is carried by whitespace and a serif, not by rules or cards.

   Contrast (WCAG 2.2, computed): ink 13.78:1 · muted 5.53:1 · accent 8.01:1
   · on-accent 8.44:1 · control border 3.03:1.
   --b-line is a DECORATIVE hairline; --b-line-strong bounds controls. */

:root {
  --b-ink: #2B2320;
  --b-ground: #F6F2E9;
  --b-surface: #FCFAF4;
  --b-muted: #6B5F57;
  --b-accent: #832B2B;
  --b-on-accent: #FBF8F1;
  --b-line: #E4DCD0;
  --b-line-strong: #908B84;
  --b-radius: 6px;
  --b-pad: clamp(4.5rem, 10vw, 9rem);

  --b-display: var(--font-heading--family, Georgia, serif);
  --b-label: var(--font-subheading--family, Georgia, serif);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.b-wrap { max-width: 62rem; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.b-wrap--narrow { max-width: 44rem; }

.b-threshold, .b-consult, .b-ritual, .b-house, .b-materia, .b-testament,
.b-answered, .b-apothecary, .b-altar, .b-intention, .b-gesture,
.b-ribbon, .b-clinical, .b-tray {
  background: var(--b-ground);
  color: var(--b-ink);
  padding-block: var(--b-pad);
  text-align: center;
}

:is(.b-threshold, .b-consult, .b-ritual, .b-house, .b-materia, .b-testament, .b-answered, .b-apothecary, .b-altar, .b-ribbon, .b-tray) :is(a, button, summary, input, label):focus-visible {
  outline: 2px solid var(--b-accent);
  outline-offset: 3px;
  border-radius: var(--b-radius);
}

/* Threshold — the LCP. One line, one action. */
.b-threshold { padding-block: clamp(6rem, 16vw, 13rem); }
.b-eyebrow {
  font-family: var(--b-label); font-style: italic;
  color: var(--b-accent); font-size: 1rem; margin: 0 0 1.5rem;
}
.b-invitation {
  font-family: var(--b-display); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.2;
  letter-spacing: -0.005em; margin: 0 auto; max-width: 20ch;
  text-wrap: balance;
}

.b-h2 { font-family: var(--b-display); font-weight: 400; font-size: clamp(1.625rem, 3vw, 2.375rem); line-height: 1.25; margin: 0 0 1.25rem; text-wrap: balance; }
.b-h3 { font-family: var(--b-label); font-style: italic; font-size: 1.0625rem; color: var(--b-accent); margin: 0 0 1.25rem; }
.b-lede { max-width: 40ch; margin: 0 auto 3rem; color: var(--b-muted); line-height: 1.8; }
.b-prose { max-width: 38ch; margin-inline: auto; color: var(--b-muted); line-height: 1.85; text-align: left; }
.b-prose p { margin: 0 0 1.25rem; }
.b-signature { font-family: var(--b-label); font-style: italic; color: var(--b-muted); margin-top: 2rem; }
.b-note { color: var(--b-muted); border: 1px dashed var(--b-line-strong); border-radius: var(--b-radius); padding: 1.25rem; max-width: 44ch; margin-inline: auto; }

.b-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 2rem; margin-top: 2.5rem;
  border: 1px solid var(--b-ink); border-radius: var(--b-radius);
  background: none; color: inherit; font: inherit; font-size: 0.9375rem;
  text-decoration: none; cursor: pointer;
}
.b-cta--solid { background: var(--b-ink); color: var(--b-ground); border-color: var(--b-ink); }

/* The consultation — single-select reveal. */
.b-concerns { border: 0; margin: 0 0 3rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.b-concern {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 1.5rem;
  border: 1px solid var(--b-line-strong); border-radius: 999px;
  background: var(--b-surface); cursor: pointer; font-size: 0.9375rem;
}
.b-concern input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.b-concern:has(input:checked) { background: var(--b-accent); color: var(--b-on-accent); border-color: var(--b-accent); }
.b-concern:has(input:focus-visible) { outline: 2px solid var(--b-accent); outline-offset: 3px; }

.b-panel { display: none; }
.b-consult:has(input:checked) .b-prompt { display: none; }
.b-prompt { color: var(--b-muted); font-family: var(--b-label); font-style: italic; margin: 0; }

/* No :has()? Reveal every counsel rather than none. */
@supports not selector(:has(*)) {
  .b-panel { display: block; }
  .b-prompt { display: none; }
}

.b-panel__note { max-width: 38ch; margin: 0 auto 2rem; color: var(--b-muted); line-height: 1.8; }
.b-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 30rem; }
.b-step { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--b-line); text-align: left; }
.b-step__n { font-family: var(--b-display); color: var(--b-accent); font-variant-numeric: lining-nums; }
.b-step__body { display: flex; justify-content: space-between; gap: 1rem; }
.b-step__title { font-family: var(--b-display); color: inherit; }
.b-step__price { color: var(--b-muted); font-variant-numeric: tabular-nums; }

/* The ritual — numbered movements.
   Base state is VISIBLE. The entrance is an enhancement, never a dependency. */
.b-moves { list-style: none; margin: 0; padding: 0; }
.b-move { max-width: 34ch; margin: 0 auto; padding-block: clamp(2.5rem, 5vw, 4rem); }
.b-move + .b-move { border-top: 1px solid var(--b-line); }
.b-move__n { font-family: var(--b-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--b-accent); line-height: 1; margin: 0 0 1rem; font-variant-numeric: lining-nums; }
.b-move__title { font-family: var(--b-display); font-weight: 400; font-size: 1.5rem; margin: 0; }
.b-move__title a { color: inherit; }
.b-move__when { font-family: var(--b-label); font-style: italic; color: var(--b-muted); margin: 0.375rem 0 1rem; }
.b-move__how { color: var(--b-muted); line-height: 1.8; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .b-move {
      animation: b-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
    @keyframes b-rise {
      from { opacity: 0.001; transform: translateY(14px); }
      to { opacity: 1; transform: none; }
    }
  }
}

.b-moves--compact .b-move { max-width: none; display: grid; grid-template-columns: 2.5rem 1fr auto auto; gap: 1rem; align-items: baseline; padding-block: 1rem; text-align: left; }
.b-moves--compact .b-move__n { font-size: 1rem; margin: 0; }
.b-move--row a { color: inherit; font-family: var(--b-display); }
.b-move__here, .b-move__have { font-family: var(--b-label); font-style: italic; color: var(--b-accent); font-size: 0.875rem; }
.b-move__miss { color: var(--b-muted); font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.b-move--row.is-here { color: var(--b-accent); }
.b-move--row.is-present { opacity: 0.55; }

/* The materia */
.b-materia__list { list-style: none; margin: 0; padding: 0; }
.b-materia__item { padding-block: 2.5rem; }
.b-materia__item + .b-materia__item { border-top: 1px solid var(--b-line); }
.b-materia__name { font-family: var(--b-display); font-weight: 400; font-size: 1.375rem; margin: 0; }
.b-materia__meta { font-family: var(--b-label); font-style: italic; color: var(--b-accent); margin: 0.25rem 0 1rem; }
.b-materia__benefit { max-width: 38ch; margin: 0 auto 0.75rem; color: var(--b-muted); line-height: 1.8; }
.b-materia__inci { font-size: 0.8125rem; color: var(--b-muted); font-family: var(--b-label); font-style: italic; margin: 0; }

/* In their words */
.b-quote blockquote { font-family: var(--b-display); font-weight: 400; font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.45; margin: 0 auto 1.5rem; max-width: 26ch; }
.b-quote figcaption { font-family: var(--b-label); font-style: italic; color: var(--b-muted); }

/* Answered */
.b-faq { text-align: left; border-top: 1px solid var(--b-line); }
.b-faq details { border-bottom: 1px solid var(--b-line); }
.b-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 44px; padding: 1.5rem 0; cursor: pointer; list-style: none;
  font-family: var(--b-display); font-size: 1.125rem;
}
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary::after { content: "+"; color: var(--b-accent); }
.b-faq details[open] summary::after { content: "\2212"; }
.b-faq p { margin: 0; padding: 0 0 1.75rem; color: var(--b-muted); line-height: 1.8; max-width: 56ch; }

/* The apothecary — a list, never a grid */
.b-apothecary__list { list-style: none; margin: 0; padding: 0; text-align: left; border-top: 1px solid var(--b-line); }
.b-apothecary__list li { border-bottom: 1px solid var(--b-line); }
.b-apothecary__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.25rem 0; color: inherit; min-height: 44px; }
.b-apothecary__name { font-family: var(--b-display); font-size: 1.125rem; }
.b-apothecary__price { color: var(--b-muted); font-variant-numeric: tabular-nums; }

/* PDP — the altar. No gallery above the fold. */
.b-altar { padding-block: clamp(4rem, 9vw, 7rem) clamp(2rem, 4vw, 3rem); }
.b-altar__type { font-family: var(--b-label); font-style: italic; color: var(--b-muted); margin: 0 0 0.75rem; }
.b-altar__title { font-family: var(--b-display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.15; margin: 0; }
.b-altar__place { font-family: var(--b-label); font-style: italic; color: var(--b-accent); margin: 0.75rem 0 0; }
.b-altar__price { font-size: 1.25rem; font-variant-numeric: tabular-nums; margin: 1.75rem 0 0; }
.b-sizes ul { list-style: none; display: flex; gap: 0.5rem; justify-content: center; margin: 1.25rem 0 0; padding: 0; }
.b-size { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--b-line-strong); border-radius: 999px; color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; }
.b-size.is-current { background: var(--b-ink); color: var(--b-ground); border-color: var(--b-ink); }

.b-plate { background: var(--b-ground); padding-bottom: var(--b-pad); }
.b-plate__img { display: block; width: min(44rem, 92vw); margin-inline: auto; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--b-radius); }

.b-gesture__text { max-width: 34ch; margin-inline: auto; color: var(--b-muted); line-height: 1.85; }
.b-stat b { color: var(--b-accent); font-variant-numeric: tabular-nums; }

/* The tray */
.b-tray__lines { border-top: 1px solid var(--b-line); text-align: left; }
.b-line { display: grid; grid-template-columns: 1fr auto auto; gap: 1.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--b-line); }
.b-line__title { font-family: var(--b-display); color: inherit; font-size: 1.0625rem; }
.b-line__meta { color: var(--b-muted); margin: 0.25rem 0 0; font-size: 0.875rem; }
.b-line__total { font-variant-numeric: tabular-nums; }
.b-qty { width: 4rem; min-height: 44px; border: 1px solid var(--b-line-strong); border-radius: var(--b-radius); background: var(--b-surface); padding: 0 0.5rem; font: inherit; }
.b-tray__foot { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 2rem; }
.b-tray__sub { margin: 0 auto 0 0; font-variant-numeric: tabular-nums; }
.b-tray__foot .b-cta { margin-top: 0; }
.b-complete { margin-top: var(--b-pad); border-top: 1px solid var(--b-line); padding-top: 3rem; }
.b-complete__done { font-family: var(--b-label); font-style: italic; color: var(--b-accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
