/**
 * Andrea Michielan — Design System 1.0 / Scoped Foundations
 * No selectors targeting global body, headings, Elementor, header or footer.
 */
.am-site,
.am-site *,
.am-site *::before,
.am-site *::after { box-sizing: border-box; }

.am-site {
  background: var(--am-ds-bg);
  color: var(--am-ds-text);
  font-family: var(--am-ds-font-body);
  font-size: var(--am-ds-body-size);
  line-height: var(--am-ds-body-leading);
  width: 100%;
  min-width: 0;
}

.am-site :where(h1, h2, h3, h4, p, blockquote) { margin-block-start: 0; }
.am-site :where(h1, h2, h3) {
  font-family: var(--am-ds-font-display);
  color: var(--am-ds-heading);
  font-weight: 500;
  letter-spacing: -.035em;
}
.am-site h1, .am-site .am-heading--h1 { font-size: var(--am-ds-h1); line-height: 1.01; }
.am-site h2, .am-site .am-heading--h2 { font-size: var(--am-ds-h2); line-height: 1.055; }
.am-site h3, .am-site .am-heading--h3 { font-size: var(--am-ds-h3); line-height: 1.10; }
.am-site :where(h1, h2, h3, p) { overflow-wrap: break-word; }
.am-site :where(img, svg, video) { max-width: 100%; }
.am-site img { height: auto; }

.am-site :where(a) { color: var(--am-ds-link); }
.am-site :where(a:hover) { color: var(--am-ds-primary-hover); }
.am-site :where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--am-ds-focus);
  outline-offset: 4px;
}
.am-site :where(button, input, select, textarea) { font: inherit; }
.am-site :where(button) { cursor: pointer; }

.am-site .am-container {
  width: min(calc(100% - (2 * var(--am-ds-gutter))), var(--am-ds-container));
  margin-inline: auto;
  min-width: 0;
}
.am-site .am-container--narrow { max-width: var(--am-ds-container-narrow); }
.am-site .am-container--copy { max-width: var(--am-ds-container-copy); }

.am-site .am-section {
  position: relative;
  padding-block: var(--am-ds-section-space);
  background: var(--am-ds-bg);
  color: var(--am-ds-text);
}
.am-site .am-section--soft { background: var(--am-ds-mist); }
.am-site .am-section--white { background: var(--am-ds-white); }
.am-site .am-section--dark { background: var(--am-ds-ink); }

.am-site .am-eyebrow {
  color: var(--am-ds-primary);
  font-family: var(--am-ds-font-body);
  font-size: var(--am-ds-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.am-site .am-section--dark .am-eyebrow { color: var(--am-ds-sand); }
.am-site .am-lead { max-width: var(--am-ds-container-copy); font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.72; }
.am-site .am-text--muted { color: var(--am-ds-text); }
.am-site .am-text--center { text-align: center; }
.am-site .am-italic { font-style: italic; font-weight: 400; }
.am-site .am-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.am-site .am-media { overflow: hidden; border-radius: var(--am-ds-visual-radius); }
.am-site .am-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767px) {
  .am-site { --am-ds-gutter: 18px; }
  .am-site .am-container { width: calc(100% - (2 * var(--am-ds-gutter))); }
}
@media (prefers-reduced-motion: reduce) {
  .am-site, .am-site *, .am-site *::before, .am-site *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
