:root {
  --ink: #1c1915;
  --ink-soft: #3f3a33;
  --paper: #fffdf8;
  --header: #14352c;
  --header-text: #f4efe4;
  --rule: #d9d0c0;
  --verse-bg: #f4efe6;
  --accent: #0e4d3a;
  --focus: #0b5cab;
  --column: 480px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: #c9e6da;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  top: 0.5rem;
}

.shell {
  width: min(100%, var(--column));
  margin-inline: auto;
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  padding: 1.35rem 1.15rem 2rem;
}

@media (min-width: 520px) {
  body {
    background: #d9d1c3;
  }

  .shell {
    box-shadow:
      0 0 0 1px rgba(28, 25, 21, 0.08),
      0 18px 50px rgba(28, 25, 21, 0.12);
  }
}

.site-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--header);
  color: var(--header-text);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}

.site-header a:focus-visible {
  outline-color: var(--header-text);
}

.brand {
  min-width: 0;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  margin-left: auto;
  flex-shrink: 0;
}

.site-header nav a {
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

.site-header nav a[aria-current='page'] {
  text-decoration: none;
  font-weight: 650;
}

h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.2;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.lede,
.church-line,
.hint,
.qr-summary {
  color: var(--ink-soft);
}

.lede {
  margin: 0 0 1rem;
}

.lede.emphasis {
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.byline {
  margin: 0.2rem 0 0.85rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.contents {
  margin: 0 0 1.35rem;
  padding: 0.35rem 0.9rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
}

.contents-label {
  margin: 0.55rem 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contents ol {
  margin: 0.15rem 0 0;
  padding-left: 1.35rem;
}

.contents li {
  margin: 0;
}

.contents a {
  display: block;
  padding: 0.55rem 0;
}

.block {
  scroll-margin-top: 0.75rem;
}

.church-line,
.hint,
.qr-summary {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.opening-statement {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.about-prose {
  margin-top: 1.75rem;
}

.about-prose h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.about-prose p {
  margin: 0.7rem 0;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.category + .category,
.country + .country {
  margin-top: 1.75rem;
}

.category h2,
.country h2,
.church-page-code h2 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.church-page-code {
  margin-bottom: 1.75rem;
}

.directory-link {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.directory-link a,
.church-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font-family: var(--sans);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.directory-link a:hover,
.church-list a:hover {
  background: #f7f3ea;
}

.directory-link .label,
.church-list .label {
  flex: 1 1 auto;
  min-width: 0;
}

.church-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.church-list .sample-flag {
  margin-top: 0.65rem;
}

.downloads,
.times {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chev {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1.5rem;
  line-height: 1;
}

.lang-mark {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e7f3ee;
  color: var(--accent);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.4;
  vertical-align: middle;
}

.lang-link {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  margin: -0.15rem 0 0.85rem;
}

.lang-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  text-decoration: none;
}

html[lang='zh-Hans'] body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

html[lang='zh-Hans'] * {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

html[lang='zh-Hans'] h1,
html[lang='zh-Hans'] h2,
html[lang='zh-Hans'] h3 {
  line-height: 1.35;
}

.empty {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--rule);
  border-radius: 12px;
  color: var(--ink-soft);
}

.blocks {
  display: grid;
  gap: 1.85rem;
  margin-top: 1.5rem;
}

.block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.block p {
  margin: 0.7rem 0;
}

.belief-line {
  margin: 0.35rem 0 0.8rem;
  font-weight: 650;
}

.owner-statement {
  margin: 0.75rem 0 0;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 3px solid var(--rule);
}

.owner-statement p {
  margin: 0.7rem 0;
}

.glance {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.glance li {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--verse-bg);
}

.verse-fold {
  margin-top: 1rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
}

.verse-fold summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  font-family: var(--sans);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.verse-fold summary::-webkit-details-marker {
  display: none;
}

.verse-fold summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  flex: 0 0 auto;
}

.verse-fold[open] summary::after {
  transform: translateY(0.15rem) rotate(-135deg);
}

.verse-fold-body {
  padding: 0 0.85rem 0.85rem;
}

.subpoint {
  margin-top: 1.05rem;
}

.subpoint > p {
  margin: 0;
}

.subpoint .verse-fold {
  margin-top: 0.65rem;
}

.seven-ages {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
}

.seven-ages ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seven-ages li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.15rem;
  padding-left: 2.35rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.seven-ages li::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.seven-ages li:first-child::before {
  top: 50%;
}

.seven-ages li:last-child::before {
  bottom: 50%;
}

.age-num {
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--header);
  color: var(--header-text);
  font-size: 0.75rem;
  font-weight: 650;
}

.seven-ages figcaption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.45;
}

.step-num {
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: var(--header);
  color: var(--header-text);
  font-family: var(--sans);
  font-size: 0.85rem;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
}

.scripture {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem 0.75rem;
  background: var(--verse-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.scripture blockquote {
  margin: 0;
}

.scripture p {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.scripture p:last-child {
  margin-bottom: 0.35rem;
}

.scripture figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.flow {
  display: grid;
  gap: 1.05rem;
}

.flow > p {
  margin: 0;
}

.emphasis {
  font-size: 1.28rem;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.verse-quote + .verse-quote {
  margin-top: -0.55rem;
}

.verse-quote {
  margin: 0.1rem 0;
  padding: 0.95rem 1rem 0.85rem;
  background: var(--verse-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.plain-list {
  margin: 0.15rem 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.7rem;
}

.plain-list li {
  padding-left: 0.15rem;
}

.verse-quote p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.verse-quote .verse-ref {
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.prayer-words {
  margin: 1rem 0 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #f7f3ea;
  font-size: 1.15rem;
}

.prayer-words p {
  margin: 0;
}

.next-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.next-steps li {
  margin: 0.7rem 0;
  padding-left: 0.2rem;
}

.back-link {
  margin: 2rem 0 0;
}

.back-link a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--sans);
  font-weight: 650;
}

.scripture-attribution {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.4;
}

.scripture-attribution small {
  font-size: inherit;
}

.qr-list {
  display: grid;
  gap: 1rem;
}

.qr-card {
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
}

.qr-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.qr-card h3 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.qr-card .qr-summary {
  margin-bottom: 0.75rem;
}

.qr-frame {
  display: inline-block;
  max-width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
}

.qr-frame svg {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.qr-url {
  margin: 0.85rem 0 0;
  overflow-wrap: anywhere;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.45;
}

.downloads {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.downloads a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 650;
  text-decoration: none;
}

.downloads a:hover {
  background: #e7f3ee;
}

.listen {
  margin: 0.2rem 0 1.15rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #f7f3ea;
}

.listen-label {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.35;
}

.listen-play {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.listen-play svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
}

.listen-player {
  display: block;
  width: 100%;
  margin-top: 0.7rem;
}

.listen-player[hidden] {
  display: none;
}

.site-footer {
  padding: 1.25rem 1.15rem 2.5rem;
  border-top: 1px solid var(--rule);
  background: #f3eee4;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.5;
}

.site-footer h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.site-footer h3 {
  margin: 1rem 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

address {
  font-style: normal;
}

.sample-flag {
  margin: 0 0 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #f3e2c8;
  color: #5c2e0a;
  font-weight: 650;
}

.times {
  list-style: disc;
  padding-left: 1.15rem;
}

.times li {
  margin: 0.25rem 0;
}

.print-only {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #fff;
  }

  .page-index .shell {
    width: auto;
    max-width: none;
    min-height: 0;
    display: block;
    box-shadow: none;
  }

  .page-index .site-header,
  .page-index .skip-link,
  .page-index .downloads,
  .page-index .no-print {
    display: none;
  }

  .page-index .print-only {
    display: block;
    margin: 0 0 4mm;
    font-family: var(--sans);
    font-weight: 700;
  }

  .page-index main {
    padding: 0;
  }

  .page-index .qr-list {
    grid-template-columns: 1fr 1fr;
    gap: 8mm;
  }

  .page-index .church-page-code,
  .page-index .qr-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .page-index .qr-frame svg {
    width: 40mm;
  }

  .page-index a {
    color: #000;
    text-decoration: none;
  }
}
