/* Ken Raggio homepage redesign mockup
   Warm neutrals, serif headings, readable type, large tap targets. */

:root {
  --bg: #f6f1e8;
  --bg-alt: #efe6d6;
  --paper: #fffcf7;
  --ink: #2a241b;
  --ink-soft: #5a5146;
  --rule: #d4c4a8;
  --accent: #7a3e2e;
  --accent-dark: #5c2d22;
  --link: #6b3a2c;
  --link-hover: #4a241c;
  --header: #2c2620;
  --header-text: #f6f1e8;
  --gold: #c4a574;
  --focus: #7a3e2e;
  --shadow: 0 1px 2px rgba(42, 36, 27, 0.06), 0 8px 24px rgba(42, 36, 27, 0.06);
  --font-serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 70rem;
  --prose: 40rem;
  --radius: 0.5rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--link-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.5em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 1000;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 600;
  min-height: 44px;
}
.skip-link:focus { top: 0.75rem; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  color: var(--header-text);
  box-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  padding: 0.35rem 0;
}
.wordmark img {
  display: block;
  height: 2.75rem; /* 44px — monogram only, all widths */
  width: 2.75rem;
  max-width: none;
}
.wordmark:hover img { filter: brightness(1.08); }

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--header-text);
  border: 1px solid var(--gold);
  border-radius: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--header-text);
  text-decoration: none;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.3rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.site-nav a.nav-donate {
  background: var(--accent);
  color: #fff;
  margin-left: 0.25rem;
}
.site-nav a.nav-donate:hover { background: #8d4a38; color: #fff; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--header);
    border-top: 1px solid rgba(196,165,116,0.3);
    padding: 0.5rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { width: 100%; }
  .site-nav a.nav-donate { margin-left: 0; justify-content: center; }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  background:
    linear-gradient(180deg, #efe6d6 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--rule);
  padding: 3.25rem 0 3.5rem;
}

.hero-inner { max-width: 44rem; }

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

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-note {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.4rem;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

section {
  padding: 3.25rem 0;
}
section + section { border-top: 1px solid var(--rule); }

.section-intro {
  max-width: var(--prose);
  margin-bottom: 1.75rem;
}
.section-intro p { color: var(--ink-soft); }

.band { background: var(--bg-alt); }
.band-paper { background: var(--paper); }

/* Cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--link); text-decoration: underline; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .card-meta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.card .card-meta a { text-decoration: none; }
.card .card-meta a:hover { text-decoration: underline; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.1rem;
}

/* Link lists */
.subhead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.35rem 0.85rem;
}
.link-list.tight { grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); }
.link-list.books-nt,
.link-list.two-col { }

.link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  border-radius: 0.3rem;
  line-height: 1.3;
}
.link-list a:hover { background: var(--bg-alt); text-decoration: underline; }

.series-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: prayer;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 0.4rem 1rem;
}
.series-list li { display: flex; }
.series-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  width: 100%;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  border-radius: 0.3rem;
}
.series-list a:hover { background: var(--paper); text-decoration: underline; }
.series-list a::before {
  counter-increment: prayer;
  content: counter(prayer);
  flex: 0 0 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
}

/* Subscribe / AWeber */
.subscribe-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 800px) {
  .subscribe-panel { grid-template-columns: 1fr; }
}

.form-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  min-height: 12rem;
}

/* Make the injected AWeber form readable and tappable */
#af-form-880161971,
#af-form-880161971 .af-body,
#af-form-880161971 .af-header,
#af-form-880161971 .af-element,
#af-form-880161971 .af-element label,
#af-form-880161971 .bodyText {
  font-family: var(--font-sans) !important;
  color: var(--ink) !important;
  font-size: 1rem !important;
}
#af-form-880161971 .af-header { padding: 0 0 0.75rem !important; }
#af-form-880161971 .af-body input.text,
#af-form-880161971 .af-body textarea,
#af-form-880161971 input[type="text"],
#af-form-880161971 input[type="email"] {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  padding: 0.6rem 0.75rem !important;
  border: 1px solid var(--rule) !important;
  border-radius: 0.35rem !important;
  font-size: 1.05rem !important;
  background: #fff !important;
  color: var(--ink) !important;
}
#af-form-880161971 .af-element { padding-left: 0 !important; padding-right: 0 !important; margin-bottom: 0.65rem !important; }
#af-form-880161971 input[type="submit"],
#af-form-880161971 button,
#af-form-880161971 .af-submit button {
  min-height: 48px !important;
  padding: 0.7rem 1.2rem !important;
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0.4rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  cursor: pointer;
}
.form-fallback {
  margin-top: 0.75rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* About / contact */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1rem 0 0.25rem;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0; }
.contact-card a { font-weight: 600; }

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.more-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Footer */
.site-footer {
  background: var(--header);
  color: var(--header-text);
  padding: 2.5rem 0 2rem;
  font-size: 0.98rem;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.mockup-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(196,165,116,0.35);
  color: #cfc6b8;
  font-size: 0.9rem;
}

.verse {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Index pages and tightened homepage sections */
.page-hero {
  background: linear-gradient(180deg, #efe6d6 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--rule);
  padding: 2.25rem 0 2.5rem;
}
.page-hero .hero-inner { max-width: var(--prose); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.35em; }

.crumb {
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}
.crumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.15rem;
  margin: 0;
  padding: 0;
}
.crumb li { display: inline-flex; align-items: center; }
.crumb li:not(:last-child)::after {
  content: "/";
  margin: 0 0.45rem;
  color: #b9a88c;
}
.crumb a { color: var(--link); font-weight: 600; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb [aria-current="page"] { color: var(--ink); }

.section-cta {
  margin-top: 1.6rem;
  margin-bottom: 0;
}

.home-section { padding: 2.6rem 0; }

.group-block { margin-top: 2.25rem; }
.group-block:first-of-type { margin-top: 0; }

.count {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.back-home {
  margin: 0 0 1.25rem;
}
.back-home a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.back-home a:hover { text-decoration: underline; }

/* Converted article pages */
.article-wrap {
  padding: 2.5rem 1.25rem 3rem;
}
.article {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
}
.article-kicker {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 1.25rem;
}
.article > h1,
.page-hero + .article-wrap .article-copy h2:first-child {
  /* h1 lives in the page hero */
}
.article p { margin: 0 0 1.1em; }
.article p:last-child { margin-bottom: 0; }
.article h2, .article h3, .article h4 {
  margin: 1.8em 0 0.6em;
  line-height: 1.25;
}
.article ul, .article ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article li { margin: 0.3em 0; }
.article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.4rem auto;
  border-radius: 0.25rem;
}
.article a { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.article blockquote,
.article .scripture {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 1.5rem 0;
  background: transparent;
}
.article .scripture { color: var(--ink); }

.article iframe,
.article video,
.article audio {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto;
  border: 0;
}
.article table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 1rem;
}
.article th, .article td {
  border: 1px solid var(--rule);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.callouts {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 0 3.5rem;
  display: grid;
  gap: 1rem;
}
.callout {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.callout h2 { font-size: 1.35rem; margin: 0 0 0.5rem; }
.callout p { color: var(--ink-soft); margin: 0 0 1rem; }
.callout .btn { margin-right: 0.5rem; margin-top: 0.25rem; }
.callout .form-box {
  margin-top: 0.75rem;
  box-shadow: none;
  padding: 0.5rem 0 0;
  border: 0;
  min-height: 0;
}
.article img.float-right {
  float: right;
  margin: 0.2rem 0 1rem 1.25rem;
  max-width: 40%;
  width: 140px;
}
.article img.float-left {
  float: left;
  margin: 0.2rem 1.25rem 1rem 0;
  max-width: 40%;
  width: 140px;
}
.article::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
  .article img.float-right,
  .article img.float-left {
    float: none;
    margin: 1rem auto;
    width: min(180px, 50%);
    max-width: 50%;
  }
}

/* Social links in header and footer */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.header-social {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.1rem;
}
.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--header-text);
  border-radius: 0.3rem;
  text-decoration: none;
}
.header-social a:hover,
.header-social a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.08);
  outline: none;
}
.header-social svg,
.footer-social svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}
@media (min-width: 861px) {
  .site-nav { margin-left: auto; }
}
@media (max-width: 860px) {
  .header-tools { margin-left: auto; }
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
}

/* Homepage Watch on YouTube */
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.35rem;
}
@media (max-width: 800px) {
  .watch-layout { grid-template-columns: 1fr; }
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1612;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.video-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.video-card a {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.45rem;
  min-height: 44px;
  box-shadow: var(--shadow);
}
.video-card a:hover h3,
.video-card a:focus-visible h3 {
  color: var(--accent);
}
.video-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.2rem;
  background: #efe6d6;
}
.video-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  line-height: 1.3;
}
.video-card .card-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
@media (max-width: 800px) {
  .video-card a { grid-template-columns: 7.25rem minmax(0, 1fr); }
}
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #1a1612;
  display: block;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.4rem;
  height: 3.1rem;
  transform: translate(-50%, -50%);
  background: #c00;
  border-radius: 0.85rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  pointer-events: none;
}
.play-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .play-icon,
.video-facade:focus-visible .play-icon {
  background: #e00;
}
.video-facade:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Featured new book */
.featured-book {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin: 0 0 2rem;
}
.featured-book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 6px 18px rgba(42, 36, 27, 0.25);
}
.featured-book .eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.featured-book h3 { margin: 0 0 0.75rem; font-size: 1.6rem; line-height: 1.2; }
.featured-book h3 a { color: var(--ink); text-decoration: none; }
.featured-book h3 a:hover { color: var(--accent); }
.featured-book-body > p { max-width: var(--prose); }
@media (max-width: 40rem) {
  .featured-book { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; }
  .featured-book-cover { max-width: 11rem; }
}
