@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
  img, svg, video { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
}

@view-transition { navigation: auto; }

@layer base {
  body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--text);
    background: var(--bg);
    min-block-size: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
  }
  main { flex: 1; }
  main:focus { outline: none; }

  h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); letter-spacing: -0.02em; text-wrap: balance; }
  h1 { font-size: var(--fs-3xl); font-weight: 700; }
  h2 { font-size: var(--fs-2xl); font-weight: 700; }
  h3 { font-size: var(--fs-lg); font-weight: 600; }
  p { text-wrap: pretty; }
  a { color: var(--accent); text-underline-offset: 0.2em; }
  a:hover { color: var(--accent-strong); }
  strong { font-weight: 600; }
  ul, ol { padding-inline-start: 1.2em; }
  hr { border: 0; border-block-start: 1px solid var(--line); }

  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: var(--ring); border-radius: var(--r-sm); }

  .skip-link {
    position: absolute; inset-inline-start: var(--s-4); inset-block-start: -4rem; z-index: 100;
    background: var(--accent); color: var(--on-accent); padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
    transition: inset-block-start var(--dur) var(--ease);
  }
  .skip-link:focus { inset-block-start: var(--s-3); }

  .icon { inline-size: 1.25em; block-size: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
  .brand-mark { inline-size: 28px; block-size: 28px; }

  ::selection { background: var(--accent); color: var(--on-accent); }
}

@layer utilities {
  .sr-only { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .muted { color: var(--muted-color, var(--text-2)); }  /* dark sections set --muted-color */
  .center { text-align: center; }
  .hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }
  [hidden] { display: none !important; }
}
