@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
  ul[class], ol[class] { padding: 0; list-style: none; }
  img, svg, video, iframe { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
  button { cursor: pointer; }
  a { color: inherit; }
  address { font-style: normal; }
  summary { cursor: pointer; list-style: none; }
  summary::-webkit-details-marker { display: none; }
  [hidden] { display: none; }
}

@layer base {
  html { font-family: var(--font-sans); line-height: var(--lh-normal); color: var(--ink); background: var(--surface); scroll-padding-top: var(--space-8); }
  body { min-height: 100vh; display: flex; flex-direction: column; font-size: var(--fs-md); overflow-wrap: break-word; }
  main { flex: 1; }
  h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: var(--fw-semibold); line-height: var(--lh-tight); text-wrap: balance; }
  h1 { font-size: var(--fs-h1-sm); letter-spacing: -0.005em; }
  h2 { font-size: var(--fs-h2-sm); }
  h3 { font-size: var(--fs-h3-sm); line-height: var(--lh-snug); }
  h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
  strong, b { font-weight: var(--fw-semibold); }
  a { text-decoration-thickness: 0.0625em; text-underline-offset: 0.18em; transition: color var(--dur-1); }
  a:hover, a.is-hover { color: var(--brand-strong); }
  :focus-visible, .is-focus { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
  ::selection { background: var(--sponsored-bg); color: var(--ink); }

  @media (min-width: 48em) {
    h1 { font-size: var(--fs-h1); }
    h2 { font-size: var(--fs-h2); }
    h3 { font-size: var(--fs-h3); }
  }
}
