/* ============================================================
   CODECHOMPER V2 — Base Styles
   Reset · Typography · Layout · Utilities
   ============================================================ */

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

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--spacing-xxl);
}

/* --- Typography Scale --- */
.font-headline {
  font-family: var(--font-primary);
}

.font-body {
  font-family: var(--font-secondary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: normal; /* Archivo Black is weight 400 */
  line-height: 1.1;
}

/* Fluid headline sizes */
.text-hero {
  font-family: var(--font-primary);
  font-size: clamp(56px, 6.67vw, 96px);
  line-height: 1.0;
}

.text-display {
  font-family: var(--font-primary);
  font-size: clamp(56px, 6.94vw, 100px);
  letter-spacing: -0.02em;
  line-height: 1.0;
}

.text-h1 {
  font-family: var(--font-primary);
  font-size: clamp(40px, 4.44vw, 64px);
  line-height: 1.05;
}

.text-h2 {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.33vw, 48px);
}

.text-h3 {
  font-family: var(--font-primary);
  font-size: clamp(24px, 2.5vw, 36px);
}

.text-overline {
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.text-label {
  font-family: var(--font-secondary);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-body-lg {
  font-family: var(--font-secondary);
  font-size: 18px;
  line-height: 1.6;
}

.text-body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.text-body-sm {
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.text-caption {
  font-family: var(--font-secondary);
  font-size: 12px;
}

/* --- Color Utilities --- */
.text-primary   { color: var(--primary); }
.text-accent    { color: var(--accent); }
.text-muted     { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

/* --- Section Divider --- */
.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
}

/* --- Visually Hidden (accessibility) --- */
.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;
}

/* --- Responsive Breakpoints Reference ---
   480px  — small mobile
   768px  — tablet
   1024px — desktop
   1440px — large desktop
   1600px — container max cap
   ---------------------------------------- */

@media (max-width: 768px) {
  .container {
    padding-inline: var(--spacing-m);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--spacing-s);
  }
}
