@font-face {
  font-family: "WO XiHei";
  src: url("https://static.wixstatic.com/ufonts/a68263_54ad1dc41c854ccfbd8f30edddba6d5c/woff2/file.woff2") format("woff2");
  font-display: swap;
}

:root {
  --page: #fefbfa;
  --white: #ffffff;
  --blue: #276075;
  --blue-dark: #2b5672;
  --text: #276075;
  --muted: #636363;
  --accent: #bb5858;
  --accent-hover: #c77474;
  --footer: #ffffff;
  --button: #276075;
  --button-hover: #5d8796;
  --width: 980px;
  --wide-width: 1760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: "WO XiHei", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #116dff;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 55px;
  background: var(--page);
}

.header-inner {
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  margin: 0;
  padding: 0 clamp(36px, 3.8vw, 76px);
}

.logo-link {
  display: inline-flex;
  width: auto;
  align-items: center;
  padding-left: 0;
}

.logo-link img {
  display: block;
  width: 103px;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2vw, 40px);
  margin-left: auto;
  font-size: 18px;
  line-height: 1.7;
}

.site-nav a,
.nav-text {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-text {
  color: var(--muted);
}

.forum-button,
.primary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.forum-button {
  width: 103px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  margin-left: 34px;
}

.forum-button:hover {
  background: var(--accent-hover);
}

.primary-button:hover {
  background: var(--button-hover);
}

.menu-button {
  display: none;
}

.hero {
  min-height: 520px;
  background: var(--page);
  padding: 112px 20px 92px;
  text-align: center;
}

.hero-inner,
.content-narrow {
  width: min(100%, var(--width));
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

h3 {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
}

.hero-copy {
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.9;
}

.hero-copy p {
  margin-bottom: 0;
}

.hero-copy a {
  color: var(--blue);
  text-decoration: underline;
}

.primary-button {
  min-width: 157px;
  height: 44px;
  background: var(--button);
  color: #fff;
}

.section {
  padding: 78px 20px 84px;
  background: var(--page);
}

.content-narrow {
  max-width: min(calc(100vw - 140px), var(--wide-width));
  text-align: left;
}

.intro,
.body-copy {
  color: var(--blue);
  font-size: 16px;
}

.intro {
  margin: 0 auto 38px;
  max-width: 640px;
  text-align: center;
}

.body-copy p {
  margin-bottom: 36px;
}

.page-section {
  min-height: 520px;
  padding-top: 112px;
}

.support-page {
  padding-top: 52px;
  padding-bottom: 66px;
}

.support-content {
  width: min(calc(100vw - 40px), var(--wide-width));
  max-width: min(calc(100vw - 40px), var(--wide-width));
}

.support-content h1,
.page-content h1 {
  margin-bottom: 48px;
  text-align: center;
}

.support-list {
  display: grid;
  grid-template-columns: minmax(0, 649px);
  gap: 20px;
  justify-content: center;
}

.support-card {
  display: grid;
  width: 100%;
  min-height: 312px;
  grid-template-columns: 240px 1fr;
  column-gap: 64px;
  align-items: start;
  background: rgba(255, 255, 255, 0.8);
  padding: 36px 40px 34px 31px;
}

@media (min-width: 1700px) {
  .support-list {
    grid-template-columns: repeat(3, 649px);
  }
}

.support-card img {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: cover;
}

.support-card-copy {
  color: var(--blue);
  display: grid;
  min-height: 212px;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}

.support-card-copy p {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.5;
}

.support-card-copy h2 {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

.secondary-button {
  display: inline-flex;
  min-width: 142px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-decoration: none;
  align-self: end;
  justify-self: start;
}

.secondary-button:hover {
  border-color: #93aeb8;
  background: var(--page);
}

.outline-button {
  display: flex;
  min-width: 157px;
  width: 157px;
  height: 44px;
  border: 1px solid var(--button);
  border-radius: 8px;
  background: var(--button);
  color: var(--white);
  margin: 28px auto 0;
}

.outline-button:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: var(--white);
}

.site-footer {
  background: var(--footer);
  color: #000;
  padding: 70px clamp(36px, 9.5vw, 200px) 78px;
}

.footer-inner {
  display: grid;
  width: 100%;
  max-width: var(--wide-width);
  grid-template-columns: 1.2fr 1.6fr 1.1fr 1.5fr;
  gap: clamp(48px, 6vw, 120px);
  margin: 0 auto;
}

.footer-brand img {
  display: block;
  width: 170px;
  height: 65px;
  object-fit: contain;
  margin-bottom: 18px;
}

.site-footer h2 {
  margin: 0 0 18px;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.site-footer p,
.footer-links a,
.donate-link,
.paypal-donate {
  display: block;
  margin: 0 0 8px;
  color: #000;
  font-size: 14px;
  line-height: 2;
}

.paypal-donate {
  width: fit-content;
  line-height: 1;
  text-decoration: none;
}

.paypal-donate img {
  display: block;
  width: 147px;
  height: 47px;
}

.footer-links a,
.donate-link,
.site-footer a {
  text-decoration: underline;
}

.two-columns {
  column-count: 2;
  column-gap: 34px;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 18px;
  }

  .logo-link {
    width: auto;
    padding-left: 0;
  }

  .menu-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-content: center;
    border: 0;
    background: transparent;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px 0;
    background: var(--blue);
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0 12px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .forum-button {
    margin-left: auto;
    margin-right: 10px;
  }

  h1 {
    font-size: clamp(44px, 12vw, 72px);
  }

  h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .support-card {
    width: min(100%, 649px);
    grid-template-columns: 180px 1fr;
    column-gap: 32px;
    padding: 28px;
  }

  .support-card img {
    width: 180px;
    height: 180px;
  }

  .two-columns {
    column-count: 1;
  }
}

@media (max-width: 520px) {
  .forum-button {
    display: none;
  }

  .hero {
    min-height: 520px;
    padding-top: 78px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 70px;
  }

  .content-narrow {
    max-width: min(100% - 40px, var(--wide-width));
  }

  .support-content {
    max-width: min(100% - 40px, 980px);
  }

  .support-card {
    width: 100%;
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .support-card img {
    width: min(100%, 240px);
    height: auto;
    aspect-ratio: 1;
  }

  .page-section {
    padding-top: 64px;
  }
}
