/* ============================================================
   JOSEPH BOBAY — BASE
   Resets, body, typography defaults, utilities.
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- SELECTION ---------------------------------------------- */
::selection {
  background: var(--forest);
  color: var(--on-forest);
}

/* --- SCROLLBAR ---------------------------------------------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: var(--border-md);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--stone); }

/* --- FOCUS -------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* --- ELEMENTS ----------------------------------------------- */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol { list-style: none; }

/* Heading reset — display/weight applied per class */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* --- SKIP LINK ---------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--side-pad);
  background: var(--forest);
  color: var(--on-forest);
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0 0 var(--r-md) var(--r-md);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}
