/* ==========================================================================
   Base Typography, Focus Styles, and Global Elements
   ========================================================================== */

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

p {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

/* Accessible Focus Outlines */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Kid-Friendly Tap Target Protection */
button, 
input[type="button"], 
input[type="submit"], 
.tap-target {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

button:active, 
.tap-target:active {
  transform: scale(0.96);
}

/* Utility Helpers */
.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
