/* ============================================================
   ClearStride Tools — Base & Reset
   ============================================================ */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-dark-slate);
  background: var(--color-off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Focus Visible (Accessibility) ── */
:focus-visible {
  outline: 2px solid var(--color-docs-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Selection ── */
::selection {
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-dark-slate);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-light-slate); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-slate); }

/* ── Screen Reader Only ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Layout Containers ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-10);
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-10);
}

section {
  padding: var(--section-padding) var(--space-10);
}

/* ── Skip to Content (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-6);
  background: var(--color-dark-slate);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 0;
}
