/* Emmanuel Mennonite Fellowship Church
   Deep red, near-black and warm white. Calibri throughout (Carlito, its
   free look-alike, for visitors without Calibri),
   thin red rules echoing the "GOD WITH US" line in the logo. */

:root {
  --red: #7a1418;
  --red-deep: #5a0e11;
  --red-soft: #f3e6e4;
  --ink: #1c1a1a;
  --ink-soft: #3a3535;
  --muted: #6b6460;
  --paper: #fbf9f6;
  --cream: #f4efe8;
  --line: #e4dbd0;
  --white: #ffffff;

  --font: Calibri, Carlito, 'Segoe UI', Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
}

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

html {
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-deep);
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 1.1em;
}

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

.narrow {
  max-width: 720px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 8px 14px;
}

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

/* ---------- Small caps label, like "GOD WITH US" ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}

.rule {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 auto 1.5rem;
}

.rule::before,
.rule::after {
  content: '';
  height: 1px;
  width: 56px;
  background: var(--red);
}

.rule.light {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: var(--white);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn.outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn.light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn.light:hover {
  background: var(--white);
  color: var(--ink);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.center .btn-row {
  justify-content: center;
}

.text-link {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.text-link::after {
  content: ' →';
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
}

.brand img {
  height: 86px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
}

.main-nav a.active {
  border-bottom-color: var(--red);
}

.main-nav a.nav-give {
  margin-left: 8px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--red);
}

.main-nav a.nav-give:hover,
.main-nav a.nav-give.active {
  background: var(--red);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .brand img {
    height: 66px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a.active {
    border-bottom-color: var(--line);
  }

  .main-nav a.nav-give {
    margin: 16px 0 0;
    text-align: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--cream);
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  text-align: center;
  overflow: hidden;
}

/* A quiet, oversized cross drawn behind the hero text. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  background: var(--red);
  opacity: 0.06;
  left: 50%;
}

.hero::before {
  width: 26px;
  height: 140%;
  top: -10%;
  transform: translateX(-50%);
}

.hero::after {
  width: min(640px, 80vw);
  height: 26px;
  top: 30%;
  transform: translateX(-50%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.3em;
}

.hero .verse {
  font-family: var(--font);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 0.6em;
}

.hero .verse-ref {
  display: block;
  font-family: var(--font);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2.4rem;
}

/* Page header for inner pages */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 72px);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.2em;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Info band (service times) ---------- */

.info-band {
  background: var(--ink);
  color: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.info-item {
  padding: 32px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.info-item:first-child {
  border-left: 0;
}

.info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #d9a5a2;
  margin-bottom: 6px;
}

.info-value {
  font-family: var(--font);
  font-size: 1.45rem;
  line-height: 1.35;
}

.info-value small {
  display: block;
  font-family: var(--font);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.info-band a {
  color: var(--white);
}

@media (max-width: 800px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px 0;
  }

  .info-item:first-child {
    border-top: 0;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section.tint {
  background: var(--cream);
}

.section.dark {
  background: var(--ink);
  color: var(--white);
}

.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.section-head p {
  color: var(--muted);
}

.center {
  text-align: center;
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Large quote block */
.pull-quote {
  font-family: var(--font);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.pull-quote cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d9a5a2;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  color: var(--ink-soft);
}

.card .text-link {
  margin-top: auto;
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--red);
  margin-bottom: 20px;
}

/* ---------- Ministries page ---------- */

.ministry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.ministry:first-child {
  border-top: 0;
}

.ministry-label {
  font-family: var(--font);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--red);
  opacity: 0.25;
}

@media (max-width: 700px) {
  .ministry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ministry-label {
    font-size: 3rem;
  }
}

/* ---------- Lists: events & sermons ---------- */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.list-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.date-badge {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px 0 10px;
}

.date-badge .m {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.date-badge .d {
  display: block;
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.list-item h3 {
  font-size: 1.5rem;
  margin: 0 0 0.15em;
}

.list-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.list-item h3 a:hover {
  color: var(--red);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.meta span + span::before {
  content: '·';
  margin: 0 8px;
  color: var(--line);
}

.service-lines {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.service-lines strong {
  display: inline-block;
  min-width: 82px;
  color: var(--ink);
}

.list-item p.desc {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .list-item {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }

  .list-item .tag,
  .list-item .item-action {
    grid-column: 2;
    justify-self: start;
  }

  .date-badge .d {
    font-size: 1.6rem;
  }
}

audio {
  width: 100%;
  margin-top: 12px;
  height: 40px;
}

.sermon-video {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-top: 12px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius);
}

.sermon-row {
  align-items: start;
}

.sermon-row audio {
  max-width: 520px;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  color: var(--muted);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

/* ---------- Feature (latest sermon on home) ---------- */

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font);
  font-size: 1.45rem;
  font-weight: 700;
  padding: 18px 40px 18px 0;
  position: relative;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--red);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  color: var(--ink-soft);
  padding-right: 40px;
}

/* ---------- Beliefs list ---------- */

.beliefs {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: belief;
}

.beliefs li {
  counter-increment: belief;
  position: relative;
  padding: 0 0 28px 64px;
}

.beliefs li::before {
  content: counter(belief, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -4px;
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
}

.beliefs strong {
  display: block;
  font-family: var(--font);
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.beliefs span {
  color: var(--ink-soft);
}

/* ---------- Map / contact ---------- */

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list .info-label {
  color: var(--red);
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 32px;
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer-logo img {
  height: 130px;
  width: auto;
  margin-bottom: 20px;
}

.site-footer h4 {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #d9a5a2;
  margin: 8px 0 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Forms (admin) ---------- */

.form {
  display: grid;
  gap: 18px;
}

.form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form .hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 4px 0 0;
}

.form input[type='text'],
.form input[type='password'],
.form input[type='date'],
.form input[type='file'],
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: var(--red-soft);
  color: var(--red-deep);
  border: 1px solid #e7cdca;
}

.alert.ok {
  background: #eef3ec;
  color: #2d4a27;
  border-color: #d3e0cf;
}

.admin-bar {
  background: var(--red-deep);
  color: var(--white);
  font-size: 0.85rem;
}

.admin-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 12px;
}

.admin-bar a,
.admin-bar button {
  color: var(--white);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 40px;
}

.admin-panel h2 {
  font-size: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-table .actions {
  white-space: nowrap;
  text-align: right;
}

.admin-table form {
  display: inline;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 640px) {
  .admin-table .hide-sm {
    display: none;
  }
}

.back-link {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Admin extras ---------- */

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  margin-top: 16px;
}

.admin-tabs a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
}

.admin-tabs a.active,
.admin-tabs a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.admin-tabs form {
  margin-left: 12px;
}

.admin-tabs .count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-align: center;
}

.form input[type='email'],
.form select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.upload-progress {
  margin-top: 12px;
}

.upload-progress .bar {
  height: 8px;
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
}

.upload-progress .bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.2s;
}

.message {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.message.unread h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
}

.message-body {
  white-space: pre-wrap;
  margin: 8px 0 12px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.admin-tabs .link-button {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 12px 14px;
}

/* ---------- Photos ---------- */

/* Home: text on the left, the cross photo on the right. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  text-align: left;
}

.hero:has(.hero-grid)::before,
.hero:has(.hero-grid)::after {
  display: none;
}

.hero-grid h1 {
  font-size: clamp(3rem, 7vw, 5.25rem);
}

.hero-grid .verse {
  margin-left: 0;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(28, 26, 26, 0.45);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-grid .verse {
    margin-left: auto;
  }

  .hero-grid .btn-row {
    justify-content: center;
  }

  .hero-photo img {
    aspect-ratio: 3 / 2;
  }
}

.section-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 24px;
}

.card-photo {
  width: calc(100% + 64px);
  max-width: none;
  margin: -36px -32px 24px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.ministry-photo {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* Inner page banners and quote bands: a photo under a dark tint. */
.page-hero.photo,
.photo-band {
  background:
    linear-gradient(rgba(24, 18, 18, 0.62), rgba(24, 18, 18, 0.7)),
    var(--photo) center / cover no-repeat,
    var(--ink);
  border-bottom: 0;
}

.page-hero.photo {
  padding: clamp(80px, 12vw, 140px) 0 clamp(64px, 9vw, 112px);
}

.page-hero.photo h1 {
  color: var(--white);
}

.page-hero.photo p {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero.photo .rule {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero.photo .rule::before,
.page-hero.photo .rule::after {
  background: #d9a5a2;
}
