/* ============================================================
   JOLIE WEBDESIGN — Modern CSS Reset
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first last;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--c-text);
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: inherit;
  text-wrap: balance;
}

p {
  max-width: 70ch;
  overflow-wrap: break-word;
}

p + p {
  margin-top: var(--sp-4);
}

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

strong { font-weight: var(--weight-bold); }
em { font-style: italic; }

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

picture { display: contents; }

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

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

input, textarea {
  outline: none;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--sp-8));
}

::selection {
  background: rgba(var(--c-accent-rgb), 0.2);
  color: var(--c-text);
}

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