/* ================================================================
   RESET.CSS — Global Resets & Base Element Styles
   ================================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* All corners are sharp. Always. */
* { border-radius: 0 !important; }

/* Links — brutalist honesty */
a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}

/* Selection highlight */
::selection {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

/* Scrollbar — thin, monochrome */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-hard); }

/* Global focus style */
:focus-visible {
  outline: 2px solid var(--border-hard);
  outline-offset: 2px;
}

/* HTMX loading indicator base */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Remove list styles */
ul, ol {
  list-style: none;
}

/* Images */
img {
  max-width: 100%;
  display: block;
}

/* Table base */
table {
  border-collapse: collapse;
}

/* Remove default fieldset styling */
fieldset {
  border: none;
}

/* Remove default button styling */
button {
  font-family: inherit;
  cursor: pointer;
}

/* Remove default input styling */
input, select, textarea {
  font-family: inherit;
}
