:root {
  --color-primary: #600231;
  --color-secondary: #231f20;
  --color-ivory: #f5f1ea;
  --color-paper: #fbf9f5;
  --color-text: #2a2526;
  --color-muted: #6f6467;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-paper);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.container {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 3rem), 760px);
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.kicker {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
  margin: 0;
  color: var(--color-secondary);
}

h1 {
  font-size: clamp(2.4rem, 8vw, 5.3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: radial-gradient(circle at 14% 12%, rgba(96, 2, 49, 0.14), transparent 48%),
    linear-gradient(155deg, #f7efe4 5%, #e8dac9 100%);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(251, 249, 245, 0.15), rgba(251, 249, 245, 0.15));
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-secondary);
  text-align: center;
  padding: 4rem 0;
}

.hero__logo {
  width: min(360px, 62vw);
  margin: 0 auto 1.8rem;
}

.hero__content > * {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-fade-up 0.85s ease forwards;
}

.hero__content > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero__content > *:nth-child(2) {
  animation-delay: 0.25s;
}

.hero__content > *:nth-child(3) {
  animation-delay: 0.4s;
}

.hero__content > *:nth-child(4) {
  animation-delay: 0.55s;
}

.hero__content > *:nth-child(5) {
  animation-delay: 0.72s;
}

.hero h1 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.hero__text {
  margin: 0 auto 2rem;
  max-width: 620px;
  color: rgba(35, 31, 32, 0.86);
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #420123;
}

.hero__cta {
  position: relative;
  animation: hero-fade-up 0.85s ease forwards, cta-drift 2.2s ease-in-out infinite;
  animation-delay: 0.72s, 1.7s;
}

.hero__cta::after {
  content: "↓";
  margin-left: 0.45rem;
  display: inline-block;
  animation: cta-arrow 1.8s ease-in-out infinite;
}

.section--split {
  background: var(--color-ivory);
}

.split {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem);
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.split__media img {
  width: 100%;
  border: 1px solid rgba(35, 31, 32, 0.12);
}

.split__cta {
  margin-top: 1rem;
}

.section__intro {
  color: var(--color-muted);
}

.section--gallery {
  background: #1c1819;
  color: #f5f1ea;
}

.section--gallery h2,
.section--gallery .kicker {
  color: #f5f1ea;
}

.section--gallery .section__intro {
  color: rgba(245, 241, 234, 0.82);
}

.slideshow {
  width: min(calc(100% - 3rem), 1240px);
  margin: 2.2rem auto 0;
  position: relative;
}

.slideshow__track {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.is-active {
  opacity: 1;
}

.slideshow__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(35, 31, 32, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 4;
}

.slideshow__control:hover,
.slideshow__control:focus-visible {
  background: rgba(96, 2, 49, 0.75);
}

.slideshow__control.prev {
  left: 0.9rem;
}

.slideshow__control.next {
  right: 0.9rem;
}

.section--contact {
  background: var(--color-paper);
}

.section--support {
  background: var(--color-ivory);
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}

.contact-layout__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-layout__info {
  padding-top: 0.2rem;
}

.contact-layout__info p {
  margin-bottom: 0.9rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-item a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  color: var(--color-primary);
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-card__actions {
  margin-top: 1.7rem;
}

.support-block {
  text-align: center;
}

.support-block .association-purpose {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.association-purpose {
  margin-top: 1.35rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer {
  padding: 1.5rem 0;
  background: #1a1516;
  color: rgba(245, 241, 234, 0.85);
}

.footer__inner {
  display: block;
  text-align: center;
  font-size: 0.92rem;
}

.footer__inner p {
  margin: 0.25rem 0;
}

.footer__legal {
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.82;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(35, 31, 32, 0.9);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  z-index: 12;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(35, 31, 32, 0.98);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes cta-arrow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.82;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .split {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > *,
  .hero__cta,
  .hero__cta::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow,
  .slideshow {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .slideshow__control {
    width: 34px;
    height: 34px;
  }
}
