/* ═══════════════════════════════════════════════════════
   STEINKERNEL SYSTEMS — Base Styles
   ═══════════════════════════════════════════════════════ */

/* ─── Font Imports ─── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

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

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

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

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

img {
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

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

ul, ol {
  list-style: none;
}

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

/* ─── Typography Base ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  color: var(--charcoal);
}

h1 { font-size: var(--text-hero); font-weight: 700; line-height: 1.12; }
h2 { font-size: var(--text-4xl); font-weight: 600; line-height: 1.18; }
h3 { font-size: var(--text-3xl); font-weight: 600; line-height: 1.25; }
h4 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.3; }
h5 { font-size: var(--text-xl); font-weight: 500; line-height: 1.35; }
h6 { font-size: var(--text-lg); font-weight: 500; line-height: 1.4; }

p {
  max-width: 65ch;
  text-wrap: pretty;
}

/* ─── Selection ─── */
::selection {
  background-color: var(--navy);
  color: var(--white);
}

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

/* ─── Scroll Bar (subtle) ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--steel);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--charcoal);
}

/* ─── Reduced Motion ─── */
@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;
  }
}

/* ─── Utility: Mono Label ─── */
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--steel);
}

/* ─── Utility: Accent Text ─── */
.text-copper { color: var(--copper); }
.text-teal { color: var(--teal); }
.text-blue { color: var(--muted-blue); }
.text-navy { color: var(--navy); }
.text-steel { color: var(--steel); }
.text-white { color: var(--white); }
.text-crimson { color: var(--strong-red); }
.text-burgundy { color: var(--deep-burgundy); }
.text-cream { color: var(--warm-cream); }

.keyword-highlight {
  color: var(--strong-red);
  font-weight: 600;
}
.section--dark .keyword-highlight {
  color: #FF6B6B;
}

/* ─── Utility: Navy Accents ─── */
.bg-navy { background-color: var(--navy); }
.bg-navy-soft { background-color: var(--navy-soft); }
.border-navy { border-color: var(--navy-border); }

/* ─── Utility: 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: 0;
}
