/* Believers For Christ -- simple, minimal, reading-focused theme.
   System fonts only: no external font loading, keeps the CSP tight
   (script-src/style-src 'self') and avoids a third-party dependency
   for a site whose whole point is the text. */

:root {
  --ink: #2a2622;
  --ink-muted: #6b6459;
  --paper: #fefcf9;
  --accent: #6b3a2e;
  --accent-dim: #a9776a;
  --rule: #e6ddd2;
  --max-width: 42rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.7;
}

header, main, footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  padding-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

header a {
  color: var(--ink);
  text-decoration: none;
}

header strong {
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

header .tagline {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.4;
  max-width: 34rem;
}

header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
}

header nav a {
  color: var(--accent);
  font-size: 0.95rem;
  text-decoration: none;
}

header nav a:hover { text-decoration: underline; }

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* Post list (home page) */
main > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

main > ul > li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

main > ul > li:first-child { padding-top: 0; }

main > ul a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
}

main > ul a:hover { text-decoration: underline; }

main > ul li .date,
main time.list-date {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-style: normal;
}

/* Single post/page */
article h1 {
  font-size: 1.9rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

article > time {
  display: block;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

article h2, article h3, article h4, article h5, article h6 {
  color: var(--accent);
  line-height: 1.3;
  margin-top: 2rem;
}

article p { margin: 1.1rem 0; }

article a { color: var(--accent); }
article a:hover { color: var(--accent-dim); }

/* Scripture and quoted material -- this site quotes long passages
   constantly, so this needs to read as clearly set-apart text, not
   just italics buried in a paragraph. */
article blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 1.25rem;
  border-left: 3px solid var(--accent-dim);
  color: var(--ink);
  font-style: italic;
}

article blockquote p { margin: 0.6rem 0; }

article ul, article ol {
  padding-left: 1.5rem;
}
article li { margin: 0.4rem 0; }

article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 2px;
}

article em { color: var(--ink); }
article strong { color: var(--ink); }

article code {
  background: var(--rule);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
}

footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

footer a { color: var(--ink-muted); }

@media (max-width: 480px) {
  body { font-size: 1.05rem; }
  header strong { font-size: 1.4rem; }
  article h1 { font-size: 1.6rem; }
}
