@font-face {
  font-family: Kohinoor;
  src: url("../fonts/kohinoor-300.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
* { box-sizing: border-box; }
body { margin: 0; color: white; background: #372921; }
main {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 5vw, 88px);
}
.slides, .slides img, main::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.slides { z-index: -2; }
.slides img { object-fit: cover; }
.slides img:first-child { object-position: 40% center; }
.slides img:nth-child(2) { object-position: 70% center; }
.slides img:last-child { object-position: 63% center; }
.slides img + img { opacity: 0; animation: dissolve 21s ease-in-out infinite; }
.slides img:nth-child(2) { animation-delay: 5s; }
.slides img:nth-child(3) { animation-delay: 12s; }
@keyframes dissolve {
  0%, 42.86%, 100% { opacity: 0; }
  9.52%, 33.33% { opacity: 1; }
}
/* Keep the middle photograph opaque until the last one covers it. */
.slides img:nth-child(2) { animation-name: middle-slide; }
@keyframes middle-slide {
  0%, 48%, 100% { opacity: 0; }
  9.52%, 43% { opacity: 1; }
}
main::after { content: ""; pointer-events: none; z-index: -1; background: linear-gradient(0deg, #170f0dc4, transparent 55%); }
.identity { display: grid; justify-items: center; gap: .45rem; margin-bottom: env(safe-area-inset-bottom); }
.logo { display: block; width: clamp(160px, 18vw, 310px); height: auto; filter: brightness(0) invert(1); }
h1 { margin: 0; font: 300 clamp(1.4rem, 2vw, 2rem)/1.5 Kohinoor, Tahoma, sans-serif; }
a { display: grid; place-items: center; width: 48px; height: 48px; color: inherit; border-radius: 50%; }
a:hover { background: #ffffff20; }
a:focus-visible { outline: 2px solid white; outline-offset: 2px; }
@media (max-width: 640px) {
  main { justify-content: center; padding-bottom: max(30px, 5svh); }
}
@media (prefers-reduced-motion: reduce) {
  .slides img + img { animation: none; }
}
