/* ==========================================================================
   Aurelia Textile — Base / Reset / Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500;1,9..144,600&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600&display=swap');

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
  /* Keeps text clear of the collapsed side rail without breaking the
     full-bleed section backgrounds. */
  padding-left: calc(var(--container-pad-x) + var(--rail-space));
}

/* ---- Headline type treatment -------------------------------------------- */
.heading {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--text-heading);
}

.heading em,
.heading i {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--text-accent);
}

.heading--inverse {
  color: var(--text-heading-inverse);
}

.heading--inverse em,
.heading--inverse i {
  color: var(--text-accent-inverse);
}

/* ---- Eyebrow / label style ----------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-label);
}

.eyebrow--inverse {
  color: var(--text-label-inverse);
}

/* ---- Stat numerals --------------------------------------------------------- */
.stat__number {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: var(--fs-stat-number);
  font-variant-numeric: oldstyle-nums;
  line-height: 1;
  color: var(--text-heading);
}

/* ---- Focus states ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-aubergine-900);
  outline-offset: 3px;
}

.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;
}
