:root {
  color-scheme: light;
  --paper: #fffaf3;
  --ink: #2f211b;
  --muted: #68534a;
  --accent: #a83d1b;
  --accent-hover: #8b2d11;
  --line: #e9d8ca;
  --wide: 73rem;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", "Hiragino Sans GB", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
section[id] { scroll-margin-block-start: 1.5rem; }
.wrap { width: min(calc(100% - 4rem), var(--wide)); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 2;
  inset: 1rem auto auto 1rem;
  padding: .6rem 1rem;
  background: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
}
.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: .85rem; background: #ffe6cf; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
nav a, .header-download, .footer-inner a {
  font-size: .9375rem;
  text-decoration: none;
}
nav a { color: var(--muted); padding-block: .7rem; white-space: nowrap; }
nav a:hover, .footer-inner a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .3rem; }
.header-download {
  justify-self: end;
  padding: .56rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.header-download:hover { background: #fff0e4; border-color: #d6a18b; }

.hero {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.25rem, 5vw, 4.25rem) 3.75rem;
}
.hero-copy { padding-block: 1.15rem; }
.eyebrow { color: var(--accent); font-size: .9375rem; font-weight: 750; letter-spacing: .08em; }
h1 {
  margin-block: .85rem 1.25rem;
  font-size: clamp(3.3rem, 6.1vw, 5.75rem);
  line-height: 1.11;
  letter-spacing: -.064em;
  font-weight: 900;
}
h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 27rem; font-size: 1.125rem; line-height: 1.8; color: var(--muted); }
.actions { display: flex; gap: .72rem; flex-wrap: wrap; margin-top: 1.65rem; }
.button {
  display: inline-flex;
  min-height: 3.15rem;
  justify-content: center;
  align-items: center;
  padding: .65rem 1.22rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: #d9bfb0; }
.button-secondary:hover { background: #fff0e4; border-color: #bc8d77; }
.metadata { margin-top: .9rem; font-size: .875rem; color: var(--muted); }
.metadata span, .download-panel p span { margin-inline: .28em; }

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  aspect-ratio: 1.13;
  place-items: center;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid #f2cbb0;
  background: radial-gradient(ellipse at 36% 25%, #fff1d5 0%, #ffe4c6 51%, #f8c293 100%);
}
.record {
  position: absolute;
  inset: auto;
  width: 79%;
  aspect-ratio: 1;
  border: 1px solid #b4512c32;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 17px, #a83d1b18 18px 19px, transparent 20px 23px);
  box-shadow: 0 0 0 12px #fff6e43d, 0 0 0 13px #b4512c18;
  transform: translate(7%, 4%);
}
.hero-mascot {
  z-index: 1;
  width: 79%;
  filter: drop-shadow(0 16px 16px #7a331b2b);
  transform: translateY(3%);
}
.note, .twinkle {
  position: absolute;
  z-index: 1;
  color: #a84020;
  font-family: Georgia, serif;
  line-height: 1;
}
.note-small { left: 8%; top: 23%; font-size: clamp(1.75rem, 4vw, 3rem); transform: rotate(-17deg); }
.note-large { right: 10%; top: 15%; font-size: clamp(2rem, 5vw, 3.8rem); transform: rotate(13deg); }
.twinkle { right: 11%; bottom: 16%; font-size: clamp(1.3rem, 3vw, 2.4rem); }

.section { padding-block: clamp(3rem, 6.1vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.28; letter-spacing: -.045em; }
h3 { font-size: 1.15rem; line-height: 1.45; }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
#features { padding-top: 0; }
.feature {
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #fffcf7;
}
.feature h3 { margin-top: 1rem; }
.feature p, .guide-intro p, .steps p, .disclosure p, .release-list p { margin-top: .42rem; color: var(--muted); }
.feature-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: .78rem;
  color: var(--accent);
  background: #fce7d8;
}
.shape-window span { position: relative; width: 1.28rem; height: 1.2rem; border: 2px solid; border-radius: .23rem; }
.shape-window span::before { content: ""; position: absolute; inset: .17rem 0 auto; border-top: 2px solid; }
.shape-window span::after { content: ""; position: absolute; width: .26rem; height: .26rem; right: .13rem; bottom: .12rem; background: currentColor; border-radius: 50%; }
.shape-play span { border-left: .72rem solid; border-block: .46rem solid transparent; margin-left: .08rem; }
.shape-lyrics span { width: 1.17rem; height: .55rem; border-block: 2px solid; }

.guide-section { background: #f8eee2; border-block: 1px solid #efdece; }
.guide-grid, .release-grid { display: grid; grid-template-columns: .64fr 1.36fr; gap: clamp(1.75rem, 6vw, 5rem); }
.guide-intro p { max-width: 21rem; margin-top: .8rem; }
.guide-intro img { margin-top: 1.6rem; width: 8.8rem; }
.steps { padding-left: 1.65rem; }
.steps li { padding-left: .55rem; }
.steps li::marker { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.steps li + li { margin-top: 1.25rem; }
.disclosure { border-top: 1px solid #dfc8b7; padding-top: .9rem; margin-top: 1.25rem; }
.disclosure summary { color: var(--accent); cursor: pointer; font-size: .9375rem; font-weight: 700; }

.release-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.release-list li {
  display: grid;
  grid-template-columns: minmax(8.75rem, .34fr) minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-block: 1.25rem;
}
.release-version { display: flex; flex-direction: column; align-items: start; gap: .28rem; }
.release-version strong { color: var(--accent); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.release-version time { color: var(--muted); font-size: .875rem; }

.download-section { padding-bottom: clamp(3rem, 6.1vw, 5.25rem); }
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #f0cab3;
  border-radius: 1.6rem;
  background: #fce4d0;
}
.download-panel p { margin-top: .6rem; color: var(--muted); }
.download-panel .button { align-self: start; }
.checksum { max-width: 37rem; }
.checksum code { overflow-wrap: anywhere; font-size: .875rem; color: var(--ink); }
.checksum a { color: var(--accent); font-size: .875rem; text-underline-offset: .18em; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; color: var(--muted); }
.footer-inner span { font-weight: 700; font-size: .9375rem; }

@media (max-width: 54rem) {
  .wrap { width: min(calc(100% - 3rem), var(--wide)); }
  .hero { gap: 1.5rem; }
  h1 { font-size: clamp(3rem, 7.3vw, 4.1rem); }
  .hero-description { font-size: 1rem; }
  .actions { margin-top: 1.2rem; }
  .feature { padding: 1.2rem; }
}

@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; column-gap: .6rem; row-gap: 0; padding-top: .75rem; }
  .brand img { width: 2rem; }
  nav { grid-column: 1 / -1; grid-row: 2; gap: clamp(1rem, 6vw, 2rem); }
  .header-download { grid-column: 2; grid-row: 1; padding: .42rem .77rem; }
  .hero { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 1.8rem 2.6rem; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(2.95rem, 11vw, 4.35rem); }
  .hero-art { aspect-ratio: 1.35; border-radius: 1.35rem; }
  .hero-mascot { width: 67%; }
  .record { width: 68%; }
  .features, .guide-grid, .release-grid, .download-panel { grid-template-columns: 1fr; }
  .features { gap: .75rem; }
  .feature { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: .8rem; }
  .feature-icon { grid-row: 1 / 3; }
  .feature h3 { margin-top: .15rem; }
  .feature p { grid-column: 2; }
  .guide-intro img { display: none; }
  .release-list li { grid-template-columns: 1fr; gap: .4rem; }
  .release-version { flex-direction: row; align-items: center; gap: .75rem; }
  .download-panel .button { justify-self: start; }
}
