/**
 * Vibekit Reset
 * Minimal, modern CSS reset.
 */

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

/* Remove default margins */
* {
  margin: 0;
}

/* Improve text rendering */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: var(--vk-leading-normal);
  font-family: var(--vk-font-sans);
  font-size: var(--vk-text-base);
  color: var(--vk-color-text);
  background-color: var(--vk-color-bg);
}

/* Balance text wrapping on headings */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: var(--vk-color-primary);
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Remove all animations and transitions for people that prefer not to see them */
@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;
  }
}

/* Improve button defaults */
button {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

/* Remove fieldset styles */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Prevent textarea resize causing layout issues */
textarea {
  resize: vertical;
}

/* Ensure hidden attribute works */
[hidden] {
  display: none !important;
}
