:root {
  --ink: #24302d;
  --muted: #6a746f;
  --paper: #f6f2ed;
  --white: #fff;
  --accent: #b5483c;
  --accent-dark: #8e3028;
  --soft-green: #dce5df;
  --max: 1180px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
}
.hero__image {
  z-index: -2;
  background: url("kirche.jpg") center 48% / cover no-repeat;
  transform: scale(1.02);
}
.hero__veil {
  z-index: -1;
  background: rgba(255,255,255,.60);
  backdrop-filter: saturate(.8);
}
.hero__content {
  width: min(960px, calc(100% - 40px));
  padding: 90px 20px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow span { display: inline-block; margin: 0 .55rem; }
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(4.1rem, 10vw, 8.8rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .87;
}
h1 em { color: var(--accent); font-weight: 500; }
.hero__line {
  margin-bottom: 38px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
}
.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) 0;
}
.intro {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}
.intro__copy { max-width: 510px; }
h2 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.intro__copy > p:not(.eyebrow) { color: var(--muted); }
.intro__copy > p:last-child { color: var(--ink); font-weight: 600; }
.intro__photo {
  height: min(62vw, 690px);
  margin: 0;
  overflow: hidden;
  border-radius: 3px 90px 3px 3px;
  box-shadow: 22px 26px 0 var(--soft-green);
}

.moments { padding-top: 40px; }
.moments__heading { max-width: 780px; margin: 0 auto 65px; text-align: center; }
.photo-grid {
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  grid-template-rows: 360px 290px;
  gap: 24px;
}
.photo-grid figure { margin: 0; overflow: hidden; }
.photo-grid__wide { grid-row: 1 / 3; border-radius: 3px 3px 3px 70px; }
.photo-grid__detail { border-radius: 3px 60px 3px 3px; }
.quote {
  margin: 0;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border-radius: 3px 3px 60px 3px;
}
.quote span { font: 4.5rem/.6 var(--serif); opacity: .65; }
.quote p { margin: 18px 0 0; font: italic 500 clamp(1.35rem, 2vw, 1.75rem)/1.35 var(--serif); }

.gallery-callout { width: min(1320px, calc(100% - 32px)); }
.gallery-card {
  position: relative;
  min-height: min(820px, 86svh);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 90px 3px 90px 3px;
  color: var(--white);
  text-decoration: none;
}
.gallery-card > img,
.gallery-card__shade { position: absolute; inset: 0; }
.gallery-card > img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery-card__shade { background: linear-gradient(180deg, rgba(20,27,25,.13), rgba(20,27,25,.72)); }
.gallery-card__content {
  position: relative;
  width: min(760px, calc(100% - 48px));
  margin-top: auto;
  padding: 60px 0 70px;
  text-align: center;
}
.gallery-card__content .eyebrow { color: #fff; opacity: .82; }
.gallery-card__content strong {
  display: block;
  font: 600 clamp(2.4rem, 5vw, 4.8rem)/1.03 var(--serif);
  letter-spacing: -.04em;
}
.gallery-card__text { display: block; max-width: 650px; margin: 24px auto 32px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .25s, background .25s;
}
.gallery-card:hover > img { transform: scale(1.025); }
.gallery-card:hover .button { transform: translateY(-3px); background: #f2e6dc; }

footer { padding: 15px 24px 70px; text-align: center; }
footer p { margin-bottom: 5px; font: 600 1.8rem var(--serif); }
footer p span { color: var(--accent); }
footer small { color: var(--muted); font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .section { width: min(100% - 32px, var(--max)); }
  .intro { grid-template-columns: 1fr; }
  .intro__copy { max-width: 670px; }
  .intro__photo { height: min(105vw, 620px); box-shadow: 12px 16px 0 var(--soft-green); }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: 440px 310px auto; }
  .photo-grid__wide { grid-row: auto; }
  .quote { min-height: 260px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero__content { width: calc(100% - 24px); padding-inline: 8px; }
  h1 { font-size: clamp(3.8rem, 20vw, 6rem); }
  .hero__image { background-position: 50% center; }
  .section { padding: 74px 0; }
  .intro__photo { border-radius: 3px 55px 3px 3px; }
  .moments { padding-top: 24px; }
  .moments__heading { margin-bottom: 38px; }
  .photo-grid { grid-template-rows: 330px 250px auto; gap: 14px; }
  .photo-grid__wide { border-radius: 3px 3px 3px 45px; }
  .photo-grid__detail { border-radius: 3px 45px 3px 3px; }
  .quote { padding: 30px; border-radius: 3px 3px 45px 3px; }
  .gallery-callout { width: calc(100% - 20px); padding-top: 64px; }
  .gallery-card { min-height: 78svh; border-radius: 55px 3px 55px 3px; }
  .gallery-card > img { object-position: 51% center; }
  .gallery-card__content { width: calc(100% - 34px); padding-bottom: 38px; }
  .gallery-card__content strong { font-size: 2.4rem; }
  .button { padding: 14px 18px; font-size: .87rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-card > img, .button { transition: none; }
}
