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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-regular);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-surface);
  font-synthesis: style;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-width: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

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

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

.container {
  /* Figma 1440: content = 1280; page-pad only shrinks below that (not inside max-width). */
  width: min(100% - (2 * var(--page-pad)), var(--page-max));
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: 0;
  min-width: 0;
}

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

.is-hidden {
  display: none !important;
}

.u-italic {
  font-style: italic;
  font-weight: 500;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
