:root {
  --cream: #f2eeeb;
  --yellow: #fcbf2c;
  --red: #ce3637;
  --green: #3a8e43;
  --blue: #65aede;
  --purple: #976ab8;
  --pink: #cf70aa;
  --ink: #1d1917;
  --muted: #625750;
  --line: rgb(29 25 23 / 18%);
}

@font-face {
  font-family: "Cafelatte";
  src: url("fonts/Cafelatte%20Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.decorative-layer {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  inset: 0;
}

.decorative-layer img {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.church-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100vw;
  max-width: none;
  height: auto;
  opacity: 0.08;
  mix-blend-mode: multiply;
  object-position: center;
  transform: translate(-50%, -50%);
}

.petals-top,
.petals-bottom {
  z-index: 1;
  width: clamp(480px, 46vw, 700px);
  opacity: 0;
  animation: decorative-enter 2.8s cubic-bezier(0.22, 1, 0.36, 1) 100ms forwards;
}

.petals-top {
  top: 0;
  right: 0;
}

.petals-bottom {
  bottom: 0;
  left: 0;
  animation-delay: 300ms;
}

.site-header,
.page-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  width: min(100% - 2.5rem, 76rem);
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: clamp(1rem, 1.8vw, 1.5rem) 0 0.65rem;
}

.brand {
  display: inline-block;
  width: clamp(290px, 22.5vw, 320px);
  animation: brand-enter 3.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.home-hero {
  width: min(100% - 2.5rem, 57.5rem);
  margin-inline: auto;
  padding: clamp(2.25rem, 3.5vw, 3.5rem) 0 clamp(3.5rem, 6vw, 5rem);
}

.editorial-copy {
  max-width: 57.5rem;
  margin-inline: auto;
}

.editorial-copy p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.01em;
  text-align: justify;
}

.editorial-copy p + p {
  margin-top: 1rem;
}

.hero-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  justify-items: center;
  margin-top: 2.25rem;
}

.action-button {
  position: relative;
  display: inline-flex;
  width: min(100%, 18.75rem);
  min-height: 3.35rem;
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
  overflow: visible;
  padding: 0.7rem 0.75rem 0.7rem 1.15rem;
  border: 1px solid var(--blue);
  border-radius: 0.55rem 1.15rem 0.55rem 0.55rem;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.action-button::before {
  position: absolute;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(from 210deg, var(--blue), var(--blue), #b7dff4, var(--blue));
  content: "";
  filter: blur(7px);
  inset: -4px;
  transition: opacity 220ms ease;
}

.action-button::after {
  position: absolute;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(from 210deg, var(--blue), var(--blue), #b7dff4, var(--blue));
  content: "";
  inset: -2px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 220ms ease;
}

.action-button > span,
.action-button > svg {
  position: relative;
  z-index: 1;
}

.action-button > span:not(.action-button__arrow) {
  min-width: 0;
}

@media (min-width: 861px) {
  .hero-actions .action-button:last-child > span:not(.action-button__arrow) {
    font-size: 0.86rem;
    white-space: nowrap;
  }
}

.action-button__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.action-button__arrow {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.35rem 0.85rem 0.35rem 0.35rem;
  background: var(--yellow);
  color: var(--ink);
  transition: transform 180ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 7px 12px rgb(101 174 222 / 14%);
  transform: translateY(-2px);
}

.action-button:hover::before,
.action-button:hover::after,
.action-button:focus-visible::before,
.action-button:focus-visible::after {
  opacity: 1;
}

.action-button:hover .action-button__arrow,
.action-button:focus-visible .action-button__arrow {
  transform: translateX(3px);
}

.action-button:active {
  transform: translateY(0);
}

.institutional-strip {
  display: grid;
  width: min(100% - 2.5rem, 53rem);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto clamp(0.5rem, 1.5vw, 1.5rem);
  border-top: 1px solid var(--line);
}

.institutional-strip span {
  display: grid;
  min-height: 5.5rem;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.institutional-strip img {
  display: block;
  width: auto;
  max-width: min(100%, 180px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.institutional-strip span:nth-child(2) {
  padding-inline: 0.35rem;
}

.institutional-strip span:nth-child(2) img {
  max-height: 88px;
}

.institutional-strip span:nth-child(3) {
  padding-inline: 0.5rem;
}

.institutional-strip span:nth-child(3) img {
  max-height: 96px;
}

.institutional-strip span:nth-child(4) {
  padding-inline: 0.35rem;
}

.institutional-strip span:nth-child(4) img {
  width: min(100%, 160px);
  max-height: 60px;
}

.institutional-strip span:first-child {
  padding-inline: 0.5rem;
}

.institutional-strip span:first-child img {
  max-width: min(100%, 200px);
}

.institutional-strip span + span {
  border-left: 1px solid var(--line);
}

.site-footer {
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
  padding: 1.8rem 0 2.5rem;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.social-link {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 0;
  border-radius: 0.45rem;
  color: #fff;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}

.social-link--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link--facebook {
  background: #0866ff;
}

.social-link:hover,
.social-link:focus-visible {
  filter: brightness(0.9);
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

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

.contact a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--blue);
  text-underline-offset: 0.2em;
}

.terms-main {
  width: min(100% - 2.5rem, 53rem);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.5rem) 0 0;
}

.press-main {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 53rem);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.press-main .back-link {
  margin-bottom: 1.25rem;
}

.press-main h1 {
  margin: 0 0 1.5rem;
  font-family: "Cafelatte", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.press-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.press-card {
  min-width: 0;
  margin: 0;
}

.press-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.press-image-trigger img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 0.6rem 0.9rem -0.25rem rgb(29 25 23 / 24%);
}

.press-card__caption {
  margin-top: 0.65rem;
  font-size: clamp(0.65rem, 1.5vw, 0.9rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.press-image-trigger__icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: rgb(29 25 23 / 76%);
  color: #fff;
}

.press-image-trigger__icon svg,
.press-viewer__control svg {
  width: 1.4rem;
  height: 1.4rem;
}

.press-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  background: rgb(20 19 18 / 97%);
  color: #fff;
}

.press-viewer::backdrop {
  background: rgb(20 19 18 / 97%);
}

.press-viewer__controls {
  position: fixed;
  z-index: 1;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.press-viewer__control {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: rgb(29 25 23 / 76%);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.press-viewer__control:hover,
.press-viewer__control:focus-visible {
  background: rgb(255 255 255 / 18%);
}

.press-viewer__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 60rem);
  max-height: 86vh;
  margin: 5rem auto 2rem;
  object-fit: contain;
  cursor: zoom-in;
}

.press-viewer__image.is-actual-size {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 180ms ease;
}

.back-link:hover {
  color: var(--blue);
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.terms-document {
  position: relative;
}

.terms-document > header {
  margin-bottom: 2.5rem;
}

.terms-document h1,
.terms-document h2 {
  font-family: "Cafelatte", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}

.terms-document h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  text-align: center;
}

.terms-document h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.terms-document p,
.terms-document li {
  color: var(--ink);
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-spacing: normal;
}

.terms-document a {
  overflow-wrap: normal;
}

.terms-submit {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.terms-site-url {
  color: var(--red);
  font-weight: 600;
  white-space: nowrap;
  text-decoration-color: var(--red);
  text-underline-offset: 0.15em;
}

.terms-document p {
  margin: 0 0 0.85rem;
}

.terms-document p + p {
  margin-top: 0;
}

.terms-section {
  margin: 0 0 1.75rem;
  padding: 0;
}

.terms-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.terms-section li + li {
  margin-top: 0.65rem;
}

.award-note {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--blue);
  border-left: 4px solid var(--yellow);
  background: rgb(252 191 44 / 13%);
  line-height: 1.35;
}

.award-note span {
  display: block;
}

.award-note strong {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
}

.terms-support .institutional-strip {
  width: 100%;
  margin: 1.25rem 0 0;
  border-top: 0;
}

.terms-support {
  margin-bottom: clamp(0.5rem, 1.5vw, 1.5rem);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@keyframes decorative-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 0.8rem, 0);
  }

  @keyframes brand-enter {
    from {
      opacity: 0;
      transform: translate3d(0, 0.8rem, 0);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  to {
    opacity: 0.68;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 860px) {
  .home-hero {
    padding-top: clamp(1.9rem, 5vw, 3rem);
  }

  .hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header,
  .home-hero,
  .institutional-strip,
  .site-footer,
  .terms-main,
  .press-main {
    width: min(100% - 2rem, 52rem);
  }

  .site-header {
    min-height: 5.5rem;
    justify-content: flex-start;
    padding-top: 1rem;
  }

  .brand {
    width: clamp(230px, 72vw, 270px);
  }

  .church-illustration {
    width: 100vw;
  }

  .petals-top,
  .petals-bottom {
    width: min(92vw, 520px);
  }

  .home-hero {
    padding: 2rem 0 4.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .action-button {
    width: 100%;
  }

  .action-button__icon {
    width: 23px;
    height: 23px;
  }

  .institutional-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .institutional-strip span:nth-child(3),
  .institutional-strip span:nth-child(5) {
    border-left: 0;
  }

  .institutional-strip span:nth-child(5) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .terms-main {
    padding: 2rem 0 0;
  }

  .terms-document > header {
    margin-bottom: 2.5rem;
  }

  .terms-section {
    padding: 1.75rem 0;
  }

  .terms-support {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .petals-top,
  .petals-bottom {
    animation: none;
    opacity: 0.68;
  }
}
