/* ============================================================
   KUARS – Reset & Base
   Modern CSS reset + base typography
   ============================================================ */

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

/* Core body */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography reset */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: var(--fw-black);
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

p { margin: 0; }

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

a:focus-visible {
  outline: 3px solid var(--color-purple);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 3px solid var(--color-purple);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

/* Skip link – accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  background: var(--color-purple);
  color: white;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  z-index: 9999;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* Divider */
.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--sp-6) 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus ring on interactive elements */
:focus-visible {
  outline: 3px solid var(--color-purple);
  outline-offset: 3px;
}
