:root {
  color-scheme: dark;
  background: #4f5c36;
  color: #fff0d5;
  font-family: Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { overflow: hidden; isolation: isolate; }

.textures {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #4f5c36;
}

.scene { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.scene--first { opacity: 1; }
.scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
  will-change: transform;
}

.textures::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgb(18 13 8 / .11), rgb(18 13 8 / .24));
  pointer-events: none;
}

main {
  min-height: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.brand { width: min(70vw, 1000px); }
h1 { margin: 0; width: 100%; line-height: 0; }
.wordmark { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 2px rgb(22 13 7 / .13)); }
.logo-link { display: block; border-radius: 4px; }
.logo-link:focus-visible { outline: 2px solid #fff0d5; outline-offset: 12px; }

.motion-control {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: rgb(255 240 213 / .7);
  cursor: pointer;
  transition: color 180ms, background-color 180ms, border-color 180ms;
  -webkit-tap-highlight-color: transparent;
}
.motion-control[hidden] { display: none; }
.motion-control:hover { color: #fff0d5; background: rgb(20 12 6 / .16); }
.motion-control:focus-visible { outline: 2px solid #fff0d5; outline-offset: 3px; background: rgb(20 12 6 / .2); }
.motion-control svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.play-icon { display: none; }
.motion-control[aria-pressed="true"] .pause-icon { display: none; }
.motion-control[aria-pressed="true"] .play-icon { display: block; }

@media (max-width: 600px) {
  main { padding: 24px; }
  .brand { width: 86vw; }
  .motion-control { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .scene, .scene img { will-change: auto; }
  .motion-control { transition: none; }
}
