.site-foot {
  width: min(40rem, calc(100% - 2rem));
  margin: 0.4rem auto 1.4rem;
  color: #5e584f;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.site-foot p { margin: 0; }

.site-foot a {
  color: #243027;
}

a.button,
button.send {
  display: inline-block;
  padding: 0.68rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: #243027;
  color: #fffdf9;
  font: inherit;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

a.button:hover,
button.send:hover { background: #1b261e; }

a.outline {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid #e3dbd0;
  border-radius: 999px;
  background: #fffdf9;
  color: #243027;
  font: inherit;
  text-decoration: none;
}

a.outline:hover,
a.button:hover { text-decoration: none; }

a.outline:hover { border-color: #243027; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1rem;
}

blockquote {
  margin: 1rem 0;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(70, 54, 36, 0.2);
  color: #3a342c;
}

.sermons {
  width: 100%;
  height: 40rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 12px;
  background: #fffdf9;
}

.contact label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.85rem;
  color: #5e584f;
  font-size: 0.82rem;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid #e3dbd0;
  border-radius: 16px;
  background: #fffdf9;
  color: #1c1915;
  font: inherit;
  font-size: 1rem;
}

.contact textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact input:focus-visible,
.contact textarea:focus-visible,
button.send:focus-visible,
a.button:focus-visible,
a.outline:focus-visible {
  outline: 2px solid #243027;
  outline-offset: 3px;
}

.company-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.turnstile-slot { min-height: 4.2rem; margin-top: 0.9rem; }

.form-note,
.status {
  color: #5e584f;
  font-size: 0.92rem;
}

.status[data-kind="good"] { color: #243027; }

.book { margin-top: 1.7rem; }

.book + .book {
  margin-top: 1.85rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(70, 54, 36, 0.12);
}

.book h2 { margin-top: 0; }

body[data-page="books"] article {
  width: min(56rem, calc(100% - 2rem));
}

.book.with-cover {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  column-gap: 1.35rem;
  align-items: start;
}

.book.pair { grid-template-columns: 1fr; }

.book.pair .book-copy { max-width: 40rem; }

.book .covers {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.cover-link {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.book.pair .cover-link { width: 17.2rem; }

.book .cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 14px 28px rgba(28, 25, 21, 0.22);
}

.look-closer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cover-look {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  max-width: none;
  max-height: none;
}

.cover-look::backdrop {
  background: rgba(28, 25, 21, 0.86);
}

.cover-look form { margin: 0; }

.cover-look img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 5.5rem);
  border-radius: 2px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.cover-look .cover-close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: #fffdf9;
  color: #243027;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.cover-look .cover-close:hover { background: #f4efe6; }

.cover-look .cover-close:focus-visible {
  outline: 2px solid #fffdf9;
  outline-offset: 3px;
}

.book .pages {
  margin: 0.25rem 0 0;
  color: #5e584f;
  font-size: 0.92rem;
}

.guarddog {
  width: min(72rem, calc(100% - 2rem));
  margin: 0.35rem auto 0;
  text-align: center;
}

.guarddog a {
  color: #5e584f;
  font-size: 0.78rem;
  text-decoration: none;
}

.guarddog img {
  height: 1.35rem;
  width: auto;
  vertical-align: middle;
  margin-right: 0.3rem;
}

body.home-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.home-page .stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(78rem, calc(100% - 3.5rem));
  margin: 0 auto;
  text-align: center;
}

.home-page .home {
  width: min(26rem, 70vw);
  margin: 0 auto;
}

.home-page .site-foot {
  width: min(72rem, calc(100% - 2rem));
  margin: 0.15rem auto 0.85rem;
  font-size: 0.78rem;
}

.tagline {
  margin: 1.05rem 0 0;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.verse {
  max-width: 36rem;
  margin: 0.85rem auto 0;
  color: #3a342c;
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  font-style: italic;
  line-height: 1.55;
}

.cite {
  margin: 0.5rem 0 0;
  color: #5e584f;
  font-size: 0.86rem;
  letter-spacing: 0.045em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1.7rem;
  text-align: left;
}

.cards a {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  min-height: 12.25rem;
  padding: 1.2rem 1.15rem 1.15rem;
  border: 1px solid rgba(70, 54, 36, 0.13);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 16px 36px rgba(70, 42, 24, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cards a:hover {
  border-color: #243027;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(70, 42, 24, 0.13);
}

.cards a:focus-visible {
  outline: 2px solid #243027;
  outline-offset: 3px;
}

.cards strong {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.cards span {
  min-width: 0;
  color: #3a342c;
  font-size: 0.98rem;
  line-height: 1.45;
}

.cards em {
  margin-top: auto;
  padding-top: 0.45rem;
  color: #243027;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}

.cards em::after { content: " \2192"; }

@media (max-width: 1100px) {
  body.home-page { display: block; }
  .home-page .stage {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.5rem 1.15rem 1.6rem;
  }
  .home-page .home { width: min(16rem, 78%); margin-top: 1.35rem; }
  .home-page .stage > * { min-width: 0; max-width: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); margin-top: 1.35rem; }
  .cards a { min-height: 0; }
  .tagline { font-size: 1.85rem; }
  .verse { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cards a { transition: none; }
}

@media (max-width: 640px) {
  .sermons { height: 28rem; }
  .book.with-cover { grid-template-columns: 1fr; row-gap: 0.9rem; }
  .book.with-cover > .cover-link { width: min(18rem, 88%); }
  .book.pair .cover-link { width: min(17.2rem, 47%); }
}
