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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body, button, input, select, textarea { font-family: var(--font-body); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
button, input, select, textarea { font: inherit; }
button, summary, [role="button"] { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 740;
  line-height: .98;
  letter-spacing: -.042em;
  text-wrap: balance;
  overflow-wrap: normal;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.06; letter-spacing: -.03em; }
h4 { font-size: var(--step-1); line-height: 1.15; }
p, ul, ol, dl { margin: 0 0 1.15em; }
ul, ol { padding-inline-start: 1.25rem; }
small { font-size: var(--step--1); }
::selection { color: var(--ink); background: var(--sun); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.screen-reader-text {
  position: absolute !important;
  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 {
  z-index: 100000;
  width: auto;
  height: auto;
  padding: .8rem 1rem;
  clip: auto;
  background: var(--white);
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: .76rem .9rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgb(23 19 16 / 30%);
  border-radius: var(--radius-sm);
}

textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(20 120 111 / 15%); outline: 0; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
label > span:first-child { display: block; margin-bottom: .32rem; font-size: var(--step--1); font-weight: 760; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
