/* ==========================================================================
   Luminess Med Spa, demo site stylesheet
   Direction: clinical calm. Restrained type, hairline rules, one accent.
   Sections:
     1.  Fonts
     2.  Tokens
     3.  Reset and base
     4.  Typography
     5.  Layout: container, section, split
     6.  Links and buttons
     7.  Header and navigation
     8.  Footer
     9.  Lists: hairline list and rows
     10. Media: portrait, figure, frame grid
     11. Quote
     12. Notice
     13. Forms and fields
     14. Booking: progress rail and slots
     15. Assistant panel
     16. Utilities and motion
     17. Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   Every face is self-hosted from /assets/fonts. Gretha (Envato) is the
   display serif for h1 and h2; Cormorant Garamond is the shipped fallback
   if a Gretha file ever goes missing. Voire (Envato) is an alternate display
   serif, declared but unused: swap --font-display to --font-display-alt in
   the tokens block to try it. Kross Neue Grotesk (Envato) is an optional
   body grotesk, declared but unused: swap --font-sans to --font-sans-alt.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Gretha";
  src: url("/assets/fonts/gretha-extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gretha";
  src: url("/assets/fonts/gretha-extralightitalic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gretha";
  src: url("/assets/fonts/gretha-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gretha";
  src: url("/assets/fonts/gretha-lightitalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gretha";
  src: url("/assets/fonts/gretha-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gretha";
  src: url("/assets/fonts/gretha-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Voire: alternate display serif, unused by default. */

@font-face {
  font-family: "Voire";
  src: url("/assets/fonts/voire-extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Voire";
  src: url("/assets/fonts/voire-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Voire";
  src: url("/assets/fonts/voire-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Voire Display";
  src: url("/assets/fonts/voire-display-extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Voire Display";
  src: url("/assets/fonts/voire-display-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Kross Neue Grotesk: optional body grotesk, unused by default. */

@font-face {
  font-family: "Kross Neue Grotesk";
  src: url("/assets/fonts/kross-neue-grotesk-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kross Neue Grotesk";
  src: url("/assets/fonts/kross-neue-grotesk-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kross Neue Grotesk";
  src: url("/assets/fonts/kross-neue-grotesk-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Kross Neue Grotesk";
  src: url("/assets/fonts/kross-neue-grotesk-book.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kross Neue Grotesk";
  src: url("/assets/fonts/kross-neue-grotesk-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-300italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Einer Grotesk";
  src: url("/assets/fonts/einer-grotesk-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Einer Grotesk";
  src: url("/assets/fonts/einer-grotesk-book.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Einer Grotesk";
  src: url("/assets/fonts/einer-grotesk-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Einer Grotesk";
  src: url("/assets/fonts/einer-grotesk-heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --bone: #F5F2ED;
  --porcelain: #FBFAF8;
  --linen: #E8E3DB;

  /* Text */
  --ink: #1E1C19;
  --slate: #5E5A54;
  /* Ash carries the small 11px to 12px labels: eyebrows, form labels, list titles.
     Darkened from the original #8B867E, which only reached 3.24:1 on bone and
     2.83:1 on linen. This value clears the 4.5:1 AA threshold on all three
     surfaces: 5.25:1 on bone, 5.62:1 on porcelain, 4.59:1 on linen. */
  --ash: #69645D;

  /* Accent */
  --garnet: #5A2231;
  --garnet-hover: #421823;
  --garnet-on-dark: #D9B3BC;

  /* Dark band */
  --deep: #2A2622;

  /* Type */
  --font-sans: "Einer Grotesk", system-ui, sans-serif;
  --font-display: "Gretha", "Cormorant Garamond", Georgia, serif;
  /* Alternates on disk, unused by default. To try one, point the token above
     at the alternate, for example --font-display: var(--font-display-alt). */
  --font-sans-alt: "Kross Neue Grotesk", system-ui, sans-serif;
  --font-display-alt: "Voire", "Cormorant Garamond", Georgia, serif;

  /* Rhythm */
  --max: 1200px;
  --gutter: 48px;
  --section-y: 112px;
  --radius: 2px;

  /* Spacing scale, 8px grid */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 56px;
  --s7: 72px;
  --s8: 96px;
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

figure {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--linen);
  margin: var(--s6) 0;
}

::selection {
  background: var(--linen);
  color: var(--ink);
}

/* Focus ring, sitewide */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--garnet);
  outline-offset: 2px;
}

.section--dark a:focus-visible,
.section--dark button:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.section--accent a:focus-visible,
.section--accent button:focus-visible {
  outline-color: var(--garnet-on-dark);
}

/* Skip link, visible only on focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--garnet);
  color: var(--bone);
  padding: var(--s2) var(--s3);
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
}

.skip-link:focus {
  left: var(--s2);
  top: var(--s2);
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s3);
  color: var(--ink);
}

h1,
.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 var(--s3);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  margin: 0 0 var(--s3);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--slate);
  max-width: 60ch;
}

.small {
  font-size: 14px;
  line-height: 1.55;
}

.muted {
  color: var(--slate);
}

.measure {
  max-width: 60ch;
}

/* Prose, for editorial blocks and journal posts */
.prose {
  max-width: 68ch;
}

.prose p {
  margin: 0 0 var(--s3);
}

.prose h2 {
  margin-top: var(--s7);
}

.prose h3 {
  margin-top: var(--s5);
  margin-bottom: var(--s2);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--s3);
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: var(--s1);
}

.prose blockquote {
  margin: var(--s5) 0;
  padding-left: var(--s3);
  border-left: 1px solid var(--linen);
  color: var(--slate);
}

/* Definition style sequences, used for the first visit steps */
.prose dl,
.steps {
  margin: 0;
}

.steps dt {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  margin-top: var(--s4);
}

.steps dt:first-child {
  margin-top: 0;
}

.steps dd {
  margin: var(--s1) 0 0;
  color: var(--slate);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + (var(--gutter) * 2));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  border-top: 1px solid var(--linen);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--flush {
  border-top: 0;
}

.section--tight {
  padding-top: var(--s7);
  padding-bottom: var(--s7);
}

.section--dark {
  background: var(--deep);
  color: var(--bone);
  border-top: 0;
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--bone);
}

.section--dark .lede,
.section--dark .muted,
.section--dark .small {
  color: #C9C3BA;
}

.section--dark .eyebrow {
  color: #A39C93;
}

.section--dark a {
  color: var(--garnet-on-dark);
  border-bottom-color: var(--garnet-on-dark);
}

.section--dark a:hover {
  color: #EBD3D9;
  border-bottom-color: #EBD3D9;
}

.section--accent {
  background: var(--garnet);
  color: var(--bone);
  border-top: 0;
}

.section--accent h1,
.section--accent h2,
.section--accent h3 {
  color: var(--bone);
}

.section--accent .lede,
.section--accent .muted,
.section--accent .small,
.section--accent .eyebrow {
  color: #E7D6DA;
}

.section--accent a {
  color: var(--bone);
  border-bottom-color: var(--garnet-on-dark);
}

/* Two column split, 5/7 by default */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s8);
  align-items: start;
}

.split--even {
  grid-template-columns: 1fr 1fr;
}

.split--wide-left {
  grid-template-columns: 7fr 5fr;
}

.stack > * + * {
  margin-top: var(--s3);
}

/* --------------------------------------------------------------------------
   6. Links and buttons
   -------------------------------------------------------------------------- */

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--garnet);
  transition: color 160ms ease, border-color 160ms ease;
}

a:hover {
  color: var(--garnet);
  border-bottom-color: var(--garnet-hover);
}

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 13px 22px;
  min-height: 46px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 1px solid var(--garnet);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--primary,
a.btn--primary {
  background: var(--garnet);
  border-color: var(--garnet);
  color: var(--bone);
}

.btn--primary:hover,
a.btn--primary:hover {
  background: var(--garnet-hover);
  border-color: var(--garnet-hover);
  color: var(--bone);
}

.btn--secondary,
a.btn--secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--secondary:hover,
a.btn--secondary:hover {
  border-color: var(--garnet);
  color: var(--garnet);
  background: transparent;
}

.btn--on-dark,
a.btn--on-dark {
  background: transparent;
  border-color: var(--bone);
  color: var(--bone);
}

.btn--on-dark:hover,
a.btn--on-dark:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.btn--small,
a.btn--small {
  padding: 8px 14px;
  min-height: 38px;
  font-size: 14px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button rows */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

/* --------------------------------------------------------------------------
   7. Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bone);
  border-bottom: 1px solid var(--linen);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 76px;
}

.brand {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 0;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand span {
  color: var(--slate);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  font-size: 15px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--garnet);
  border-bottom-color: var(--garnet);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--linen);
  border-radius: var(--radius);
  cursor: pointer;
}

/* The three bars. The :not() keeps the rule off the visually hidden label
   that sits inside the same button. */
.nav-toggle span:not(.visually-hidden) {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--deep);
  color: var(--bone);
  padding-top: var(--s8);
  padding-bottom: var(--s6);
}

.site-footer a {
  color: var(--bone);
  border-bottom: 1px solid var(--garnet-on-dark);
}

.site-footer a:hover {
  color: var(--garnet-on-dark);
  border-bottom-color: var(--garnet-on-dark);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--s6);
  padding-bottom: var(--s6);
}

.site-footer h2,
.site-footer h3 {
  color: var(--bone);
}

.site-footer__title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A39C93;
  margin: 0 0 var(--s2);
}

.site-footer address {
  font-style: normal;
  color: #C9C3BA;
  line-height: 1.7;
}

/* Slate is a bone-background colour. On the deep footer it fails contrast, so
   secondary text switches to the light neutral. */
.site-footer .muted,
.site-footer .small {
  color: #C9C3BA;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2.1;
}

.footer-compliance {
  border-top: 1px solid rgba(245, 242, 237, 0.16);
  padding-top: var(--s4);
  font-size: 14px;
  line-height: 1.6;
  color: #C9C3BA;
  max-width: 72ch;
}

.footer-compliance p {
  margin: 0 0 var(--s1);
}

.footer-note {
  margin-top: var(--s2);
  font-size: 13px;
  color: #948E86;
}

/* --------------------------------------------------------------------------
   9. Hairline list and rows
   -------------------------------------------------------------------------- */

.hairline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--linen);
}

.hairline-list > li,
.hairline-list > .row {
  border-top: 1px solid var(--linen);
}

/* Three tracks by default: name, what it is, meta. A row that also carries a
   separate .row__link gains a fourth track sized to that link. Where the row
   name is itself the link, leave .row__link out and keep three tracks. */
.row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: var(--s4);
  align-items: baseline;
  padding: var(--s4) 0;
}

.row:has(.row__link) {
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr) auto;
}

.row__name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.row__what {
  margin: 0;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
}

.row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s1);
  font-size: 14px;
  color: var(--slate);
}

.row__link {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

/* Two column variant: a short label and a line of explanation. */
.row--pair {
  grid-template-columns: 1fr 2.5fr;
  padding: var(--s3) 0;
}

/* Year plus description, used by the continuing education list. */
.row--years {
  grid-template-columns: 1fr 4fr;
  padding: var(--s3) 0;
}

.row--years .row__name {
  font-size: 16px;
  color: var(--slate);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* Group headings inside a list of treatments */
.list-group {
  margin: 0 0 var(--s6);
}

.list-group:last-child {
  margin-bottom: 0;
}

.list-group__title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 var(--s2);
}

/* --------------------------------------------------------------------------
   10. Media
   -------------------------------------------------------------------------- */

.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--porcelain);
  border: 1px solid var(--linen);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait--sticky {
  position: sticky;
  top: 108px;
}

.figure img {
  width: 100%;
  background: var(--porcelain);
  border: 1px solid var(--linen);
}

.figure figcaption {
  margin-top: var(--s2);
  font-size: 14px;
  color: var(--slate);
  max-width: 52ch;
}

.band-image {
  width: 100%;
  aspect-ratio: 8 / 5;
  max-height: 540px;
  object-fit: cover;
  background: var(--porcelain);
  border: 1px solid var(--linen);
}

/* Empty gallery frames for the results page */
.frame-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame {
  aspect-ratio: 4 / 5;
  background: var(--porcelain);
  border: 1px solid var(--linen);
  padding: var(--s3);
  display: flex;
  align-items: flex-end;
}

.frame__labels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.frame__labels li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

/* --------------------------------------------------------------------------
   11. Quote
   -------------------------------------------------------------------------- */

.quote {
  margin: 0;
  padding-top: var(--s4);
  border-top: 2px solid var(--garnet);
  max-width: 46ch;
}

.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 var(--s3);
}

.quote cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.quote-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
}

/* --------------------------------------------------------------------------
   12. Notice
   -------------------------------------------------------------------------- */

.notice {
  background: var(--porcelain);
  border: 1px solid var(--linen);
  padding: var(--s4);
  max-width: 68ch;
}

.notice p {
  margin: 0 0 var(--s2);
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice--sim .eyebrow {
  margin-bottom: var(--s2);
}

/* Plain text blocks inside a notice, for example the simulated confirmation
   email on the booking page. Wrap rather than overflow. */
.notice pre {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--slate);
}

.notice__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--s2);
}

/* --------------------------------------------------------------------------
   13. Forms and fields
   -------------------------------------------------------------------------- */

.field {
  display: block;
  margin-bottom: var(--s4);
  max-width: 46ch;
}

.field > label,
.field__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--s1);
}

input,
select,
textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--ash);
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color 160ms ease;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--garnet);
}

input::placeholder,
textarea::placeholder {
  color: var(--ash);
}

.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--slate);
}

.error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--garnet);
}

/* Radio and checkbox groups as bordered rows */
.field-group {
  border: 0;
  margin: 0 0 var(--s4);
  padding: 0;
  max-width: 46ch;
}

.field-group > legend {
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--s2);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  width: 100%;
  padding: 14px 16px;
  margin-bottom: -1px;
  border: 1px solid var(--linen);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.choice:hover {
  background: var(--porcelain);
}

.choice input {
  width: auto;
  margin-top: 5px;
  accent-color: var(--garnet);
}

.choice:has(input:checked) {
  border-color: var(--garnet);
  background: var(--porcelain);
  position: relative;
  z-index: 1;
}

.choice__text {
  display: block;
  font-size: 16px;
}

.choice__meta {
  display: block;
  font-size: 14px;
  color: var(--slate);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   14. Booking: progress rail and slots
   -------------------------------------------------------------------------- */

/* One step of the booking form. The steps share one form; only the current
   step is visible. Room above and below so the rail and the buttons breathe. */
.book-step {
  padding: var(--s3) 0 var(--s5);
  max-width: 68ch;
}

.book-step > h2 {
  margin-top: 0;
}

.book-step .btn-row {
  margin-top: var(--s4);
}

.progress-rail {
  list-style: none;
  margin: 0 0 var(--s6);
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--s2);
}

.progress-rail li {
  border-top: 1px solid var(--linen);
  padding-top: var(--s2);
  font-size: 14px;
  color: var(--slate);
}

.progress-rail li[data-state="done"],
.progress-rail li[data-state="current"] {
  border-top-color: var(--garnet);
}

.progress-rail li[data-state="current"] {
  color: var(--ink);
  font-weight: 600;
}

/* Mobile collapse: one name plus a short bar */
.progress-rail__mobile {
  display: none;
  margin: 0 0 var(--s5);
}

.progress-rail__mobile .progress-rail__name {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 var(--s2);
}

.progress-rail__track {
  height: 2px;
  background: var(--linen);
}

.progress-rail__fill {
  height: 2px;
  background: var(--garnet);
}

/* Time slots */
.slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: var(--s1);
}

.slot {
  width: 100%;
  padding: 10px 8px;
  min-height: 42px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--linen);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.slot:hover {
  border-color: var(--ink);
}

.slot[aria-pressed="true"] {
  background: var(--garnet);
  border-color: var(--garnet);
  color: var(--bone);
}

.slot[disabled] {
  color: var(--ash);
  cursor: not-allowed;
  border-color: var(--linen);
}

/* --------------------------------------------------------------------------
   15. Assistant panel
   -------------------------------------------------------------------------- */

.assist {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: var(--porcelain);
  border-left: 1px solid var(--linen);
}

.assist[hidden] {
  display: none;
}

.assist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s3) var(--s3);
  border-bottom: 1px solid var(--linen);
}

.assist__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.assist__close {
  padding: 6px 10px;
  min-height: 34px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--linen);
  border-radius: var(--radius);
  cursor: pointer;
}

.assist__close:hover {
  border-color: var(--ink);
}

.assist__log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

/* In the offline state the form is hidden, so an empty log must not hold open
   a tall blank column above the list of treatment links. */
.assist:has(.assist__form[hidden]) .assist__log:empty {
  flex: 0 0 auto;
  padding: 0;
}

.msg {
  font-size: 15px;
  line-height: 1.55;
  max-width: 92%;
}

.msg p {
  margin: 0 0 var(--s2);
}

.msg p:last-child {
  margin-bottom: 0;
}

.msg--user {
  align-self: flex-end;
  background: var(--linen);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.msg--bot {
  align-self: flex-start;
  padding-left: var(--s2);
  border-left: 1px solid var(--garnet);
}

.msg--pending {
  color: var(--slate);
}

.assist__form {
  border-top: 1px solid var(--linen);
  padding: var(--s3);
}

.assist__form textarea {
  min-height: 76px;
  background: var(--bone);
  margin-bottom: var(--s2);
}

.assist__disclaimer {
  margin: var(--s2) 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
}

.assist__offline {
  padding: var(--s3);
  border-top: 1px solid var(--linen);
}

.assist__offline[hidden] {
  display: none;
}

.assist__offline ul {
  list-style: none;
  margin: var(--s2) 0 0;
  padding: 0;
}

.assist__offline li {
  border-top: 1px solid var(--linen);
  padding: 10px 0;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   16. Utilities and motion
   -------------------------------------------------------------------------- */

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

.no-rule {
  border-bottom: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Vertical spacing utilities, on the 8px grid. */
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }

.reveal {
  opacity: 1;
}

/* The hidden starting state is only safe where a script can undo it. Without
   the scripting test, a visitor whose JavaScript never arrives reads a page
   whose sections are all still at zero opacity. A browser that does not know
   the feature skips the block and shows everything, which is the right way to
   fail. */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
  }

  .reveal.is-in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
    --section-y: 88px;
  }

  .split,
  .split--wide-left {
    gap: var(--s6);
  }

  .quote-pair {
    gap: var(--s6);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
  }

  .row,
  .row:has(.row__link) {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: var(--s3);
  }

  /* The link drops under the name rather than squeezing a fourth track. */
  .row .row__link {
    grid-column: 1 / -1;
    margin-top: var(--s1);
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-y: 64px;
  }

  .site-header__inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--linen);
    padding: var(--s2) var(--gutter) var(--s4);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li {
    border-top: 1px solid var(--linen);
  }

  .site-nav__list a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
  }

  .site-nav__cta {
    margin-top: var(--s3);
    width: 100%;
  }

  .split,
  .split--even,
  .split--wide-left {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .portrait--sticky {
    position: static;
  }

  .quote-pair {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .row {
    grid-template-columns: 1fr;
    gap: var(--s1);
    padding: var(--s3) 0;
  }

  .row--pair {
    grid-template-columns: 1fr;
  }

  .row__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s2);
  }

  .row__link {
    margin-top: var(--s1);
  }

  .frame-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s2);
  }

  .progress-rail {
    display: none;
  }

  .progress-rail__mobile {
    display: block;
  }

  .assist {
    max-width: 100%;
    border-left: 0;
  }
}

@media (min-width: 769px) {
  .frame-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .btn,
  a.btn {
    width: 100%;
  }

  .btn-row {
    align-items: stretch;
  }

  .slots {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Six labels make a frame taller than its aspect ratio, so two columns
     overflow a narrow phone. One column keeps the labels legible. */
  .frame-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .assist,
  .skip-link {
    display: none;
  }

  /* A printed page never scrolls, so a reveal that has not been tripped yet
     would come out of the printer blank. Print sees every one of them. */
  .reveal {
    opacity: 1;
    transform: none;
  }
}
