@layer reset, base, components, pages;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
  body, h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; }
  button, input { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
}

@layer base {
  html { background: var(--ds-surface-200); }
  body {
    min-height: 100dvh; background: var(--ds-surface-200); color: var(--ds-text-primary);
    font: 400 var(--text-body)/1.65 var(--ds-font-sans); font-variant-numeric: tabular-nums;
    text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip;
  }
  h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
  p { text-wrap: pretty; }
  ::selection { background: var(--ds-selected-surface); color: var(--ds-selected-ink); }
  :focus-visible { outline: 2px solid var(--ds-brand-primary); outline-offset: 3px; border-radius: var(--ds-radius-sm); }
  .skip-link { position: absolute; left: var(--page-gutter); top: -64px; z-index: 100; padding: 10px 16px; border-radius: var(--ds-radius-pill); background: var(--ds-brand-primary); color: var(--ds-brand-primary-text); font-weight: 500; transition: top var(--ds-motion-swift); }
  .skip-link:focus { top: 12px; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wrap { width: min(100% - 2 * var(--page-gutter), var(--page-max)); margin-inline: auto; }
  .mono { font-family: var(--ds-font-mono); }
  .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ds-text-secondary); font-size: var(--text-small); font-weight: 500; letter-spacing: .02em; }
  .eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
