/* === Global Base: Dark theme, normalized typography === */
:root {
  /* Keep only what you still use; variables optional */
  --accent-color: #ffffff;
}

html { font-size: 16px; } /* 1rem baseline */
body {
  margin: 10px;
  font-family: Arial, sans-serif;
  background-color: #000;  /* new site-wide background */
  color: #fff;             /* new site-wide text color */
  font-size: 1rem;         /* 16px via rem */
  line-height: 1.6;
}

/* Remove legacy high-contrast mode since base is dark now */
/* body.high-contrast { ... }  <-- delete the entire block */

/* Skip link (still visible against dark bg) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent-color);
}

/* Accessibility tools (kept minimal) */
.accessibility-tools {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
span.reftext {
    font-size: 0.75em;
    vertical-align: super;
    color: #555;
}


/* Remove the contrast toggle entirely */
/* #contrastToggle { ... }  <-- delete both definitions */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: #000;
  color: #fff;
  z-index: 1000;
  border-bottom: 1px solid #333;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.menu-toggle {
  font-size: 2rem;
  background: #000;
  border: none;
  color: #fff;
  cursor: pointer;
  outline: none;
}
.menu-toggle:focus { outline: 2px solid #fff; }
.logo-wrapper { flex-grow: 1; text-align: left; }
.logo { max-height: 50px; }

/* Navigation */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  width: 150px;
  background-color: rgba(17, 17, 17, 0.9);
  padding: 1rem 0;
  z-index: 1001;
  display: block;
}
.main-nav.open { transform: translateX(0); }
.nav-links { list-style: none; margin: 0; padding: 1rem; }
.nav-links li { margin-bottom: 1rem; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem; /* 19.2px relative */
}
.nav-links a:hover { text-decoration: underline; }
.nav-links a:focus {
  text-decoration: underline;
  outline: 2px solid var(--accent-color); /* keep visible focus */
}

/* Layout containers */
.container { max-width: 1200px; margin: 0 auto; padding: 1rem 1rem; }
main { margin: 0; padding: 0; }

/* Hero */
.hero { padding: 0; margin: 0; }
.hero .hand {
  padding: 2rem;
  background-color: #000;
  color: #fff;
  background-image: url("https://studioofhope.org/images/1hand-min.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 70vh;
}

/* Mission section */
.mission-content { display: flex; flex-wrap: wrap; gap: 2rem; }
.mission-text, .mission-image { flex: 1 1 45%; }
.mission-image img {
  max-width: 100%;
  height: auto;
  border: 2px solid #fff;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 80%;
}
.newsletter-form input {
  flex: 1 1 auto;
  padding: 0.5rem;
  font-size: 1rem;
}

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 2rem; }
.contact-info, .contact-form-container { flex: 1 1 45%; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; }
.contact-form input, .contact-form textarea {
  width: 80%;
  padding: 0.5rem;
  font-size: 1rem;
}

/* Headings / buttons */
.hero h1, .mission h2, .newsletter h2, .contact h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 1rem;
}
.cta-button, .cta-button-secondary {
  background-color: var(--accent-color);
  color: #000; /* better contrast on white accent button */
  border: none;
  padding: 1rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.cta-button:hover, .cta-button-secondary:hover { background-color: #e5e5e5; }
.cta-button:focus, .cta-button-secondary:focus { outline: 2px solid #fff; }

/* Footer */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 2rem;
  border-top: 2px solid #fff;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.footer-content nav img { max-width: 200px; }

/* Media query: desktop adjustments */
@media (min-width: 769px) {
  .mission-content, .contact-grid, .footer-content {
    flex-direction: row;
    align-items: flex-start;
  }
  .newsletter-form { width: auto; }
  .contact-form input, .contact-form textarea { width: auto; }
  .cta-button, .cta-button-secondary { width: auto; font-size: 1rem; }
  main { margin-left: 0; padding-top: 0; } /* fixed typo */
}

/* Forms & settings */
.form-section {
  padding: 1rem;                   /* fixed 'adding' → 'padding' */
  border-bottom: 1px solid #ccc;
}
label { display: block; margin-top: 0.5rem; }
input, textarea { width: 100%; padding: 0.5rem; margin-top: 0.25rem; font-size: 1rem; }
button { margin-top: 1rem; padding: 0.5rem 1rem; }
.honeypot { display: none; }       /* moved out of button */

/* Reader controls */
.settings-section { margin-top: 20px; border-top: 1px solid #ccc; padding-top: 15px; }
.scroll-speed-controls, .font-size-controls {
  display: flex; align-items: center; gap: 10px; margin: 8px 0;
}
.bible-text { font-size: 1rem; }   /* normalize to base */
.scroll-speed-controls button, .font-size-controls button {
  padding: 6px 10px; font-size: 1em;
}

/* Sticky header fix */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #111;
  color: #eee;     /* added missing semicolon in your original */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #ddd;
}

/* Audio / typographic utility (unchanged except contrast) */
#globalAudioPlayer { width: 260px; }

/* Decorative/typographic classes preserved (colors adjusted for dark bg if needed) */
.acrostic { color: #ffcc66; font-weight: 700; display: block; text-align: center; margin: 1em 0; }
.bsbheading, .vheading {
  background-color: #222; color: #fff; border-top-left-radius: 12px; border-top-right-radius: 12px;
  display: block; font-size: 1em; font-weight: 700; line-height: 1.2em; padding-left: 8px; margin: 1em 0 10px;
}

/* Fix accidental merged rule:
   Previously: .nav-links a:hover, .r66 { ... } – split into two */
.r66 {
  inline-size: min(80%, 80ch);
  margin: 0;
  line-height: 1.5;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Buttons: un-nested hover/focus */
button.chapter-btn {
  display: block; width: 100%; text-align: left; padding: 0.4em; margin: 0.2em 0;
  font-size: 1em; background: #666; border: none; border-radius: 4px; cursor: pointer;
}
button.chapter-btn:hover,
button.chapter-btn:focus {
  background: #666;
  outline: 2px solid #fff;
}
span.reftext {
    font-size: 0.75em;
    vertical-align: super;
    color: rgb(211, 59, 59);
}