/* Picyin's site: white, with the ivory and jade of the app's mahjong tiles. */
:root {
  --paper: #ffffff;
  --ink: #1d1b17;
  --ink-dim: #5f5848;
  --ink-faint: #8a8270;
  --bone: #f6f0e2;
  --bone-edge: #e6dcc4;
  --jade: #1c7350;
  --jade-deep: #0f4f36;
  --red: #b21b2a;
  --rule: rgba(29, 27, 23, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--jade);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  display: block;
  box-shadow: 0 10px 24px rgba(15, 79, 54, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wordmark {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.nav a {
  color: var(--ink-dim);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ── Landing ────────────────────────────────────────────────────────────── */

.lede {
  margin-top: 44px;
  text-align: center;
  line-height: 1.6;
}

.lede p {
  color: var(--ink-dim);
  margin: 0 auto;
  max-width: 30em;
  font-size: 19px;
}

/* A row of tiles, the motif, between the words and the badge. */
.tiles {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.tile {
  width: 52px;
  height: 66px;
  border-radius: 10px;
  background: linear-gradient(var(--bone), #ece2cc);
  box-shadow: 0 7px 0 -1px var(--back, var(--jade)), 0 3px 0 0 var(--bone-edge), 0 10px 16px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--red);
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tile.ink {
  color: var(--ink);
}

.badge {
  display: inline-block;
  margin-top: 44px;
  line-height: 0;
}

.badge img {
  display: block;
}

.lede .soon {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ── Documents ──────────────────────────────────────────────────────────── */

.doc {
  margin-top: 44px;
  line-height: 1.65;
  font-size: 16px;
}

.doc h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.doc h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}

.doc p,
.doc li {
  color: var(--ink-dim);
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin-bottom: 8px;
}

.updated {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.callout {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bone);
  border-bottom: 4px solid var(--jade);
}

.callout p {
  margin: 0;
  color: var(--ink);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}

@media (max-width: 520px) {
  .page {
    padding: 44px 20px 72px;
  }

  .doc h1 {
    font-size: 26px;
  }

  .lede p {
    font-size: 17px;
  }

  .tile {
    width: 44px;
    height: 56px;
    font-size: 25px;
  }
}
