:root {
  --bg: #f4f0e8;
  --paper: #fffdf8;
  --ink: #20251f;
  --ink-soft: #3d463e;
  --muted: #6b746c;
  --line: #d9d3c8;
  --line-dark: #c6bfb2;
  --green: #30483a;
  --green-deep: #23362b;
  --gold: #8b6f42;
  --soft-green: #e6ebe5;
  --soft-gold: #eee7da;
  --shadow: 0 22px 70px rgba(40, 44, 37, .09);
  --max: 1200px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--serif);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem clamp(1rem, 4vw, 4.5rem);
  background: rgba(244, 240, 232, .95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(32, 37, 31, .08);
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}
.brand-copy strong { display: block; font-size: .98rem; letter-spacing: .01em; }
.brand-copy small { display: block; margin-top: .05rem; color: var(--muted); font-family: var(--sans); font-size: .68rem; }
.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav a { font-family: var(--sans); font-size: .78rem; text-decoration: none; color: var(--ink-soft); }
.primary-nav a:hover { color: var(--gold); }
.menu-toggle { display: none; border: 1px solid var(--line-dark); background: transparent; padding: .5rem .7rem; font-family: var(--sans); font-size: .78rem; cursor: pointer; }

.section { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: 6.5rem 0; }
.section-wide { width: 100%; }
.wide-inner { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
.eyebrow, .hero-kicker {
  margin-bottom: 1rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; font-weight: 500; }
h1 { margin-bottom: 1.6rem; font-size: clamp(3.6rem, 8.6vw, 8.4rem); letter-spacing: -.055em; }
h1 em { color: var(--green); font-weight: 500; }
h2 { font-size: clamp(2.3rem, 4.7vw, 4.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; letter-spacing: -.015em; }
p { margin-top: 0; }

.hero { padding-top: 8rem; padding-bottom: 5rem; }
.hero-copy { max-width: 840px; margin-bottom: 2rem; color: var(--ink-soft); font-size: clamp(1.15rem, 2vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.2rem; border-radius: 999px; font-family: var(--sans); font-size: .82rem; font-weight: 750; text-decoration: none; }
.button.primary { background: var(--green-deep); color: white; }
.button.secondary { border: 1px solid var(--line-dark); background: rgba(255,255,255,.45); }
.button:hover { transform: translateY(-1px); }
.collection-stats { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); max-width: 760px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.collection-stats > div { display: flex; align-items: baseline; gap: .65rem; padding: 1rem .8rem 1rem 0; }
.collection-stats strong { font-size: 1.7rem; font-weight: 500; }
.collection-stats span { color: var(--muted); font-family: var(--sans); font-size: .73rem; }
.independence-note { display: grid; grid-template-columns: 180px 1fr; gap: 1.3rem; max-width: 960px; margin-top: 3rem; padding: 1.2rem 1.3rem; border-left: 3px solid var(--gold); background: rgba(255,255,255,.42); }
.independence-note > span { color: var(--gold); font-family: var(--sans); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.independence-note p { margin: 0; color: #4b534c; font-size: .91rem; }

.statement-band { background: var(--green-deep); color: #fbf8f1; }
.statement-inner { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: 4.2rem 0; }
.statement-inner p { max-width: 1080px; margin: 0; font-size: clamp(1.9rem, 4.2vw, 4rem); line-height: 1.17; letter-spacing: -.025em; }

.section-heading { max-width: 840px; margin-bottom: 2.3rem; }
.section-heading p { color: var(--muted); font-size: 1.02rem; }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; max-width: none; align-items: end; }
.split-heading > p { margin-bottom: .3rem; }

.start-section { padding-bottom: 5rem; }
.start-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.start-card { position: relative; min-height: 360px; padding: 1.45rem; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.start-card .work-no { margin-bottom: 3.5rem; }
.start-card h3 { font-size: 1.55rem; }
.start-card p { color: var(--muted); font-size: .92rem; }
.start-card a { margin-top: auto; color: var(--green); font-family: var(--sans); font-size: .78rem; font-weight: 750; text-decoration: none; }
.start-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.volumes-section { border-top: 1px solid var(--line); }
.volume-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.volume-card { min-height: 370px; padding: 1.3rem; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.volume-roman { color: var(--gold); font-family: var(--sans); font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
.volume-card h3 { margin-top: 4rem; font-size: 1.55rem; }
.volume-card p { color: var(--muted); font-size: .88rem; }
.volume-card .volume-range { margin-top: auto; padding-top: 1rem; border-top: 1px solid #ebe5da; color: var(--muted); font-family: var(--sans); font-size: .68rem; }
.volume-card a { margin-top: .9rem; color: var(--green); font-family: var(--sans); font-size: .78rem; font-weight: 750; text-decoration: none; }

.library-section { border-top: 1px solid var(--line); }
.library-heading-row { display: grid; grid-template-columns: 1.1fr .6fr; gap: 3rem; max-width: none; align-items: end; }
.search-wrap label { display: block; margin-bottom: .45rem; color: var(--muted); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.search-wrap input { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line-dark); background: var(--paper); color: var(--ink); outline: none; }
.search-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(48,72,58,.08); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1rem; }
.filter { padding: .55rem .85rem; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; cursor: pointer; font-family: var(--sans); font-size: .73rem; }
.filter.active { border-color: var(--green-deep); background: var(--green-deep); color: white; }
.library-status { display: flex; justify-content: space-between; gap: 1rem; margin: 1.1rem 0; padding-bottom: .8rem; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.article-card { min-height: 350px; padding: 1.35rem; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.work-topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.work-no, .movement-label, .available-label { font-family: var(--sans); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.work-no { color: var(--gold); }
.movement-label { color: var(--muted); }
.available-label { display: inline-block; margin-bottom: .7rem; padding: .22rem .42rem; background: var(--soft-green); color: var(--green); letter-spacing: .07em; }
.article-card h3 { margin-bottom: .8rem; font-size: 1.55rem; }
.article-card .deck { color: var(--muted); font-size: .92rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid #ece7de; }
.card-actions button, .card-actions a { padding: 0; border: 0; background: none; color: var(--green); cursor: pointer; font-family: var(--sans); font-size: .74rem; font-weight: 750; text-decoration: none; }
.card-actions .subtle-link { color: var(--muted); }
.empty-state { padding: 3rem; border: 1px dashed var(--line-dark); color: var(--muted); text-align: center; }

.future-card { display: grid; grid-template-columns: 1fr .85fr; gap: 3rem; padding: clamp(1.5rem, 5vw, 4rem); border: 1px solid var(--line); background: var(--soft-gold); }
.future-card p { max-width: 650px; color: var(--ink-soft); }
.question-stack { display: flex; flex-direction: column; justify-content: center; }
.question-stack span { padding: 1rem 0; border-bottom: 1px solid rgba(139,111,66,.28); font-size: 1.05rem; }

.belief-section { background: var(--soft-green); }
.belief-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; padding-top: 6.5rem; padding-bottom: 6.5rem; }
.belief-copy { max-width: 800px; font-size: 1.19rem; }
.belief-copy p { margin-bottom: 1.2rem; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.about-grid article { padding: 1.5rem; border-top: 2px solid var(--green); background: rgba(255,255,255,.36); }
.about-number { color: var(--gold); font-family: var(--sans); font-size: .68rem; font-weight: 800; }
.about-grid h3 { margin-top: 3rem; }
.about-grid p { color: var(--muted); font-size: .93rem; }

.disclaimer-section { border-top: 1px solid var(--line); }
.disclaimer-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 4rem; align-items: start; }
.disclaimer-card.full { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line-dark); background: var(--paper); box-shadow: var(--shadow); }
.disclaimer-card p { color: var(--ink-soft); }
.disclaimer-emphasis { margin: 1.8rem 0; padding: 1.2rem; border-left: 3px solid var(--gold); background: var(--soft-gold); color: var(--ink) !important; }

.site-footer { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding: 3rem max(1.25rem, calc((100vw - var(--max))/2)); border-top: 1px solid var(--line); background: #eae5db; }
.site-footer p { color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.footer-links a { font-family: var(--sans); font-size: .76rem; }
.footer-note { grid-column: 1 / -1; margin: 0; padding-top: 1rem; border-top: 1px solid #d5cec1; font-family: var(--sans); font-size: .69rem; }

.article-dialog { width: min(820px, calc(100% - 1.5rem)); max-height: 88vh; padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.article-dialog::backdrop { background: rgba(22,27,22,.58); backdrop-filter: blur(3px); }
.dialog-close { position: sticky; float: right; top: 1rem; margin: 1rem 1rem 0 0; width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 1.2rem; }
#dialogContent { padding: clamp(1.5rem, 5vw, 4rem); padding-top: 4rem; }
#dialogContent h2 { margin: .8rem 0 1rem; font-size: clamp(2.3rem, 5vw, 4.3rem); }
#dialogContent .dialog-movement { color: var(--gold); font-family: var(--sans); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
#dialogContent .dialog-deck { color: var(--ink-soft); font-size: 1.16rem; }
#dialogContent .dialog-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
#dialogContent .dialog-actions a { padding: .7rem .95rem; border-radius: 999px; background: var(--green-deep); color: white; font-family: var(--sans); font-size: .74rem; font-weight: 750; text-decoration: none; }
#dialogContent .dialog-actions a.secondary-action { border: 1px solid var(--line-dark); background: transparent; color: var(--ink); }

@media (max-width: 1050px) {
  .start-grid { grid-template-columns: repeat(2, 1fr); }
  .volume-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .belief-layout, .disclaimer-layout { gap: 2.5rem; }
}

@media (max-width: 820px) {
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 1.1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .primary-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .brand-copy small { display: none; }
  .split-heading, .library-heading-row, .future-card, .belief-layout, .disclaimer-layout { grid-template-columns: 1fr; }
  .belief-layout { gap: 1rem; }
  .about-grid { grid-template-columns: 1fr; }
  .independence-note { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .section, .wide-inner, .statement-inner { width: min(var(--max), calc(100% - 1.5rem)); }
  .section { padding: 4.6rem 0; }
  .hero { padding-top: 5.5rem; }
  h1 { font-size: clamp(3.3rem, 18vw, 5.7rem); }
  .collection-stats { grid-template-columns: 1fr; }
  .collection-stats > div { border-bottom: 1px solid var(--line); }
  .collection-stats > div:last-child { border-bottom: 0; }
  .start-grid, .volume-grid, .article-grid { grid-template-columns: 1fr; }
  .start-card, .volume-card, .article-card { min-height: 0; }
  .start-card .work-no, .volume-card h3, .work-topline { margin-bottom: 1.8rem; }
  .volume-card h3 { margin-top: 2rem; }
  .library-status { flex-direction: column; gap: .25rem; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-note { grid-column: 1; }
}

/* Christ-centered revision */
.brand-mark { color: var(--gold); font-size: 1.15rem; }
.hero { position: relative; }
.hero::before {
  content: "JESUS CHRIST · AUTHOR AND FINISHER";
  position: absolute;
  right: 0;
  top: 8.3rem;
  writing-mode: vertical-rl;
  color: rgba(48,72,58,.22);
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .2em;
}
.hero-confession {
  max-width: 780px;
  margin: -.45rem 0 1rem;
  color: var(--gold);
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.15;
}
.button.text-button { padding-left: .25rem; padding-right: .25rem; color: var(--green); }
.christ-scripture .statement-inner { display: grid; grid-template-columns: 170px 1fr; gap: 2rem; align-items: start; }
.christ-scripture .statement-inner span { padding-top: .45rem; color: #d8caa8; font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.christ-center { padding-top: 7.5rem; padding-bottom: 7.5rem; }
.christ-intro { max-width: 980px; margin-bottom: 4rem; }
.christ-intro h2 { max-width: 960px; }
.christ-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.christ-manifesto { max-width: 760px; font-size: 1.15rem; }
.christ-manifesto p { margin-bottom: 1.35rem; }
.christ-manifesto p:first-child { font-size: 1.45rem; color: var(--green-deep); }
.christ-final { margin-top: 2.3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1.38rem; line-height: 1.35; }
.editorial-test { position: sticky; top: 110px; padding: 1.6rem; border: 1px solid var(--line-dark); background: var(--paper); box-shadow: var(--shadow); }
.editorial-test ol { margin: 0; padding: 0; list-style: none; }
.editorial-test li { display: grid; grid-template-columns: 42px 1fr; gap: .8rem; padding: 1rem 0; border-top: 1px solid #ebe5da; }
.editorial-test li:first-child { border-top: 0; }
.editorial-test li span { color: var(--gold); font-family: var(--sans); font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.editorial-test li p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.christ-question { margin-top: auto; padding: 1rem 0; border-top: 1px solid #ebe5da; color: var(--ink-soft); font-size: .88rem; }
.christ-question span { display: block; margin-bottom: .32rem; color: var(--gold); font-family: var(--sans); font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.volume-card .volume-range { margin-top: 0; }
.belief-lead { font-size: 1.42rem; line-height: 1.45; color: var(--green-deep); }
.belief-closing { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(48,72,58,.2); font-size: 1.28rem; }

@media (max-width: 820px) {
  .christ-grid, .christ-scripture .statement-inner { grid-template-columns: 1fr; }
  .editorial-test { position: static; }
  .hero::before { display: none; }
}

/* Anonymous authorship statement */
.anonymity-band .statement-inner { display: grid; grid-template-columns: 170px 1fr; gap: 2rem; align-items: start; }
.anonymity-band .statement-inner > span { padding-top: .45rem; color: #d8caa8; font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.anonymity-band .statement-inner div { max-width: 900px; }
.anonymity-band .statement-inner p { margin: 0 0 .8rem; }
.anonymity-band .statement-inner p:last-child { margin-bottom: 0; font-size: 1.18rem; line-height: 1.55; }
@media (max-width: 820px) { .anonymity-band .statement-inner { grid-template-columns: 1fr; } }

.search-help{margin:.45rem 0 0;color:var(--muted);font-family:var(--sans);font-size:.72rem;}
.search-hit{margin:1rem 0 0;padding:.85rem 1rem;border-left:3px solid var(--gold);background:var(--soft-gold);font-family:var(--sans);font-size:.78rem;line-height:1.55;color:var(--ink-soft);}
.search-hit strong{color:var(--ink);}
