@font-face {
  font-family: Lora;
  src: url("/fonts/Lora-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lora;
  src: url("/fonts/Lora-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fff;
  --fg: #202020;
  --muted: #434343;
  --accent: #215f9a;
  --paper: #fefdfb;
  --band: #f4f4f4;
  --card: #d6dce1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--fg);
  background: var(--bg);
  font-family: Lora, Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a:any-link { color: var(--fg); }
h1, h2, h3, h4, h5, h6 { background: var(--bg); font-weight: 600; margin: 0; }
h1 { font-size: 56px; line-height: 1.25; }
h2 { font-size: 32px; line-height: 1.35; }
h3 { font-size: 28px; line-height: 1.35; }
h4 { font-size: 24px; line-height: 1.4; }
h5 { font-size: 18px; line-height: 1.55; }
h6 { font-size: 14px; line-height: 1.6; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 8px; background: #fff; padding: 8px; z-index: 5; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.prose { width: min(740px, calc(100% - 40px)); margin: 2rem auto 4rem; }
.prose h1 { margin-bottom: 1.2rem; }
main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }

.site-header { background: var(--paper); padding: 20px 0; }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}
.logo { display: block; line-height: 0; text-decoration: none; }
.logo img { width: 41px; height: auto; display: block; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { text-decoration: none; color: var(--fg); }
.nav a:hover { text-decoration: underline; }
.nav-toggle, .nav-button { display: none; }
.social { display: flex; gap: 0.44rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.social a { color: var(--muted); display: block; line-height: 0; text-decoration: none; }
.social svg { width: 24px; height: 24px; fill: currentColor; }

.banner { background: var(--accent); color: var(--paper); padding: 40px 0.44rem; }
.banner-title {
  width: min(740px, 100%);
  margin: 0 auto;
  color: var(--paper);
  background: transparent;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.7;
}
.banner-title strong { font-weight: 700; }
.map-banner { padding: 40px 0.44rem; }
.map-frame { width: min(740px, 100%); margin: 0 auto; line-height: 0; }
.map-frame a { display: block; }
.map-frame img { display: block; width: 736px; max-width: 100%; height: auto; object-fit: cover; border: 0; }
.home { padding: 48px 0.67rem; }
.home-gap { height: 128px; }
.split {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 24px;
  background: var(--paper);
}
.split + .split { margin-top: 1.5rem; }
.split-middle { align-items: center; }
.split-copy {
  flex: 0 0 50%;
  min-width: 0;
  padding: 1.5rem;
  align-self: center;
}
.split-copy > * { margin: 0; }
.split-copy > * + * { margin-top: 24px; }
.split-copy > .spacer { margin-top: 0; }
.split-copy h1.is-center { text-align: center; }
.kicker {
  color: var(--accent);
  background: transparent;
  text-transform: uppercase;
  font-weight: 600;
}
.split-photo { flex: 1 1 0; min-width: 0; margin: 0; }
.split-photo img {
  width: 100%;
  border: 1px solid var(--fg);
  display: block;
  vertical-align: bottom;
}
.spacer { height: 20px; }

.page-banner { background: var(--accent); padding: 40px 0.44rem; }
.page-title {
  width: min(740px, 100%);
  margin: 0 auto;
  text-align: center;
  color: var(--paper);
  background: var(--accent);
}
.page-band { padding: 64px 0; }
.page-band > .prose {
  width: auto;
  max-width: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 0.67rem;
}
.entry { display: flow-root; padding: 0 0.67rem; }
.entry > * {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  margin-bottom: 0;
}
.entry > :first-child { margin-top: 0; }
.entry > .alignwide { max-width: 1140px; }
.entry figure, .wp-block-image { margin: 0; line-height: 0; }
.wp-block-image a { display: block; line-height: 0; }
.wp-block-image img { display: block; height: auto; }
.feature-col img, .wp-block-column img { width: 100%; border-radius: 20px; }
.feature-col img { width: 210px; }
.feature-col img.is-crop, .wp-block-column img.is-crop { aspect-ratio: 3/2; object-fit: cover; }
.wp-block-column img.is-narrow { width: 234px; max-width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.feature-col { align-items: flex-start; }
.wp-block-columns { align-items: normal; flex-wrap: nowrap; gap: 24px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-spacer { margin-top: 0 !important; }
.book-list, .episode-list { padding-left: 1.2rem; }
.episode-list li { margin: 0.45rem 0; }
.episode-list span { display: block; color: var(--muted); font-size: 0.95rem; }

.sermon { margin: 0 0 24px; }
.sermon p,
.sermon audio,
.sermon hr { margin: 0; }
.sermon > * + p,
.sermon > * + audio,
.sermon > * + hr { margin-top: 24px; }
.sermon audio { display: block; width: 100%; }
.sermon hr { border: 0; border-top: 1px solid #ccc; }
.sermon-note { color: var(--muted); }
.page-band > .prose > .sermon {
  width: min(740px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.site-footer { background: var(--band); color: var(--muted); padding: 64px 0 24px; margin-top: 0; font-size: 14px; }
.site-footer .wrap { width: min(1140px, 100%); padding: 0 20px; }
.footer-links { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 400; line-height: 22px; justify-self: start; }
.footer-links a:hover { text-decoration: underline; }
.footer-social { display: flex; justify-content: flex-end; margin-top: 24px; }
.site-footer hr { border: 0; border-top: 2px solid currentColor; margin: 24px 0 0; width: 100%; opacity: 1; }

.is-layout-flex { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.is-layout-flex > * { margin: 0; }
.feature-col.is-layout-flex { align-items: flex-start; }
.is-vertical { flex-direction: column; }
.is-nowrap { flex-wrap: nowrap; }
.is-content-justification-center { justify-content: center; }
.wp-block-group.has-background { padding: 1.25em 2.375em; }
.wp-block-columns { display: flex; }
.has-text-align-center { text-align: center; }
.has-medium-font-size { font-size: 24px !important; line-height: 1.5; }
.has-small-font-size { font-size: 14px !important; line-height: 1.6; }
.page iframe { max-width: 100%; }

.contact-form .field { padding: 10px 0; clear: both; }
.field-label { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; margin: 0 0 4px; }
.req { color: red; font-weight: 400; }
.sublabel { display: block; font-size: 13px; font-weight: 400; line-height: 1.3; margin: 4px 0 0; }
.name-row { display: flex; gap: 20px; max-width: 60%; }
.name-half { flex: 1 1 0; min-width: 0; }
.contact-form .name-half input,
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  padding: 6px 10px;
  height: 38px;
}
.contact-form input[type="email"] { max-width: 60%; }
.contact-form textarea { height: 120px; min-height: 38px; max-width: 100%; resize: vertical; }
.submit-row { padding: 40px 0 0; }
.contact-form button {
  background: #eee;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  line-height: normal;
  padding: 10px 15px;
  cursor: pointer;
}
.company-field { position: absolute; left: -9999px; }
.form-notice { background: var(--card); padding: 0.8rem 1rem; }

@media (max-width: 781px) {
  .split { flex-direction: column; align-items: stretch; }
  .split-copy, .split-photo { flex: 1 1 auto; width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .wp-block-columns { flex-wrap: wrap; }
  .wp-block-column { flex-basis: 100%; }
}
@media (max-width: 769px) {
  body { font-size: 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  h5 { font-size: 16px; }
  h6 { font-size: 12px; }
  .has-medium-font-size { font-size: 20px !important; }
  .has-small-font-size { font-size: 12px !important; }
}
@media (max-width: 599px) {
  .nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
  }
  .nav-button svg { width: 24px; height: 24px; fill: currentColor; display: block; }
  .nav-button .icon-close { display: none; }
  .nav-toggle:checked ~ .nav-button .icon-open { display: none; }
  .nav-toggle:checked ~ .nav-button .icon-close { display: block; }
  .nav-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 0.5rem 1.2rem 1rem; border-bottom: 1px solid #ddd; z-index: 2; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .header-bar { flex-wrap: wrap; position: relative; }
  .footer-social { justify-content: flex-start; }
  .contact-form .field { padding-left: 1px; padding-right: 1px; }
  .name-row, .contact-form input[type="email"] { max-width: 100%; }
}
@media (max-width: 520px) {
  .footer-links { grid-template-columns: 1fr; }
}

.podcast {
  width: min(740px, 100%);
  margin: 0 auto;
  padding: 0 0.67rem;
}
.podcast h1,
.podcast h2,
.podcast h3 { background: transparent; }
.cast-lead { margin: 0 0 36px; color: var(--muted); }
.cast-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cast-title { color: inherit; text-decoration: none; }
.cast-title:hover { text-decoration: underline; }
.cast-now h1 { margin: 0 0 8px; }
.cast-now-meta { margin: 0; color: var(--muted); }
.podcast audio { display: block; width: 100%; margin-top: 24px; }
.cast-links,
.cast-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; }
.cast-links a,
.cast-actions a { color: var(--fg); }
.cast-actions { margin-top: 28px; }
.cast-actions a {
  text-decoration: none;
  border: 1px solid var(--fg);
  padding: 8px 14px;
  font-size: 16px;
  line-height: 1.3;
}
.cast-actions a:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.cast-archive { margin-top: 56px; }
.cast-archive-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cast-archive-head h2 { font-size: 32px; line-height: 1.35; }
.cast-archive-head p { margin: 0; color: var(--muted); font-size: 16px; }
.cast-find-label {
  display: block;
  margin: 20px 0 6px;
  font-size: 14px;
  font-weight: 600;
}
.cast-find-label + input,
#cast-find {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 8px 12px;
}
.cast-empty { margin: 18px 0 0; color: var(--muted); }
.cast-year > h2 {
  margin: 32px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.cast-year:first-child > h2 { margin-top: 22px; }
.cast-year ol { list-style: none; margin: 0; padding: 0; }
.cast-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #e6e6e6;
}
.cast-row[hidden],
.cast-year[hidden],
.cast-empty[hidden] { display: none; }
.cast-name { color: var(--fg); font-weight: 600; text-decoration: none; }
.cast-name:hover { text-decoration: underline; }
.cast-meta { margin: 2px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.cast-play {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cast-play svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.cast-play .icon-pause { display: none; }
.cast-row.is-playing .cast-play { background: var(--accent); color: var(--paper); }
.cast-row.is-playing .cast-play .icon-play { display: none; }
.cast-row.is-playing .cast-play .icon-pause { display: block; }
.cast-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cast-dot { color: var(--muted); }
