:root {
  --navy: #040f5f;
  --card: #edeef5;
  --ink: #111;
  --inset: 8%;
  --sans:
    Poppins, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  background: var(--navy);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  z-index: 40;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 128px;
  background: var(--navy);
  box-shadow: 0 1px 6px #000;
}

.site-header img {
  width: min(420px, 84vw);
  height: auto;
}

.menu-btn {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  width: 46px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.menu-btn-bars,
.menu-btn-bars::before,
.menu-btn-bars::after {
  display: block;
  height: 1.5px;
  background: #fff;
}

.menu-btn-bars {
  position: relative;
}

.menu-btn-bars::before,
.menu-btn-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.menu-btn-bars::before {
  top: -7px;
}

.menu-btn-bars::after {
  top: 7px;
}

.site-menu:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--navy);
}

.menu-close {
  position: absolute;
  top: 28px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

main {
  padding-top: 128px;
}

.hero,
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 48px var(--inset);
}

.hero img,
.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1,
.hero-copy p,
.split-copy p,
.prose-block p,
.prose-block h2 {
  margin: 0;
}

.hero-copy h1 {
  font-size: 33px;
  font-weight: 500;
  line-height: 1.35;
}

.hero-copy p {
  margin-top: 0px;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.4;
}

.hero-copy p:last-child {
  margin-top: 0px;
}

.carousel {
  position: relative;
  padding: 12px var(--inset) 28px;
}

.carousel-track {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.carousel-track img.is-active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 56px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  color: #333;
  font-size: 30px;
  line-height: 1;
}

.carousel-btn.prev {
  left: calc(var(--inset) + 8px);
}

.carousel-btn.next {
  right: calc(var(--inset) + 8px);
}

.prose-block {
  max-width: 560px;
  margin-left: var(--inset);
  padding: 36px 0 28px;
}

.prose-block h2 {
  margin-bottom: 6px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.prose-block p + p,
.split-copy p + p {
  margin-top: 16px;
}

.pair,
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding: 14px var(--inset) 20px;
}

.pair img,
.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.gallery-img-1 {
  object-position: 18% 11%;
}
.gallery-img-2 {
  object-position: 18% 18%;
}
.gallery-img-3 {
  object-position: 18% 50%;
}
.gallery-img-4 {
  object-position: 18% 37%;
}
.gallery {
  padding-top: 20px;
  padding-bottom: 28px;
}

.gallery img {
  height: 280px;
}

.split-copy {
  min-width: 0;
}

.location {
  padding-top: 12px;
  padding-bottom: 8px;
}

.privilege {
  padding: 28px var(--inset) 12px;
}

.privilege-card {
  max-width: 695px;
  margin: 0 auto;
  padding: 72px 28px;
  border-radius: 10px;
  background: var(--card);
  color: #000;
  text-align: center;
}

.privilege-card p {
  margin: 0;
}

.privilege-card p + p {
  margin-top: 8px;
}

.poster {
  padding: 28px var(--inset) 48px;
}

.poster img {
  width: 300px;
  height: auto;
  margin: 0 auto;
}

.scan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  padding: 48px 8vw 72px;
  background: #fff;
  color: #111;
  text-align: center;
}

.scan figure {
  margin: 0;
}

.scan .qr {
  width: min(240px, 100%);
  height: auto;
  margin: 0 auto;
  background: #fff;
}

.scan figcaption {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.xhs-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.xhs-line img {
  width: 28px;
  height: 28px;
  flex: none;
}

@media (max-width: 800px) {
  .site-header {
    height: 112px;
  }

  main {
    padding-top: 140px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 6vw 50px;
  }

  .hero img,
  .split img {
    height: auto;
    aspect-ratio: 11 / 10;
  }

  #hero-img-split-img {
    height: auto;
    aspect-ratio: 19 / 10;
  }

  .hero-copy {
    container-type: inline-size;
  }

  .hero-copy h1,
  .hero-copy p {
    white-space: nowrap;
  }

  .hero-copy h1 {
    font-size: min(25px, calc(100cqw / 15));
  }

  .hero-copy p:nth-child(2) {
    font-size: min(22px, calc(100cqw / 17.11));
  }

  .hero-copy p:nth-child(3) {
    font-size: min(22px, calc(100cqw / 17));
  }

  .carousel {
    padding: 16px 6vw 58px;
  }

  .carousel-track {
    height: 338px;
  }

  .prose-block {
    max-width: none;
    margin-left: 0;
    padding: 18px 6vw 48px;
    container-type: inline-size;
  }

  .prose-block h2 {
    font-size: min(27px, calc(100cqw / 14.14));
    white-space: nowrap;
  }

  .pair,
  .gallery {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .pair img {
    height: 130px;
  }

  .gallery img {
    height: 128px;
  }

  .privilege {
    padding: 18px 6vw 8px;
  }

  .privilege-card {
    padding: 28px 16px;
  }

  .poster {
    padding: 16px 6vw 28px;
  }

  .poster img {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .scan {
    gap: 12px;
    padding: 28px 6vw 48px;
  }

  .scan .qr {
    width: min(190px, 100%);
  }

  .scan figcaption {
    font-size: 14px;
  }

  .xhs-line img {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-track img {
    transition: none;
  }
}
