/**
 * Element defaults and accessibility helpers.
 *
 * Do not add page-specific selectors here. Components belong in
 * ../components and page compositions belong in ../pages.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cp-navy-900);
  background: var(--cp-white);
  font-family: var(--cp-font-body);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-family: var(--cp-font-heading);
  line-height: 1.2;
}

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

a {
  color: var(--cp-blue-700);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--cp-blue-500);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.visually-hidden-focusable:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed !important;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  color: var(--cp-white);
  background: var(--cp-black);
  clip: auto;
}
