/* Reset and global element styles. Page styles live in home.css. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
* {
  box-sizing: border-box;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 6px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1,
h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
h1 em,
h2 em {
  font-weight: 400;
}
h1 {
  font-size: clamp(66px, 6.6vw, 100px);
}
h2 {
  font-size: clamp(40px, 4.3vw, 63px);
}
h3 {
  font-family: var(--font-serif);
  font-size: 34px;
  letter-spacing: -0.035em;
  line-height: 1.13;
}
h4 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}
p {
  color: var(--color-muted);
}
[hidden] {
  display: none !important;
}
