/* Base — reset and element defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: var(--fw-heading);
  color: var(--color-teal-950);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); }
h6 { font-size: var(--fs-h6); line-height: var(--lh-h6); }

:lang(en) h1,
:lang(en) h2 {
  letter-spacing: var(--ls-heading-en);
}

p {
  margin: 0;
}

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

a {
  color: var(--color-teal-700);
}

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

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

mark {
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-teal-700);
  outline-offset: 2px;
}

.on-dark :focus-visible {
  outline-color: var(--color-teal-300);
}

.skip-link {
  position: absolute;
  top: var(--space-16);
  left: var(--space-16);
  z-index: var(--z-modal);
  padding: var(--space-12) var(--space-20);
  border-radius: var(--radius-pill);
  background: var(--color-teal-950);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

html.is-locked {
  overflow: hidden;
}
