@layer reset, tokens, base, components, sections, docs;

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

  html {
    scroll-behavior: smooth;
  }

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

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

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

@layer base {
  :root {
    color-scheme: light;
    font-family: var(--font-family-body);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
  }

  body {
    min-width: 20rem;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family-body);
    font-size: var(--font-size-2);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-copy);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .vt-display {
    color: inherit;
    font-family: var(--font-family-display);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
  }

  h1,
  .vt-type-h1 {
    font-size: var(--font-size-8);
    line-height: var(--line-height-solid);
  }

  h2,
  .vt-type-h2 {
    font-size: var(--font-size-7);
    line-height: var(--line-height-tight);
  }

  h3,
  .vt-type-h3 {
    font-size: var(--font-size-6);
    line-height: var(--line-height-heading);
  }

  h4,
  .vt-type-h4 {
    font-size: var(--font-size-5);
    line-height: var(--line-height-heading);
  }

  p {
    text-wrap: pretty;
  }

  a {
    color: var(--color-link);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
  }

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

  .vt-skip-link {
    left: var(--space-4);
    padding: var(--space-3) var(--space-4);
    position: fixed;
    top: var(--space-4);
    transform: translateY(-200%);
    z-index: 1000;
  }

  .vt-skip-link:focus {
    transform: translateY(0);
  }

  .vt-container {
    margin-inline: auto;
    max-width: var(--width-content);
    padding-inline: var(--space-gutter);
    width: 100%;
  }

  .vt-container--wide {
    max-width: var(--width-wide);
  }

  .vt-flow > * + * {
    margin-block-start: var(--flow-space, var(--space-6));
  }

  .vt-section {
    padding-block: var(--space-section);
  }

  .vt-section--compact {
    padding-block: var(--space-section-sm);
  }

  .vt-section--dark {
    background: var(--color-surface-dark);
    color: var(--color-text-inverse);
  }

  .vt-section--light {
    background: linear-gradient(180deg, var(--color-paper-50), var(--color-paper-100));
    color: var(--color-text);
  }

  [data-reveal] {
    opacity: 1;
    translate: 0 0;
  }

  .js [data-reveal] {
    opacity: 0;
    translate: 0 1rem;
    transition:
      opacity var(--duration-reveal) var(--ease-emphasized),
      translate var(--duration-reveal) var(--ease-emphasized);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
  }

  .vt-visually-hidden {
    block-size: 1px;
    clip-path: inset(50%);
    inline-size: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
  }

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

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }

    .js [data-reveal] {
      opacity: 1;
      translate: none;
    }
  }
}
