/* ============================================================
   RESET.CSS — Browser Baseline
   nitishray.com / Proactive Nitish
   Modern reset. Consistent across all browsers.
   ============================================================ */


/* ── BOX MODEL ───────────────────────────────────────────── */

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


/* ── DOCUMENT ────────────────────────────────────────────── */

html {
  font-size: 100%;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  min-height: 100vh;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


/* ── TYPOGRAPHY ──────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: var(--leading-tight);
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

b, strong {
  font-weight: var(--weight-semi);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* ── LINKS ───────────────────────────────────────────────── */

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

a:not([class]) {
  text-decoration-skip-ink: auto;
}


/* ── LISTS ───────────────────────────────────────────────── */

ul, ol {
  list-style: none;
}


/* ── MEDIA ───────────────────────────────────────────────── */

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

img {
  border-style: none;
  height: auto;
}

svg {
  overflow: hidden;
  vertical-align: middle;
  fill: currentColor;
}

audio,
video {
  display: block;
}


/* ── FORMS ───────────────────────────────────────────────── */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  cursor: pointer;
  background: none;
  border: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
textarea {
  background: none;
  border: none;
  outline: none;
}

textarea {
  resize: vertical;
}

fieldset {
  border: none;
}

legend {
  display: table;
  max-width: 100%;
  white-space: normal;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}


/* ── TABLES ──────────────────────────────────────────────── */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th {
  text-align: left;
  font-weight: var(--weight-semi);
}


/* ── INTERACTIVE ─────────────────────────────────────────── */

summary {
  display: list-item;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

[hidden] {
  display: none !important;
}


/* ── ACCESSIBILITY ───────────────────────────────────────── */

/* Visible focus for keyboard users only */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ── SELECTION ───────────────────────────────────────────── */

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

::-moz-selection {
  background-color: var(--color-accent);
  color: #fff;
}
