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

  html {
    scroll-behavior: smooth;
  }

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

    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
    }
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol,
  dl,
  figure,
  blockquote {
    margin: 0;
  }

  ul[class],
  ol[class] {
    padding: 0;
    list-style: none;
  }

  img,
  svg {
    display: block;
    max-inline-size: 100%;
    height: auto;
  }

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

  button {
    cursor: pointer;
  }
}

@layer base {
  html {
    background: var(--paper);
  }

  body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    min-block-size: 100dvh;
  }

  h1,
  h2,
  h3,
  .display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  h1 {
    font-size: clamp(2.15rem, 4.2vw, 3.65rem);
  }

  h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  }

  h3 {
    font-size: 1.25rem;
  }

  p + p {
    margin-block-start: 1em;
  }

  a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    background-color: transparent;
    transition: background-color 0.16s ease;
  }

  a:hover,
  a:focus-visible {
    background-color: color-mix(in srgb, var(--brass) 32%, transparent);
    text-decoration-thickness: 2px;
  }

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

  [id] {
    scroll-margin-top: 4.5rem;
  }

  .skip {
    position: absolute;
    inset-inline-start: var(--space-3);
    inset-block-start: -4rem;
    z-index: 80;
    padding: var(--space-2) var(--space-3);
    background: var(--brass);
    color: var(--plum-deep);
    text-decoration: none;
  }

  .skip:focus {
    inset-block-start: var(--space-2);
  }

  .visually-hidden {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
