/* =========================================================
   Lone Trumpet — A Voice From the Wilderness
   Color palette: parchment, deep navy, brass-gold, sky blue
   ========================================================= */

:root {
  --bg:        #fbf6ec;
  --bg-soft:   #f3ebd8;
  --ink:       #1c2a44;
  --ink-soft:  #4a5773;
  --gold:      #b8893a;
  --gold-deep: #7a5722;
  --gold-pale: #e9c876;
  --sky:       #bcd3e3;
  --sky-deep:  #6f8eaa;
  --line:      #e3d8bf;
  --card:      #ffffff;
  --shadow:    0 4px 14px rgba(28, 42, 68, .08), 0 1px 3px rgba(28, 42, 68, .06);
  --shadow-lg: 0 16px 40px rgba(28, 42, 68, .12), 0 4px 10px rgba(28, 42, 68, .08);

  --serif:  "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:   "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw:   1140px;
  --radius: 6px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
a:hover { color: var(--ink); border-bottom-color: var(--gold); }
hr { border: 0; height: 1px; background: var(--line); margin: 2.4rem 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: .2px;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }

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

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, #fff9ec 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
  background-color: rgba(251, 246, 236, .92);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .9rem;
  padding-bottom: .9rem;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; border: 0; }
.brand:hover { border: 0; }
.brand svg { width: 220px; height: auto; }
.brand .brand-text { display: none; }

.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover, .nav a.is-active { border-bottom-color: var(--gold); color: var(--gold-deep); }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  border-radius: 4px; padding: .35rem .55rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 760px) {
  .brand svg { width: 170px; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; top: 100%; right: 1rem;
    background: var(--card); padding: 1rem 1.25rem;
    flex-direction: column; align-items: flex-start;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    display: none;
  }
  .nav.is-open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-image: url("../img/hero-sky.svg");
  background-size: cover;
  background-position: center;
  padding: 5rem 1rem 5.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  margin-bottom: .25em;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.tagline {
  font-family: var(--serif); font-style: italic;
  color: var(--gold-deep);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: .5px;
  margin-bottom: 1.4rem;
}
.scripture {
  display: inline-block;
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: .65rem 1.2rem;
  max-width: 620px;
}

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.section-title {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.section-title h2 { margin: 0; }
.section-title .rule { flex: 1; height: 1px; background: var(--line); }
.section-title a.more {
  font-family: var(--serif); font-size: 1rem; font-style: italic;
  color: var(--gold-deep); white-space: nowrap;
}

/* ---------- Search bar ---------- */
.search {
  display: flex; align-items: center; gap: .6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem 1rem;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto 2.2rem;
}
.search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
}
.search svg { width: 18px; height: 18px; color: var(--ink-soft); flex: 0 0 auto; }

/* ---------- Article cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card a.card-link { color: inherit; border: 0; display: flex; flex-direction: column; height: 100%; }
.card a.card-link:hover { border: 0; }

.card-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--sky) 0%, var(--gold-pale) 100%);
  position: relative;
}
.card-cover .badge {
  position: absolute; top: .65rem; left: .65rem;
  background: rgba(28, 42, 68, .85); color: #fff;
  font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 3px;
}

.card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  font-size: .8rem; color: var(--ink-soft); letter-spacing: .5px;
  margin-bottom: .4rem; text-transform: uppercase;
}
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; line-height: 1.25; }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 1rem; flex: 1; }
.card .read-more {
  font-family: var(--serif); font-style: italic;
  font-size: .95rem; color: var(--gold-deep);
  align-self: flex-start;
}

/* ---------- Article page ---------- */
.article {
  max-width: 740px; margin: 0 auto; padding: 3rem 1.25rem 4rem;
}
.article header { text-align: center; margin-bottom: 2.5rem; }
.article header .article-meta {
  font-size: .85rem; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.article header h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .5em; }
.article header .deck {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: 1.2rem;
}
.article-cover {
  width: 100%; aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--sky) 0%, var(--gold-pale) 100%);
  border-radius: var(--radius); margin-bottom: 2.4rem; box-shadow: var(--shadow);
}
.article-body { font-size: 1.08rem; }
.article-body h2 { margin-top: 2rem; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: .25rem 1.2rem;
  margin: 1.6rem 0;
  font-family: var(--serif); font-style: italic;
  color: var(--ink); font-size: 1.18rem;
  background: var(--bg-soft);
}
.article-footer {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  text-align: center; color: var(--ink-soft); font-style: italic; font-family: var(--serif);
}

/* ---------- Author box (E-E-A-T attribution under article) ---------- */
.lt-author-box {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  margin: 3rem 0 0;
}
.lt-author-box-inner {
  max-width: 740px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: flex-start; gap: 1.4rem;
}
.lt-author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold));
  color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; flex: 0 0 auto;
}
.lt-author-text { flex: 1; min-width: 0; }
.lt-author-meta {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--ink-soft); margin-bottom: .35rem;
}
.lt-author-name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--ink); line-height: 1.25;
}
.lt-author-name a { color: inherit; border: 0; }
.lt-author-name a:hover { color: var(--gold-deep); border: 0; }
.lt-author-creds {
  display: inline-block; font-family: var(--sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  color: var(--gold-deep); background: rgba(184, 137, 58, .1);
  padding: .15rem .55rem; border-radius: 99px;
  margin-left: .4rem; vertical-align: middle;
}
.lt-author-title {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: .95rem; margin-top: .15rem;
}
.lt-author-bio {
  font-size: .95rem; color: var(--ink-soft); line-height: 1.7;
  margin: .8rem 0 .4rem;
}
.lt-author-date {
  font-size: .8rem; color: var(--ink-soft); margin-top: .6rem;
}

/* ---------- FAQ (visible Q&A; mirrors FAQPage JSON-LD) ---------- */
.lt-faq {
  max-width: 740px; margin: 3rem auto 0; padding: 0 1.25rem;
}
.lt-faq-hdr {
  text-align: center; margin-bottom: 1.6rem;
}
.lt-faq-hdr h2 { margin-bottom: .25em; }
.lt-faq-hdr p {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: 1rem; margin: 0;
}
.lt-faq-list { display: flex; flex-direction: column; gap: .75rem; }
.lt-faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.lt-faq-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.lt-faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; font-family: var(--serif);
  font-weight: 600; font-size: 1.1rem; color: var(--ink);
}
.lt-faq-item summary::-webkit-details-marker { display: none; }
.lt-faq-item summary::after {
  content: "+"; font-family: var(--serif); font-size: 1.5rem;
  color: var(--gold-deep); flex: 0 0 auto; line-height: 1;
}
.lt-faq-item[open] summary::after { content: "−"; }
.lt-faq-answer {
  padding: 0 1.2rem 1.1rem; color: var(--ink-soft);
  font-size: .98rem; line-height: 1.7;
}
.lt-faq-answer p { margin: 0 0 .8rem; }
.lt-faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Related articles strip (under published article) ---------- */
.lt-related {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 3rem 0; margin-top: 3rem;
}
.lt-related-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.lt-related-hdr { text-align: center; margin-bottom: 1.6rem; }
.lt-related-hdr h2 { margin-bottom: .25em; }
.lt-related-hdr p {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); margin: 0;
}

/* ---------- Software / downloads ---------- */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.tool {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow);
}
.tool h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.tool .tool-icon {
  width: 40px; height: 40px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold));
  border-radius: 8px; display: grid; place-items: center; color: #fff;
  font-family: var(--serif); font-size: 1.4rem;
}
.tool .tool-meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.btn {
  display: inline-block; padding: .6rem 1.2rem; border-radius: 4px;
  background: var(--ink); color: #fff !important; border: 0;
  font-family: var(--serif); letter-spacing: .5px;
  transition: background .2s;
}
.btn:hover { background: var(--gold-deep); border: 0; }
.btn.btn-outline { background: transparent; color: var(--ink) !important; border: 1px solid var(--ink); }
.btn.btn-outline:hover { background: var(--ink); color: #fff !important; }

/* ---------- About ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cdd5e3;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}
.site-footer a { color: var(--gold-pale); border: 0; }
.site-footer a:hover { color: #fff; border: 0; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; letter-spacing: .5px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.4rem; font-size: .9rem; color: #93a1bd;
  flex-wrap: wrap; gap: .6rem;
}
.footer-bottom em { font-family: var(--serif); }

/* ---------- Utilities ---------- */
.empty {
  text-align: center; color: var(--ink-soft); font-style: italic;
  padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius);
}
.tag {
  display: inline-block; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase;
  background: var(--bg-soft); color: var(--gold-deep);
  padding: .15rem .5rem; border-radius: 3px; margin-right: .35rem;
}
