/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1.2s ease-out;
}

/* Base styling with accessibility upgrades */
body {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;          /* Increased base font size (~24px) */
  line-height: 1.7;
  font-family: Arial, sans-serif;
  font-weight: 500;           /* Slightly thicker text for readability */
  background-color: #f5e9dc;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Text elements */
.top-text,
.bottom-text,
.contact-text {
  font-size: 1.2rem;
  color: #222;
  margin: 12px 0;
}

.contact-text a {
  color: #222;
  text-decoration: underline;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #555;
  outline-offset: 3px;
}

/* Video styling */
video {
  max-width: 80vw;
  max-height: 70vh;
  object-fit: contain;
  margin: 24px 0;
}

/* Desktop quote section */
.quote-section.desktop {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin: 14px 0;
}

.quote {
  width: 45%;
  font-style: italic;
  font-size: 1.125rem;
  color: #333;
  padding: 12px;
  line-height: 1.6;
}

/* Mobile quote section */
.quote-section.mobile {
  display: none;
  flex-direction: column;
}

.quote-section.mobile .quote {
  font-size: 1.125rem;
  margin-bottom: 12px;
  padding: 8px;
  color: #333;
}

/* Author bio section */
.author-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 32px 0;
}

.bio-text {
  max-width: 700px;
  text-align: left;
  color: #333;
}

.bio-text h2 {
  font-size: 1.4rem;
  margin-top: 0;
}

.bio-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Author image */
.author-bio img {
  width: 180px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

/* Seasonal divider */
.divider {
  width: 100%;
  height: 2px;
  margin: 32px 0;
  border: none;
}

/* Seasonal variants */
.divider.spring {
  background: linear-gradient(to right, #dfa8da, #f5e9dc, #a1d8a0);
}

.divider.summer {
  background: linear-gradient(to right, #9fdba3, #f5e9dc, #b7e3f4);
}

.divider.fall {
  background: linear-gradient(to right, #a85736, #f5e9dc, #c48b65);
}

.divider.winter {
  background: linear-gradient(to right, #c7d7e0, #f5e9dc, #b0c4d7);
}

/* Responsive adjustments for low vision users */
@media (max-width: 768px) {
  body {
    font-size: 1.5rem; /* Maximize text size on mobile */
  }

  .quote-section.desktop {
    display: none;
  }

  .quote-section.mobile {
    display: flex;
  }

  .quote {
    width: 100%;
    font-size: 1.4rem;
  }

  .bio-text {
    text-align: center;
  }

  .bio-text p {
    font-size: 1.35rem;
  }

  .top-text,
  .bottom-text,
  .contact-text {
    font-size: 1.35rem;
  }

  .author-bio img {
    width: 160px;
  }
}