/** Reset moderne, sobre, accessible. */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

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

body { min-height: 100svh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
img { font-style: italic; background-repeat: no-repeat; background-size: cover; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

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

:where(:focus-visible) {
  outline: 3px solid var(--jdj-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: rgba(var(--jdj-accent-rgb), 0.18); }
