@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #e8e4df;
  font-family: 'Cormorant Garamond', Georgia, serif;
  min-height: 100vh;
  line-height: 1.6;
}

/* Footer */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
  color: #e8e4df;
  text-decoration: none;
  transition: color 0.3s;
  opacity: 0.5;
}

footer a:hover {
  color: #d4a574;
  opacity: 1;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-link {
  font-size: 1rem;
  font-style: italic;
}

/* Main content */
main {
  max-width: 750px;
  margin: 0 auto;
  padding: 1rem 2rem 2rem;
}

/* Image container */
.image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2816 / 1536;
  margin-bottom: 2rem;
  overflow: hidden;
}

.image-container picture,
.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.image-container picture:last-child,
.image-container .hover-img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.image-container:hover picture:last-child,
.image-container:hover .hover-img {
  opacity: 1;
}

/* Prayer */
.prayer {
  text-align: center;
  padding: 0.5rem 0;
}

.salutation {
  font-size: 1.6rem;
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.task-line {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  margin-bottom: 0.5rem;
  user-select: none;
}

.task-text {
  transition: opacity 0.5s ease;
}

.task-text.fading {
  opacity: 0;
}

.punchline {
  font-size: 2.8rem;
  font-weight: 700;
  color: #d4a574;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.punchline.visible {
  opacity: 1;
}

/* About page */
.about-content {
  max-width: 620px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.about-content h1 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: #d4a574;
}

.about-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  line-height: 1.8;
}

.about-content .credits {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-style: italic;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 600px) {
  main {
    padding: 0.5rem 1.2rem 1.5rem;
  }

  .image-container {
    aspect-ratio: 1 / 1;
    margin-bottom: 1.5rem;
  }

  .salutation {
    font-size: 1.3rem;
  }

  .task-line {
    font-size: 1.6rem;
    min-height: 2.4em;
  }

  .punchline {
    font-size: 2rem;
  }

  .about-content h1 {
    font-size: 1.8rem;
  }

  .about-content p {
    font-size: 1.1rem;
  }

  footer {
    padding: 1.2rem 1.2rem;
  }
}
