/* ============================================================
   02 BASE ,  Son Altesse
   Reset, document defaults, base typography, focus, links.
   ============================================================ */

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

* {
  margin: 0;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* --- Headings --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-black);
  text-wrap: balance;
}

h2 {
  font-size: var(--text-4xl);
  line-height: var(--leading-snug);
}

h3 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Focus: piment ring, accessible --- */
:focus-visible {
  outline: var(--border-bold) solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--piment);
  color: var(--paper);
}

/* --- Shared eyebrow label (mono, uppercase) --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--leaf);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: var(--border-bold);
  background:  var(--leaf);
}

.eyebrow.on-ink {
  color: var(--piment);
}

.eyebrow.on-ink::before {
  background: var(--piment);
}

.eyebrow.on-leaf {
  color: var(--leaf);
}

.eyebrow.on-leaf::before {
  background: var(--leaf);
}

/* --- Visually hidden (a11y) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive headings --- */
@media (max-width: 820px) {
  h2 {
    font-size: clamp(1.8rem, 5vw, var(--text-3xl));
  }

  h3 {
    font-size: clamp(1.4rem, 4vw, var(--text-xl));
  }

  h4 {
    font-size: var(--text-lg);
  }
}

@media (max-width: 600px) {
  h2 {
    font-size: clamp(1.5rem, 6vw, var(--text-2xl));
  }

  h3 {
    font-size: clamp(1.2rem, 4.5vw, var(--text-lg));
  }
}
