/* =============================================================
   BONA — Reset
   Based on Andy Bell's modern reset, tuned for Open Props.
   https://piccalil.li/blog/a-more-modern-css-reset/
   ============================================================= */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  tab-size: 2;
}

body {
  min-height: 100dvh;
  line-height: var(--line-height-normal);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-medium);
}

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

a {
  color: var(--color-accent);
  text-decoration-skip-ink: auto;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

textarea {
  resize: vertical;
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}