/* app/assets/stylesheets/base/reset.css
   ─────────────────────────────────────────────────────────────────────────────
   Minimal opinionated reset. Does not fight the browser — just levels it.
   ───────────────────────────────────────────────────────────────────────────── */

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

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

body {
  font-family:             var(--font-sans);
  font-size:               var(--text-base);
  line-height:             var(--leading-normal);
  color:                   var(--text-primary);
  background-color:        var(--bg-page);
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering:          optimizeLegibility;
}

/* ── Images & media ──────────────────────────────────────────────────────── */

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

/* ── Typography base ─────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family:    var(--font-serif);
  font-weight:    700;
  line-height:    var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color:          var(--text-primary);
}

p {
  line-height: var(--leading-normal);
}

a {
  color:           var(--link-color);
  text-decoration: underline;
  text-underline-offset: 0.1em;
  transition:      color var(--transition-fast);
}

a:hover {
  color: var(--link-hover);
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

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

/* ── Lists ───────────────────────────────────────────────────────────────── */

ul, ol {
  list-style: none;
}

/* ── Form elements ───────────────────────────────────────────────────────── */

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

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

/* ── Tables ──────────────────────────────────────────────────────────────── */

table {
  border-collapse: collapse;
  width:           100%;
}

/* ── HR ──────────────────────────────────────────────────────────────────── */

hr {
  border:     none;
  border-top: var(--border-width) solid var(--border-color);
  margin:     var(--space-6) 0;
}

/* ── Focus ───────────────────────────────────────────────────────────────── */

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

/* ── Scrollbar (webkit) ──────────────────────────────────────────────────── */

::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-gray-100); }
::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 3px; }
