/* ==========================================================================
   Willis Collision — Base / reset / typography
   Modern, opinionated reset. Body sets the type and color baseline.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-regular);
  color: var(--c-charcoal);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--s-4);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-snug);
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}
h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
}

p {
  margin: 0 0 var(--s-4);
  max-width: 65ch;
}

a {
  color: var(--c-signal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--motion-fast) var(--easing);
}

a:hover {
  color: var(--c-signal-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-signal);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Utility class for visually-hidden but screen-reader-accessible text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--gutter-md);
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: var(--gutter-lg);
  }
}
