/* ============================================================
   CODISE-IT | reset.css
   Modern CSS reset + base element styles
   ============================================================ */

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

/* Root */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Body */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.02em; }
h5 { font-size: 0.95rem; letter-spacing: 0; font-weight: 700; }
h6 { font-size: 0.85rem; letter-spacing: 0; font-weight: 700; }

p {
  color: var(--muted);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

input, select, textarea {
  outline: none;
}

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

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--pri);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Selection */
::selection {
  background: rgba(108, 99, 255, 0.18);
  color: var(--text);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
