/* ========================================
   Base Styles – kiwebsites.com
   ======================================== */

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--pre-text);
  background-color: var(--pre-bg);
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* Light state */
body.revealed {
  color: var(--gen-text);
  background-color: var(--gen-bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

section {
  position: relative;
}

/* Generic section padding */
.section-padding {
  padding: var(--space-5xl) 0;
}

/* ---- GENERIC STATE TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  color: var(--pre-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  transition: color 0.6s ease;
}

body.revealed h1,
body.revealed h2,
body.revealed h3,
body.revealed h4,
body.revealed h5,
body.revealed h6 {
  color: var(--gen-heading);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }

p {
  max-width: 65ch;
  transition: color 0.8s var(--ease-out);
}

/* Utility: visually hidden but accessible */
.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;
}
