:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #352834;
  background: #fff8e7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 22% 0%, #fffdf4 8%, transparent 64%), #fff6df;
  background-image: radial-gradient(ellipse at 22% 0%, #fffdf4 8%, transparent 64%), url("assets/paper.webp");
  background-blend-mode: normal, soft-light;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible {
  outline: 3px solid #5159ad;
  outline-offset: 5px;
}

.shell {
  width: min(1180px, calc(100% - 76px), max(480px, calc(169svh - 165px)));
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  align-content: center;
  gap: clamp(12px, 2.6svh, 30px);
  padding-block: clamp(12px, 3svh, 34px);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(22px, 5vw, 76px);
}
.intro { padding-block: 4px; }
h1 {
  margin: 0 0 21px;
  font-size: clamp(3rem, min(7.85vw, 13.8svh), 7.45rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.04em;
}
.period { color: #a75a29; }
.intro p {
  margin: 0 0 19px;
  color: #674537;
  font-size: clamp(1rem, 1.75vw, 1.3rem);
  line-height: 1.7;
  font-weight: 560;
  letter-spacing: .035em;
}
.actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.store-link { display: block; flex: none; border-radius: 8px; }
.store-link img { width: auto; height: 48px; }
.store-qr { margin: 0; text-align: center; color: #674537; }
.store-qr img { width: 108px; height: 108px; background: white; border-radius: 6px; }
.store-qr figcaption { font-size: .8125rem; line-height: 1.2; margin-top: 4px; }
.hero-visual { position: relative; width: 100%; }
.watch {
  position: absolute;
  right: clamp(12px, 3%, 25px);
  bottom: clamp(12px, 4%, 25px);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #fff9ed;
  border-radius: 50%;
  background: #fff8e8;
  box-shadow: 0 4px 16px #3528344d;
}
.watch:hover { background: white; }
.watch:focus-visible { outline-color: #382d46; }
.youtube-icon { width: 45px; height: auto; }

.art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.33;
  border: 1px solid #e9c67b;
  border-radius: 34px;
  background: #f7d77c;
  box-shadow: 0 18px 46px -28px #734b32b0;
}
.landscape, .sunwash {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.landscape { object-fit: cover; object-position: 46% 50%; }
.sunwash {
  background: linear-gradient(104deg, #ffe6991a, transparent 60%), linear-gradient(0deg, #7f5a3140, transparent 40%);
}
.board {
  position: absolute;
  width: 49%;
  height: auto;
  top: 9%;
  right: 13%;
  transform: rotate(8deg);
  border-radius: 6% / 5%;
  border: clamp(4px, .65vw, 9px) solid #fff2cb;
  outline: 1px solid #d19b52;
  box-shadow: 0 13px 0 -3px #9b7142, 0 23px 44px #422b5275;
}
.sprite { position: absolute; height: auto; }
.dog {
  width: 43%;
  left: 4%;
  bottom: 7%;
  transform: rotate(-8deg);
  filter: drop-shadow(0 7px 3px #4b23174a) drop-shadow(0 1px 2px #fffae1);
}
.star { width: 10%; top: 9%; left: 18%; transform: rotate(-15deg); }
.ball { width: 10%; top: 18%; right: 3.4%; transform: rotate(18deg); }
.star, .ball { filter: drop-shadow(0 4px 1px #4b231747); }

.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.scenes img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.5;
  object-fit: cover;
  border: 1px solid #ead8ae;
  border-radius: 17px;
}
footer {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 4px 0;
  color: #6d574c;
  font-size: .875rem;
}
footer a { text-decoration-color: #a38169; text-underline-offset: .24em; }
footer a:hover { color: #392a38; }

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 52px), max(450px, calc(169svh - 165px))); }
  .hero { gap: 26px; }
  .art { border-radius: 25px; }
}
@media (min-width: 671px) and (min-height: 521px) and (max-height: 740px) {
  h1 { margin-block: 16px 14px; font-size: clamp(3rem, min(7.7vw, 11.2svh), 7.3rem); }
  .intro p { margin-bottom: 12px; }
}
@media (max-width: 830px), (max-height: 520px) {
  .store-qr { display: none; }
}
@media (max-width: 670px) and (orientation: portrait) {
  .shell { width: min(480px, calc(100% - 32px)); gap: clamp(9px, 2svh, 16px); }
  .hero { grid-template-columns: 1fr; justify-items: center; gap: clamp(11px, 2.7svh, 22px); }
  .intro { padding: 0; text-align: center; }
  h1 { font-size: clamp(1.85rem, min(9.2vw, 7.6svh), 4.35rem); line-height: .96; margin: 12px 0 8px; }
  h1 br { display: none; }
  .intro p { line-height: 1.35; margin-bottom: 14px; }
  .actions { justify-content: center; }
  .store-link img { height: 40px; }
  .watch { width: 48px; height: 48px; }
  .youtube-icon { width: 39px; }
  .hero-visual { width: min(100%, max(145px, calc((100svh - 276px) * 1.33))); }
  .art { border-radius: 22px; }
  .scenes { gap: 7px; }
  .scenes img { border-radius: 9px; height: clamp(34px, 11svh, 83px); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .shell { width: min(calc(100% - 40px), calc(165svh - 110px)); gap: 10px; }
  .hero { gap: 22px; }
  h1 { font-size: clamp(2.25rem, 11.5svh, 3.7rem); margin: 9px 0 8px; }
  .intro p { font-size: .94rem; line-height: 1.2; margin-bottom: 8px; }
  .store-link img { height: 40px; }
  .watch { width: 44px; height: 44px; }
  .youtube-icon { width: 37px; }
  .art { border-radius: 18px; }
  .scenes { gap: 8px; }
  .scenes img { height: clamp(34px, 14svh, 62px); border-radius: 9px; }
}
