/* THE ASK PAGE (/start). The orange family of the /mission page: Vermilion
   Orange, Ink, Cream and Paper, Archivo with mono eyebrows, so the jump from
   "Be Part of the Million" to here feels like one journey. Small text on the
   orange is pure black (4.58:1); cream on the orange is for large type only.
   The nine palaces are the app's own board (public/board.js and the board
   rules in styles.css), on the ivory cards the website already draws. */

body.qs{
  --brand:#d5401c; --on-brand:#000000;
  --qs-ink:#0f0e0d; --cream:#efe6d6; --paper:#fff8ec; --brand-ink:#a83817;
  --soft:#3b352e; --rule:rgba(15,14,13,.16);
  --sans:'Archivo',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  margin:0; min-height:100dvh; background:var(--cream); color:var(--qs-ink);
  font-family:var(--sans); font-size:16px; line-height:1.5;
}
.qs *{box-sizing:border-box}

/* ---- the lockup band ---- */
.qs-top{background:var(--brand); padding:14px 16px 6px}
.qs-lockup{margin:0 auto; max-width:1080px; display:flex; align-items:center; gap:10px;
  color:var(--on-brand); flex-wrap:wrap}
.qs-mark{font-family:var(--cjk); font-weight:600; font-size:24px; letter-spacing:.06em; color:var(--cream); line-height:1}
.qs-dot{font-size:20px; line-height:1}
.qs-name{font-weight:800; font-size:13px; letter-spacing:.18em; text-transform:uppercase; line-height:1}

/* ---- the chart: the orange carries on from the band ---- */
.qs-main{max-width:1080px; margin:0 auto}
.qs-chart{background:var(--brand); padding:12px 16px 20px}
.qs-board-wrap{display:flex; justify-content:center}
body.qs .qs-chart .board{width:min(100%, 420px); margin:0; box-shadow:0 14px 34px rgba(60,14,4,.35)}
body.qs .qs-chart .cell{padding:7px 6px 6px; cursor:default}
body.qs .qs-chart .slot .g{font-size:18px}
body.qs .qs-chart .slot .num{font-size:13px}
body.qs .qs-chart .centre-stem .g{font-size:22px}
body.qs .qs-chart .chead .dir{font-size:9px}
body.qs .qs-chart .chead .gua{font-size:11px}
body.qs .qs-chart .crow2 .gloss{font-size:7.5px}
body.qs .qs-chart .crow2 .v{font-size:10px}
/* Before the chart arrives the board keeps its square, so nothing below jumps. */
body.qs .qs-chart .board:empty{background:rgba(255,248,236,.35); border-color:transparent}
.qs-moment{margin:14px 0 0; text-align:center; font-size:14px; line-height:1.4; color:var(--on-brand); font-weight:500}

/* ---- the question ---- */
.qs-ask{padding:22px 16px 28px}
.qs-card{background:var(--paper); border-radius:16px; padding:22px 18px 20px;
  box-shadow:0 1px 0 var(--rule), 0 10px 28px rgba(15,14,13,.08)}
.qs-card.is-empty{display:none}
.qs-lede{margin:0; font-size:21px; line-height:1.25; font-weight:700; letter-spacing:-.005em}
.qs-free{margin:8px 0 0; font-size:16px; font-weight:700; color:var(--brand-ink)}
.qs form{margin-top:18px; display:flex; flex-direction:column; gap:14px}
.qs-field{display:block}
.qs-field > span{display:block; font-family:var(--mono); font-size:11px; font-weight:600;
  letter-spacing:.16em; text-transform:uppercase; color:var(--soft); margin-bottom:6px}
/* 16px, or iOS zooms the whole page the moment one is focused. */
.qs textarea, .qs-field input{
  width:100%; font:inherit; font-size:16px; color:var(--qs-ink); background:#fff;
  border:1px solid rgba(15,14,13,.22); border-radius:10px; padding:11px 12px;
}
.qs textarea{min-height:104px; resize:vertical; line-height:1.45}
.qs textarea:focus, .qs-field input:focus{outline:2px solid var(--brand); outline-offset:1px; border-color:var(--brand)}
.qs-go{appearance:none; border:0; border-radius:999px; padding:14px 22px; width:100%;
  background:var(--brand); color:var(--on-brand); font:inherit; font-weight:800; font-size:16px;
  letter-spacing:.02em; cursor:pointer}
.qs-go:hover{background:#c23714}
.qs-go:focus-visible{outline:3px solid var(--qs-ink); outline-offset:2px}
.qs-go:disabled{opacity:.6; cursor:default}
/* ---- the six-digit code, on the same page ---- */
.qs-codeline{margin:0; font-size:18px; line-height:1.4; font-weight:600}
.qs-codeline b{font-weight:800; word-break:break-all}
.qs input.qs-code{font-family:var(--mono); font-size:26px; letter-spacing:.35em; text-align:center; padding:12px}
.qs-codeacts{margin:2px 0 0; display:flex; justify-content:center; align-items:center; gap:10px; color:var(--soft)}
.qs-textbtn{appearance:none; border:0; background:none; padding:4px 2px; font:inherit; font-size:15px; font-weight:600;
  color:var(--qs-ink); text-decoration:underline; text-underline-offset:3px; cursor:pointer}
.qs-textbtn:disabled{color:var(--soft); text-decoration:none; cursor:default}
.qs-err{margin:12px 0 0; font-size:14px; line-height:1.45; color:var(--brand-ink); min-height:1em}
.qs-err.calm{color:var(--soft)}
.qs-err:empty{margin:0; min-height:0}
.qs-sent{margin:0; font-size:18px; line-height:1.45; font-weight:600}
.qs-sent small{font-weight:400}
.qs-sent small{display:block; margin-top:8px; font-size:14px; color:var(--soft)}

/* ---- the two stores ---- */
.qs-apps{margin:22px 0 0; text-align:center}
.qs-badges{display:flex; justify-content:center; align-items:center; gap:10px; line-height:0}
.qs-badges a{display:inline-block; border-radius:8px}
.qs-badges img{display:block; height:40px; width:auto}
/* Google's PNG carries its own clear space, so the badge itself is 40px too. */
.qs-badges img.gp{height:60px; margin:-10px -9px}
.qs-apps-line{margin:10px 0 0; font-size:14px; color:var(--soft)}

.qs-alt{margin:22px 0 0; text-align:center}
.qs-alt a{font-size:15px; font-weight:600; color:var(--qs-ink); text-underline-offset:3px}
.qs .note{margin:10px 0 0; text-align:center; font-size:13px; line-height:1.5; color:var(--soft)}
.qs .note.sent{font-size:15px; color:var(--qs-ink)}

.qs-foot{max-width:1080px; margin:0 auto; padding:0 16px 24px}
.qs-foot p{margin:0; font-size:11px; line-height:1.45; color:rgba(15,14,13,.55); text-align:center}

/* ---- wider screens: the chart beside the form ---- */
@media (min-width:900px){
  .qs-top{padding:18px 32px 18px}
  .qs-lockup{padding:0 32px}
  .qs-main{display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:40px;
    align-items:start; padding:32px 32px 24px}
  .qs-chart{border-radius:22px; padding:28px 28px 22px}
  body.qs .qs-chart .board{width:min(100%, 470px)}
  body.qs .qs-chart .cell{padding:9px 7px 7px}
  body.qs .qs-chart .slot .g{font-size:21px}
  body.qs .qs-chart .slot .num{font-size:14px}
  body.qs .qs-chart .centre-stem .g{font-size:25px}
  .qs-moment{font-size:15px}
  .qs-ask{padding:0}
  .qs-card{padding:26px 24px 22px}
  .qs-lede{font-size:24px}
  .qs-foot{padding:0 32px 28px}
}
