/* Blind Community Radio — minimal, accessible-first styles */

:root {
  --font-size: 1rem; /* adjusted by the accessibility panel */
  --bg: #ffffff;
  --text: #1a1a1a;
  --accent: #1a3a6b;      /* deep blue, strong contrast */
  --accent-text: #ffffff;
  --link: #0f2f7a;
  --border: #5a5a5a;
  --focus: #d43900;       /* high-visibility focus ring */
  --muted: #333333;
}

html[data-contrast="high"] {
  --bg: #000000;
  --text: #ffffff;
  --accent: #ffd400;
  --accent-text: #000000;
  --link: #7dd3fc;
  --border: #ffffff;
  --focus: #ff5c00;
  --muted: #e8e8e8;
}

html[data-contrast="dark"] {
  --bg: #121212;
  --text: #f2f2f2;
  --accent: #8ab4ff;
  --accent-text: #0b0b0b;
  --link: #9ec5ff;
  --border: #9a9a9a;
  --focus: #ffb020;
  --muted: #dcdcdc;
}

* { box-sizing: border-box; }

html { font-size: var(--font-size); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: bold;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

/* Header */
.site-header {
  border-bottom: 2px solid var(--border);
  padding: 1rem 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
}
.wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
}
.wordmark a { color: var(--text); text-decoration: none; }
.wordmark a:hover, .wordmark a:focus { text-decoration: underline; }

nav.main-nav ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
nav.main-nav a {
  color: var(--link);
  text-decoration: underline;
  padding: 0.25rem 0;
}
nav.main-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 3px;
}

/* Submenu, e.g. Prayer & Praise and Birthdays under Connect */
nav.main-nav ul ul {
  display: block;
  margin: 0.25rem 0 0.25rem 1.25rem;
  padding: 0;
}
nav.main-nav ul ul li {
  margin: 0.15rem 0;
}

/* Accessibility panel */
.a11y-panel {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  max-width: 34rem;
}
.a11y-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--link);
}
.a11y-panel fieldset {
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}
.a11y-panel legend { font-weight: 600; padding: 0 0.25rem; }
.a11y-panel fieldset ul { list-style: none; margin: 0.25rem 0; padding-left: 0; }
.a11y-panel label { display: block; margin: 0.25rem 0; }

/* Main content */
main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
main h1 { font-size: 1.9rem; line-height: 1.3; }
main h2 { font-size: 1.4rem; margin-top: 2rem; }
main h3 { font-size: 1.15rem; margin-top: 1.5rem; }

a { color: var(--link); }

.station-line {
  font-size: 1.35rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--muted);
}

.notice {
  border: 2px solid var(--border);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
}

/* Audio players */
figure.audio-item { margin: 1rem 0; padding: 0; }
figure.audio-item figcaption { font-weight: 600; margin-bottom: 0.25rem; }
audio { width: 100%; max-width: 34rem; display: block; }

/* Forms */
form.site-form { max-width: 34rem; }
form.site-form label { display: block; font-weight: 600; margin-top: 1rem; }
form.site-form input[type="text"],
form.site-form input[type="email"],
form.site-form select,
form.site-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  padding: 0.5rem;
  margin-top: 0.25rem;
}
form.site-form .hint { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
/* Spam honeypot: hidden off-screen so humans and screen readers never meet it. */
form.site-form .honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}
form.site-form .checkbox-row { margin-top: 0.75rem; font-weight: 400; }
form.site-form .checkbox-row label { font-weight: 400; display: inline; }
form.site-form button {
  margin-top: 1.25rem;
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-text);
  border: 2px solid var(--border);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

/* Download buttons (podcast episodes): one consistent, clearly labeled
   control on every device and screen reader, instead of relying on the
   audio player's built-in menu, which varies by browser. */
.download-btn {
  display: inline-block;
  margin-top: 0.5rem;
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-text);
  border: 2px solid var(--border);
  padding: 0.5rem 1rem;
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--border);
  padding: 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  margin-bottom: 0.75rem;
}

.site-footer nav a {
  margin-right: 1rem;
}

/* Lists */
ul.episode-list { list-style: none; padding: 0; }
ul.episode-list li { margin-bottom: 1.5rem; }
ul.episode-list .ep-title { font-weight: 700; }
