:root {
  --paper: #fcfcfa;
  --ink: #15191d;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}
[data-theme="dark"] {
  --paper: #07111c;
  --ink: #f4f7f7;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100svh;
  overflow: hidden;
}
body {
  background: var(--paper);
  color: var(--ink);
  transition: background 600ms ease, color 600ms ease;
  -webkit-font-smoothing: antialiased;
}
.brand {
  position: absolute;
  z-index: 20;
  top: 16px;
  left: 20px;
  display: block;
  color: inherit;
}
.brand-wordmark {
  display: block;
  width: 135px;
  aspect-ratio: 256 / 49.2;
  background: currentColor;
  -webkit-mask: url("assets/brand/snowfish-wordmark.svg") center / contain no-repeat;
  mask: url("assets/brand/snowfish-wordmark.svg") center / contain no-repeat;
}
.lake-world {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 560ms ease;
}
.night-image,
[data-theme="dark"] .day-image {
  opacity: 0;
}
[data-theme="dark"] .night-image {
  opacity: 1;
}
.celestial-toggle {
  position: absolute;
  z-index: 8;
  top: 3.5%;
  left: calc(74.5% - 10px);
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
  -webkit-tap-highlight-color: transparent;
}
.celestial-toggle:focus-visible {
  outline: 2px solid #84bdff;
  outline-offset: 5px;
}
.celestial-toggle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 450ms ease, transform 650ms ease, filter 250ms ease;
  filter: drop-shadow(0 0 12px rgba(230, 183, 87, 0.15));
}
.celestial-toggle:hover img {
  filter: drop-shadow(0 0 18px rgba(230, 183, 87, 0.3));
}
.moon-image {
  opacity: 0;
  transform: rotate(-65deg) scale(0.7);
  filter: drop-shadow(0 0 10px rgba(225, 239, 248, 0.35));
}
[data-theme="dark"] .sun-image {
  opacity: 0;
  transform: rotate(110deg) scale(0.7);
}
[data-theme="dark"] .moon-image {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.snowfall {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.flake {
  position: absolute;
  top: -20px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(82, 140, 181, 0.58);
  box-shadow: 0 0 2px rgba(82, 140, 181, 0.2);
  animation: fall var(--speed) linear var(--delay) infinite;
}
[data-theme="dark"] .flake {
  background: rgba(225, 239, 248, 0.42);
}
[data-theme="dark"] .flake:nth-child(n + 35) {
  display: none;
}
@keyframes fall {
  to {
    transform: translate3d(var(--drift), 110vh, 0);
  }
}
.cursor-fx {
  position: absolute;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ripple {
  position: absolute;
  width: 30px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(55, 105, 155, 0.38);
  animation: ripple-fx 1300ms ease-out forwards;
}
[data-theme="dark"] .ripple {
  border-color: rgba(215, 235, 252, 0.34);
}
@keyframes ripple-fx {
  from {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.45, 0.7);
    opacity: 0.5;
  }
  to {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(2.1, 1.15);
    opacity: 0;
  }
}
.footprint {
  position: absolute;
  width: 7px;
  height: 12px;
  border-radius: 50% 50% 45% 45%;
  background: rgba(70, 90, 112, 0.16);
  animation: footprint-fx 4000ms ease-out forwards;
}
[data-theme="dark"] .footprint {
  background: rgba(215, 232, 248, 0.14);
}
@keyframes footprint-fx {
  0% {
    opacity: 0.7;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
  }
}
.statement {
  position: absolute;
  z-index: 20;
  bottom: 20px;
  left: 20px;
  max-width: min(500px, calc(100% - 40px));
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.4;
  text-shadow:
    0 0 2px var(--paper),
    0 0 8px var(--paper),
    0 0 16px var(--paper),
    0 0 24px var(--paper);
  pointer-events: none;
}

.page-main {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
