/* Reset, typography, grid, and utilities. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-2);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
video { width: 100%; height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--red); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: var(--hair) solid var(--rule); margin: 0; }

/* Focus is always visible. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* Type scale */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-7); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-6); }
h3 { font-size: var(--fs-4); }
.serif { font-family: var(--font-display); }
.ital { font-style: italic; font-weight: 400; }
.lede { font-size: var(--fs-3); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-1); }
.tagline { font-family: var(--font-display); font-style: italic; font-size: var(--fs-4); color: var(--muted); }

.eyebrow {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-0); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; flex: 0 0 18px; height: var(--hair); background: var(--red); }
.eyebrow--plain::before { display: none; }

.dropcap::first-letter {
  font-family: var(--font-display); font-weight: 600; color: var(--red);
  float: left; font-size: 3.4em; line-height: 0.8; padding: 0.06em 0.12em 0 0;
}

/* The scripture pull quote. */
.pullquote {
  position: relative;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); line-height: 1.3;
  border-top: var(--hair) solid var(--red); border-bottom: var(--hair) solid var(--rule);
  padding: var(--sp-6) 0 var(--sp-5) 0;
}
.pullquote p { text-wrap: balance; }
.pullquote cite { display: block; margin-top: var(--sp-4); font: 600 var(--fs-0)/1.4 var(--font-body); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-style: normal; }

/* Ghost numerals for section numbering. */
.section-num {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-8); line-height: 0.85;
  color: var(--rule-strong); user-select: none;
}

/* Layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-8); border-top: var(--hair) solid var(--rule); }
.section--tight { padding-block: var(--sp-6); }
.section--flush { padding-block: 0; }
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.flow > * + * { margin-top: var(--sp-3); }

/* 12-column grid. Columns divide with hairlines on desktop, rows on mobile. */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.grid > .cell { padding: var(--sp-5) 0; min-width: 0; }
.grid > .cell + .cell { border-top: var(--hair) solid var(--rule); }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid > .cell { padding: var(--sp-6) var(--sp-6); }
  .grid > .cell:first-child { padding-left: 0; }
  .grid > .cell:last-child { padding-right: 0; }
  .grid > .cell + .cell { border-top: 0; border-left: var(--hair) solid var(--rule); }
  .c-2 { grid-column: span 2; } .c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; }
  .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; }
  .c-8 { grid-column: span 8; } .c-9 { grid-column: span 9; } .c-12 { grid-column: span 12; }
}

/* Ruled card grid: hairlines between every card, rows included. */
.ruled {
  display: grid; gap: var(--hair); padding: var(--hair) 0;
  border-top: var(--hair) solid var(--rule); border-bottom: var(--hair) solid var(--rule);
  grid-template-columns: repeat(var(--cols-sm, 1), minmax(0, 1fr));
}
/* Each cell draws its own hairline frame into the 1px gap, so an empty trailing cell stays ink. */
.ruled > * { background: var(--ink); min-width: 0; box-shadow: 0 0 0 var(--hair) var(--rule); }
.ruled > [hidden] { display: none; }
@media (min-width: 640px) { .ruled { grid-template-columns: repeat(var(--cols-md, 2), minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ruled { grid-template-columns: repeat(var(--cols-lg, 3), minmax(0, 1fr)); } }

/* Utilities */
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--red); color: var(--on-red); padding: var(--sp-3) var(--sp-4);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.row--between { justify-content: space-between; }
.right { text-align: right; }
.center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.rule-top { border-top: var(--hair) solid var(--rule); }
.rule-red { border-top: var(--hair) solid var(--red); }
.js-only { display: none; }
.js .js-only { display: initial; }
.js .no-js-only { display: none; }
.js [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
