/* Rediscovering Truth - styles
   Palette (from the old Wix theme): charcoal #2F2E2E, page #F6F6F6, cyan #30BDFF,
   scripture and Catechism text are near-black/slate; red only for the words of Christ.
   Fonts are self-hosted (SIL OFL): Libre Baskerville (body), Oswald (condensed sans standing in for
   Wix's DIN Next on the menu/labels), Sacramento (handwritten signature). */

@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/libre-baskerville-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/libre-baskerville-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/libre-baskerville-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 700; font-display: swap; src: url(/assets/fonts/libre-baskerville-latin-700-italic.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/oswald-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/oswald-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/oswald-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Sacramento"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/sacramento-latin-400-normal.woff2) format("woff2"); }

:root {
  --charcoal: #2F2E2E;
  --page: #F6F6F6;
  --cyan: #30BDFF;
  --cyan-dark: #1479a8;          /* darker cyan for small link text on #F6F6F6 (contrast) */
  --green: #0E9553;
  --orange: #F57B2F;
  --red-letter: #A50000;         /* red-letter crimson: 7.5:1 on #F6F6F6, 8.1:1 on white (WCAG AAA) */
  --mid: #605E5E;
  --serif: Georgia, Palatino, "Palatino Linotype", "Book Antiqua", serif;
  --body: "Libre Baskerville", Georgia, serif;
  --sans: "Oswald", "DIN Condensed", "Arial Narrow", sans-serif;
  --main-w: 650px;
  --side-w: 276px;
  --gap: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--charcoal); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--charcoal); padding: 10px 14px; font-family: var(--sans); }
.skip-link:focus { top: 8px; }

/* ---------- top bar ---------- */
.topbar { background: var(--charcoal); height: 64px; }
.topbar__inner { height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 44px; display: flex; align-items: center; justify-content: flex-end; }
.topbar__fb { display: inline-flex; line-height: 0; }

/* ---------- menu (overlaid on the hero, or on its own strip on article pages) ---------- */
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu li { position: relative; }
.menu li + li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.55); }
.menu a { display: block; padding: 0 15px; font-family: var(--sans); font-weight: 300; font-size: 18px; line-height: 20px; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; color: #b9b9b9; }
.menu li:first-child a { padding-left: 0; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; }
.menu a[aria-current="page"] { font-weight: 400; }
.hero .menu { position: absolute; z-index: 2; left: clamp(20px, 7.4vw, 95px); top: 54px; }
.hero .menu a:focus-visible { outline-color: #fff; }
.hero .menu a { text-shadow: 0 1px 4px rgba(0,0,0,.55); }

.subnav { padding: 22px 0 0; }
.subnav .menu { max-width: 1000px; margin: 0 auto; padding: 0 44px; }
.subnav .menu li + li::before { background: #b5b5b5; }
.subnav .menu a { color: #8f8f8f; }
.subnav .menu a:hover, .subnav .menu a[aria-current="page"] { color: var(--charcoal); }

/* ---------- hero ---------- */
.hero { position: relative; height: 646px; background: linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,0) 150px), #1b1b24 url(/media/cae403_4e4c248fed3048f6966b4426db8563d2_mv2.jpg) no-repeat; background-size: auto, max(1727px, 100%) auto; background-position: 0 0, 50% -114px; }
.hero__box { position: absolute; left: 50%; top: 242px; transform: translateX(-49.2%); width: min(784px, 92%); background: var(--charcoal); text-align: center; padding: 22px 12px 18px; }
.hero__title { margin: 0; font-family: var(--serif); font-weight: 400; color: #fff; font-size: clamp(30px, 5.3vw, 68px); line-height: 1.12; letter-spacing: .075em; }
.hero__tagline { margin: 8px 0 0; font-family: var(--sans); font-weight: 400; color: #c4c4c4; font-size: clamp(14px, 1.8vw, 22px); letter-spacing: .17em; line-height: 1.2; }

/* ---------- layout ---------- */
.wrap { padding: 32px 20px 0; }
.cols { max-width: calc(var(--main-w) + var(--gap) + var(--side-w)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, var(--main-w)) var(--side-w); column-gap: var(--gap); align-items: start; }
.is-post .wrap, .is-page .wrap { padding-top: 48px; }
.main { min-width: 0; }
.main--article, .main--page { padding: 0 13px 0 43px; }
.sidebar { display: block; padding-top: 6px; }
.is-post .sidebar, .is-page .sidebar { padding-top: 0; }

/* ---------- feed cards ---------- */
.card { margin: 0 0 64px; }
.card__img { display: block; background: #ddd; }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 24px 24px 0; }
.card__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.12; }
.card__title a { color: var(--charcoal); text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card__excerpt { margin: 16px 0 0; font-size: 14px; line-height: 1.7; color: var(--charcoal); }
.feed-label { margin: 0 0 28px; font-family: var(--sans); font-weight: 400; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); }
.feed-label span { color: #8f8f8f; font-weight: 300; margin-right: .5em; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 56px; font-family: var(--sans); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.pager a { color: var(--charcoal); text-decoration: none; }
.pager a:hover { color: var(--cyan-dark); }
.pager__step.is-off { color: #b3b3b3; }
.pager__nums { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.pager__nums a, .pager__nums span { display: inline-block; min-width: 34px; padding: 4px 8px; text-align: center; }
.pager__nums span { background: var(--charcoal); color: #fff; }

/* ---------- article ---------- */
.article__title, .page-title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.12; }
.page-title { font-style: italic; font-size: 24px; line-height: 1.3; margin-bottom: 18px; }
.article__meta { margin: 0 0 30px; font-family: var(--sans); font-weight: 300; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); }
.article__cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 26px; background: #ddd; }
.article__cover--banner { aspect-ratio: 1600 / 1060; max-height: 330px; margin-bottom: 36px; }
.page-title + .article__cover--banner { margin-top: 0; }

.prose { font-size: 16px; line-height: 1.5; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.6em; }
.prose li { margin: 0 0 .15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--body); font-size: 1em; line-height: 1.5; margin: 1.5em 0 .5em; }
.prose a { color: var(--cyan-dark); text-underline-offset: 2px; }
.prose a:hover { color: var(--charcoal); }
.prose blockquote { margin: 0 0 1.5em; padding-left: 1.2em; border-left: 3px solid #d8d8d8; }
.prose hr { border: 0; border-top: 1px solid #d8d8d8; margin: 2em 0; }
.prose img { margin: 1.5em 0; }
/* inline colours the old posts used */
.scripture { color: var(--green); }
.accent { color: #5E6B7A; } /* legacy class; Catechism text is now slate, not orange */
.prose .scripture a, .prose .accent a { color: inherit; }
/* red-letter: the spoken words of Jesus and of God in scripture quotations (declared after .scripture/.accent so it wins when nested) */
.words-of-christ, .red-letter { color: var(--red-letter); }
/* author signature (a lone "Drew Harber" paragraph) */
.signature { font-family: "Sacramento", cursive; font-size: 40px; line-height: 1.1; margin: 0 0 .8em; color: var(--charcoal); }
.prose--page { font-size: 14px; line-height: 1.6; }
.prose--page > p { font-size: 14px; }
.prose--page a { color: var(--charcoal); }
.prose--page a:hover { color: var(--cyan-dark); }
.prose--page strong { font-weight: 700; }
.center-links { text-align: center; }
.center-links a { color: var(--charcoal); }
.prose--about { font-size: 14px; }
.about-welcome { margin: 0 0 12px; font-family: var(--sans); font-weight: 400; font-size: 22px; letter-spacing: .12em; }

.article__foot { margin-top: 8px; }
.tags { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--sans); font-size: 15px; letter-spacing: .04em; }
.tags a { text-decoration: none; color: var(--mid); }
.tags a:hover { color: var(--cyan-dark); text-decoration: underline; }
.article__cats { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); }
.article__cats a { color: var(--charcoal); font-weight: 400; text-decoration: none; }
.article__cats a:hover { text-decoration: underline; }

/* ---------- book navigation (prev / next in reading order) ---------- */
.booknav { margin: 44px 0 56px; padding-top: 22px; border-top: 1px solid #d8d8d8; }
.booknav__where { margin: 0 0 14px; font-family: var(--sans); font-weight: 300; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); }
.booknav__where a { color: var(--charcoal); font-weight: 400; }
.booknav__note { text-transform: none; letter-spacing: .02em; font-style: italic; }
.booknav__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booknav__link { display: block; padding: 14px 16px; background: #fff; border: 1px solid #e3e3e3; text-decoration: none; color: var(--charcoal); }
.booknav__link:hover { border-color: var(--charcoal); }
.booknav__link--next { text-align: right; grid-column: 2; }
.booknav__link--prev { grid-column: 1; }
.booknav__dir { display: block; font-family: var(--sans); font-weight: 300; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: 4px; }
.booknav__title { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.25; }

/* ---------- mini card on the Common Objections page ---------- */
.mini-feed { margin: 40px 0 20px; }
.mini-card { display: block; width: 275px; max-width: 100%; text-decoration: none; color: var(--charcoal); }
.mini-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mini-card__title { display: block; margin-top: 14px; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.mini-card:hover .mini-card__title { text-decoration: underline; }

/* ---------- sidebar ---------- */
.signup { background: var(--charcoal); color: #fff; padding: 36px 22px 44px; text-align: center; margin: 0 0 40px; }
.signup__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.signup__sub { margin: 8px 0 40px; font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .09em; }
.signup__input { display: block; width: 100%; height: 34px; border: 0; border-radius: 0; padding: 0 8px; background: #fff; color: var(--charcoal); font-family: var(--body); font-size: 12px; }
.signup__input::placeholder { color: #555; opacity: 1; }
.signup__btn { display: block; width: 100%; height: 34px; margin-top: 8px; border: 0; border-radius: 0; background: var(--cyan); color: #fff; font-family: var(--body); font-size: 12px; cursor: pointer; }
.signup__btn:hover, .signup__btn:focus-visible { background: #1aa7ea; }
.signup__btn { color: #002a3d; font-weight: 700; } /* dark text on cyan keeps AA contrast */
.signup__btn--x { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; text-decoration: none; }
.signup__btn--x:hover, .signup__btn--x:focus-visible { color: #002a3d; }
.signup--x .signup__sub { margin-bottom: 28px; }
.signup__xlogo { flex: none; }

.author { background: #fff; margin: 0 0 0; position: relative; padding-bottom: 28px; }
.author__photo { width: 100%; aspect-ratio: 275 / 310; object-fit: cover; object-position: center top; background: #ddd; }
.author__body { padding: 20px 22px 14px; }
.author__name { margin: 0; font-family: var(--serif); font-size: 15px; letter-spacing: .12em; }
.author__role { margin: 10px 0 12px; font-family: var(--serif); font-style: italic; font-size: 11.5px; }
.author__bio { margin: 0; font-size: 11.5px; line-height: 1.55; }
.author__more { position: absolute; left: 0; bottom: 0; width: 28px; height: 28px; background: var(--cyan); color: #fff; font-family: var(--sans); font-size: 14px; line-height: 28px; text-align: center; text-decoration: none; }
.author__more { color: #002a3d; }
.author__more:hover { background: var(--charcoal); color: #fff; }
.author--connect { padding-bottom: 12px; }
.connect__title { margin: 0 0 10px; font-family: var(--sans); font-weight: 400; font-size: 21px; letter-spacing: .12em; }
.author--connect p { margin: 0; font-size: 14px; line-height: 1.5; }
.author--connect a { color: var(--charcoal); }

.recent { margin-top: 0; background: #fff; }
.recent__title { margin: 0; padding: 9px 12px; background: var(--charcoal); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .14em; }
.recent__list { list-style: none; margin: 0; padding: 14px 20px 8px; }
.recent__list li { margin: 0 0 12px; }
.recent__list a { font-family: var(--serif); font-size: 14.5px; line-height: 1.3; color: var(--charcoal); text-decoration: none; }
.recent__list a:hover { text-decoration: underline; }
.recent__list a[aria-current="page"] { font-weight: 700; }
.author + .recent { margin-top: 0; }

/* ---------- footer ---------- */
.footer { margin-top: 64px; background: var(--charcoal); color: #b5b5b5; height: 80px; }
.footer__inner { position: relative; max-width: 1000px; height: 100%; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.footer__fb { color: #8d8d8d; display: inline-flex; margin-right: 120px; }
.footer__copy { margin: 0 auto 0 0; font-size: 12.5px; color: #b5b5b5; }
.footer__top { color: #8d8d8d; display: inline-flex; padding: 8px; }
.footer__fb:hover, .footer__top:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main--article, .main--page { padding-left: 0; padding-right: 0; }
  .cols { --gap: 40px; }
}
@media (max-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .sidebar { margin-top: 40px; max-width: 420px; }
  .main--article, .main--page { padding: 0; }
  .card__title { font-size: 46px; }
  .article__title { font-size: 46px; }
}
@media (max-width: 640px) {
  .topbar { height: 52px; }
  .topbar__inner { padding: 0 16px; }
  .hero { height: 440px; background-size: auto, cover; background-position: 0 0, 22% 40%; }
  .hero .menu { left: 16px; right: 16px; top: 22px; }
  .hero .menu a { font-size: 15px; padding: 0 10px; }
  .hero__box { top: 150px; width: 92%; transform: translateX(-50%); padding: 16px 8px 14px; }
  .hero__title { font-size: 33px; letter-spacing: .05em; }
  .hero__tagline { font-size: 13px; letter-spacing: .12em; }
  .wrap { padding: 24px 16px 0; }
  .is-post .wrap, .is-page .wrap { padding-top: 28px; }
  .subnav { padding-top: 16px; }
  .subnav .menu { padding: 0 16px; }
  .subnav .menu a { font-size: 15px; padding: 0 10px; }
  .card { margin-bottom: 48px; }
  .card__body { padding: 18px 4px 0; }
  .card__title { font-size: 31px; }
  .article__title { font-size: 32px; }
  .prose { font-size: 15.5px; }
  .booknav__row { grid-template-columns: 1fr; }
  .booknav__link--next, .booknav__link--prev { grid-column: 1; }
  .booknav__link--next { text-align: left; }
  .sidebar { max-width: none; }
  .footer__inner { padding: 0 20px; }
  .footer__fb { margin-right: 24px; }
  .pager { flex-wrap: wrap; justify-content: center; }
}
@media print {
  .topbar, .hero, .subnav, .sidebar, .footer, .booknav, .skip-link { display: none; }
  body { background: #fff; }
}

/* ---------- scripture & Catechism block passages, inline scripture quotes (site-wide) ---------- */
.prose .passage { margin: 1.9em 0 2.1em; padding: 0; }
.prose .passage blockquote {
  margin: 0; padding: 1.15em 1.4em 1.05em 1.5em;
  background: #FBF8F2; border-left: 3px solid #BFA36B; border-radius: 0 3px 3px 0;
  font-family: var(--body); font-size: 1.06em; line-height: 1.78; color: var(--charcoal);
}
.prose .passage blockquote p { margin: 0 0 .75em; }
.prose .passage blockquote p:last-child { margin-bottom: 0; }
.prose .passage blockquote p.poetry { margin: 0; padding-left: 1.6em; }
.prose .passage blockquote p:not(.poetry) + p.poetry { margin-top: .6em; }
.prose .passage blockquote p.poetry + p:not(.poetry) { margin-top: .75em; }
.prose .passage__ref {
  margin: .5em .2em 0 0; text-align: right;
  font-family: var(--body); font-variant: small-caps; font-size: .9em; letter-spacing: .06em; color: #8a7d6b;
}
.prose .passage__ref::before { content: "\2014\00a0"; }
.prose em.sq { font-style: italic; color: inherit; }
.prose .ref-inline { font-variant: small-caps; letter-spacing: .05em; color: #8a7d6b; font-size: .92em; white-space: nowrap; }
.prose .words-of-christ { color: var(--red-letter); }
/* consecutive blocks (e.g. a run of short verses) sit closer together */
.prose .passage:has(+ .passage) { margin-bottom: 1.15em; }
.prose .passage + .passage { margin-top: 1.15em; }
/* short Catechism quotes inside sentences: italic slate (5.0:1 contrast on the page background) */
.prose em.ccq { font-style: italic; color: #5E6B7A; }
.prose .ref-inline--ccc { white-space: normal; }
/* Catechism quotes: same block layout, cool slate accent so they read as Catechism, not scripture */
.prose .passage--ccc blockquote { background: #F2F4F7; border-left-color: #7D8B9C; }
.prose .passage--ccc .passage__ref { color: #66727F; }
.prose .ccc-heading { margin: 1.8em 0 .5em; font-variant: small-caps; letter-spacing: .07em; font-size: 1.02em; color: #56616D; }
@media (max-width: 640px) {
  .prose .passage { margin: 1.5em 0 1.7em; }
  .prose .passage blockquote { padding: .95em 1em .9em 1.05em; font-size: 1.02em; line-height: 1.7; }
  .prose .passage blockquote p.poetry { padding-left: 1em; }
}
