/* Base volontairement scopée : envelopper la surface avec .am-scope. */

:where(.am-scope),
:where(.am-scope) *,
:where(.am-scope) *::before,
:where(.am-scope) *::after {
  box-sizing: border-box;
}

:where(.am-scope) {
  color: var(--am-color-text);
  background: var(--am-color-surface);
  font-family: var(--am-font-body);
  font-size: var(--am-text-body);
  line-height: var(--am-leading-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(.am-scope) :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
  margin: 0;
}

:where(.am-scope) :where(ul, ol) {
  margin: 0;
  padding: 0;
}

:where(.am-scope) :where(img, svg) {
  display: block;
  max-width: 100%;
}

:where(.am-scope) :where(button, input, textarea, select) {
  color: inherit;
  font: inherit;
}

:where(.am-scope) :where(strong, b, th) {
  font-weight: 600;
}

:where(.am-scope) :where(h1, h2, h3, h4, h5, h6) :where(strong, b) {
  font-weight: inherit;
}

:where(.am-scope) :where(button, a) {
  -webkit-tap-highlight-color: transparent;
}

:where(.am-scope) :where(h1, h2, h3, h4, h5, h6, .am-display) {
  color: var(--am-color-title);
  font-family: var(--am-font-display);
}

:where(.am-scope) h1,
:where(.am-scope) .am-h1 {
  font-size: var(--am-text-h1);
  font-weight: 800;
  letter-spacing: var(--am-tracking-tight);
  line-height: var(--am-leading-tight);
}

:where(.am-scope) h2,
:where(.am-scope) .am-h2 {
  font-size: var(--am-text-h2);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: var(--am-leading-title);
}

:where(.am-scope) h3,
:where(.am-scope) .am-h3 {
  font-size: var(--am-text-h3);
  font-weight: 750;
  line-height: 1.3;
}

:where(.am-scope) a {
  color: var(--am-color-link);
  text-decoration: none;
}

:where(.am-scope) a:hover {
  color: var(--am-color-primary);
  text-decoration: none;
}

:where(.am-scope) :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  border-radius: max(0.25rem, inherit);
  outline: 3px solid color-mix(in srgb, var(--am-color-focus) 45%, transparent);
  outline-offset: 3px;
}

:where(.am-scope) ::selection {
  color: var(--am-blue-900);
  background: var(--am-orange-300);
}

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

.am-container--wide {
  max-width: var(--am-container-wide);
}

.am-container--small {
  max-width: var(--am-container-small);
}

.am-display {
  font-size: var(--am-text-display);
  font-weight: 800;
  letter-spacing: var(--am-tracking-tight);
  line-height: 1;
}

.am-text-gradient {
  display: inline-block;
  color: var(--am-orange-600);
  background: var(--am-gradient-display);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-lead {
  color: var(--am-color-text-soft);
  font-size: var(--am-text-lead);
  line-height: 1.55;
}

.am-eyebrow {
  color: var(--am-blue-700);
  font-family: var(--am-font-display);
  font-size: var(--am-text-label);
  font-weight: 600;
  letter-spacing: var(--am-tracking-label);
  line-height: 1.3;
  text-transform: uppercase;
}

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

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

@media (prefers-reduced-motion: reduce) {
  :where(.am-scope) *,
  :where(.am-scope) *::before,
  :where(.am-scope) *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
