/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--c-text-primary);
  background-color: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none; /* replaced by custom cursor */
}

/* Restore cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
}

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

img {
  height: auto;
  vertical-align: middle;
}

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

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

@media (hover: none) and (pointer: coarse) {
  button { cursor: pointer; }
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-semi);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

p {
  line-height: var(--lh-relaxed);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--c-border-focus);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Selection */
::selection {
  background: rgba(232,223,208,0.15);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--c-border-hover);
  border-radius: 2px;
}
