/* Lucky Lingo's pages: the font (SIL Open Font License, from Fontsource) and the look. Made from new_chinese_app/site/ (fonts.css, pages.css). */
@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; font-stretch: 75% 100%; }
/* The pages behind the home page: Lucky Lingo, its privacy policy and its support page.
   The same type and colours as the home page, and nothing else: plain documents that are easy to read on a phone. */
* { box-sizing: border-box; margin: 0; }
body { font: 400 19px/1.5 "Bricolage Grotesque", sans-serif; color: #111; background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { background: #F4B740; }
.top { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 22px; font-size: 15px; font-weight: 500; }
.top b { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.top a { text-decoration: none; }
main { padding: 0 22px 60px; }
.doc { max-width: 34em; padding-top: 6svh; }
.doc h1 { font-weight: 800; font-size: clamp(44px, 11vw, 92px); line-height: .95; letter-spacing: -0.045em; }
.doc h2 { margin-top: 44px; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.doc p, .doc ul, .doc dl { margin-top: 14px; }
.doc ul { padding-left: 1.1em; }
.doc dt { margin-top: 30px; font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.doc dd { margin-top: 6px; }
.meta { font-size: 16px; }
.todo { border-bottom: 2px dashed #F4B740; }
.foot { padding: 24px 22px 40px; font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 2px solid #111; margin: 0 22px; padding-left: 0; padding-right: 0; }

/* Lucky Lingo's page */
.lucky { background: #F4B740; margin: 0 -22px; padding: 4svh 22px 0; position: relative; overflow: hidden; min-height: 62svh; display: flex; flex-direction: column; justify-content: flex-end; }
.lucky h1 { font-weight: 800; font-size: clamp(60px, 17vw, 190px); line-height: .86; letter-spacing: -0.05em; position: relative; }
.lucky p { position: relative; margin: 16px 0 26px; max-width: 13em; font-weight: 700; font-size: clamp(24px, 6vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
.lucky img { position: absolute; right: -30px; top: 3svh; width: min(58vw, 380px); transform: rotate(6deg); }
.lesson { display: grid; gap: 34px; padding-top: 40px; }
.lesson .big { font-weight: 700; font-size: clamp(30px, 7.4vw, 60px); line-height: 1; letter-spacing: -0.04em; max-width: 13em; }
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 260px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -22px; padding: 4px 22px 14px; scrollbar-width: none; }
.phones::-webkit-scrollbar { display: none; }
.phones figure { margin: 0; scroll-snap-align: start; }
.phones img { width: 100%; height: auto; display: block; border: 7px solid #111; border-radius: 34px; background: #111; }
.phones figcaption { font-size: 15px; font-weight: 700; margin-top: 10px; }
.facts { max-width: 34em; padding-top: 30px; }
.facts p { margin-top: 18px; }
.facts b { font-weight: 800; }
@media (min-width: 900px) {
  .top { padding: 28px 44px; } main { padding: 0 44px 80px; } .foot { margin: 0 44px; }
  .lucky { margin: 0 -44px; padding: 72px 44px 0; min-height: clamp(460px, 56svh, 640px); }
  .lucky h1 br { display: none; }
  .lucky h1 { font-size: min(11vw, 190px); }
  .lucky img { right: 6vw; top: auto; bottom: -60px; width: min(30vw, 440px); }
  .lesson { padding-top: 64px; gap: 48px; }
  .phones { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 28px; overflow: visible; margin: 0; padding: 0; }
  .facts { columns: 2; column-gap: 56px; max-width: none; padding-top: 0; } .facts p { break-inside: avoid; margin: 0 0 18px; }
}
@media (min-width: 1400px) {
  .lesson { grid-template-columns: minmax(360px, 1fr) 2.7fr; column-gap: 56px; align-items: start; }
  .lesson .big { font-size: clamp(34px, 2.6vw, 52px); }
  .facts { grid-column: 1 / -1; }
}
