/* christdebunked.com — shared stylesheet v2 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf7f1;
  --bg-alt: #f1ece1;
  --bg-raised: #ffffff;
  --ink: #201c16;
  --ink-soft: #55503f;
  --ink-faint: #8a8471;
  --accent: #7a1f2b;
  --accent-2: #b8863b;
  --accent-ink: #ffffff;
  --line: #ddd4c2;
  --verse-bg: #fff;
  --nav-bg: #1a1712;
  --nav-ink: #f1ece1;
  --badge-primary-bg: #7a1f2b;
  --badge-primary-ink: #fff;
  --badge-secondary-bg: #1e3a4c;
  --badge-secondary-ink: #dcebf2;
  --badge-fringe-bg: #97591a;
  --badge-fringe-ink: #fff3e0;
  --max: 760px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(32,28,22,.08);
  --shadow-md: 0 8px 24px rgba(32,28,22,.10);
  --shadow-lg: 0 20px 48px rgba(32,28,22,.16);
  --bg-rgb: 250,247,241;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #15130f;
  --bg-alt: #1e1b15;
  --bg-raised: #26221b;
  --ink: #f1ece1;
  --ink-soft: #c9c2ac;
  --ink-faint: #8a8471;
  --accent: #e0808f;
  --accent-2: #e0ac5f;
  --line: #38332a;
  --verse-bg: #26221b;
  --nav-bg: #0e0c09;
  --nav-ink: #f1ece1;
  --bg-rgb: 21,19,15;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  font-size: 17px;
  transition: background .25s ease, color .25s ease;
}

img, svg.illo { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Nav ---------- */
header.site-nav {
  background: var(--nav-bg);
  color: var(--nav-ink);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: saturate(140%) blur(10px);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.85rem 0;
  gap: .75rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--nav-ink);
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.brand .mark { width: 22px; height: 22px; flex-shrink: 0; }
.brand span { color: #d68a92; }
nav.links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
nav.links a {
  color: var(--nav-ink);
  opacity: .8;
  font-weight: 500;
}
nav.links a.current { opacity: 1; border-bottom: 2px solid var(--accent-2); padding-bottom: 3px; }
nav.links a:hover { opacity: 1; text-decoration: none; }

.theme-toggle {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--nav-ink);
  border-radius: 20px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.16); }
.theme-toggle svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  color: var(--nav-ink);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 3.2rem 0; }
section.tight { padding: 1.5rem 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.22; color: var(--ink); }
h1 { font-size: 2.4rem; margin: 0 0 .6rem; }
h2 { font-size: 1.65rem; margin: 2.4rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.7rem 0 .6rem; }
p { margin: 0 0 1.15rem; }
.lede { font-size: 1.17rem; color: var(--ink-soft); }
.kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent-2); display: inline-block; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse 900px 500px at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent), linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.hero.hero-fresco {
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding-top: 2rem;
  padding-bottom: 3.2rem;
  background-image:
    linear-gradient(180deg, rgba(var(--bg-rgb),.08) 0%, rgba(var(--bg-rgb),.22) 34%, rgba(var(--bg-rgb),.72) 58%, rgba(var(--bg-rgb),.96) 76%, var(--bg) 92%),
    url('../img/hero-fresco.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: 100% 100%, cover;
  background-color: var(--bg);
}
.hero.hero-fresco > main { width: 100%; }
.hero.hero-fresco .kicker,
.hero.hero-fresco h1,
.hero.hero-fresco p.lede {
  text-shadow: 0 2px 22px rgba(var(--bg-rgb),.95), 0 1px 5px rgba(var(--bg-rgb),.85), 0 0 3px rgba(var(--bg-rgb),.7);
}
.hero.hero-fresco .kicker { font-weight: 800; }
.hero.hero-fresco h1 { font-weight: 800; }
.hero.hero-fresco p.lede { font-weight: 600; color: var(--ink); }
.hero-illo { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.hero > * { position: relative; }
.hero h1 { font-size: 2.9rem; max-width: 860px; margin: 0 auto .9rem; }
.hero p.lede { max-width: 640px; margin: 0 auto 1.8rem; }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); text-decoration: none; transform: translateY(-2px); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.card .icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: .9rem; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-soft); font-size: .96rem; flex-grow: 1; }
.card .tag {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .5rem;
}
.card a.more { font-weight: 600; font-size: .9rem; }
.card a.more::after { content: " →"; transition: margin .15s ease; }
.card:hover a.more::after { margin-left: 3px; }

/* ---------- Verse box ---------- */
blockquote.verse {
  background: var(--verse-bg);
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
}
blockquote.verse cite {
  display: block;
  margin-top: .6rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .03em;
}

/* ---------- Quote/fact of the moment (homepage) ---------- */
.quote-widget {
  max-width: 620px;
  margin: 1.7rem auto 0;
  text-align: left;
  background: rgba(var(--bg-rgb),.9);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.quote-widget .quote-kicker {
  margin: 0 0 .45rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  color: var(--accent-2);
}
.quote-widget .quote-text {
  margin: 0 0 .55rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  text-shadow: none;
}
.quote-widget .quote-cite {
  margin: 0;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: .82rem;
  color: var(--ink-soft);
  text-shadow: none;
}
.quote-widget .quote-cite a { color: var(--accent); font-weight: 700; }

/* ---------- Source badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  padding: .3rem .6rem;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-primary { background: var(--badge-primary-bg); color: var(--badge-primary-ink); }
.badge-secondary { background: var(--badge-secondary-bg); color: var(--badge-secondary-ink); }
.badge-fringe { background: var(--badge-fringe-bg); color: var(--badge-fringe-ink); }
.badge-legend { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0 2rem; font-size: .85rem; color: var(--ink-soft); align-items: center; }
.badge-legend .item { display: flex; align-items: center; gap: .4rem; }

/* ---------- Source entry cards ---------- */
.source-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.1rem;
}
.source-entry .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.source-entry h3 { margin: 0; font-size: 1.1rem; }
.source-entry p { color: var(--ink-soft); font-size: .94rem; margin-bottom: .4rem; }
.source-entry .meta { font-size: .82rem; color: var(--ink-faint); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; margin: 1.4rem 0 2rem; border-radius: 10px; box-shadow: var(--shadow-sm); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
table.compare th, table.compare td {
  text-align: left;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: .93rem;
}
table.compare th {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: .95rem;
}
table.compare tr:last-child td { border-bottom: none; }
table.compare td.ref { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  margin-bottom: .8rem;
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
}
details.faq summary {
  font-weight: 700;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-family: var(--sans); flex-shrink: 0; transition: transform .2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: .8rem; color: var(--ink-soft); }

/* ---------- Timeline (Missing Years) ---------- */
.timeline { position: relative; margin: 2rem 0; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); }
.timeline .stop { position: relative; margin-bottom: 1.8rem; }
.timeline .stop::before { content: ""; position: absolute; left: -2.2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline .stop .age { font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.timeline .stop p { margin: .3rem 0 0; color: var(--ink-soft); }

/* ---------- Journey map ---------- */
.map-wrap { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; margin: 1.6rem 0; }
.map-wrap svg { width: 100%; height: auto; display: block; }

/* ---------- Video ---------- */
.video-wrap { position: relative; padding-top: 56.25%; height: 0; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow-md); background: #000; margin-bottom: 1rem; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; box-shadow: var(--shadow-sm); }
.video-card h3 { margin: .2rem 0 .3rem; }
.video-card .meta { font-size: .82rem; color: var(--ink-faint); margin-bottom: .6rem; }
.video-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  font-size: .87rem;
  color: var(--ink-soft);
}
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.disclaimer { max-width: 820px; margin: 1.5rem auto 0; font-size: .8rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 1.2rem; }

/* ---------- Breadcrumb / meta ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.source-note {
  font-size: .85rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.callout {
  border-left: 4px solid var(--accent-2);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.3rem;
  margin: 1.4rem 0;
  font-size: .93rem;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

/* Blog */
.post-meta { color: var(--ink-soft); font-size: .85rem; margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero.hero-fresco {
    min-height: 460px;
    background-position: top center, top center;
    background-image:
      linear-gradient(180deg, rgba(var(--bg-rgb),.6) 0%, rgba(var(--bg-rgb),.78) 28%, rgba(var(--bg-rgb),.92) 52%, var(--bg) 78%),
      url('../img/hero-fresco.jpg');
  }
  .hero.hero-fresco .kicker,
  .hero.hero-fresco h1,
  .hero.hero-fresco p.lede {
    text-shadow: 0 2px 10px rgba(var(--bg-rgb),1), 0 1px 3px rgba(var(--bg-rgb),1), 0 0 2px rgba(var(--bg-rgb),1);
  }
  .nav-toggle { display: inline-flex; }
  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  nav.links.open { display: flex; }
  .footer-inner { flex-direction: column; }
}
