*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--ag-header-height) + var(--ag-space-5));
}

body {
  margin: 0;
  color: var(--ag-color-text);
  background: var(--ag-color-white);
  font-family: var(--ag-font-sans);
  font-size: 1rem;
  font-weight: var(--ag-weight-regular);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-is-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--ag-weight-semibold);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 5.25rem);
}

h2 {
  font-size: clamp(1.875rem, 4.4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

::selection {
  color: var(--ag-color-white);
  background: var(--ag-color-charcoal);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  padding: var(--ag-space-4) var(--ag-space-5);
  margin: 0;
  overflow: visible;
  clip: auto;
  color: var(--ag-color-white);
  background: var(--ag-color-black);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
