/* ============================================================
   ITBOOST — Base reset, typography, container, utilities.
   Mobile-first architecture.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  font-weight: 400;
  letter-spacing: var(--tracking-normal);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

svg { fill: currentColor; }

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button { cursor: pointer; }

ul, ol { list-style: none; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lead); font-family: var(--font-body); font-weight: 500; }

p { text-wrap: pretty; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: var(--z-modal);
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--accent-on);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* Container & Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

.hairline {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}
.hairline--accent { background: var(--accent-line); }

.text-dim    { color: var(--text-dim); }
.text-faint  { color: var(--text-faint); }
.text-accent { color: var(--accent); }
.accent      { color: var(--accent); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

/* Section Rhythm */
.section {
  padding-block: var(--section-pad-y);
  position: relative;
}
.section + .section,
.section--bordered {
  border-top: 1px solid var(--line);
}
.section--alt {
  background: rgba(255, 255, 255, 0.015);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  max-width: 56rem;
  margin-inline: auto;
  align-items: center;
  text-align: center;
}
.section-head--left {
  margin-inline: 0;
  align-items: flex-start;
  text-align: left;
}
.section-head--center {
  margin-inline: auto;
  align-items: center;
  text-align: center;
}
.text-center { text-align: center; }
.mx-auto     { margin-inline: auto; }
.section-head__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
}
.section-head__desc {
  color: var(--text-dim);
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  max-width: 52ch;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
