:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --text: #292725;
  --muted: #77736e;
  --quiet: #aaa59f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  background: var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: calc(100svh - 104px);
  display: grid;
  place-items: center;
  padding: 56px 24px 30px;
}

.memory {
  width: min(92vw, 680px);
  text-align: center;
  transform: translateY(-2.5vh);
}

.logo {
  display: block;
  width: clamp(116px, 14vw, 152px);
  height: auto;
  margin: 0 auto 28px;
  user-select: none;
  -webkit-user-drag: none;
}

.brand h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 58px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.cn-name {
  margin: 14px 0 0;
  font-size: clamp(19px, 2.8vw, 24px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.copy {
  margin-top: 44px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

.copy p {
  margin: 0;
}

.copy .lead {
  color: #4a4743;
}

.copy .thanks {
  margin-top: 22px;
  color: var(--text);
}

.footer {
  min-height: 104px;
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--muted);
}

.footer a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.memory > * {
  opacity: 0;
  animation: enter 700ms ease-out forwards;
}

.memory .logo {
  animation-delay: 40ms;
}

.memory .brand {
  animation-delay: 160ms;
}

.memory .copy {
  animation-delay: 300ms;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .page {
    min-height: calc(100svh - 96px);
    padding-top: 42px;
  }

  .memory {
    transform: translateY(-1.5vh);
  }

  .logo {
    margin-bottom: 24px;
  }

  .brand h1 {
    letter-spacing: -0.04em;
  }

  .cn-name {
    margin-top: 12px;
  }

  .copy {
    margin-top: 38px;
    font-size: 15.5px;
    line-height: 1.9;
  }

  .footer {
    min-height: 96px;
    padding-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .memory > * {
    opacity: 1;
  }
}
