:root {
  --bg: #fcf6d7; /*  */
  --fg: #003b3b; /* deep teal text */
}
html,
body {
  height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, serif;
  overflow: hidden;
}
main {
  height: 100vh;
  position: relative;
  overflow-y: auto;
}
.logo {
  margin: 48px 48px 24px 48px;
  max-width: 588px;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}
h1 {
  margin: 48px;
  line-height: 1.05;
  font-weight: 400;
  font-size: 74px;
  letter-spacing: 0.02em;
  max-width: 1100px;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.2s forwards;
  position: relative;
  z-index: 999;
}
.footer-contact {
  position: fixed;
  bottom: 48px;
  left: 48px;
  right: 48px;
  display: flex;
  gap: 40px;
  font-size: 31px;
  z-index: 998;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.6s forwards;
}
.footer-contact .address,
.footer-contact .email {
  display: inline-block;
}
footer img {
  position: absolute;
  bottom: 1.375rem;
  right: 2rem;
  width: 400px;
  height: auto;
  object-fit: contain;
  z-index: 1;
}

/* Tablet and smaller */
@media (max-width: 768px) {
  .logo {
    margin: 32px 32px 20px 32px;
    max-width: 63%;
  }
  h1 {
    font-size: 47px;
    margin: 32px;
  }
  .footer-contact {
    bottom: 32px;
    left: 32px;
    right: 32px;
    font-size: 27px;
  }
  footer img {
    width: 280px;
    bottom: 0.875rem;
    right: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .logo {
    margin: 24px 24px 16px 24px;
    max-width: 60%;
    position: relative;
    z-index: 100;
  }
  h1 {
    font-size: 44px;
    margin: 24px;
    position: relative;
    z-index: 999;
  }
  .footer-contact {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    font-size: 24px;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
  }
  footer img {
    position: fixed;
    width: 200px;
    bottom: 7.375rem;
    right: 1rem;
    z-index: 1;
  }
}

/* Smaller phones */
@media (max-width: 360px) {
  h1 {
    font-size: 36px;
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
