:root {
  color-scheme: light;
  color: #22211e;
  background: #f8f7f4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 100%;
  line-height: 1.65;
  --muted: #625e56;
  --line: #dedbd3;
  --link: #6f471c;
  --focus: #8b5925;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.shell {
  width: min(calc(100% - 3rem), 54rem);
  margin-inline: auto;
}

.site-header {
  border-block-end: 1px solid var(--line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4.5rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.wordmark {
  padding-block: 0.375rem;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.065em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1.25rem;
}

nav a {
  padding-block: 0.625rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: #22211e;
  text-decoration: underline;
  text-decoration-color: var(--focus);
  text-underline-offset: 0.45em;
}

main.shell {
  flex: 1;
  padding-block: clamp(3rem, 9vw, 6rem);
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 1.15;
}

h2 {
  font-size: 1.1875rem;
  line-height: 1.4;
}

.intro {
  max-width: 35rem;
  margin-block-start: 1.25rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.85;
}

.support-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 6vw, 4rem);
}

.app-icon {
  width: clamp(5rem, 22vw, 9rem);
  height: auto;
  border-radius: 24%;
}

.contact-card {
  margin-block-start: clamp(2.25rem, 7vw, 4rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}

.contact-card p, .policy section p {
  margin-block-start: 0.625rem;
  color: var(--muted);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-block-start: 0.75rem;
  font-weight: 600;
}

main a {
  overflow-wrap: anywhere;
}

.policy {
  max-width: 42rem;
}

.effective-date {
  margin-block-start: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.policy section {
  margin-block-start: 1.75rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
}

.site-footer {
  padding-block: 1.25rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 35rem) {
  .shell {
    width: calc(100% - 2rem);
  }

  .support-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .app-icon {
    grid-row: 1;
  }
}
