:root {
  /* Typography - Brand compliant fonts with fallbacks */
  font-family: 'Source Sans Pro', 'Proxima Nova', 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --body-font: Georgia, 'Mercury Text G1', serif;
  --heading-font: 'Source Sans Pro', 'Proxima Nova', 'Gotham', sans-serif;
  
  /* StoryCorps Brand Colors */
  --storycorps-red: #E51022;
  --storycorps-teal: #2D8095;
  --storycorps-blue: #005897;
  --storycorps-purple: #7F55A3;
  --storycorps-yellow: #FFCD03;
  --storycorps-orange: #F58648;
  --storycorps-green: #A9C538;
  --storycorps-dark-gray: #67747E;
  --storycorps-light-gray: #DFE3E6;
  
  /* Semantic color assignments */
  --primary-color: var(--storycorps-red);
  --secondary-color: var(--storycorps-dark-gray);
  --accent-color: var(--storycorps-teal);
  --background-color: #ffffff;
  --surface-color: var(--storycorps-light-gray);
  --text-color: var(--storycorps-dark-gray);
  --text-light: #ffffff;
  --border-color: var(--storycorps-light-gray);
  
  /* Accessibility-compliant combinations per brand guidelines */
  --error-background: rgba(229, 16, 34, 0.1);
  --error-border: rgba(229, 16, 34, 0.3);
  --focus-outline: var(--storycorps-teal);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  font-family: var(--body-font);
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-family: var(--heading-font);
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 2rem;
}

button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.95rem;
}

button:hover {
  background-color: var(--storycorps-blue);
}

input, select {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--body-font);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s ease;
}

input:focus, select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(45, 128, 149, 0.2);
}

input:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

/* Visually hidden utility for screen-reader-only content */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@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;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.filters {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(103, 116, 126, 0.1);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.search-results {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(103, 116, 126, 0.1);
  border: 1px solid var(--border-color);
}

.result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
  border-bottom: none;
}