/* ═══════════════════════════════════════════════════════════════
   LoveCats — Modern CSS Reset
   ═══════════════════════════════════════════════════════════════ */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  /* Prevents blank overscroll area on macOS rubber-band scrolling */
  background-color: var(--c-bg);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-text-1);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  transition:
    background-color var(--dur-slow) var(--ease-out),
    color var(--dur-slow) var(--ease-out);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--c-text-1);
}

/* Ensure [hidden] always wins even when author styles set display: flex/grid/block */
[hidden] { display: none !important; }

p { max-width: 68ch; }

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

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

img { height: auto; }

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

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

textarea { resize: vertical; }

ul, ol { list-style: none; }

fieldset { border: none; }

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

/* Scrollbar */
::-webkit-scrollbar          { width: 8px; height: 8px; }
::-webkit-scrollbar-track    { background: var(--c-surface); }
::-webkit-scrollbar-thumb    { background: var(--c-surface-high); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); }

::selection {
  background: var(--c-primary-dim);
  color: var(--c-primary);
}

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