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

  * {
    margin: 0;
  }

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

  body {
    min-height: 100vh;
    min-height: 100dvh;
  }

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

  img {
    height: auto;
  }

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

  button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  a {
    color: inherit;
  }

  :where(ul, ol)[role="list"] {
    list-style: none;
    padding: 0;
  }

  table {
    border-collapse: collapse;
  }

  [hidden] {
    display: none !important;
  }
}

@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--space-4));
    /* Keeps the layout from shifting when the mobile menu locks scrolling. */
    scrollbar-gutter: stable;
    background: var(--bg);
  }

  body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1,
  h2,
  h3,
  h4 {
    color: var(--text-strong);
    font-weight: 700;
    line-height: var(--lh-snug);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
  }

  p {
    text-wrap: pretty;
  }

  strong {
    font-weight: 600;
    color: var(--text-strong);
  }

  a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }

  code,
  kbd,
  samp {
    font-family: var(--font-mono);
    font-size: 0.92em;
  }

  ::selection {
    background: var(--color-blue-600);
    color: var(--color-white);
  }

  :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
  }

  :focus:not(:focus-visible) {
    outline: none;
  }

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

  .skip-link {
    position: fixed;
    top: var(--space-3);
    left: var(--space-3);
    z-index: var(--z-skip);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-pill);
    background: var(--color-ink-900);
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    translate: 0 -200%;
    transition: translate var(--dur-2) var(--ease-out);
  }

  .skip-link:focus-visible {
    translate: 0 0;
  }

  .icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .icon--fill {
    fill: currentColor;
    stroke: none;
  }

  .icon--sm {
    width: 1.125rem;
    height: 1.125rem;
  }

  .icon--lg {
    width: 2rem;
    height: 2rem;
  }
}
