/* One local stylesheet. System fonts. Nothing to compile. */
:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --ink: #283c31;
  --muted: #62675e;
  --accent: #875630;
  --line: #d8d8ca;
  --wash: #edeee4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 106.25%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #dbe3cc; color: #1a2c20; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 5.5vw, 4.7rem); letter-spacing: -.045em; margin-bottom: 1.3rem; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.025em; }
h3 { font-size: 1.55rem; }
em { font-weight: 400; }
main { min-height: 66vh; }
.site-shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.1rem; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.05em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-style: italic; }
.wordmark sup { font-family: var(--sans); font-size: .53rem; color: var(--accent); margin-left: .4rem; vertical-align: super; letter-spacing: 0; }
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.2rem); font-size: .84rem; }
.site-header nav a { text-decoration: none; padding-block: .5rem; }
.site-header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .6em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .64rem; font-weight: 600; color: var(--muted); margin-bottom: 1.5rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 6rem; align-items: center; padding-block: 5.6rem 5rem; }
.hero h1 { font-size: clamp(3.7rem, 7vw, 5.75rem); line-height: 1.04; }
.lede { max-width: 38rem; font-size: 1.05rem; color: var(--muted); line-height: 1.8; }
.hero .lede { max-width: 28rem; margin-block: 1.6rem 2rem; }
.button { display: inline-flex; align-items: center; gap: 1.8rem; background: var(--ink); color: var(--paper); padding: .78rem 1.3rem; font-size: .78rem; text-decoration: none; }
.button:hover { background: #3d5545; color: #fff; }
.button span, .text-link span { font-size: 1.1rem; }
.margin-note { border-top: 1px solid var(--accent); padding-top: 1.3rem; margin-top: 2rem; }
.note-mark { display: block; font-family: var(--serif); color: var(--accent); font-size: 2.5rem; line-height: 1; }
.margin-note .eyebrow { margin-block: 1rem 1.3rem; font-size: .6rem; }
.margin-note p:not(.eyebrow) { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.margin-note p.small { font-family: var(--sans); font-size: .74rem; color: var(--muted); margin-top: 1.5rem; }
.writing-section { border-top: 1px solid var(--line); padding-block: 2.6rem 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading .eyebrow { margin-bottom: .7rem; }
.section-heading h2 { margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; font-size: .78rem; white-space: nowrap; }
.empty-state { background: var(--wash); padding: 2.1rem; display: flex; align-items: baseline; gap: 2.1rem; }
.empty-mark { font-size: .75rem; font-family: var(--serif); color: var(--accent); white-space: nowrap; }
.empty-state h3 { margin-bottom: .6rem; }
.empty-state p { color: var(--muted); font-size: .85rem; margin-bottom: 0; }
.closing-note { text-align: center; padding: 3.6rem 1rem 4.8rem; }
.closing-note .eyebrow { margin-bottom: 1.2rem; }
.closing-note h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.closing-note p:not(.eyebrow) { font-size: .9rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.6rem 2rem; display: flex; justify-content: space-between; gap: 1.5rem; color: var(--muted); font-size: .66rem; }
.site-footer p { margin: 0; }
.footnote-number { color: var(--accent); margin-right: .7rem; }
.page-heading { padding-block: 4rem 2rem; }
.page-heading h1 { overflow-wrap: anywhere; }
.reading-page { width: min(100%, 740px); margin-inline: auto; padding-bottom: 4rem; }
.prose { font-family: var(--serif); font-size: 1.2rem; line-height: 1.85; overflow-wrap: anywhere; }
.prose p { margin-bottom: 1.4rem; }
.prose a { color: var(--accent); }
.post-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; color: var(--muted); font-size: .68rem; margin-block: 0 1rem; }
.post-meta span { text-transform: uppercase; letter-spacing: .1em; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-preview { padding-block: 1.8rem; border-top: 1px solid var(--line); }
.post-preview h3 { margin-bottom: .65rem; }
.post-preview h3 a { text-decoration: none; }
.post-preview h3 a:hover { text-decoration: underline; }
.post-preview p { max-width: 48rem; color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 2rem; }
.archive { padding-bottom: 5rem; }
.pagination { display: flex; justify-content: center; gap: 2rem; padding-top: 2rem; font-size: .8rem; }
.error-page { padding-bottom: 5rem; }
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }

/* The QR destination: a compact entrance and one uninterrupted reading column. */
.gospel-layout .site-header { padding-block: .85rem; flex-wrap: wrap; gap: .3rem 1.5rem; }
.gospel-layout .wordmark { display: inline-block; min-height: 44px; font-size: 1.3rem; white-space: normal; padding-block: .35rem; }
.gospel-layout .site-header nav { gap: .3rem 1.5rem; font-size: .875rem; }
.gospel-layout .site-header nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.gospel-tract { max-width: 38rem; padding-bottom: 3rem; }
.gospel-heading { padding-block: 2.6rem 2rem; }
.gospel-heading h1 { margin: 0; letter-spacing: -.035em; }
.gospel-kicker { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; margin-bottom: 1rem; }
.gospel-title { display: block; font-size: clamp(2.3rem, 6vw, 3.75rem); line-height: 1.14; text-wrap: balance; }
.gospel-copy { font-size: 1.25rem; line-height: 1.8; }
.gospel-copy p { margin-bottom: 1.5em; }
.gospel-copy strong { font-weight: 700; }
.gospel-copy q { quotes: "“" "”" "‘" "’"; }
.gospel-copy .scripture-reference { font-size: .85em; color: var(--muted); }
.gospel-copy .scripture-reference a { color: inherit; }
.gospel-copy .scripture-reference a:hover { color: var(--accent); }
.gospel-copy .gospel-turn { margin-top: 2.2em; }
.gospel-copy .gospel-conclusion { border-top: 1px solid var(--line); margin-block: 2.2em 0; padding-top: 1.5em; }
.gospel-conclusion strong { display: block; margin-bottom: .4em; }
.gospel-attribution { margin-top: 3.5rem; color: var(--muted); font-size: .75rem; line-height: 1.7; overflow-wrap: anywhere; }
.gospel-attribution p { margin-bottom: 0; }

@media (max-width: 800px) {
  .site-shell { width: calc(100% - 48px); }
  .hero { gap: 2.8rem; grid-template-columns: minmax(0, 1fr) 190px; }
  .hero h1 { font-size: 3.7rem; }
}

@media (max-width: 600px) {
  html { font-size: 100%; }
  .site-shell { width: calc(100% - 40px); }
  .site-header { flex-direction: column; align-items: start; gap: .85rem; padding-block: 1.4rem 1rem; }
  .site-header nav { gap: 1.7rem; }
  .wordmark { font-size: 1.65rem; }
  .hero { grid-template-columns: 1fr; padding-block: 3.4rem 2.6rem; gap: 2.3rem; }
  .hero h1 { font-size: clamp(3.3rem, 13vw, 4.8rem); }
  .hero .lede { margin-bottom: 1.5rem; }
  .margin-note { margin-top: 0; padding-top: 1rem; }
  .note-mark { float: right; }
  .margin-note .eyebrow { margin-block: .4rem 1rem; }
  .margin-note p:not(.eyebrow) { margin-bottom: .65rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .empty-state { padding: 1.5rem; gap: 1.2rem; }
  .empty-state h3 { font-size: 1.4rem; }
  .closing-note { padding: 2rem 0 3.5rem; }
  .site-footer { flex-direction: column; gap: .6rem; }
  .page-heading { padding-top: 2.8rem; }
  .desktop-break { display: none; }
  .pagination { gap: 1rem; }
  .gospel-layout .site-header { gap: .1rem; padding-block: .6rem .4rem; }
  .gospel-heading { padding-block: 2rem 1.7rem; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-shell, .reading-page { width: 100%; }
  .site-header nav, .site-footer, .back-link, .skip-link, .button { display: none; }
  .site-header { padding-block: 0 1rem; }
  .page-heading { padding-top: 2rem; }
  a { color: inherit; }
  h1, h2, h3 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
  .gospel-layout main { min-height: 0; }
  .gospel-layout .site-header { display: block; padding-block: 0 .5rem; }
  .gospel-layout .wordmark { min-height: 0; font-size: 12pt; }
  .gospel-layout .wordmark sup { display: none; }
  .gospel-tract { max-width: none; padding: 0; }
  .gospel-heading { padding-block: 1rem .75rem; }
  .gospel-kicker { font-size: 9pt; margin-bottom: .5rem; }
  .gospel-title { font-size: 27pt; }
  .gospel-copy { font-size: 11pt; line-height: 1.5; }
  .gospel-copy p { margin-bottom: .9em; }
  .gospel-copy .gospel-turn { margin-top: 1.3em; }
  .gospel-copy .gospel-conclusion { margin-top: 1.3em; padding-top: 1em; break-inside: avoid; }
  .gospel-copy .scripture-reference, .gospel-attribution { color: #000; }
  .gospel-copy a, .gospel-attribution a { text-decoration: none; }
  .gospel-attribution { margin-top: 1rem; font-size: 8pt; line-height: 1.5; break-inside: avoid; }
}
