/* reset.css -- minimal cross-browser normalization */

/* Alpine.js x-cloak directive: hides elements until Alpine initializes and
   removes the attribute. Without this rule, elements with x-cloak would briefly
   flash raw template syntax (x-text, x-show bindings) before Alpine processes them.
   Must be loaded before any page JS to prevent FOUC (flash of unstyled content).
   See: https://alpinejs.dev/directives/cloak */
[x-cloak] { display: none !important; }

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: white;
}
