/* ============================================================
   KING CANDY — MODERN RESET
   Basado en modern-normalize + Andy Bell reset, ajustado.
   ============================================================ */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
  scroll-padding-top: var(--kc-header-h);
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: var(--kc-lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--kc-fw-bold);
  line-height: var(--kc-lh-tight);
  text-wrap: balance;
}

p { text-wrap: pretty; }

#root, #__next { isolation: isolate; }

:focus-visible {
  outline: 2px solid var(--kc-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--kc-magenta);
  color: var(--kc-text);
}
