/* kressbiblical.com — one stylesheet for the whole site.
   Values follow Inputs/design-spec-2026-09-16.md (Avada theme capture)
   and Outputs/design-draft-1 (the approved draft). */

:root {
  --text: #494949;
  --ink: #2b2e32;
  --red: #dd3030;
  --red-dark: #c0392b;
  --grey-band: #898b8e;
  --dark-band: #1b1d22;
  --footer: #2b2e32;
  --copyright: #1d1f22;
  --light: #eaeaea;
  --muted: #8a8c90;
  --line: #d2d2d2;
  --font-body: Karla, Arial, Helvetica, sans-serif;
  --font-head: Montserrat, Arial, Helvetica, sans-serif;
  --wrap: 1170px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; } /* keeps anchor targets clear of the sticky header */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--red); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.25; }
p { margin: 0; }
button { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Type scale from the capture */
.h-52 { font-size: 52px; line-height: 60px; }
.h-38 { font-size: 38px; line-height: 48px; }
.kicker { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--text); }
.kicker-light { color: #fff; }

/* Buttons: pill, 25px radius, Karla 13px bold uppercase */
.btn {
  display: inline-block;
  padding: 11px 23px;
  border-radius: 25px;
  border: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover, .btn-red:focus-visible { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-hero { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-hero:hover, .btn-hero:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--ink); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 11px; }

/* Header: stays at the top of the window while the page scrolls (decided 2026-09-23) */
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 150px; height: 53px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-size: 15px; line-height: 32px; padding: 0 6px; }
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .btn-nav { padding: 8px 20px; line-height: 16px; color: #fff; }
.site-nav .btn-nav[aria-current="page"] { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.menu-toggle { display: none; }

/* Breadcrumb bar on inner pages */
.crumb-bar { background: var(--light); }
.crumbs { height: 44px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--text); }
.crumbs .sep { color: #aaa9a9; }
.crumbs .cur { color: var(--red); overflow: hidden; text-overflow: ellipsis; }

/* Hero */
.hero { position: relative; height: 525px; overflow: hidden; background: var(--dark-band); display: flex; align-items: center; justify-content: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.hero-inner { position: relative; z-index: 1; text-align: center; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero-title { font-size: 52px; line-height: 62px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); max-width: 1000px; }

/* Home about block */
.about-block { padding: 80px var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px; align-items: center; }
.about-photo { width: 100%; height: 375px; object-fit: cover; }
.about-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.about-block .about-text p.body { font-size: 18px; line-height: 34px; }

/* Bands */
.band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.band-dark { background: var(--dark-band); min-height: 329px; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-dark::after { content: ""; position: absolute; inset: 0; background: rgba(27,29,34,.82); }
.band-grey { background: var(--grey-band); padding: 96px var(--gutter); }
.band-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px var(--gutter); }
.band-grey .band-inner { gap: 22px; padding: 0; }
.band-title { color: #fff; }

/* Book cards */
.latest-grid, .store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.latest-grid { padding-top: 56px; padding-bottom: 80px; }
.store-grid { padding-top: 8px; padding-bottom: 80px; }
.card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.card[hidden] { display: none; }
/* Every cover sits in the same 2:3 box, bottom-aligned, scaled to fit (covers
   come in several proportions and some old scans are small). The shadow follows
   the picture itself, not the box. */
.card-cover { display: block; position: relative; width: 100%; aspect-ratio: 2 / 3; }
.card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.22)); transition: transform .15s; }
.card-cover:hover img { transform: translateY(-2px); }
.card-title { font-size: 13px; line-height: 20px; min-height: 40px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--red); }
.price { font-size: 15px; color: var(--text); }
.buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* Store page */
.store-head { padding-top: 48px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 24px; }
.store-controls { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 8px 18px; border-radius: 25px; background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 13px; font-weight: 700; line-height: 16px; cursor: pointer; }
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-wrap { flex: 0 1 280px; min-width: 200px; }
#store-search { width: 100%; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 25px; font: inherit; font-size: 14px; color: var(--text); background: #fff; }
#store-search:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.store-count { font-size: 14px; color: var(--muted); }
.store-empty { padding: 20px var(--gutter) 80px; font-size: 16px; }
.linklike { background: none; border: 0; padding: 0; color: var(--red); font-weight: 700; cursor: pointer; }

/* Book page */
.book-page { padding-top: 64px; padding-bottom: 80px; display: grid; grid-template-columns: 450px minmax(0, 1fr); gap: 60px; align-items: start; }
.book-cover img { width: 100%; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.book-body { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.book-title { font-size: 26px; line-height: 36px; }
.book-author { font-size: 16px; color: var(--muted); }
.book-price { font-size: 22px; font-weight: 700; color: var(--ink); }
.bulk-note { font-size: 14px; line-height: 22px; color: var(--muted); }
.bulk-note a { color: var(--red); }
.rule { width: 100%; height: 1px; border: 0; background: var(--light); margin: 0; }
.book-description { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 28px; }
.endorsements { display: flex; flex-direction: column; gap: 14px; padding-left: 18px; border-left: 3px solid var(--red); font-size: 16px; line-height: 26px; }
.endorsements h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.author-bio { font-size: 15px; line-height: 26px; }
.author-bio h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.book-meta { margin: 0; padding-top: 6px; font-size: 14px; line-height: 22px; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.book-meta dt { font-weight: 700; color: var(--ink); }
.book-meta dd { margin: 0; }
.book-meta a { color: var(--red); }
.back-link { font-size: 14px; }

/* About page */
.about-page { padding-top: 72px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px; align-items: start; }
.about-page .about-text p.body, .about-page .quote { font-size: 16px; line-height: 28px; }
.quote { color: var(--muted); }
.store-link { color: var(--red); font-weight: 700; }

/* 404 */
.not-found { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; max-width: 640px; }
.not-found p { font-size: 16px; line-height: 28px; }

/* Footer */
.footer-rule { height: 4px; background: var(--red-dark); }
.site-footer { background: var(--footer); color: var(--light); }
#contact { scroll-margin-top: 24px; }
.footer-grid { padding-top: 64px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 28px; }
.footer-title { font-size: 15px; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.site-footer a { color: var(--light); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { font-size: 14px; color: #aaa9a9; line-height: 22px; padding-top: 8px; }
.top-rated { list-style: none; margin: 0; padding: 0; }
.top-rated li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #3a3d42; }
.top-rated img { width: 52px; height: 78px; object-fit: contain; object-position: top; flex: none; }
.top-rated .tr-title { font-size: 15px; line-height: 24px; }
.top-rated .tr-price { display: block; font-weight: 700; }
.copyright { background: var(--copyright); padding: 22px 0; }
.copyright p { font-size: 13px; color: #8a8c90; text-align: center; }

/* Tablet */
@media (max-width: 1024px) {
  .h-52, .hero-title { font-size: 42px; line-height: 50px; }
  .latest-grid, .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .book-page { grid-template-columns: 360px minmax(0, 1fr); gap: 40px; }
}

/* Phone: the mobile rules approved 2026-09-16 */
@media (max-width: 760px) {
  html { scroll-padding-top: 64px; }
  .header-inner { height: 64px; gap: 12px; }
  .logo img { width: 118px; height: 42px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 25px;
    padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
  }
  .menu-bars { width: 18px; height: 2px; background: var(--ink); position: relative; display: block; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .site-nav { gap: 10px; }
  .site-nav a:not(.btn-nav) { display: none; }
  .site-nav .btn-nav { padding: 8px 16px; font-size: 12px; }
  .site-header.nav-open .site-nav {
    position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light); display: flex; flex-direction: column; align-items: stretch; padding: 8px 0 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .site-header.nav-open .site-nav a { display: block; padding: 12px var(--gutter); font-size: 16px; }
  .site-header.nav-open .site-nav .btn-nav { margin: 6px var(--gutter) 0; text-align: center; border-radius: 25px; }

  .hero { height: 300px; }
  .hero-title { font-size: 28px; line-height: 36px; }
  .h-52 { font-size: 32px; line-height: 40px; }
  .h-38 { font-size: 28px; line-height: 36px; }
  .about-block { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
  .about-photo { height: 220px; }
  .about-block .about-text p.body { font-size: 16px; line-height: 28px; }
  .band-dark { min-height: 220px; }
  .band-grey { padding: 56px var(--gutter); }
  .latest-grid, .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .latest-grid { padding-top: 32px; padding-bottom: 48px; }
  .store-head { padding-top: 32px; gap: 16px; }
  .store-controls { flex-direction: column; align-items: stretch; gap: 14px; }
  .search-wrap { flex-basis: auto; width: 100%; }
  .book-page { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 48px; }
  .book-cover { max-width: 320px; margin: 0 auto; }
  .book-title { font-size: 22px; line-height: 30px; }
  .about-page { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 48px; }
  .about-page .about-photo { order: -1; height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 36px; }
  .not-found { padding-top: 40px; padding-bottom: 56px; }
}

@media (max-width: 400px) {
  .latest-grid, .store-grid { gap: 20px 14px; }
  .card-title { font-size: 12px; }
}

@media print {
  .site-header, .site-footer, .footer-rule, .crumb-bar, .buttons, .menu-toggle { display: none !important; }
}
