:root {
  --olive: #344124;
  --olive-soft: #4b543b;
  --gold: #ac7f30;
  --gold-deep: #8f6725;
  --cream: #f7f3e8;
  --paper: rgba(250, 247, 239, 0.72);
  --display: "Playfair Display", Georgia, serif;
  --body: "Lato", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--body);
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: var(--cream);
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: url("imagem-fundo.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  content: "";
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(
    ellipse 46% 66% at 46% 45%,
    rgba(250, 247, 239, 0.58) 0%,
    rgba(250, 247, 239, 0.2) 58%,
    rgba(250, 247, 239, 0) 100%
  );
  pointer-events: none;
  content: "";
}

a {
  color: inherit;
}

.page-shell {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4.2vh, 3.25rem) max(2rem, env(safe-area-inset-right))
    max(1.3rem, env(safe-area-inset-bottom)) max(2rem, env(safe-area-inset-left));
}

.site-main,
.site-footer {
  position: relative;
  left: clamp(-4.5rem, -4vw, -2rem);
  width: min(100%, 1050px);
  margin-inline: auto;
}

.intro {
  text-align: center;
}

.church-logo {
  display: block;
  width: clamp(10.625rem, 11vw, 12.5rem);
  height: auto;
  margin: 0 auto clamp(1.2rem, 2.2vh, 1.85rem);
}

.intro-copy {
  width: min(100%, 780px);
  margin-inline: auto;
}

h1,
h2,
p,
blockquote {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-right: auto;
  margin-bottom: clamp(1rem, 1.8vh, 1.45rem);
  margin-left: auto;
  color: var(--olive);
  font-family: var(--display);
  font-size: clamp(3.75rem, 5vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.ornament {
  display: flex;
  width: min(260px, 46vw);
  align-items: center;
  gap: 0.8rem;
  margin: 0 auto clamp(1.1rem, 2vh, 1.5rem);
  color: var(--gold);
}

.ornament span {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.8;
}

.ornament svg {
  width: 2rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.welcome-text {
  max-width: 680px;
  margin-right: auto;
  margin-bottom: clamp(1.25rem, 2.5vh, 1.9rem);
  margin-left: auto;
  color: var(--olive-soft);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  text-wrap: balance;
}

.mission-statement {
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.8vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.42;
  text-wrap: balance;
}

.section-rule {
  width: min(430px, 58%);
  height: 1px;
  margin: clamp(1.8rem, 3.6vh, 2.75rem) auto clamp(1.55rem, 3vh, 2.25rem);
  background: var(--gold);
  opacity: 0.7;
}

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

.info-item {
  min-width: 0;
  padding: 0 clamp(1.4rem, 3vw, 2.8rem);
  text-align: center;
}

.info-item + .info-item {
  border-left: 1px solid rgba(172, 127, 48, 0.55);
}

.info-icon {
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 0.72rem;
  fill: none;
  stroke: var(--gold-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.info-item h2 {
  margin-bottom: 0.58rem;
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.info-item p {
  margin-bottom: 0.38rem;
  color: var(--olive-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.supporting-text {
  font-style: italic;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.22rem;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
  transition: color 200ms ease, text-decoration-color 200ms ease, transform 200ms ease;
}

.text-link span {
  font-size: 0.82rem;
}

.email-link {
  overflow-wrap: anywhere;
  text-decoration-color: rgba(172, 127, 48, 0.4);
  text-underline-offset: 0.25rem;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.text-link:hover {
  color: var(--gold);
  text-decoration-color: currentColor;
  transform: translateY(-1px);
}

.email-link:hover {
  color: var(--gold-deep);
  text-decoration-color: currentColor;
}

.social-section {
  margin-top: clamp(1.75rem, 3.2vh, 2.4rem);
  text-align: center;
}

.social-section h2 {
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 400;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-link {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.social-link .icon-dot {
  fill: currentColor;
  stroke: none;
}

.social-link:hover {
  background: var(--gold);
  color: var(--cream);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  margin-top: clamp(1.6rem, 3vh, 2.35rem);
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-footer svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

:where(a):focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid var(--olive);
  outline-offset: 4px;
}

.social-link:focus-visible {
  border-radius: 50%;
}

.reveal {
  animation: gentle-arrival 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-logo {
  animation-delay: 60ms;
}

.reveal-title {
  animation-delay: 130ms;
}

.reveal-details {
  animation-delay: 210ms;
}

@keyframes gentle-arrival {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  body::before {
    background-position: 55% center;
  }

  body::after {
    background: radial-gradient(
      ellipse 66% 72% at 48% 44%,
      rgba(250, 247, 239, 0.68),
      rgba(250, 247, 239, 0.18) 72%,
      transparent
    );
  }

  .site-main,
  .site-footer {
    left: 0;
  }

  .info-item {
    padding-inline: 1.4rem;
  }
}

@media (max-width: 680px) {
  body::before {
    background-position: 61% center;
  }

  body::after {
    background: rgba(250, 247, 239, 0.5);
  }

  .page-shell {
    padding: 2rem max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom))
      max(1.25rem, env(safe-area-inset-left));
  }

  .church-logo {
    width: 8.75rem;
    margin-bottom: 1.55rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.5rem, 12vw, 3rem);
    line-height: 1.04;
  }

  .welcome-text {
    max-width: 34ch;
    font-size: 1rem;
  }

  .mission-statement {
    max-width: 25ch;
    font-size: 1.45rem;
  }

  .mission-statement br {
    display: none;
  }

  .section-rule {
    width: 64%;
    margin-top: 2.25rem;
    margin-bottom: 0;
  }

  .church-info {
    display: block;
  }

  .info-item {
    padding: 1.7rem 0;
  }

  .info-item + .info-item {
    border-top: 1px solid rgba(172, 127, 48, 0.5);
    border-left: 0;
  }

  .info-item p {
    font-size: 1rem;
  }

  .social-section {
    margin-top: 1.5rem;
  }

  .social-section h2 {
    max-width: 24ch;
    margin-right: auto;
    margin-bottom: 1rem;
    margin-left: auto;
    font-size: 1.25rem;
  }

  .social-link {
    width: 3.25rem;
    height: 3.25rem;
  }

  .site-footer {
    margin-top: 2.2rem;
  }
}

@media (min-width: 1500px) and (min-height: 900px) {
  .page-shell {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
  }

  .text-link,
  .social-link {
    transform: none;
    transition-property: color, background-color, text-decoration-color;
  }
}
