/* The crawlable pages: articles (rules, iKNOW pages) and the text under the
   home screen. Same cream card stock and ink as the game, quieter. */

/* the home page text is for the home screen; once in a game it steps aside */
body[data-screen]:not([data-screen="home"]) .about,
body[data-screen]:not([data-screen="home"]) footer.site { display: none; }

article { padding-top: 12px; }
article h1 { font-size: 2.4rem; text-wrap: balance; }
article h2 { margin-top: 32px; }
article li { margin-bottom: 6px; }
.lead { font-size: 1.05rem; }

.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }

table.rules { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
table.rules td, table.rules th { text-align: left; padding: 8px 6px; border-bottom: 2px solid var(--rule); vertical-align: top; }
table.rules thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }

.cta { margin: 24px 0 28px; display: grid; gap: 8px; justify-items: start; }
.cta .btn { text-decoration: none; }
.cta p { margin: 0; }

.faq { margin: 0 0 1rem; }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--ink-soft); }

.fine { color: var(--ink-soft); font-size: .8rem; margin-top: 24px; }

/* the text under the home screen */
.about {
  max-width: 540px;
  margin: 8px auto 0;
  padding: 24px 16px 8px;
  border-top: 2px solid var(--rule);
  font-size: .95rem;
}
.about h2 { font-size: 1.45rem; text-wrap: balance; }
.about h3 { margin-top: 22px; }
.about ol { padding-left: 1.2em; }
.about li { margin-bottom: 4px; }

/* every page's footer: the other pages in this language, and the languages */
footer.site {
  max-width: 540px;
  margin: 0 auto;
  padding: 20px 16px max(32px, env(safe-area-inset-bottom));
  border-top: 2px solid var(--rule);
  font-size: .9rem;
  display: grid;
  gap: 14px;
}
footer.site h2 { font-size: 1rem; margin: 0; }
footer.site ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.langs a[aria-current="page"] { color: var(--ink); text-decoration: none; }
