/* Reset, typography and layout primitives.
   Component styling lives in components.css and the per-page stylesheets. */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchored sections must clear the sticky header. */
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Every <img> in this project ships width/height attributes; this keeps the
   rendered box in the right aspect ratio while the file is still downloading,
   which is what holds CLS at ~0. */
img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

p,
li,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  /* 400, not 600: every reference salon site sets its display face at 300-400.
     A heavy high-contrast serif reads as a template, not as editorial. */
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  line-height: var(--lh-tight);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
  font-family: var(--font-body);
  font-weight: 500;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--plum-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--plum-700);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* ---- focus ------------------------------------------------------------- */
/* One visible ring for everything, ≥3:1 against both --paper and --plum-100. */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ---- layout primitives -------------------------------------------------- */

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.shell--narrow {
  width: min(100% - var(--gutter) * 2, var(--shell-narrow));
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
}

.section {
  padding-block: var(--space-3xl);
}

.section--tight {
  padding-block: var(--space-2xl);
}

.section--tinted {
  background: var(--blush-100);
}

.section--sunken {
  background: var(--surface-sunken);
}

.stack > * + * {
  margin-block-start: var(--flow, var(--space-md));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* ---- utilities ---------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  z-index: var(--z-toast);
  inset-inline-start: var(--space-md);
  inset-block-start: -100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-float);
  text-decoration: none;
  transition: inset-block-start var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  inset-block-start: var(--space-md);
}

main:focus {
  outline: none;
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: var(--measure);
}

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

[hidden] {
  display: none !important;
}
