[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background-color: var(--color-paper);
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4) {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  font-stretch: var(--stretch-condensed);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-section);
}

h2 em {
  color: var(--color-accent);
  font-stretch: 100%;
  font-weight: 300;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

:where(h1, h2, h3, h4) em {
  font-weight: 400;
}

:where(p, li, figcaption, blockquote) {
  max-width: var(--measure);
  text-wrap: pretty;
}

.eyebrow {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

a {
  color: var(--color-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color var(--duration-fast) var(--ease-out),
    text-decoration-color var(--duration-fast) var(--ease-out);
}

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

a[href^="mailto:"] {
  text-decoration: none;
}

a[href^="mailto:"]:hover {
  text-decoration: underline;
}

main:focus {
  outline: none;
}

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

::selection {
  background-color: var(--color-accent);
  color: var(--color-accent-contrast);
}

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