:root {
  --paper: #efe6d6;
  --paper-card: #fbf6ec;
  --ink: #1c1813;
  --body: #534c43;
  --muted: #655e54;
  --umber: #6d5433;
  --line: #d9d0be;
  --line-strong: #e3d8c6;
  --amber: #94580c;
  --amber-ink: #fffaf0;
  --amber-deep: #7a490a;
  --teal: #0e6a70;
  --board: #d7b27a;
  --board-ink: #2a2117;
  --shadow: 0 16px 36px rgba(90, 72, 44, 0.14);
  --wrap: 1080px;
  --sans: "Archivo", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Noto Sans SC", "WenQuanYi Micro Hei Mono", ui-monospace, monospace;
  --script: "Zhi Mang Xing", "Kaiti SC", "STKaiti", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #ead7b4;
  color: var(--ink);
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-deep); }

button, input { font-family: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  background: repeating-linear-gradient(
    180deg,
    rgba(90, 70, 40, 0.045) 0 1px,
    transparent 1px 4px
  );
  animation: drift 28s linear infinite;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--ink);
  color: var(--amber-ink);
  padding: 8px 12px;
  border-radius: 999px;
}

.skip:focus { top: 12px; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}

.brand-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.rev {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.langs {
  display: flex;
  gap: 6px;
}

.langs a,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
  cursor: pointer;
}

.langs a[aria-current="page"],
.pill-solid,
.chip[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}

.langs a:hover,
.pill:hover,
.chip:hover {
  color: var(--ink);
  border-color: #c9b89a;
}

.langs a[aria-current="page"]:hover,
.pill-solid:hover,
.chip[aria-pressed="true"]:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: var(--amber-ink);
}

.hero {
  display: grid;
  grid-template-areas:
    "kicker"
    "display"
    "sign"
    "dek"
    "actions";
  align-items: start;
  justify-items: center;
  align-content: start;
  min-height: 0;
  padding: 14px 0 28px;
}

.kicker {
  grid-area: kicker;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s steps(1) infinite;
}

.display {
  grid-area: display;
  margin: 0;
  width: 100%;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(56px, 18vw, 88px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-align: center;
  font-feature-settings: "palt";
}

.sign {
  grid-area: sign;
  justify-self: center;
  display: block;
  width: min(100%, 560px);
  margin: 10px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  line-height: 0;
  box-shadow: 0 14px 28px rgba(90, 72, 44, 0.16);
  border-radius: 2px;
  overflow: hidden;
}

.sign-photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

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

.sign.is-shaken { animation: shake 0.45s ease; }

.dek {
  grid-area: dek;
  max-width: 38ch;
  margin: 10px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.hero-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(148, 88, 12, 0.22);
  text-decoration: none;
}

.btn:hover {
  background: var(--amber-deep);
  color: var(--amber-ink);
}

.quiet {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: center;
  padding: 4px 4px;
}

.intro {
  max-width: 66ch;
  padding-top: 64px;
}

.num {
  margin: 0;
  color: var(--umber);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.intro h2,
.pay h2,
.faq h2 {
  margin: 12px 0 14px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.intro p,
.pay .lede {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.9;
}

.pay {
  padding-top: 56px;
  scroll-margin-top: 18px;
}

.pay-layout {
  display: grid;
  gap: 22px;
  align-items: center;
}

.pay .lede { max-width: 42ch; }

.code {
  margin: 0;
  width: min(100%, 460px);
  justify-self: center;
}

.code-name {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.appreciate {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.faq {
  margin-top: 64px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.faq details { border-bottom: 1px solid #ddd3c2; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--amber);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  max-width: 68ch;
  margin: 0 0 16px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.85;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .top {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 0 8px;
  }

  .brand-mark { font-size: 18px; }
  .brand-name { font-size: 11px; letter-spacing: 0.14em; }
  .rev { display: none; }

  .tools {
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
  }

  .langs a,
  .pill {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .wrap { padding: 0 16px 40px; }
}

@media (min-width: 880px) {
  .pay { padding-top: 72px; }
  .pay-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 56px;
  }
  .code { width: 100%; justify-self: end; }
  .hint { text-align: left; }


  .wrap { padding-inline: 28px; }

  .hero {
    min-height: calc(100svh - 72px);
    grid-template-columns: minmax(200px, 0.64fr) minmax(420px, 1.36fr);
    grid-template-areas:
      "kicker kicker"
      "display sign"
      "dek sign"
      "actions sign";
    align-items: center;
    justify-items: stretch;
    align-content: center;
    column-gap: 36px;
    row-gap: 0;
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .kicker { justify-content: flex-start; margin-bottom: 18px; }

  .display {
    justify-self: start;
    width: auto;
    text-align: left;
    font-size: clamp(112px, 13vw, 176px);
    align-self: center;
    margin-bottom: 8px;
  }

  .sign {
    align-self: center;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .dek {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
    justify-self: start;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
  }

  .btn {
    width: auto;
    min-height: 52px;
    padding: 14px 28px;
    font-size: 16px;
  }
  .quiet { text-align: left; padding: 10px 4px; }

  .intro { padding-top: 28px; }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .sign,
  .sign:hover,
  .sign.is-shaken { transform: none; }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 0 -720px; }
}

@keyframes shake {
  0% { transform: none; }
  25% { transform: rotate(1.4deg); }
  50% { transform: rotate(-1.8deg); }
  75% { transform: rotate(0.9deg); }
  100% { transform: none; }
}
