* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fefdfd;
  color: #111418;
}

.page {
  width: min(100% - 28px, 620px);
  margin: 0 auto;
  padding: 20px 0;
}

header {
  display: flex;
  justify-content: center;
}

.logo {
  width: min(100%, 320px);
  height: auto;
  display: block;
}

main {
  text-align: center;
  padding: 20px 0;
}

h1 {
  margin: 20px auto;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.sub {
  margin: 20px auto;
  max-width: 560px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.4em;
}

.demo {
  margin: 30px auto;
  width: min(100%, 420px);
  padding: 30px;
  border: 0;
  border-radius: 16px;
  background: #11161f;
  overflow: auto;
}

.caption-table {
  border-collapse: separate;
  border-spacing: 14px 6px;
  margin-top: -6px;
  margin-left: -14px;
  table-layout: auto;
}

.caption-table td {
  text-align: center;
  white-space: nowrap;
  padding: 0;
  vertical-align: middle;
  line-height: 1.15;
}

.hanzi {
  font-size: 26px;
  color: #f8fafc;
}

.pinyin {
  font-size: 14px;
  color: #b7dcff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.gloss {
  font-size: 14px;
  color: #c9b7ff;
}

.translation {
  color: #fff08a;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid #374151;
  font-size: 18px;
  font-style: italic;
  text-align: left;
  white-space: nowrap;
}

.cta {
  margin: 30px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 32px;
  border-radius: 16px;
  background: #c83228;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

footer {
  margin-top: 20px;
  color: #b8b8b8;
  text-align: center;
  font-size: 14px;
}
