/* Site-specific behavior, utilities, and accessibility. */
:root {
  --site-header-height: 100px;
}
#page {
  --header-height: var(--site-header-height);
}
#header {
  position: fixed;
  top: 0;
  z-index: 100;
}
#header.is-scrolled,
body.home-page #header {
  background-color: var(--color-background) !important;
}
#header.is-scrolled {
  box-shadow: 0 2px 12px rgb(0 0 0 / 12%);
}
.home-page .site-wrapper {
  padding-top: var(--site-header-height);
}
html {
  scroll-padding-top: calc(var(--site-header-height) + 1rem);
}
[hidden] {
  display: none !important;
}
.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.text-right {
  text-align: right !important;
}
.preserve-space {
  white-space: pre-wrap;
}
.about-michelle-page {
  --image-block-card-image-width: 45%;
  --image-block-card-image-card-separation: 5%;
}
.about-michelle-page .image-block .media-card .image-card > * {
  text-align: left !important;
}
@media (max-width: 767px) {
  .image-block .media-card:not(.card-narrow),
  .image-block .media-card:not(.card-narrow).image-position-right {
    flex-direction: column;
    gap: 1.5rem;
  }
  .image-block .media-card:not(.card-narrow) > div:first-child,
  .image-block .media-card:not(.card-narrow) .image-card-wrapper {
    width: 100%;
  }
  .image-block .media-card:not(.card-narrow):is(.image-position-left, .image-position-right) .image-card-wrapper {
    min-height: 0;
    margin: 0;
  }
  .about-michelle-page .image-block .media-card:not(.card-narrow) > div:first-child {
    order: 1;
  }
  .about-michelle-page .image-block .media-card:not(.card-narrow) .image-card-wrapper {
    order: 0;
  }
}
.home-page {
  --home-ink: #263840;
  --home-muted: #5c6d72;
  --home-wash: #f3f6f5;
  --home-accent: #2f7079;
  --home-accent-hover: #28636c;
  --home-panel: #fff;
  --home-surface: #fff;
  --home-button-text: #fff;
}
.home-page .header {
  position: relative;
  background: var(--color-background);
}
.home-hero {
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  background: var(--home-wash);
  color: var(--home-ink);
  text-align: center;
}
.home-hero-image {
  height: clamp(16rem, 24vw, 30rem);
  overflow: hidden;
}
.home-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.home-hero-image.is-parallax img {
  height: 120%;
  transform: translate3d(0, var(--parallax-shift, 0px), 0);
  will-change: transform;
}
.home-hero-content {
  --home-hero-h1-size: clamp(1.15rem, 3.4vw, 1.65rem);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(90%, 1440px);
  margin: -4.5rem auto 0;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 1.1rem;
  background: var(--home-panel);
  box-shadow: 0 1rem 3rem rgb(25 39 43 / 12%);
}
.home-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--home-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.home-hero-content h1 {
  max-width: 26ch;
  margin: 0 auto;
  color: inherit;
  font-family: var(--font-heading);
  font-size: var(--home-hero-h1-size);
  font-weight: var(--weight-heading);
  line-height: 1.2;
}
.home-hero-subtitle {
  margin: 0.65rem 0 0.9rem;
  color: var(--home-muted);
  font-size: calc(var(--home-hero-h1-size) * 1.681);
  line-height: 1.2;
}
.home-hero-content > .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border-radius: 0.45rem;
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: var(--home-button-text);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
#siteWrapper.site-wrapper .home-hero-content > .button-primary {
  min-height: 0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.home-hero-content > .button-primary:hover {
  background: var(--home-accent-hover);
  border-color: var(--home-accent-hover);
  transform: translateY(-2px);
}
.home-welcome {
  background: var(--home-wash);
}
.home-section-inner {
  width: min(100% - 3rem, 1200px);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}
.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}
.welcome-copy h2,
.home-section-heading h2 {
  margin: 0 0 1.25rem;
  color: var(--home-ink);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
}
.welcome-copy > p:not(.home-eyebrow) {
  max-width: 58ch;
  margin: 0 0 1.5rem;
  color: var(--home-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}
.home-quote {
  margin: 0;
  padding: 0.5rem 0 0.5rem 2rem;
  border-left: 3px solid #77aeb3;
}
.home-quote p {
  margin: 0 0 1.25rem;
  color: var(--home-ink);
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.5;
}
.home-quote cite {
  color: var(--home-muted);
  font-size: 0.92rem;
  font-style: normal;
}
.home-text-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--home-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease;
}
.home-text-link:hover {
  text-decoration-color: currentColor;
}
.home-offerings {
  background: var(--home-surface);
}
.home-section-heading {
  margin: 0 auto 2.5rem;
  text-align: center;
}
.home-section-heading h2 {
  margin-bottom: 0.75rem;
}
.home-section-heading > p:last-child {
  margin: 0;
  color: var(--home-muted);
  font-size: 1.05rem;
}
.offering-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.offering-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e9e8;
  border-radius: 0.8rem;
  background: var(--home-panel);
  box-shadow: 0 0.5rem 1.5rem rgb(26 47 53 / 6%);
}
.offering-card > img {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(13rem, 20vw, 17rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.offering-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
}
.offering-card h3 {
  margin: 0 0 0.75rem;
  color: var(--home-ink);
  font-size: 1.3rem;
  line-height: 1.35;
}
.offering-card h3 a {
  color: inherit;
  text-decoration: none;
}
.offering-card h3 a:hover {
  color: var(--home-accent);
}
.offering-card p {
  margin: 0 0 1.25rem;
  color: var(--home-muted);
  line-height: 1.7;
}
.offering-card .home-text-link {
  margin-top: auto;
}
@media (min-width: 1100px) {
  .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(0.75rem, 1.25vw, 1.25rem)
      clamp(1.25rem, 2.5vw, 2.5rem)
      clamp(1rem, 1.5vw, 1.5rem);
    background: var(--home-wash);
    text-align: left;
  }
  .home-hero-image {
    grid-column: 2;
    grid-row: 1;
    height: min(58vh, 560px);
    min-height: 23rem;
    border-radius: 1rem;
  }
  .home-hero-content {
    grid-column: 1;
    grid-row: 1;
    width: calc(100% + clamp(2rem, 5vw, 5rem) + clamp(1.5rem, 3vw, 3rem));
    max-width: none;
    margin: 0 clamp(-10rem, -7.5vw, -4.5rem) 0 0;
    padding: clamp(2rem, 3.5vw, 3.5rem);
    border-radius: 1rem;
  }
  .home-hero-content {
    --home-hero-h1-size: clamp(1.45rem, 1.75vw, 1.85rem);
  }
  .home-hero-content h1 {
    max-width: 18ch;
    margin: 0;
  }
}

@media (max-width: 1000px) {
  .offering-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .welcome-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 600px) {
  .home-hero-image {
    height: 17rem;
  }
  .home-hero-image.is-parallax img {
    height: 120%;
  }
  .home-hero-content {
    width: calc(100% - 2rem);
    margin-top: -2rem;
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 0.9rem;
  }
  .home-hero {
    padding-bottom: 1rem;
  }
  .home-hero-content {
    --home-hero-h1-size: clamp(1.1rem, 4.8vw, 1.3rem);
  }
  .home-welcome .home-section-inner {
    padding-top: 2rem;
  }
  .home-section-inner {
    width: min(100% - 2.5rem, 1200px);
    padding: 3.5rem 0;
  }
  .offering-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .offering-card-content {
    padding: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-image.is-parallax img {
    height: 100%;
    transform: none !important;
    will-change: auto;
  }
  .home-hero-content > .button-primary,
  .home-text-link {
    transition: none;
  }
}
html {
  scroll-behavior: smooth;
}
body.header--menu-open {
  overflow: hidden;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
#page:focus {
  outline: none;
}
.header-nav-folder-content a {
  display: block;
}
.header-display-desktop .header-nav-item {
  font-weight: 400;
}
.header-nav
  .header-nav-item--folder
  .header-nav-folder-title[aria-expanded="false"]
  + .header-nav-folder-content {
  display: none;
  pointer-events: none;
}
.header-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.header-menu-nav-item {
  padding-inline: 0;
}
.header-menu-nav-item + .header-menu-nav-item {
  margin-top: 0.3rem;
}
.header-menu-nav-item button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.header-menu-nav-item a,
.header-menu-nav-item button {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  margin: 0;
  padding: 0.65rem 0;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: var(--weight-heading);
  line-height: 1.25;
  text-align: left;
}
[data-menu-panel]:not([data-menu-panel="root"]) .header-menu-nav-item a {
  font-size: clamp(1.125rem, 4.5vw, 1.35rem);
  font-weight: 400;
}
[data-menu-panel]:not([data-menu-panel="root"]) .header-menu-nav-item:first-child {
  margin-bottom: 1rem;
}
.header-menu-nav-item button[data-menu-back] {
  min-height: 2.75rem;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}
.header-menu-nav {
  box-sizing: border-box;
  min-height: 0;
  flex-shrink: 1;
  padding-top: var(--site-header-height);
}
.header-menu-nav-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.header-menu-nav-folder-content {
  display: block;
  min-height: 0;
  padding: clamp(2rem, 7vh, 4rem) 0 calc(2rem + env(safe-area-inset-bottom));
}
.header-menu-nav-folder-content [data-menu-panel] {
  width: min(calc(100% - 3rem), 30rem);
  margin-inline: auto;
}
.header-burger-btn:focus:not(:focus-visible),
.header-menu-nav-item a:focus:not(:focus-visible),
.header-menu-nav-item button:focus:not(:focus-visible) {
  outline: none;
}
.header--menu-open .header-skip-link {
  display: none;
}
/* Keep the keyboard skip link readable on every header theme. */
.header-skip-link.button-primary {
  --color-button: #2f7079;
  --color-button-text: #fff;
}
/* Native image loading replaces the platform image loader. */
.image-block img,
.reflection-post img,
.reflection-list img {
  opacity: 1;
}
/* Archive entries remain visible without runtime reveal effects. */
.reflection-list .reflection-entry {
  opacity: 1;
  transform: none;
}
.image-frame.has-aspect-ratio > img {
  position: absolute;
  inset: 0;
}
.reflection-list .image-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
/* The original image loader sized this photo inside its 50px circular frame. */
.reflection-post .author-avatar {
  overflow: hidden;
}
.reflection-post .author-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
iframe#zcal-invite {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
}
.utility-page {
  max-width: 1100px;
  margin: auto;
  padding: calc(var(--site-header-height) + 6vw) 6vw 8vw;
  min-height: 55vh;
}
.no-script-nav {
  padding: 1rem 6vw;
}
#footer-sections [data-section-theme="dark"] {
  background-color: var(--color-background);
  color: #fff;
}
#footer-sections [data-section-theme="dark"] .prose p,
#footer-sections [data-section-theme="dark"] .prose a {
  color: #fff;
}
@media (max-width: 799px), (pointer: coarse) and (max-width: 1024px) {
  :root {
    --site-header-height: 90px;
  }
  .header-menu-nav-item {
    overflow-wrap: anywhere;
  }
  .header-menu-nav-item a,
  .header-menu-nav-item button {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .payments-page .page-section.content-width--medium .content {
    width: 100%;
  }
}
@media (max-width: 900px) {
  .retreat-testimonials .column-third {
    float: none;
    width: 100%;
  }
  .retreat-testimonials .column-third .prose {
    max-width: 65ch;
    margin-inline: auto;
  }
}

@media screen and (max-width: 767px) {
  .item-pagination[data-collection-type^='blog'].item-pagination--prev-next {
    align-items: stretch;
    gap: 1rem;
  }
  .item-pagination[data-collection-type^='blog'] .item-pagination-link {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(50% - 0.5rem);
  }
  .item-pagination[data-collection-type^='blog'] .item-pagination-title {
    min-width: 0;
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .item-pagination[data-collection-type^='blog'] .item-pagination-icon {
    flex: 0 0 30px;
    padding-right: 12px;
  }
  .item-pagination[data-collection-type^='blog'] .item-pagination-link--next .item-pagination-icon {
    padding-right: 0;
    padding-left: 12px;
  }
}

.payments-page .button-block .button-group-right {
  justify-content: center;
}
.payments-page #siteWrapper .button-primary {
  min-width: 12rem;
  padding: 0.9rem 2rem;
  border: 2px solid #28636c;
  border-radius: 0.6rem;
  background: #28636c;
  box-shadow: 0 0.35rem 0.9rem rgb(38 56 64 / 16%);
  color: #fff;
  font-family: var(--font-heading), sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.payments-page #siteWrapper .button-primary:hover {
  border-color: #204f56;
  background: #204f56;
  box-shadow: 0 0.5rem 1.1rem rgb(38 56 64 / 22%);
  transform: translateY(-2px);
}

/* Show each reflection archive image at the start of its post. */
.reflection-post .post-feature-image {
  margin: 0 0 2rem;
}
.reflection-post .post-feature-image img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* Use natural image sizes and content heights on the Psalms of Lament page. */
.lamentforlent-page .region > .page-section:first-child {
  min-height: clamp(22rem, 50vh, 36rem) !important;
}
.lamentforlent-page .region > .page-section:first-child > .content-wrapper {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) !important;
}
.lamentforlent-page .region > .page-section:not(:first-child) {
  min-height: 0;
}
.lamentforlent-page .region > .page-section:not(:first-child) .content-wrapper {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.lamentforlent-page :is(.lamentforlent-grid-2, .lamentforlent-grid-3, .lamentforlent-grid-4) {
  box-sizing: border-box;
  grid-template-rows: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: var(--mobile-site-gutter, 6vw);
}
.lamentforlent-page .lamentforlent-grid-2 {
  display: block;
  max-width: 1100px;
}
.lamentforlent-page :is(.lamentforlent-grid-2, .lamentforlent-grid-3, .lamentforlent-grid-4) > div {
  grid-area: auto;
  min-width: 0;
}
.lamentforlent-page :is(.lamentforlent-grid-2, .lamentforlent-grid-3, .lamentforlent-grid-4) .content-block {
  height: auto;
}
.lamentforlent-page .lamentforlent-grid-3 h2,
.lamentforlent-page .lamentforlent-grid-4 h2 {
  margin-block: 0;
}
.lament-image {
  width: 100%;
  margin: 0;
}
.lament-image img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 900px) {
  .lamentforlent-page :is(.lamentforlent-grid-2, .lamentforlent-grid-3, .lamentforlent-grid-4) {
    padding-inline: var(--site-gutter, 4vw);
  }
  .lamentforlent-page .lamentforlent-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 6vw, 6rem);
  }
  .lamentforlent-page .lamentforlent-grid-3 .lamentforlent-cell-3-1 {
    grid-area: 2 / 1 / 3 / 2;
    align-self: center;
  }
  .lamentforlent-page .lamentforlent-grid-3 .lamentforlent-cell-3-2 {
    grid-area: 1 / 2 / 2 / 3;
  }
  .lamentforlent-page .lamentforlent-grid-3 .lamentforlent-cell-3-3 {
    grid-area: 2 / 2 / 3 / 3;
  }
  .lamentforlent-page .lamentforlent-grid-4 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .lamentforlent-page .lamentforlent-grid-4 .lamentforlent-cell-4-1 {
    grid-column: 1 / -1;
  }
}

/* Give each image section on the two Visio Divina pages the same compact spacing. */
body.visio-lent-page .page-section:has(.image-block),
body.visio-divina-page .page-section:has(.image-block) {
  min-height: 0 !important;
}
body.visio-lent-page .page-section:has(.image-block) .content-wrapper,
body.visio-divina-page .page-section:has(.image-block) .content-wrapper {
  padding-top: clamp(0.75rem, 1.5vw, 1.5rem) !important;
  padding-bottom: clamp(0.75rem, 1.5vw, 1.5rem) !important;
}
