:root {
  color-scheme: dark;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #faf5ff;
  background: #120e23;
  --muted: #d0c6de;
  --line: #c7afe534;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #f5d9ff; outline-offset: 5px; }
p { margin: 0; color: var(--muted); line-height: 1.75; }
h1, h2 { margin: 0; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.site-header, .site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header { min-height: 76px; justify-content: space-between; }
.brand { font-size: 1.65rem; line-height: 1; font-weight: 780; letter-spacing: -.055em; }
.site-header nav a { color: var(--muted); font-size: .92rem; }
.site-header nav a:hover { color: white; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 510px;
  display: flex;
  align-items: center;
  padding: 60px 58px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(90deg, #170e2af9 0%, #170e2ada 38%, #170e2a45 75%),
    #251c3b url("/nook-sky.jpg") center / cover no-repeat;
}
.hero-copy { max-width: 640px; }
h1 {
  font-size: clamp(2.6rem, 5.1vw, 4.2rem);
  font-weight: 720;
  line-height: 1.13;
  letter-spacing: -.045em;
}
h1 span { color: #e1baff; }
.hero p { max-width: 430px; margin-block: 22px 28px; font-size: 1.06rem; }
.companion {
  position: absolute;
  right: 7%;
  bottom: 10%;
  width: clamp(132px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 14px 30px #10091cce);
  z-index: -1;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 46px;
  padding: 10px 17px;
  font-size: .93rem;
  font-weight: 650;
}
.primary { background: #eddbff; color: #251340; }
.primary:hover { background: #faf1ff; }
.secondary { background: #211831c9; border-color: #d5bce55c; }
.secondary:hover { background: #38284e; }

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-block: 38px;
}
.details article { border-top: 1px solid var(--line); padding-top: 20px; }
.details h2 { font-size: 1.1rem; margin-bottom: 8px; }
.details p { font-size: .95rem; }
.site-text-link { color: #e1baff; text-decoration: underline; text-underline-offset: .22em; }
.details .site-text-link { display: inline-block; margin-top: 10px; font-size: .95rem; }

.guide { max-width: 760px; padding: clamp(24px, 5vw, 54px) 0 60px; }
.guide h1 { font-size: clamp(1.9rem, 5vw, 3.25rem); }
.guide h2 { margin-bottom: 8px; font-size: clamp(1.2rem, 3vw, 1.45rem); }
.guide header p, .guide .actions { margin-top: 18px; }
.guide section { margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.guide p + p { margin-top: 10px; }
.guide figure { margin: 16px 0 0; }
.guide figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.guide figcaption { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.downloads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 26px;
  margin-bottom: 42px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #1a142c;
}
.downloads h2 { font-size: 1.24rem; margin-bottom: 6px; }
.downloads p { font-size: .95rem; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 64px; }
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding: 34px 22px 148px;
    background-position: center, 57% center;
    background-image: linear-gradient(180deg, #170e2af9 0%, #170e2ad9 48%, #170e2a35 100%), url("/nook-sky.jpg");
  }
  h1 { font-size: clamp(1.55rem, 7.5vw, 3.55rem); }
  .hero p { margin-block: 17px 22px; font-size: 1rem; }
  .companion { right: 18px; bottom: 10px; width: 128px; }
  .details { grid-template-columns: 1fr; gap: 19px; padding-block: 26px; }
  .downloads { align-items: flex-start; flex-direction: column; padding: 20px; }
}
