/* ---- tokens ---- */
:root {
  --bg: #faf7f2;
  --bg-card: #ffffff;
  --text: #23211d;
  --text-muted: #6b665c;
  --accent: #b5482f;
  --accent-soft: #e5b7a4;
  --border: #e6dfd3;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a17;
    --bg-card: #242220;
    --text: #f2ede4;
    --text-muted: #b3ab9c;
    --accent: #e8875f;
    --accent-soft: #6b3c2c;
    --border: #35322c;
  }
}

/* ---- reset-ish ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.6;
  font-size: 1.05rem;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---- header ---- */
.site-header {
  border-bottom: 2px solid var(--border);
  padding: 1.5rem 0;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.site-title {
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }

/* ---- main ---- */
main { padding: 2.5rem 0 3rem; min-height: 50vh; }

.hero h1 { font-size: 2.1rem; margin-bottom: 0.25rem; }
.tagline { color: var(--text-muted); font-size: 1.1rem; margin-top: 0; }

.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.home-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.home-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.home-card h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.home-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.about-blurb { color: var(--text-muted); font-size: 0.95rem; margin-top: 2rem; }

.section-intro { color: var(--text-muted); }

/* ---- lists ---- */
.post-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list a { color: var(--text); font-size: 1.05rem; }
.post-list time { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* ---- post / note ---- */
.post-header h1 { margin-bottom: 0.25rem; }
.post-meta { color: var(--text-muted); font-size: 0.9rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin-top: 0; }
.post-content { margin-top: 1.5rem; }
.post-content p { margin: 0 0 1.1rem; }
.post-back { margin-top: 2.5rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.95rem; }

/* ---- photo grid ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.photo-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.photo-card img { border-radius: 8px 8px 0 0; }
.photo-card figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- sermons ---- */
.sermon-list li { align-items: baseline; }
.sermon-scripture {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-top: 0.15rem;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sermon-listen { margin: 1rem 0; }
.sermon-listen a {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}

/* ---- coming soon ---- */
.coming-soon {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.coming-soon h1 { color: var(--text); }

/* ---- footer ---- */
.site-footer {
  border-top: 2px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
