/* Element defaults: typography, links, focus, and shared text styles. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--size-step-0);
  line-height: 1.65;
  overflow-wrap: break-word;
  text-rendering: optimizespeed;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--size-step-5);
}

h2 {
  font-size: var(--size-step-4);
}

h3 {
  font-size: var(--size-step-2);
}

h4 {
  font-size: var(--size-step-1);
}

p,
li {
  max-width: var(--measure);
}

a {
  color: var(--color-lake);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-pine);
}

:focus-visible {
  outline: 3px solid var(--color-lake);
  outline-offset: 3px;
}

strong {
  font-weight: 600;
}

hr {
  height: 1px;
  margin: var(--space-xl) 0;
  border: 0;
  background-color: var(--color-border);
}

/* Visible only to screen readers, until focused (used by the skip link). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  z-index: 100;
  padding: var(--space-2xs) var(--space-s);
  transform: translateY(-200%);
  border-radius: var(--radius);
  background-color: var(--color-pine);
  color: var(--color-white);
}

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

.lede {
  max-width: 60ch;
  color: var(--color-muted);
  font-size: var(--size-step-1);
}

.eyebrow {
  margin-bottom: var(--space-2xs);
  color: var(--color-muted);
  font-size: var(--size-step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
