:root {
  --pink: #fed7d8;
  --red: #cb2d2d;
  --stone: #57534e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--pink);
  color: var(--red);
  font-family: "Arapey", serif;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header: logo, then links, then button on mobile; links | logo | button on desktop */
.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.nav-logo img {
  display: block;
  height: 4rem;
  width: auto;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-cta {
  display: flex;
  justify-content: center;
  width: 100%;
}

.link {
  height: 2.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: all 0.2s;
}

.link:hover {
  font-weight: 700;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 2.25rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--red);
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.link:focus-visible,
.btn:focus-visible {
  outline: 1px solid var(--red);
}

@media (min-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 1rem;
  }

  .nav > * {
    width: 33.333%;
  }

  .nav-logo {
    order: 2;
    display: flex;
    justify-content: center;
  }

  .nav-links {
    order: 1;
    flex-direction: row;
    justify-content: flex-start;
  }

  .nav-cta {
    order: 3;
    justify-content: flex-end;
  }

}

/* Slideshow */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.slideshow {
  position: relative;
  width: 100%;
  max-width: 48rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 1s ease-in-out,
    transform 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
  transform: scale(1);
}

/* Footer */
footer {
  padding: 1rem 2rem;
}

.info {
  display: grid;
  gap: 0.5rem;
  padding: 0 1rem;
}

.info > div {
  margin: 0 auto;
  text-align: center;
}

.info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.info p {
  margin: 0;
  color: var(--stone);
}

.info a:hover {
  text-decoration: underline;
}

.credit {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.credit a {
  color: #374151;
  font-weight: 600;
}

.credit a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }

  .info > div {
    max-width: 200px;
  }

  .info h3 {
    margin-bottom: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow img {
    transition: none;
  }
}
