*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* once the JS glide takes over, CSS smooth scrolling would fight the lerp loop */
html.js-glide { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--marble);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Display text carries a little extra weight so the high-contrast thins hold up
   against the light marble ground. */
.score, .manifest-line { font-weight: 600; }
.price-name, .foot-name, .strip-item { font-weight: 500; }

/* small-caps gold label — the connective typographic device */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.label-on-dark { color: var(--gold-soft); }

.hairline {
  height: 1px;
  background: var(--hair);
  border: 0;
  margin: 0;
  transform-origin: left center;
}
.on-dark .hairline, .hairline-dark { background: var(--hair-dark); }

/* the only link hover in the system: a gold rule wiping in from the left */
.link-wipe {
  position: relative;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 2px;
}
.link-wipe::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--d-hover) var(--ease-state);
}
.link-wipe:hover::after,
.link-wipe:focus-visible::after { transform: scaleX(1); }

/* buttons — square, thin-ruled, no radius. jewellery, not plastic */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  color: var(--charcoal);
  transition: background var(--d-hover) var(--ease-state),
              color var(--d-hover) var(--ease-state),
              border-color var(--d-hover) var(--ease-state);
}
.btn-solid { background: var(--charcoal); color: var(--marble); border-color: var(--charcoal); }
.btn-solid:hover { background: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold-soft); border-color: var(--gold); }
.btn-on-dark { color: var(--marble); border-color: color-mix(in srgb, var(--marble) 45%, transparent); }
.btn-on-dark:hover { background: var(--marble); color: var(--ink); border-color: var(--marble); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* honest labelling of anything not yet supplied by the clinic */
.placeholder-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px dashed color-mix(in srgb, var(--gold-deep) 55%, transparent);
  padding: 0.35rem 0.7rem;
}
.on-dark .placeholder-tag,
.on-navy .placeholder-tag { color: var(--gold-soft); border-color: color-mix(in srgb, var(--gold-soft) 45%, transparent); }

.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;
}
