:root {
  --ink: #24334e;
  --muted: #485975;
  --blue: #3949ab;
  --line: #e1e6f2;
  --tint: #eef2fb;
}
body { background: #fcfbf8; }
.sitehead { background: linear-gradient(105deg,#28365e,#202a49); }
.hero { color: var(--ink); background: radial-gradient(ellipse at 81% 43%, #dce5fb, transparent 57%), linear-gradient(130deg,#fcfbf8,#eef2fb); }
.hero-grid { min-height: 550px; }
.herocopy h1 { font-size: clamp(2.65rem, 5.2vw, 4.9rem); }
.hero .eyebrow, .herocopy h1 em { color: var(--blue); }
.herocopy > p:not(.eyebrow) { color: var(--muted); }
.hero .primary { color: white; background: var(--blue); }
.hero .outline { color: var(--blue); border-color: #aab6d7; }
.hero .outline:hover { background: #dfe6fa; }
.hero figure, .portrait-flow { border: 0; border-radius: 0; background: none; position: relative; isolation: isolate; }
.hero figure::after { content: none; }
.hero figure img, .journey .portrait-flow img, .portrait-flow img {
  border-radius: 0;
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 90%, transparent);
  object-position: center 38%;
}
.hero figure {
  mask-image: linear-gradient(to right, transparent, #000 31%);
  border-radius: 0 22px 22px 0;
}
.hero figure img {
  object-position: center 44%;
  transform: scale(1.53);
  transform-origin: 51% 47%;
  mask-image: none;
}
.journey-hero .portrait-flow img { mask-image: linear-gradient(to right, transparent, #000 25%); }
.hero figure::before, .portrait-flow::before {
  content: ""; position: absolute; inset: 8% -8%; z-index: -1;
  background: radial-gradient(ellipse, #9eafe5a8, #e4eaf900 69%);
}
.button { gap: 8px; }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -.2em; }
.quiet-quote { margin: 0; text-align: center; color: var(--blue); background: linear-gradient(95deg,#edf2fb,#f6f0ec,#edf2fb); padding: 43px 22px; }
.quiet-quote blockquote { margin: 5px auto; font: 400 clamp(1.5rem,4vw,2.4rem)/1.24 Georgia,serif; max-width: 28ch; }
.quiet-quote figcaption { margin-top: 12px; color: var(--muted); }
.cover-card { padding: 0; overflow: hidden; box-shadow: 0 10px 28px #28396109; }
.cover-card > div { padding: 22px; }
.cover-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.story-cover { width: 100%; max-height: 390px; aspect-ratio: 2/1; object-fit: cover; border-radius: 18px; margin: 25px 0; }
.cover-card img, .story-cover {
  border-radius: 0;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent),
              linear-gradient(to bottom, transparent, #000 8%, #000 86%, transparent);
  mask-composite: intersect;
}
.cover-card > img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  background: #f0f2f8; mask-image: none;
}
.cover-card > div { display: flex; flex-direction: column; align-items: flex-start; }
.cover-card { display: flex; flex-direction: column; }
.cover-card > div { flex: 1; }
.cover-card .textlink { margin-top: auto; padding-top: 8px; }
.callout-mark { font-size: 1.5rem; line-height: 1.2; font-weight: 700; }
.blog-narration { margin-block: 24px; background: #eef1fb; }
.site-footer {
  background: radial-gradient(ellipse at 80% 5%,#2b3967 0%,transparent 56%),#141c34;
  padding: clamp(42px,6vw,76px) 0;
}
.site-footer .foot {
  display: grid; grid-template-columns: 1.25fr .65fr 1fr;
  align-items: start; gap: clamp(20px,5vw,64px);
}
.footer-brand p { max-width: 32ch; margin-top: 16px; }
.footer-explore, .footer-connect { display: grid; justify-items: start; gap: 8px; }
.site-footer h2 { font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.footer-explore a, .site-footer .footerlinks a { color: #e3e9fc; text-decoration: none; }
.footer-explore a:hover, .site-footer .footerlinks a:hover { text-decoration: underline; }
.site-footer .footerlinks { display: grid; gap: 12px; margin-top: 0; }
.site-footer .social-links { margin-top: 12px; }
@media(max-width:690px) {
  .site-footer .foot { grid-template-columns: 1fr; gap: 26px; }
  .footer-explore, .footer-connect { padding-top: 22px; border-top: 1px solid #aab8df44; }
  .footer-explore { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-explore h2 { grid-column: 1 / -1; }
}
.journey-hero {
  display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(20px,5vw,70px);
  margin-bottom: 34px; padding: clamp(20px,4vw,46px);
  background: radial-gradient(ellipse at 75% 42%,#dbe4fa,transparent 63%),linear-gradient(120deg,#f7f3ed,#eef2fa);
  border-radius: 28px;
}
.journey-hero .pagehead { margin: 0; }
.journey-hero .portrait-flow img { width: min(100%,400px); margin: auto; }
.testimony-player { background: #eef1fb; }
.testimony-player h2 { font-size: clamp(1.4rem,4vw,2rem); }
.playlist-actions { margin-bottom: 26px; }
.latest-blog-art img, .sermon-art img { width: 100%; height: auto; border-radius: 16px; }
.sermon-art { margin: 24px 0; }
.sermon-play { --thumb: url('/assets/overshadowed-1.webp'); }
.resource-icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 12px;
  border-radius: 50%; color: var(--blue); background: #eef1fb;
}
.resource-card { display: flex; flex-direction: column; align-items: flex-start; }
.resource-card .textlink { margin-top: auto; padding-top: 8px; }
.journey .portrait-flow img {
  width: 100%; max-height: none; aspect-ratio: 1; object-fit: cover; object-position: center;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 86%, transparent),
              linear-gradient(to bottom, transparent, #000 9%, #000 86%, transparent);
  mask-composite: intersect;
}
.branded-feature {
  gap: clamp(5px, 1.3vw, 14px);
  background: linear-gradient(125deg,#171e3cbb,#334ca6a0), var(--feature-image,radial-gradient(ellipse at 75% 40%,#657ad4,#222d61 73%)) center/cover;
  padding: 12px 24px;
}
.branded-feature img { width: clamp(28px, 6vw, 60px); }
.branded-feature strong { font-size: clamp(1.2rem, 3vw, 2.4rem); line-height: 1.1; text-wrap: balance; }
.branded-feature span { width: clamp(34px, 5vw, 53px); height: clamp(34px, 5vw, 53px); }
.admin-grid { margin-top: 22px; }
.admin-photo { width: 100%; height: 175px; object-fit: contain; background: var(--tint); border-radius: 10px; }
.ministry-form { display: grid; gap: 17px; margin-top: 22px; }
.ministry-form label { display: grid; gap: 5px; font-weight: 700; }
.ministry-form input:not([type=checkbox]), .ministry-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #aab6d7;
  border-radius: 9px; color: var(--ink); background: #fcfbff; font: inherit; font-weight: 400;
}
.ministry-form .check { display: flex; align-items: baseline; gap: 10px; font-weight: 400; }
.ministry-form button { justify-self: start; }
.ministry-form .actions { margin-top: 0; }
.ministry-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.editor-hint { font-size: .9rem; }
.admin-list li { margin-bottom: 8px; }
.table-wrap { margin: 20px 0; overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.footerlinks { align-items: center; }
.footerlinks a { display: inline-flex; gap: 8px; align-items: center; }
.social-links { display: flex; gap: 8px; }
.social-links .social {
  display: grid; place-items: center;
  width: 42px; height: 42px; border: 1px solid #aab8df66;
  border-radius: 50%; color: white; text-decoration: none;
}
.social-links .social:hover { background: #ffffff22; }
.social-links .icon { width: 20px; height: 20px; }
.prose > h2 { color: var(--blue); }
.article-callout {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  margin: 25px 0; padding: clamp(16px,4vw,30px); border-radius: 16px;
  background: #eef1fb; color: #35447d;
}
.article-callout.reflect { background: #f4eef5; color: #65497b; }
.article-callout.practice { background: #edf4f0; color: #355c52; }
.article-callout .icon { width: 1.55rem; height: 1.55rem; margin-top: 3px; }
.article-callout h3 { margin: 0 0 4px; font-size: 1.06rem; }
.article-callout blockquote, .article-callout p { margin: 0; color: var(--ink); white-space: pre-line; }
.article-callout blockquote { font-family: Georgia,serif; font-size: 1.16em; }
.flip-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 10px; }
.flip-controls button { background: #fff; }
.flip-controls button:disabled { opacity: .45; cursor: default; }
.flip-controls output { font-size: .88rem; color: var(--muted); text-align: center; }
.flip-shell { perspective: 1500px; }
.flip-shell.ready .leaf {
  background: linear-gradient(90deg,#eae3d8 0,#fffdf6 6%,#fffdf6 96%,#f1eadf);
  padding: clamp(20px,6vw,52px); min-height: 365px; border: 1px solid #e4ded2;
  border-radius: 5px 14px 14px 5px; box-shadow: 0 6px 0 -3px #e2d8c8,0 15px 28px #32304914;
  transform-origin: left center;
}
.flip-shell.ready .leaf h2 { margin-top: 0; }
.flip-shell.ready .leaf.forward { animation: turn-forward .46s ease-out both; }
.flip-shell.ready .leaf.back { animation: turn-back .46s ease-out both; }
@keyframes turn-forward { from { transform: rotateY(-62deg); opacity: .48; } to { transform: rotateY(0); opacity: 1; } }
@keyframes turn-back { from { transform: rotateY(48deg); opacity: .48; } to { transform: rotateY(0); opacity: 1; } }
@media(prefers-reduced-motion: reduce) {
  .flip-shell.ready .leaf.forward, .flip-shell.ready .leaf.back { animation: none; }
}
@media(max-width:690px) {
  .nav .menu {
    display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
    padding: 6px 13px; border-radius: 999px; border-color: #b5c1ef66;
    background: #ffffff0d; font-size: .88rem; font-weight: 700;
  }
  .nav .menu::before {
    content: ""; width: 15px; height: 12px;
    background: linear-gradient(currentColor,currentColor) top/100% 1.5px,
                linear-gradient(currentColor,currentColor) center/100% 1.5px,
                linear-gradient(currentColor,currentColor) bottom/100% 1.5px;
    background-repeat: no-repeat;
  }
  .nav .menu[aria-expanded="true"]::before {
    background: linear-gradient(45deg,transparent 44%,currentColor 45% 55%,transparent 56%),
                linear-gradient(-45deg,transparent 44%,currentColor 45% 55%,transparent 56%);
    width: 13px; height: 13px;
  }
  .nav nav.open {
    left: auto; right: 16px; top: calc(100% + 8px);
    width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 90px);
    overflow-y: auto; display: grid; grid-template-columns: 1fr; gap: 2px;
    padding: 9px; background: #fcfbff; border: 1px solid #dce3f1;
    border-radius: 18px; box-shadow: 0 18px 46px #10172a3d;
  }
  .nav nav a {
    display: flex; justify-content: space-between; align-items: center;
    min-height: 44px; padding: 8px 13px; border: 0; border-radius: 10px;
    color: var(--ink); font-weight: 600;
  }
  .nav nav a::after { content: "›"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
  .nav nav a:hover, .nav nav a[aria-current="page"] { background: #edf1fb; text-decoration: none; }
  .nav nav a.navcontact { background: #e9edf9; color: var(--blue); margin-top: 4px; }
  .hero-grid { min-height: auto; }
  .hero figure { min-height: 270px; }
  .hero figure, .journey-hero .portrait-flow img { mask-image: linear-gradient(to bottom, transparent, #000 22%); }
  .hero figure { border-radius: 0 0 18px 18px; }
  .hero figure img { transform: scale(1.2); }
  .journey-hero { grid-template-columns: 1fr; }
  .journey-hero .portrait-flow img { max-width: 310px; }
  .flip-controls .button { padding-inline: 10px; }
}
