/* ============================================================
   THE MIDDLEMAN EFFECT — shared stylesheet
   Design signature: "the mediator line" — a vertical rule that
   recurs in the logo, section dividers, and the two-column
   comparison block, echoing the site's central claim: Christ
   stands BETWEEN, not beside.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #1b2230;
  --ink-70: rgba(27, 34, 48, 0.72);
  --ink-50: rgba(27, 34, 48, 0.5);
  --ink-20: rgba(27, 34, 48, 0.14);
  --ink-10: rgba(27, 34, 48, 0.08);

  --paper: #faf8f2;
  --parchment: #ede6d5;
  --parchment-deep: #e1d6bc;

  --gold: #a9812e;
  --gold-deep: #8a6a25;
  --gold-tint: #f1e6c8;

  --pine: #2f4438;
  --pine-deep: #202f26;
  --pine-tint: #e3e9e2;

  --cream-text-on-ink: #efe9da;

  --serif-display: 'Fraunces', 'Iowan Old Style', serif;
  --serif-body: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --max: 1120px;
  --max-narrow: 720px;

  --radius-sm: 3px;
  --radius-md: 6px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}
.container--narrow {
  max-width: var(--max-narrow);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow--light { color: var(--gold); }

/* ---------- mediator mark (the signature) ---------- */
.mediator-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.mediator-mark span {
  display: block;
  width: 3px;
  height: 15px;
  background: currentColor;
  border-radius: 1px;
}
.mediator-mark span:nth-child(2) {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  align-self: center;
}

.mediator-rule {
  position: relative;
  width: 1px;
  background: var(--ink-20);
}
.mediator-rule::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- logo / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--ink-10);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.logo .mediator-mark { color: var(--gold-deep); }
.logo-word {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
}
.logo-word strong {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.02rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-70);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--pine-deep); }
.btn--gold {
  background: var(--gold);
  color: var(--paper);
}
.btn--gold:hover { background: var(--gold-deep); }
.btn--outline {
  background: transparent;
  border-color: var(--ink-20);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-light {
  background: transparent;
  border-color: rgba(250, 248, 242, 0.3);
  color: var(--cream-text-on-ink);
}
.btn--outline-light:hover { border-color: var(--cream-text-on-ink); }
.btn--arrow::after { content: '→'; }

/* ---------- hero ---------- */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--space-3);
}
.hero-copy { max-width: 640px; }
.hero .eyebrow { margin-bottom: 1.4rem; }
.hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  margin-bottom: 1.3rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-70);
  max-width: 520px;
  margin-bottom: 2.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-rule {
  width: 1px;
  background: var(--ink-20);
  min-height: 220px;
  position: relative;
}
.hero-rule::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-figure {
  padding-top: 0.4rem;
}
.hero-tag-list {
  display: grid;
  gap: 0.9rem;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-50);
  display: flex;
  gap: 0.6em;
  align-items: baseline;
}
.hero-tag b {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-rule { display: none; }
}

/* ---------- idea strip ---------- */
.idea-strip {
  background: var(--ink);
  color: var(--cream-text-on-ink);
  padding: var(--space-5) 0;
}
.idea-strip .eyebrow { color: var(--gold); margin-bottom: 1rem; }
.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--space-4);
  border-top: 1px solid rgba(250, 248, 242, 0.14);
}
.idea-item {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-right: 1px solid rgba(250, 248, 242, 0.14);
  padding-left: var(--space-3);
}
.idea-item:last-child { border-right: none; }
.idea-item .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.idea-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  color: var(--paper);
}
.idea-item p { color: rgba(250, 248, 242, 0.72); font-size: 0.98rem; }

@media (max-width: 780px) {
  .idea-grid { grid-template-columns: 1fr; border-top: none; }
  .idea-item {
    border-right: none;
    border-top: 1px solid rgba(250, 248, 242, 0.14);
    padding-left: 0;
  }
}

/* ---------- section heads ---------- */
.section {
  padding: var(--space-5) 0;
}
.section--tight { padding: var(--space-4) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--ink-10);
  padding-bottom: var(--space-2);
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-head .eyebrow { margin-bottom: 0.6rem; }
.section-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-70);
  white-space: nowrap;
  border-bottom: 1px solid var(--ink-20);
  padding-bottom: 2px;
}
.section-link:hover { color: var(--ink); border-color: var(--gold); }

@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ---------- article cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-10);
  border: 1px solid var(--ink-10);
}
.card {
  background: var(--paper);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: background 0.15s ease;
}
.card:hover { background: var(--parchment); }
.card-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1.1rem;
}
.card h3 {
  font-size: 1.28rem;
  line-height: 1.28;
  margin-bottom: 0.85rem;
}
.card p {
  color: var(--ink-70);
  font-size: 0.94rem;
  flex-grow: 1;
}
.card-foot {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card--soon { cursor: default; }
.card--soon:hover { background: var(--paper); }
.card--soon h3, .card--soon p { color: var(--ink-50); }
.badge-soon {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-50);
  border: 1px solid var(--ink-20);
  border-radius: 999px;
  padding: 0.2em 0.7em;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* filter bar (blog archive) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-4);
}
.filter-btn {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--ink-20);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  cursor: pointer;
  color: var(--ink-70);
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- prayer / email capture ---------- */
.capture {
  background: var(--parchment);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--parchment-deep);
  border-bottom: 1px solid var(--parchment-deep);
}
.capture-grid {
  display: grid;
  grid-template-columns: 1.1fr 1px 1fr;
  gap: var(--space-4);
  align-items: center;
}
.capture-rule { background: var(--ink-20); align-self: stretch; }
.capture h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.capture p { color: var(--ink-70); font-size: 1.02rem; }
.capture-card {
  background: var(--paper);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.capture-card .eyebrow { margin-bottom: 0.9rem; }
.field-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
}
.field-row input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--serif-body);
  font-size: 0.98rem;
  padding: 0.85em 1em;
  border: 1px solid var(--ink-20);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field-row input[type="email"]:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 1px;
}
.form-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-50);
  margin-top: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .capture-grid { grid-template-columns: 1fr; }
  .capture-rule { display: none; }
}

/* ---------- book band ---------- */
.book-band {
  background: var(--pine-deep);
  color: var(--cream-text-on-ink);
  padding: var(--space-5) 0;
}
.book-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-4);
  align-items: center;
}
.book-cover {
  aspect-ratio: 5 / 8;
  background: linear-gradient(155deg, #1b2230 0%, #2a3446 60%, #1b2230 100%);
  border: 1px solid rgba(250, 248, 242, 0.18);
  border-radius: 2px;
  padding: 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}
.book-cover .mediator-mark { color: var(--gold); align-self: center; transform: scale(1.3); margin: 0.5rem 0; }
.book-cover-title {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  line-height: 1.18;
  color: var(--paper);
  text-align: center;
}
.book-cover-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 242, 0.55);
  text-align: center;
  line-height: 1.6;
}
.book-cover-author {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(250, 248, 242, 0.8);
}
.book-copy .eyebrow { color: var(--gold); margin-bottom: 1rem; }
.book-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--paper);
  margin-bottom: 1.1rem;
}
.book-copy p {
  color: rgba(250, 248, 242, 0.78);
  font-size: 1.03rem;
  max-width: 60ch;
}
.book-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.disclosure {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(250, 248, 242, 0.45);
  margin-top: 1.1rem;
  max-width: 60ch;
  line-height: 1.6;
}

@media (max-width: 780px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-cover { max-width: 220px; margin: 0 auto; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 242, 0.6);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(250, 248, 242, 0.12);
}
.footer-brand .logo { color: var(--paper); margin-bottom: 1rem; }
.footer-brand .mediator-mark { color: var(--gold); }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 242, 0.85);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a {
  text-decoration: none;
  color: rgba(250, 248, 242, 0.6);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: var(--space-3);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}
.footer-bottom-disclosure { max-width: 58ch; line-height: 1.6; color: rgba(250, 248, 242, 0.4); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ============================================================
   ARTICLE / POST PAGE
   ============================================================ */
.post-hero {
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: 1px solid var(--ink-10);
}
.post-meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-50);
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}
.post-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  max-width: 18ch;
}
.template-flag {
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: var(--gold-tint);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius-md);
  padding: 0.9em 1.2em;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--gold-deep);
  margin-bottom: 2rem;
}

.post-body {
  padding: var(--space-5) 0;
}
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: var(--space-4);
  align-items: start;
}
.post-content { max-width: 66ch; font-size: 1.08rem; }
.post-content p { margin-bottom: 1.4em; }
.post-content h2 {
  font-size: 1.7rem;
  margin: 2.4em 0 0.9em;
}
.post-content h2:first-child { margin-top: 0; }

.verse-block {
  border-left: 3px solid var(--gold);
  padding: 0.3em 0 0.3em 1.4em;
  margin: 2.2em 0;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink);
}
.verse-block cite {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.7em;
}

.mediator-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  background: var(--parchment);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin: 2.4em 0;
}
.mediator-compare .mediator-rule { min-height: 100%; }
.compare-col .eyebrow { margin-bottom: 0.8rem; }
.compare-col p { font-size: 0.98rem; color: var(--ink-70); }
.compare-col--left .eyebrow { color: var(--ink-50); }
.compare-col--right .eyebrow { color: var(--pine); }

@media (max-width: 640px) {
  .mediator-compare { grid-template-columns: 1fr; }
  .mediator-compare .mediator-rule { display: none; }
}

.post-sidebar {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: var(--space-3);
}
.sidebar-card {
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}
.sidebar-card h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 0.9rem;
}
.sidebar-card p { font-size: 0.9rem; color: var(--ink-70); margin-bottom: 1rem; }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

/* mobile nav */
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: var(--space-3) 1.75rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    font-size: 0.95rem;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
