@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/nunito-sans/nunito-500.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --paper: #f8f0d8;
  --ink: #283048;
  --corner: rgba(40, 48, 72, 0.82);
  --footer: rgba(40, 48, 72, 0.46);
  --muted: rgba(40, 48, 72, 0.62);
  --accent: #608880;
  --max-width: 760px;
  --gutter: clamp(28px, 3.2vw, 56px);
  --edge-y: clamp(22px, 2.4vw, 38px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: "Nunito", "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration-color: rgba(96, 136, 128, 0.55);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
}

main {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
}

.site-header {
  top: var(--edge-y);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.privacy-page .site-header {
  position: absolute;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--corner);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 800;
  text-decoration: none;
}

.store-link {
  display: inline-flex;
  width: clamp(118px, 11vw, 156px);
  text-decoration: none;
}

.store-link img {
  width: 100%;
}

.mobile-menu,
.mobile-store-badge {
  display: none;
}

.home-page main {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.hero {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 30px);
  padding: 0;
  text-align: center;
}

.creature-gallery {
  width: min(78vw, 680px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  justify-items: center;
  gap: clamp(10px, 3vw, 34px);
}

.creature {
  position: relative;
  width: min(100%, clamp(132px, 16vw, 230px));
  aspect-ratio: 1;
  filter: drop-shadow(0 28px 36px rgba(40, 48, 72, 0.13));
  transform-origin: 50% 86%;
  animation: creature-breathe 7s ease-in-out infinite;
}

.creature-gallery .creature:nth-child(1) {
  animation-delay: -0.9s;
  animation-duration: 6.9s;
}

.creature-gallery .creature:nth-child(2) {
  animation-delay: -3.2s;
  animation-duration: 7.6s;
}

.creature-gallery .creature:nth-child(3) {
  animation-delay: -1.8s;
  animation-duration: 6.4s;
}

.creature img {
  position: absolute;
  inset: 0;
  width: 100%;
}

.creature-eyes-open {
  animation: eyes-open 4.8s steps(1, end) infinite;
}

.creature-eyes-blink {
  opacity: 0;
  animation: eyes-blink 4.8s steps(1, end) infinite;
}

.creature-gallery .creature:nth-child(1) .creature-eyes-open,
.creature-gallery .creature:nth-child(1) .creature-eyes-blink {
  animation-delay: -0.4s;
  animation-duration: 4.7s;
}

.creature-gallery .creature:nth-child(2) .creature-eyes-open,
.creature-gallery .creature:nth-child(2) .creature-eyes-blink {
  animation-delay: -2.3s;
  animation-duration: 5.6s;
}

.creature-gallery .creature:nth-child(3) .creature-eyes-open,
.creature-gallery .creature:nth-child(3) .creature-eyes-blink {
  animation-delay: -1.5s;
  animation-duration: 4.2s;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.04;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--footer);
  font-size: clamp(0.78rem, 0.95vw, 0.96rem);
  font-weight: 600;
}

.home-page .site-footer {
  position: fixed;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--edge-y);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 18px;
}

.site-footer a {
  text-decoration: none;
}

.policy-page {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  display: grid;
  justify-items: center;
  padding-block: clamp(150px, 18vh, 190px) clamp(24px, 4vh, 44px);
}

.privacy-page .site-footer {
  width: auto;
  margin-inline: auto;
  margin-left: var(--gutter);
  margin-right: var(--gutter);
  padding-bottom: var(--edge-y);
}

.policy {
  width: min(100%, 620px);
  text-align: left;
}

.policy h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2.7rem, 8vw, 4.8rem);
  line-height: 0.96;
}

.policy .policy-date {
  margin-bottom: clamp(34px, 6vw, 50px);
  color: var(--muted);
  font-weight: 700;
}

.policy section + section {
  margin-top: 32px;
}

.policy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.22rem, 3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.14;
}

.policy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.56;
}

.not-found {
  min-height: calc(100svh - 190px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.not-found h1 {
  max-width: 10ch;
  margin-bottom: 14px;
}

.not-found p {
  color: var(--muted);
  font-weight: 700;
}

.button-like {
  color: var(--accent);
  font-weight: 800;
}

@keyframes creature-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.4deg) scale(1);
  }

  28% {
    transform: translate3d(0, -8px, 0) rotate(1.2deg) scale(1.018);
  }

  62% {
    transform: translate3d(0, 5px, 0) rotate(-1deg) scale(0.992);
  }
}

@keyframes eyes-open {
  0%,
  18%,
  24%,
  100% {
    opacity: 1;
  }

  19%,
  23% {
    opacity: 0;
  }
}

@keyframes eyes-blink {
  0%,
  18%,
  24%,
  100% {
    opacity: 0;
  }

  19%,
  23% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creature,
  .creature-eyes-open,
  .creature-eyes-blink,
  .creature-mouth-flat {
    animation: none;
  }

  .creature-eyes-open,
  .creature-mouth-flat {
    opacity: 1;
  }

  .creature-eyes-blink {
    opacity: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .site-header {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .brand,
  .site-header > .store-link {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    display: grid;
    width: 34px;
    height: 28px;
    align-content: center;
    gap: 5px;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--corner);
    border-radius: 999px;
  }

  .mobile-menu nav {
    position: absolute;
    top: 38px;
    left: 0;
    display: grid;
    gap: 12px;
    min-width: 164px;
    padding: 16px;
    color: var(--corner);
    font-weight: 800;
    background: rgba(248, 240, 216, 0.96);
    border: 1px solid rgba(40, 48, 72, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(40, 48, 72, 0.1);
  }

  .mobile-menu nav a {
    text-decoration: none;
  }

  .hero {
    gap: 18px;
  }

  .creature-gallery {
    width: min(100%, 220px);
    grid-template-columns: 1fr;
    gap: 0;
  }

  .creature-gallery .creature {
    display: none;
  }

  .creature-gallery .creature:nth-child(2) {
    display: block;
    width: min(100%, 180px);
  }

  .hero h1 {
    max-width: calc(100vw - (var(--gutter) * 2));
    font-size: clamp(1rem, 5vw, 1.24rem);
    line-height: 1.08;
    white-space: nowrap;
  }

  .mobile-store-badge {
    display: inline-flex;
    width: 116px;
    margin-top: 4px;
    text-decoration: none;
  }

  .mobile-store-badge img {
    width: 100%;
  }

  .site-footer {
    display: none;
  }
}
