:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #1c1a20;
  --muted: #5c5765;
  --line: #dad6df;
  --yellow: #ffe45b;
  --night: #13121c;
  --gutter: clamp(1rem, 5.6vw, 5rem);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, p, figure {
  margin: 0;
}

body {
  line-height: 1.6;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  transform: translateY(-200%);
  background: var(--yellow);
  color: var(--ink);
}

.skip-link:focus {
  transform: none;
}

.page-width {
  width: min(100% - 2 * var(--gutter), 82rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid #ffffff18;
  background: var(--night);
  color: #fdfbff;
}

.header-inner, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  font-size: 1.17rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(0.65rem, 3vw, 2rem);
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.28em;
}

nav a:hover {
  text-decoration: underline;
}

.nav-download {
  padding-inline: 0.85rem;
  border: 1px solid #ffffff4a;
  border-radius: 0.5rem;
}

.hero {
  background:
    radial-gradient(ellipse at 80% 55%, #392768 0%, #201833 42%, transparent 72%),
    var(--night);
  color: #fdfbff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  min-height: clamp(32rem, 44vw, 43rem);
  padding-block: 4.5rem;
}

.hero h1 {
  font-size: clamp(2.45rem, 4.3vw, 4.45rem);
  font-weight: 780;
  line-height: 1.14;
  letter-spacing: -0.032em;
}

.hero h1 span {
  display: block;
  margin-top: 0.13em;
  color: var(--yellow);
}

.hero-description {
  margin-bottom: 1rem;
  color: #e1dbe8;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-description strong {
  color: var(--yellow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  margin-top: 1.65rem;
  padding: 0.6rem 1.35rem;
  border-radius: 0.55rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.button:hover {
  background: #fff0a4;
}

.button:focus-visible {
  outline-color: var(--yellow);
}

.preview-window {
  overflow: hidden;
  border: 1px solid #a897c35c;
  border-radius: 0.9rem;
  background: #211b2b;
  box-shadow: 0 1.75rem 4.5rem #0906118c, 0 0 4rem #9875e92b;
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.25rem 0.85rem;
  color: #f4eafa;
  font-size: 0.83rem;
  font-weight: 750;
}

.preview-image {
  display: block;
  width: 100%;
  height: auto;
}

.preview figcaption {
  margin-top: 0.6rem;
  color: #d5cae4;
  font-size: 0.84rem;
  text-align: right;
}

.download, .faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 5rem);
  align-items: start;
  scroll-margin-top: 1.5rem;
}

.download {
  align-items: center;
  margin-top: clamp(2.25rem, 5vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.15rem;
  background: var(--yellow);
}

h2 {
  font-size: clamp(1.75rem, 3.3vw, 3rem);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.release-info p + p {
  margin-top: 0.3rem;
}

.release-status {
  font-weight: 850;
}

.faq {
  margin-block: clamp(3.25rem, 7vw, 6.5rem);
  padding-inline: clamp(0rem, 4vw, 3rem);
}

.questions {
  border-top: 1px solid var(--line);
}

.questions details {
  border-bottom: 1px solid var(--line);
}

.questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.8rem;
  padding-block: 0.7rem;
  list-style: none;
  font-weight: 750;
  cursor: pointer;
}

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

.questions summary::after {
  flex: none;
  width: 1rem;
  height: 1rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  content: "";
}

.questions details[open] summary::after {
  background-size: 100% 2px;
}

.questions details p {
  padding: 0 1.5rem 1.05rem 0;
  color: var(--muted);
}

.site-footer {
  min-height: 5.5rem;
  border-top: 1px solid var(--line);
}

.site-footer small {
  color: var(--muted);
}

@media (max-width: 53rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 0;
    padding-block: clamp(2.75rem, 9vw, 4.5rem) 2rem;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 8.8vw, 4.25rem);
  }

  .preview {
    width: min(100%, 40rem);
  }
}

@media (max-width: 42rem) {
  .download, .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 25rem) {
  .header-inner {
    gap: 0.55rem;
    min-height: 4.2rem;
  }

  .site-header .brand {
    gap: 0.35rem;
    font-size: 1rem;
  }

  .site-header .brand-mark {
    width: 1.85rem;
    height: 1.85rem;
  }

  nav {
    gap: 0.55rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .nav-download {
    padding-inline: 0.42rem;
  }
}

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

  .button {
    transition: none;
  }
}
