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

html {
  color-scheme: light;
  overflow-x: clip;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin-block: 0;
  color: var(--color-deep-water);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  text-wrap: pretty;
}

h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p,
ul,
ol,
dl,
blockquote,
figure {
  margin-block: 0;
}

ul,
ol {
  padding-inline-start: 1.5em;
}

a {
  color: var(--color-deep-water);
  text-decoration-color: var(--color-equipment-teal);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

a:hover {
  text-decoration-thickness: .14em;
}

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

button,
[type="button"],
[type="submit"],
[role="button"] {
  min-height: 2.75rem;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: .1875rem solid var(--color-deep-water);
  outline-offset: .1875rem;
}

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

picture {
  display: block;
}

img {
  height: auto;
}

hr {
  height: 1px;
  margin-block: 2rem;
  border: 0;
  background: var(--border-soft);
}

::selection {
  background: var(--color-steam);
  color: var(--color-deep-water);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 10000;
  top: .75rem;
  left: .75rem;
  width: auto;
  height: auto;
  padding: .7rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border-radius: var(--radius-control);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  color: var(--color-deep-water);
  font-weight: 700;
  white-space: normal;
}
