/* ==========================================================================
   ByteNana Design System — BASE
   Reset, element typography, layout primitives, utilities.
   Load AFTER tokens.css, BEFORE components.css.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--navbar-height);   /* anchor links clear the fixed nav */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
textarea { resize: vertical; }

/* --- Element typography -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl);  }
h4 { font-size: var(--text-lg);  }

p { color: var(--color-text-muted); line-height: 1.7; }

/* <em> is repurposed as an inline brand highlight (not italic) */
em { font-style: normal; font-weight: 700; color: var(--color-primary); }

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

section { padding: var(--space-24) 0; }

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 660px;
  margin-top: var(--space-4);
  line-height: 1.7;
}

/* Yellow uppercase kicker above a heading */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

/* Dim, quiet section index label */
.section-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
}

/* --- Utilities ----------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   RESPONSIVE TYPE — mobile first
   ========================================================================== */
@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
}
@media (min-width: 1024px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-4xl); }
}
