
:root {
  --blue: #2c5f8a;
  --blue-light: #e8f0f8;
  --blue-dark: #1a3a5c;
  --gold: #b8860b;
  --text: #2c2c2c;
  --bg: #faf9f7;
  --card-bg: #ffffff;
  --border: #ddd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
}

.alpha-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-dark);
  padding: 0.6rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.alpha-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.25rem 0.4rem;
  border-radius: 3px;
  transition: background 0.2s;
  display: inline-block;
}

.alpha-nav a:hover, .alpha-nav a.active {
  background: var(--gold);
  color: #fff;
}

.alpha-nav .sep {
  color: rgba(255,255,255,0.3);
  margin: 0 0.1rem;
}

.hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.hero .subtitle { font-size: 1rem; opacity: 0.9; font-style: italic; max-width: 600px; margin: 0 auto; }

.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

.intro { padding: 2rem 0; font-size: 1.05rem; }
.intro .church-photo {
  width: 100%; max-width: 700px; display: block; margin: 1.5rem auto;
  border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.intro blockquote {
  text-align: center; font-style: italic; color: var(--blue);
  margin: 1.5rem auto; max-width: 500px; font-size: 1rem;
}
.intro blockquote cite {
  display: block; font-style: normal; font-size: 0.85rem;
  margin-top: 0.3rem; color: var(--gold);
}
.intro .mission {
  text-align: center; font-weight: 600; color: var(--blue);
  margin: 1.5rem 0; font-size: 1.05rem;
}

.letter-heading {
  font-size: 3rem; color: var(--blue);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.3rem; margin: 2rem 0 1rem;
}

.entry-list { list-style: none; padding: 0; }
.entry-list li { border-bottom: 1px solid var(--border); }
.entry-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.8rem 0.5rem; text-decoration: none; color: var(--text);
  transition: background 0.15s;
}
.entry-list a:hover { background: var(--blue-light); }
.entry-list .name { font-weight: 600; font-size: 1.05rem; color: var(--blue-dark); }
.entry-list .date { font-size: 0.9rem; color: #888; white-space: nowrap; margin-left: 1rem; }

.name-only {
  color: #666; font-style: italic;
  padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--border);
}
.name-only .name { font-weight: 600; color: var(--blue-dark); font-style: normal; }
.name-only .date { font-size: 0.9rem; color: #888; margin-left: 0.5rem; }

.person-header {
  padding: 2rem 0 1rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1.5rem;
}
.person-header h1 { font-size: 2rem; color: var(--blue-dark); margin-bottom: 0.3rem; }
.person-header .date { font-size: 1.1rem; color: var(--gold); }
.person-header .source {
  font-size: 0.85rem; color: #888; font-style: italic; margin-top: 0.2rem;
}

.breadcrumb {
  font-family: var(--sans); font-size: 0.85rem;
  padding: 1rem 0 0; color: #888;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Person content with floated images ────────────────────── */
.person-content {
  /* Establish a block formatting context for floats */
  overflow: visible;
}

.person-content::after {
  content: "";
  display: block;
  clear: both;
}

.person-content p {
  margin-bottom: 0.8rem;
  text-align: justify;
  hyphens: auto;
}

.person-content .clear { clear: both; height: 0; }

.person-content h2 {
  font-size: 1.2rem;
  color: var(--blue);
  margin: 1.5rem 0 0.8rem;
  font-style: italic;
  clear: both;
}

.person-content img {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.person-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.person-content img.float-left {
  float: left;
  margin: 0.3rem 1.2rem 0.8rem 0;
  max-width: 45%;
}

.person-content img.float-right {
  float: right;
  margin: 0.3rem 0 0.8rem 1.2rem;
  max-width: 45%;
}

.person-content img.full {
  max-width: 100%;
  margin: 1rem auto;
}

.person-nav {
  display: flex; justify-content: space-between;
  padding: 1.5rem 0; border-top: 1px solid var(--border);
  margin-top: 2rem; font-family: var(--sans); font-size: 0.9rem;
  clear: both;
}
.person-nav a { color: var(--blue); text-decoration: none; max-width: 45%; }
.person-nav a:hover { text-decoration: underline; }
.person-nav .label {
  font-size: 0.75rem; text-transform: uppercase;
  color: #888; display: block;
}

footer {
  text-align: center; padding: 2rem 1rem;
  font-family: var(--sans); font-size: 0.8rem;
  color: #999; border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.9); z-index: 1000;
  justify-content: center; align-items: center; cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 4px; box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 0.9rem; }
  .letter-heading { font-size: 2.2rem; }
  .person-header h1 { font-size: 1.5rem; }
  .container { padding: 0 1rem; }
  .alpha-nav a { font-size: 0.75rem; padding: 0.2rem 0.3rem; }

  /* Tablet: keep floats but allow more width */
  .person-content img.float-left,
  .person-content img.float-right {
    max-width: 40%;
  }
}

@media (max-width: 560px) {
  /* Mobile: stack images full-width — floats break below this */
  .person-content img.float-left,
  .person-content img.float-right,
  .person-content img.full {
    float: none !important;
    margin: 1rem auto !important;
    max-width: 100% !important;
    display: block;
  }
  .hero { padding: 2rem 1rem 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .alpha-nav { padding: 0.4rem 0.5rem; }
  .alpha-nav a { font-size: 0.7rem; padding: 0.15rem 0.25rem; }
  .alpha-nav .sep { margin: 0; }
  .person-nav { flex-direction: column; gap: 1rem; }
  .person-nav a { max-width: 100%; }
  .person-content p { text-align: left; }
}
