/* Fonts */
@font-face {
  font-family: 'FamFam';
  src: url('../assets/fonts/FamFam.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* Body */
body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  color: var(--color-text);
  background-color: var(--color-bg-light);
}

/* Headings */
h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
}

h2 {
  font-size: var(--fs-xxl);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 700;
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

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

.section {
  padding: var(--sp-section) 0;
}

.section--cream {
  background-color: var(--color-bg);
}

.section--white {
  background-color: var(--color-white);
}

.section--green {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-light {
  color: var(--color-text-light);
}

.section__heading {
  margin-bottom: var(--sp-md);
}

.section__subtext {
  font-size: var(--fs-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin-bottom: var(--sp-xxl);
}

.text-center .section__subtext {
  margin-left: auto;
  margin-right: auto;
}

/* Screen reader only */
.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;
}

.sr-only--focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: var(--sp-sm) var(--sp-md);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-primary-dark);
  color: var(--color-white);
  z-index: 1000;
}

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

/* Responsive typography */
@media (max-width: 767px) {
  h1 { font-size: var(--fs-xxl); }
  h2 { font-size: var(--fs-xl); }
  h3 { font-size: var(--fs-lg); }
  .section { padding: var(--sp-xxl) 0; }
  .section__subtext { font-size: var(--fs-md); }
}
