:root {
  --paper: #fbf8f1;
  --sheet: #ffffff;
  --paper-deep: #f4efe3;
  --ink: #192943;
  --body: #2d3440;
  --muted: #6b6a65;
  --line: #c8bda9;
  --gold: #a66a21;
  --gold-pale: #ba8f55;
  --navy: #13233d;
  --error: #a83226;
  --shadow: 0 2px 12px rgba(25, 41, 67, 0.08);
}
html[data-theme="dark"] {
  --paper: #161a20;
  --sheet: #1b2027;
  --paper-deep: #20252c;
  --ink: #f1eadc;
  --body: #e1ddd3;
  --muted: #b9b3a6;
  --line: #4f5151;
  --gold: #dfa552;
  --gold-pale: #d8b577;
  --navy: #0d1522;
  --error: #e8907f;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: var(--sheet); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold; font-size: 1.25rem; color: var(--ink);
  text-decoration: none; margin-right: auto;
}
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav-links a { color: var(--body); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--gold); text-decoration: underline; }
.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 2.2rem; height: 2.2rem; cursor: pointer; color: var(--gold);
  font-size: 1.1rem; line-height: 1;
}
.theme-toggle:hover { border-color: var(--gold); }

/* Hero */
.hero {
  text-align: center; padding: 4rem 1.25rem 3rem;
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.8rem; color: var(--gold); margin: 0 0 1rem;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink); font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0 0 1rem; line-height: 1.2;
}
.hero-sub { max-width: 36rem; margin: 0 auto 2rem; color: var(--muted); }
.btn {
  display: inline-block; background: var(--gold); color: #fff;
  padding: 0.8rem 1.8rem; border-radius: 999px; text-decoration: none;
  font-weight: bold; border: 2px solid var(--gold); cursor: pointer;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost:disabled:hover { background: transparent; color: var(--gold); }

/* Devotional */
main { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.devotional { padding: 2rem 0; }
.entry-head { text-align: center; margin-bottom: 2rem; }
.entry-date {
  text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.8rem; color: var(--gold); margin: 0 0 0.5rem;
}
.entry-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink); font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 1rem;
}
.entry-tools { display: flex; gap: 0.6rem; justify-content: center; }
.tool-btn {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1.1rem; cursor: pointer; color: var(--body); font-size: 0.9rem;
}
.tool-btn:hover { border-color: var(--gold); color: var(--gold); }
.content-block {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.content-block h3 {
  font-family: Georgia, "Times New Roman", serif; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem;
  margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.scripture { margin: 0; }
.scripture p {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem;
  line-height: 1.8; color: var(--ink); margin: 0 0 0.75rem;
}
.scripture cite { font-style: normal; font-weight: bold; color: var(--gold); }
.translation-note { font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 0; }
.reflection p, .prayer p { margin: 0 0 1rem; }
.reflection p:last-child, .prayer p:last-child { margin-bottom: 0; }
.prayer-prompt { border-top: 1px dashed var(--line); padding-top: 1rem; color: var(--muted); }
.takeaway {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem;
  color: var(--ink); text-align: center; margin: 0; font-style: italic;
}
.day-nav {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
  margin: 2.5rem 0 1rem;
}

/* Archive */
.archive { padding: 3rem 0; border-top: 1px solid var(--line); }
.archive h2, .about h2, .prayer-request h2 {
  font-family: Georgia, "Times New Roman", serif; color: var(--ink);
  font-size: 1.9rem; margin: 0 0 0.25rem; text-align: center;
}
.section-sub { text-align: center; color: var(--muted); margin: 0 0 2rem; }
.archive-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.archive-list button {
  width: 100%; text-align: left; background: var(--sheet);
  border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem;
  cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  color: var(--body); font-size: 1rem;
}
.archive-list button:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.archive-list button.current { border-color: var(--gold); border-width: 2px; }
.archive-list .a-date { color: var(--gold); font-size: 0.85rem; white-space: nowrap; }
.archive-list .a-title { font-family: Georgia, serif; color: var(--ink); }

/* About */
.about { padding: 3rem 0; border-top: 1px solid var(--line); }
.beliefs { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .beliefs { grid-template-columns: 1fr 1fr; } }
.belief {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem; box-shadow: var(--shadow);
}
.belief h3 {
  font-family: Georgia, serif; color: var(--ink); margin: 0 0 0.5rem; font-size: 1.1rem;
}
.belief p { margin: 0; font-size: 0.95rem; color: var(--body); }

/* Prayer requests */
.prayer-request { padding: 3rem 0; border-top: 1px solid var(--line); }
.prayer-card {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.75rem; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .prayer-card { padding: 2.25rem; } }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; font-weight: bold; color: var(--ink);
  margin-bottom: 0.4rem; font-size: 0.95rem;
}
.field .optional { font-weight: normal; color: var(--muted); font-size: 0.85rem; }
.field .required { color: var(--gold); font-size: 0.85rem; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--body);
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.field-check { display: flex; align-items: center; gap: 0.6rem; }
.field-check label { margin-bottom: 0; font-weight: normal; color: var(--body); }
.field-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--gold); flex-shrink: 0; }
.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-error { color: var(--error); font-size: 0.95rem; margin: 0 0 1rem; }
.privacy-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 1.5rem 0 0; }

/* Prayer modal */
.prayer-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; background: rgba(19, 35, 61, 0.55);
}
.prayer-modal[hidden] { display: none; }
.prayer-modal-card {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); max-width: 28rem; width: 100%;
  padding: 2rem; text-align: center;
}
.prayer-modal-card h3 {
  font-family: Georgia, "Times New Roman", serif; color: var(--ink);
  font-size: 1.5rem; margin: 0 0 1rem;
}
.prayer-modal-card p { margin: 0 0 1rem; color: var(--body); }
.prayer-modal-card .verse {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  color: var(--gold); margin: 1rem 0 1.5rem;
}
.prayer-modal-card .btn { margin-top: 0.5rem; }

/* Footer */
.footer {
  text-align: center; padding: 2.5rem 1.25rem 3rem; margin-top: 2rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.footer-brand { font-family: Georgia, serif; font-size: 1.3rem; color: var(--ink); margin: 0 0 0.75rem; }
.footer-brand span { color: var(--gold); }
.back-top { color: var(--gold); text-decoration: none; font-weight: bold; }
.back-top:hover { text-decoration: underline; }
.share-note {
  text-align: center; color: var(--gold); font-size: 0.9rem; min-height: 1.4em; margin: 0.5rem 0 0;
}
