/* One Nation Under Which God? — founding-document theme
   Fonts: IM Fell English / IM Fell English SC, Playfair Display, EB Garamond
   (SIL Open Font License; see css/fonts/). Accent: wax-seal red #8b1a1a. */

@font-face {
  font-family: "IM Fell English";
  src: url("fonts/IMFeENrm28P.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("fonts/IMFeENit28P.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IM FELL English SC";
  src: url("fonts/IMFellEnglishSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --parchment: #ead7b0;
  --parchment-lite: #f4e6c4;
  --parchment-deep: #d9c08a;
  --ink: #1a1208;
  --ink-soft: #3a2c1a;
  --wax: #8b1a1a;
  --wax-dark: #5c1010;
  --wax-lite: #f3e4d2;
  --rule: #1a1208;
  --muted: #5a4a32;
  --warn-bg: #f3e2c0;
  --max: 860px;
  --wide: 1040px;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: "EB Garamond", "Times New Roman", Times, serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.65;
  background-color: #c9ae78;
  background-image:
    radial-gradient(ellipse at 50% 8%, rgba(255, 248, 230, 0.45) 0%, rgba(255, 248, 230, 0) 46%),
    radial-gradient(ellipse at 20% 90%, rgba(90, 40, 16, 0.16) 0%, transparent 42%),
    radial-gradient(ellipse at 90% 80%, rgba(80, 35, 10, 0.14) 0%, transparent 40%),
    repeating-linear-gradient(0deg, rgba(80, 50, 20, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(90, 55, 20, 0.025) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #f3e4bf 0%, #e8d3a4 38%, #d9bf86 100%);
  background-attachment: fixed;
}

/* Soft torn/aged edge around the viewport */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  box-shadow:
    inset 0 0 80px 18px rgba(70, 40, 12, 0.22),
    inset 0 0 0 1px rgba(80, 50, 20, 0.18);
  /* jagged inner bite to suggest worn paper, not a hard frame */
  clip-path: polygon(
    0.4% 0.8%, 2% 0.2%, 6% 0.9%, 11% 0.15%, 17% 0.7%, 23% 0.1%,
    31% 0.6%, 42% 0.05%, 54% 0.55%, 66% 0.1%, 78% 0.5%, 88% 0.15%,
    95% 0.7%, 99% 0.2%, 99.7% 2%, 99.2% 8%, 99.8% 16%, 99.1% 28%,
    99.7% 42%, 99.05% 58%, 99.7% 72%, 99.2% 86%, 99.7% 96%,
    98% 99.5%, 90% 99.15%, 78% 99.7%, 64% 99.1%, 50% 99.65%,
    36% 99.15%, 22% 99.6%, 10% 99.2%, 1.2% 99.55%, 0.2% 96%,
    0.8% 86%, 0.15% 72%, 0.7% 58%, 0.2% 42%, 0.75% 26%, 0.2% 12%, 0.6% 3%
  );
}

a { color: var(--wax); }
a:hover { color: var(--wax-dark); }
img { max-width: 100%; height: auto; }

.preview-banner {
  background: transparent;
  color: var(--wax);
  text-align: center;
  font-family: "EB Garamond", "Times New Roman", serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem 0.1rem;
  border: 0;
}
.preview-banner strong { color: var(--wax); font-weight: 500; font-style: italic; }

/* On the homepage the hero carries the title; don't repeat it in the header. */
body.index .brand .kicker,
body.index .brand .site-title,
body.index .brand .subtitle { display: none; }
body.index .brand {
  border-bottom: 0;
  box-shadow: none;
  padding-bottom: 0;
  min-height: 0;
}
body.index .site-header { padding: 0; }

.hero-quote { max-width: 36rem; margin-left: auto; margin-right: auto; text-align: left; }
.hero-quote blockquote { margin: 0.35rem 0 0; }

.site-header {
  background: transparent;
  color: var(--ink);
  padding: 0.6rem 1.25rem 0.4rem;
  border: 0;
  position: relative;
}
.brand {
  max-width: var(--wide);
  margin: 0 auto;
  text-align: center;
  padding-bottom: 0.7rem;
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.brand .kicker {
  font-family: "IM FELL English SC", "IM Fell English", serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--wax);
  margin: 0 0 0.4rem;
}
.brand .site-title {
  font-family: "Playfair Display", "IM Fell English", "Times New Roman", serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3.6vw, 1.95rem);
  line-height: 1.15;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.brand .site-title a { color: var(--ink); text-decoration: none; }
.brand .site-title a:hover { color: var(--wax); }
.brand .subtitle {
  font-family: "IM Fell English", "EB Garamond", serif;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.05rem;
}

/* Mobile-friendly nav: checkbox hamburger, no JS required */
.nav-wrap {
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 8px 16px -16px rgba(26, 18, 8, 0.5);
  /* keep parchment behind sticky nav so text doesn't show through */
  background-image:
    linear-gradient(180deg, rgba(236, 215, 168, 0.96) 0%, rgba(232, 211, 164, 0.96) 100%);
}
.nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.4rem;
}
#nav-toggle { position: absolute; left: -9999px; }
.nav-toggle-btn {
  display: none;
  font-family: "IM FELL English SC", serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.4rem 0.7rem;
  margin: 0.4rem;
  cursor: pointer;
}
nav.site-nav { flex: 1; }
nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
nav.site-nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-family: "IM FELL English SC", "IM Fell English", serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.5rem;
  white-space: nowrap;
}
nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--wax);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--wax);
}

@media (max-width: 900px) {
  .nav-toggle-btn { display: block; }
  nav.site-nav { display: none; width: 100%; }
  #nav-toggle:checked ~ nav.site-nav { display: block; }
  .nav-inner { flex-wrap: wrap; }
  nav.site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 0.5rem;
  }
  nav.site-nav a {
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(26, 18, 8, 0.25);
    white-space: normal;
    box-shadow: none;
  }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.15rem 3rem;
}
.wrap.wide { max-width: var(--wide); }

/* Dramatic homepage hero */
.hero {
  text-align: center;
  padding: 1.6rem 0 1.4rem;
  position: relative;
  min-height: 0;
}
.hero .hero-eye,
.eye-motif {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(420px, 88vw);
  height: auto;
  transform: translate(-50%, -54%);
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .kicker,
.hero-kicker {
  font-family: "IM FELL English SC", serif;
  letter-spacing: 0.16em;
  color: var(--wax);
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}
.hero h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: var(--ink);
  border: 0;
  padding: 0;
}
.hero-line {
  display: block;
  font-family: "IM Fell English", "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 4.2vw, 2.2rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.hero-emph {
  display: block;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(2.35rem, 9.2vw, 5.15rem);
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--ink);
  margin: 0.1rem 0 0.55rem;
  text-wrap: balance;
}
.hero-emph .which {
  color: var(--wax);
  font-style: italic;
  font-weight: 800;
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0 auto 0.9rem;
  max-width: 38rem;
}
.hero .subtitle-line,
.hero .lead.subtitle-line {
  font-family: "IM Fell English", "EB Garamond", serif;
  font-style: italic;
  color: var(--wax-dark);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  margin: 0 auto 0.25rem;
  text-align: center;
  max-width: 38rem;
}

.why {
  background: rgba(139, 26, 26, 0.06);
  border-left: 3px solid var(--wax);
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0 1.6rem;
}
.why p { margin: 0.35rem 0; }
.caption, .src, .note, .time {
  font-family: "EB Garamond", serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}
.hers-label {
  font-family: "IM FELL English SC", serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--wax);
  font-weight: 400;
}

h2 {
  font-family: "Playfair Display", "IM Fell English", serif;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  margin: 2.1rem 0 0.7rem;
  padding-top: 0.85rem;
  border-top: 0;
  /* ruled-line / torn divider above each section */
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-size: 100% 3px, 100% 1px;
  background-position: 0 0, 0 5px;
  background-repeat: no-repeat;
}
h2:first-child, .hero + h2, .page-title + h2 { background-image: none; padding-top: 0; }
h3 {
  font-family: "Playfair Display", "IM Fell English", serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}
h4 { font-size: 1.08rem; margin: 1.2rem 0 0.4rem; color: var(--ink); font-family: "Playfair Display", serif; }
p { margin: 0.7rem 0; }
ul, ol { margin: 0.5rem 0 1rem; padding-left: 1.3rem; }
li { margin: 0.28rem 0; }

.page-title {
  font-family: "Playfair Display", "IM Fell English", serif;
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0.4rem 0 0.45rem;
  border: 0;
  padding: 0;
  background: none;
  line-height: 1.15;
  text-align: center;
}
.page-deck {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.3rem;
  text-align: center;
}

.did-you-know {
  background: rgba(255, 248, 230, 0.35);
  border: 0;
  border-radius: 0;
  padding: 1.15rem 1.15rem 1.25rem;
  margin: 1.3rem 0 1.8rem;
  box-shadow:
    0 0 0 1px var(--ink),
    0 0 0 4px var(--parchment-lite),
    0 0 0 5px var(--ink);
}
.did-you-know h2 {
  background-image: none;
  margin-top: 0.4rem;
  padding-top: 0;
  text-align: center;
}
.did-you-know ol { padding-left: 1.25rem; }
.did-you-know li { margin: 0.55rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  margin: 0.8rem 0 1.2rem;
  background: rgba(255, 248, 230, 0.28);
}
th, td {
  border: 1px solid rgba(26, 18, 8, 0.45);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--ink);
  color: var(--parchment-lite);
  font-family: "IM FELL English SC", "IM Fell English", serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  font-weight: 400;
}
tr:nth-child(even) td { background: rgba(139, 26, 26, 0.04); }
.table-wrap { overflow-x: auto; margin: 0.8rem 0 1.2rem; -webkit-overflow-scrolling: touch; }

blockquote {
  margin: 0.9rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--wax);
  background: rgba(139, 26, 26, 0.05);
  font-family: "IM Fell English", "EB Garamond", serif;
  font-style: italic;
}
blockquote.official, blockquote.source {
  background: rgba(26, 18, 8, 0.04);
  border-left-color: var(--ink);
  font-style: normal;
  font-family: "EB Garamond", serif;
}
blockquote .who {
  display: block;
  font-style: normal;
  font-family: "IM FELL English SC", serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.45rem;
}

.warn, .flag {
  background: var(--warn-bg);
  border: 1px solid var(--wax);
  border-radius: 0;
  padding: 0.7rem 0.9rem;
  margin: 0.9rem 0;
  font-size: 1rem;
}
.warn-inline { color: var(--wax); font-weight: 700; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}
.card {
  background: rgba(255, 248, 230, 0.3);
  border: 1px solid rgba(26, 18, 8, 0.45);
  border-radius: 0;
  padding: 1rem 1.1rem;
}
.card h3 { margin-top: 0; }

.step {
  background: rgba(255, 248, 230, 0.3);
  border: 1px solid rgba(26, 18, 8, 0.4);
  border-radius: 0;
  padding: 0.9rem 1.05rem;
  margin: 0.85rem 0;
}
.step h3 { margin-top: 0; }
.step .when {
  font-family: "IM FELL English SC", serif;
  font-size: 0.82rem;
  color: var(--wax);
  letter-spacing: 0.06em;
  margin: 0 0 0.2rem;
}

.action {
  background: var(--ink);
  color: var(--parchment-lite);
  padding: 1.5rem 1.3rem 1.6rem;
  border-radius: 0;
  margin: 2.2rem 0 1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(139, 26, 26, 0.15), 0 0 0 6px var(--ink);
}
.action h2 {
  color: var(--parchment-lite);
  background-image: none;
  margin: 0 0 0.5rem;
  padding: 0;
  font-family: "Playfair Display", serif;
}
.action p { margin: 0.4rem auto 0.8rem; max-width: 36rem; color: #ead9b4; }
.action a { color: #f3c9c9; }
.action .btn {
  display: inline-block;
  background: var(--wax);
  color: #f8efd8;
  text-decoration: none;
  font-family: "IM FELL English SC", serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.72rem 1.2rem;
  border-radius: 0;
  margin: 0.25rem;
  border: 1px solid var(--wax-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 2px 0 var(--wax-dark);
}
.action .btn:hover { background: #a32020; color: #fff8e8; }
.action .btn-secondary {
  background: transparent;
  color: var(--parchment-lite);
  border: 1px solid #c9b58a;
  box-shadow: none;
}
.action .btn-secondary:hover { color: #fff; background: transparent; }
.action .fine {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 0.92rem;
  color: #cbbd9a;
  margin-top: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0 0.4rem;
}
.cta-row a, .btn-plain, .hero-actions .btn-gold, .hero-actions .btn-ghost {
  display: inline-block;
  background: var(--wax);
  color: #f8efd8;
  text-decoration: none;
  font-family: "IM FELL English SC", serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.62rem 1rem;
  border-radius: 0;
  border: 1px solid var(--wax-dark);
}
.cta-row a:hover, .hero-actions .btn-gold:hover { color: #fff8e8; background: #a32020; }
.hero-actions { margin: 1.15rem 0 0.3rem; }
.hero-actions a { margin: 0.25rem; }
.hero-actions .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.hero-actions .btn-ghost:hover { color: var(--wax); background: transparent; border-color: var(--wax); }

.diagram {
  background: rgba(255, 248, 230, 0.3);
  border: 1px solid rgba(26, 18, 8, 0.4);
  padding: 1rem;
  margin: 1rem 0;
  font-size: 1rem;
}
.diagram ol { margin: 0.4rem 0 0; }
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  margin: 0.8rem 0;
}
.flow .box {
  background: var(--ink);
  color: var(--parchment-lite);
  padding: 0.5rem 0.7rem;
  border-radius: 0;
  text-align: center;
  max-width: 11rem;
  font-size: 0.88rem;
  line-height: 1.35;
}
.flow .arrow { color: var(--wax); font-weight: 700; }

.handout, .print-sheet {
  background: rgba(255, 248, 230, 0.4);
  border: 1px solid var(--ink);
  padding: 1.2rem 1.3rem;
  margin: 1.2rem 0;
}
.handout h2, .print-sheet h2 { background-image: none; margin-top: 0; padding-top: 0; }

.print-only { display: none; }

.site-footer {
  background: transparent;
  color: var(--ink-soft);
  padding: 1.4rem 1.15rem 2.6rem;
  font-size: 0.98rem;
  border-top: 3px solid var(--ink);
  box-shadow: 0 -2px 0 var(--ink);
}
.site-footer .inner { max-width: var(--wide); margin: 0 auto; }
.site-footer h2, .site-footer h3 {
  font-family: "IM FELL English SC", serif;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.7rem;
  border: 0;
  padding: 0;
  background: none;
  font-weight: 400;
}
.network {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}
.network a {
  color: var(--wax);
  text-decoration: none;
  border: 1px solid rgba(139, 26, 26, 0.4);
  padding: 0.25rem 0.55rem;
  font-family: "IM FELL English SC", serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.network a:hover { background: rgba(139, 26, 26, 0.08); }
.site-footer p { margin: 0.4rem 0; color: var(--ink-soft); }
.site-footer .legal { font-size: 0.9rem; color: var(--muted); font-style: italic; }

.tag {
  display: inline-block;
  background: transparent;
  color: var(--wax);
  font-family: "IM FELL English SC", serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  padding: 0.15rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--wax);
}
ol.beats { list-style: none; padding: 0; margin: 0; position: relative; }
ol.beats:before {
  content: "";
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--wax);
  opacity: 0.55;
}
ol.beats li { position: relative; padding: 0 0 1rem 3rem; }
ol.beats li:last-child { padding-bottom: 0; }
ol.beats li:before {
  content: attr(data-n);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--wax);
  color: #f8efd8;
  font: 400 13px/32px "IM FELL English SC", "IM Fell English", serif;
  text-align: center;
}
.date-label {
  font-family: "IM FELL English SC", serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--wax);
}
.closing {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1rem;
  background: rgba(139, 26, 26, 0.06);
  border-left: 3px solid var(--wax);
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.4rem;
}
.page-grid .card h3 { font-size: 1.08rem; }
.page-grid .card a { text-decoration: none; color: inherit; }
.page-grid .card a h3 { color: var(--ink); }
.page-grid .card a:hover h3 { color: var(--wax); }
.page-grid .num {
  font-family: "IM FELL English SC", serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--wax);
  font-weight: 400;
}
.scripture { font-size: 1.05rem; color: var(--ink-soft); font-style: italic; }

/* Dollar bill page: subtle motif in the upper field */
body.dollar-bill {
  background-image:
    url("../img/eye-providence.svg"),
    radial-gradient(ellipse at 50% 8%, rgba(255, 248, 230, 0.45) 0%, rgba(255, 248, 230, 0) 46%),
    radial-gradient(ellipse at 20% 90%, rgba(90, 40, 16, 0.16) 0%, transparent 42%),
    radial-gradient(ellipse at 90% 80%, rgba(80, 35, 10, 0.14) 0%, transparent 40%),
    repeating-linear-gradient(0deg, rgba(80, 50, 20, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(90, 55, 20, 0.025) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #f3e4bf 0%, #e8d3a4 38%, #d9bf86 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-position: center 7.5rem, center 8%, 20% 90%, 90% 80%, 0 0, 0 0, 0 0;
  background-size: min(280px, 55vw), auto, auto, auto, auto, auto, auto;
  background-blend-mode: multiply, normal, normal, normal, normal, normal, normal;
}
.dollar-eye {
  display: block;
  width: min(160px, 42vw);
  margin: 0.2rem auto 0.8rem;
  opacity: 0.55;
}

@media print {
  body::before { display: none !important; }
  .preview-banner,
  .nav-wrap,
  .nav-toggle-btn,
  .site-header,
  .action,
  .cta-row,
  .hero-actions,
  .hero-eye,
  .eye-motif,
  .dollar-eye,
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  body, body.dollar-bill {
    background: #fff !important;
    background-image: none !important;
    color: #000;
    font-size: 11pt;
  }
  a { color: #000; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
  .did-you-know, .handout, .print-sheet, .step, .card, blockquote, .warn {
    border-color: #000;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }
  .site-footer {
    background: #fff;
    color: #000;
    border-top: 2px solid #000;
    box-shadow: none;
    padding: 0.8rem 0 0;
  }
  .site-footer h2, .site-footer h3, .site-footer p, .site-footer .legal { color: #000; }
  .network { display: none; }
  h2, h3, table, .step { break-inside: avoid; }
  th { background: #000; color: #fff; }
  @page { margin: 0.7in; }
}

body.page-pastors .print-sheet { page-break-after: always; }
body.page-pastors .print-sheet:last-of-type { page-break-after: auto; }

@media (max-width: 420px) {
  body { font-size: 1.05rem; }
  .wrap { padding: 1rem 0.85rem 2.4rem; }
  .hero { padding: 0.8rem 0 1rem; }
  .hero-emph { letter-spacing: -0.03em; }
}

/* v0.3 staircase */
.staircase {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 1.7rem;
  counter-reset: stair;
}
.staircase > li {
  counter-increment: stair;
  position: relative;
  padding: 0.85rem 0.95rem 0.95rem 3.45rem;
  margin: 0 0 0.7rem;
  background: rgba(255, 248, 230, 0.3);
  border: 1px solid rgba(26, 18, 8, 0.4);
}
.staircase > li::before {
  content: counter(stair);
  position: absolute;
  left: 0.65rem;
  top: 0.85rem;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  background: var(--wax);
  color: #f8efd8;
  font-family: "IM FELL English SC", "IM Fell English", serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 0 var(--wax-dark);
}
.staircase .when {
  font-family: "IM FELL English SC", "IM Fell English", serif;
  font-size: 0.8rem;
  color: var(--wax);
  letter-spacing: 0.07em;
  margin: 0 0 0.15rem;
}
.staircase h3 {
  margin: 0 0 0.3rem;
  font-size: 1.18rem;
  line-height: 1.25;
  padding-top: 0;
  background-image: none;
}
.staircase p { margin: 0.28rem 0; }
.staircase .mindset {
  font-style: italic;
  color: var(--ink-soft);
}
.staircase .mindset strong {
  font-style: normal;
  font-family: "IM FELL English SC", serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--wax);
  font-weight: 400;
}
.question-to-test {
  font-weight: 600;
  color: var(--ink);
}
.letter-block {
  margin: 1.2rem 0 1.6rem;
  padding: 0.2rem 0 0.4rem;
}
@media (max-width: 520px) {
  .staircase > li { padding-left: 3.1rem; padding-right: 0.7rem; }
  .staircase h3 { font-size: 1.08rem; }
}
@media print {
  .staircase > li {
    background: transparent;
    border: 1px solid #000;
    break-inside: avoid;
  }
  .staircase > li::before {
    background: #000;
    color: #fff;
    box-shadow: none;
  }
}


/* v0.4 moves */
.move {
  background: rgba(255, 248, 230, 0.3);
  border: 1px solid rgba(26, 18, 8, 0.4);
  padding: 0.95rem 1.1rem 1.05rem;
  margin: 0.9rem 0;
}
.move .when {
  font-family: "IM FELL English SC", "IM Fell English", serif;
  font-size: 0.8rem;
  color: var(--wax);
  letter-spacing: 0.07em;
  margin: 0 0 0.15rem;
}
.move h3 {
  margin: 0 0 0.35rem;
  font-size: 1.22rem;
  line-height: 1.25;
  padding-top: 0;
  background-image: none;
}
.move p { margin: 0.3rem 0; }
.move .mindset { font-style: italic; color: var(--ink-soft); }
.move .era { font-weight: 600; }
.summary-lead,
.hero .lead.summary-lead,
.hero .summary-lead {
  text-align: left;
  max-width: none;
  width: 100%;
  margin: 1rem 0 1.15rem;
  padding: 0;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
  font-family: "EB Garamond", "Times New Roman", Times, serif;
}
.hero .summary-lead p {
  margin: 0.55rem 0;
  text-align: left;
  max-width: none;
}
.hero .summary-lead p:first-child { margin-top: 0; }
.hero .summary-lead p:last-child { margin-bottom: 0; }

/* Soft gold marker for key phrases. Quotes stay attributed; a highlight is not a verdict. */
mark.hl,
.hl {
  background-color: rgba(212, 168, 58, 0.42);
  background-image: linear-gradient(180deg, rgba(232, 196, 90, 0.28) 0%, rgba(212, 168, 58, 0.48) 100%);
  color: inherit;
  font-weight: inherit;
  font-style: inherit;
  padding: 0.05em 0.18em 0.08em;
  border-radius: 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
h2 mark.hl,
h2 .hl {
  padding: 0.02em 0.16em 0.06em;
}


/* v0.5 revival */
#revival .story {
  background: rgba(255, 248, 230, 0.3);
  border: 1px solid rgba(26, 18, 8, 0.4);
  padding: 0.75rem 1rem 0.85rem;
  margin: 0.7rem 0;
}
#revival .story p { margin: 0.25rem 0; }
#revival .story .when {
  font-family: "IM FELL English SC", "IM Fell English", serif;
  font-size: 0.8rem;
  color: var(--wax);
  letter-spacing: 0.07em;
  margin: 0 0 0.15rem;
}
#revival .levels { margin: 0.6rem 0 1rem; padding-left: 1.15rem; }
#revival .levels li { margin: 0.35rem 0; }
#revival .scripture {
  font-style: italic;
}
#revival h3 {
  margin-top: 1.1rem;
}


/* v0.5 contrast */
.contrast {
  margin: 1rem 0 0.4rem;
  padding: 0.85rem 0.95rem 1rem;
  border: 1px solid rgba(26, 18, 8, 0.45);
  background: rgba(255, 248, 230, 0.35);
}
.contrast-lead { margin: 0 0 0.65rem; }
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 800px) {
  .contrast-grid { grid-template-columns: 1fr; gap: 0.85rem; }
}
.contrast-col {
  border: 1px solid rgba(26, 18, 8, 0.28);
  padding: 0.55rem 0.7rem 0.7rem;
  background: rgba(255, 255, 255, 0.25);
}
.contrast-col h4 {
  font-family: "IM FELL English SC", "IM Fell English", serif;
  font-size: 0.95rem;
  color: var(--wax);
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
  font-weight: 400;
}
.contrast-col p, .contrast-col li { margin: 0.25rem 0; font-size: 0.98rem; }
.contrast-col ul { margin: 0; padding-left: 1.1rem; }


/* v0.7 Trump 47 list + contrast tidy */
.record-list {
  list-style: none;
  margin: 0.45rem 0 0.9rem;
  padding: 0;
  text-align: left;
  width: 100%;
  max-width: none;
}
.record-list li {
  margin: 0.55rem 0;
  padding: 0;
  line-height: 1.65;
  text-align: left;
}
.record-list a { text-decoration: underline; text-underline-offset: 0.12em; }
#move-4 .record-list .src {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

.contrast {
  margin: 1.15rem 0 0.2rem;
  padding: 0.9rem 0 0;
  border: 0;
  border-top: 1px solid rgba(26, 18, 8, 0.35);
  background: transparent;
}
.contrast-lead {
  margin: 0.85rem 0 0.7rem;
  text-align: left;
}
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 800px) {
  .contrast-grid { grid-template-columns: 1fr; gap: 0.85rem; }
}
.contrast-col {
  border: 1px solid rgba(26, 18, 8, 0.28);
  padding: 0.65rem 0.8rem 0.8rem;
  background: rgba(255, 248, 230, 0.35);
  text-align: left;
  overflow-wrap: break-word;
}
.contrast-col h4 {
  font-family: "IM FELL English SC", "IM Fell English", serif;
  font-size: 0.95rem;
  color: var(--wax);
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
  font-weight: 400;
}
.contrast-col p,
.contrast-col li {
  margin: 0.4rem 0;
  font-size: 1.02rem;
  line-height: 1.55;
}
.contrast-col ul {
  margin: 0;
  padding-left: 1.1rem;
}
@media (max-width: 799px) {
  .contrast {
    padding-top: 0.7rem;
  }
  .contrast-col {
    padding: 0.7rem 0.85rem 0.85rem;
  }
}

#move-4, #contrast, #revival, #today, #how-we-got-here, #one-action, .move, .step {
  scroll-margin-top: 4.25rem;
}
