/* BiblicalLaw.org — modern static staging theme */

:root {
  --paper: #211c15;
  --surface: #2b251c;
  --ink: #e9e1d3;
  --muted: #a89e8c;
  --accent: #d29a3a;
  --accent-dark: #e3b566;
  --line: #3e3729;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 46rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

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

/* ---------- header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand img { height: 2.6rem; width: auto; filter: brightness(0); opacity: .85; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em;
}
.brand-slogan {
  font-size: .72rem; color: var(--muted); max-width: 24rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .4s ease;
}

.nav-toggle {
  margin-left: auto; display: none;
  background: none; border: 1px solid var(--line); border-radius: .5rem;
  font-size: 1.25rem; padding: .3rem .7rem; cursor: pointer; color: var(--ink);
}

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a {
  display: block; text-decoration: none; color: var(--ink);
  padding: .55rem .8rem; border-radius: .5rem; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { background: #362f24; }
.site-nav li.active > a { color: var(--accent); }

.site-nav .submenu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 21rem; max-width: 26rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: .75rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: .4rem; z-index: 60;
}
.site-nav li.has-sub:hover .submenu,
.site-nav li.has-sub:focus-within .submenu { display: block; }
.site-nav .submenu a { font-weight: 400; padding: .5rem .75rem; border-radius: .5rem; }

/* ---------- home ---------- */

main.home { padding: 0 0 3rem; }

.hero { text-align: center; padding: 4.5rem 0 3rem; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 1rem; letter-spacing: -.01em;
}
.hero-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; color: var(--accent-dark); margin: 0 auto 1rem; max-width: 40rem;
  transition: opacity .4s ease; min-height: 3.2rem;
}
.hero-sub { color: var(--muted); max-width: 42rem; margin: 0 auto; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem; margin: 1.5rem 0 3rem;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: .9rem;
  padding: 1.25rem 1.4rem; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.card h3 { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.3rem; color: var(--accent-dark); }
.card p { margin: 0; font-size: .9rem; color: var(--muted); }

.latest h2, .inner h2 { font-family: var(--serif); }

.teaser {
  background: var(--surface); border: 1px solid var(--line); border-radius: .9rem;
  padding: 1.4rem 1.6rem; margin-bottom: 1rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.teaser-img { flex: 0 0 10.5rem; }
.teaser-img img { width: 100%; height: auto; border-radius: .6rem; display: block; }
.teaser-body { flex: 1; min-width: 0; }
.teaser h3 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.35rem; }
.teaser h3 a { color: inherit; text-decoration: none; }
.teaser h3 a:hover { color: var(--accent); }
.teaser p { margin: 0 0 .6rem; color: var(--muted); }
.teaser .more { color: var(--accent); text-decoration: none; font-weight: 500; font-size: .95rem; }
.teaser .more:hover { text-decoration: underline; }

/* ---------- article pages ---------- */

main.inner { padding: 2.5rem 0 3.5rem; }

.node-page { max-width: var(--measure); margin: 0 auto; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2; margin: 0 0 1.75rem; letter-spacing: -.01em;
}

.body { font-size: 1.05rem; }
.body p { margin: 0 0 1.1rem; }
.body a { color: var(--accent); }
.body h2, .body h3 { font-family: var(--serif); margin: 2rem 0 .75rem; line-height: 1.25; }
.body ul, .body ol { margin: 0 0 1.1rem; padding-left: 1.5rem; }
.body li { margin-bottom: .4rem; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.body img { max-width: 100%; height: auto; border-radius: .5rem; }
.body sup { font-size: .72em; }

.body blockquote {
  margin: 1.5rem 0; padding: .35rem 0 .35rem 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: #cfc5b2;
}

/* floated/captioned images from the original content */
.body .floatrightcaption, .body .floatleftcaption {
  max-width: 42%; font-size: .85rem; color: var(--muted);
}
.body .floatrightcaption { float: right; margin: .4rem 0 1rem 1.5rem; }
.body .floatleftcaption { float: left; margin: .4rem 1.5rem 1rem 0; }
.body .picquote-l, .body .picquote-r {
  border: 1px solid var(--line); border-radius: .75rem; background: var(--surface);
  padding: 1.1rem 1.25rem; margin: 1.5rem 0;
  font-family: var(--serif); font-size: 1.1rem;
}
.body .picquoteimg-l, .body .picquoteimg-r {
  width: 3.2rem; float: left; margin: .2rem .8rem .2rem 0; border-radius: .4rem;
}

.body .callout {
  background: #322b20; border: 1px solid #4a4130; border-radius: .75rem;
  padding: 1rem 1.25rem;
}

.body .footnotes { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: .75rem; }
.body .see-footnote, .body .footnote-label { text-decoration: none; }

.child-list {
  margin-top: 2.5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: .9rem; padding: 1.25rem 1.6rem;
}
.child-list h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.child-list ul { list-style: none; margin: 0; padding: 0; }
.child-list li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.child-list li:last-child { border-bottom: 0; }
.child-list a { color: var(--accent-dark); text-decoration: none; }
.child-list a:hover { text-decoration: underline; }

/* ---------- Q&A library ---------- */

.qa-topics { font-size: .88rem; color: var(--muted); margin: -1rem 0 1.75rem; }
.qa-topics a { color: var(--accent); text-decoration: none; }
.qa-topics a:hover { text-decoration: underline; }

.qa-group { margin-bottom: 2rem; }
.qa-group h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.qa-group h2 a { color: var(--accent-dark); text-decoration: none; }
.qa-group h2 a:hover { text-decoration: underline; }
.qa-list { list-style: none; margin: 0; padding: 0; }
.qa-list li { padding: .38rem 0; border-bottom: 1px solid var(--line); }
.qa-list li:last-child { border-bottom: 0; }
.qa-list a { color: var(--accent-dark); text-decoration: none; }
.qa-list a:hover { text-decoration: underline; }

/* ---------- wiki-sourced content ---------- */

.body table.wikitable, .body table { border-collapse: collapse; margin: 1.25rem 0; }
.body table.wikitable th, .body table.wikitable td,
.body table.bordered th, .body table.bordered td {
  border: 1px solid var(--line); padding: .45rem .7rem; text-align: left;
}
.body .thumb { max-width: 42%; float: right; margin: .4rem 0 1rem 1.5rem; font-size: .85rem; color: var(--muted); }
.body .thumbinner { background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: .4rem; }
.body ol.references { font-size: .9rem; color: var(--muted); }
.body sup.reference { font-size: .72em; }

/* ---------- search ---------- */

.search-form { max-width: var(--measure); margin: 0 auto 1.5rem; }
.search-form input {
  width: 100%; padding: .8rem 1.1rem; font-size: 1.05rem; font-family: var(--sans);
  color: var(--ink); caret-color: var(--accent);
  background: var(--surface); border: 1px solid var(--line); border-radius: .75rem;
}
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.search-results { max-width: var(--measure); margin: 0 auto; }
.search-results .hit { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.3rem; margin-bottom: .8rem; }
.search-results .hit a { font-family: var(--serif); font-size: 1.15rem; color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.search-results .hit p { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); }
.search-results mark { background: #d29a3a; color: #211c15; border-radius: .2rem; padding: 0 .1rem; }

/* ---------- footer ---------- */

.site-footer {
  background: #171310; color: #b3a992;
  margin-top: 3rem; padding: 2.25rem 0; font-size: .88rem;
}
.site-footer a { color: var(--accent-dark); }
.footer-note { max-width: 52rem; }
.footer-fine { color: #877e6d; margin-top: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .brand-slogan { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; width: 100%; margin: 0;
    border-top: 1px solid var(--line); padding: .5rem 0 .9rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav .submenu {
    display: block; position: static; box-shadow: none; border: 0;
    padding: 0 0 0 1.1rem; min-width: 0; background: transparent;
  }
  .body .floatrightcaption, .body .floatleftcaption { float: none; max-width: 100%; margin: 1rem 0; }
  .teaser { flex-direction: column; }
  .teaser-img { flex: none; width: 100%; max-width: 22rem; }
}
