/* The site's text pages: privacy, support and the puzzle pages from scripts/seo-pages.ts. Newsprint like the app;
   the phone's own fonts, so nothing is fetched from anywhere else. */
:root {
  color-scheme: light dark;
  --paper: #ecebe6;
  --ink: #15161a;
  --soft: #4a4b50;
  --rule: #c9c7bf;
  --spot: #d3242b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141518;
    --ink: #ecebe6;
    --soft: #a9a8a2;
    --rule: #34353a;
    --spot: #ef4b52;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}
header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 3px double var(--ink);
}
header img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.name {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
}
.what {
  color: var(--soft);
  font-size: 15px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 26px 0 8px;
}
h2 {
  font-size: 19px;
  margin: 30px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.lead {
  font-size: 19px;
  font-weight: 500;
}
.date {
  color: var(--soft);
  font-size: 14px;
}
a {
  color: var(--spot);
}
ul {
  padding-inline-start: 22px;
}
li + li {
  margin-top: 4px;
}
.en {
  margin-top: 48px;
  padding-top: 8px;
  border-top: 3px double var(--ink);
}

/* The puzzle pages (scripts/seo-pages.ts). */
a.home {
  color: inherit;
  text-decoration: none;
}
h3 {
  font-size: 17px;
  margin: 18px 0 2px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 8px;
}
.cta a {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.cta .play {
  background: var(--spot);
  color: #fff;
}
.cta .store {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
footer {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 3px double var(--ink);
  color: var(--soft);
  font-size: 15px;
}

/* The guides (scripts/guide-nono.ts): drawings of rows and boards, in the page's own colours. */
.crumbs {
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 14px;
}
.guide-link {
  margin-top: 22px;
  font-weight: 700;
}
figure {
  margin: 14px 0 18px;
}
figcaption {
  color: var(--soft);
  font-size: 15px;
  margin-top: 6px;
}
.ng {
  direction: ltr; /* the drawings place every number themselves; text-anchor means what it says */
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 6px;
}
.ng rect {
  stroke: var(--soft);
  stroke-width: 1;
}
.ng .e {
  fill: transparent;
}
.ng .b {
  fill: var(--ink);
}
.ng .n {
  fill: var(--spot);
}
.ng .g {
  fill: var(--rule);
}
.ng .x,
.ng .xn {
  stroke: var(--soft);
  stroke-width: 2;
  stroke-linecap: round;
}
.ng .xn {
  stroke: var(--spot);
}
.ng text {
  fill: var(--ink);
  font: 700 15px -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
.ng text.cap {
  fill: var(--soft);
  font-weight: 400;
  font-size: 13px;
}
ol {
  padding-inline-start: 22px;
}

/* Kakuro boards (scripts/guide-kakuro.ts): clue cells stay dark in both themes, like the app's board. */
.kb {
  --kk: #15161a;
  --kk-ink: #f8f7f3;
  --kw: #fbfaf6;
  display: inline-block;
  margin-inline-end: 12px;
  vertical-align: top;
}
@media (prefers-color-scheme: dark) {
  .kb {
    --kk: #08090b;
    --kk-ink: #ecebe6;
    --kw: #2b2c31;
  }
}
.kb rect {
  stroke: var(--soft);
}
.kb .kk {
  fill: var(--kk);
}
.kb .kw {
  fill: var(--kw);
}
.kb .kd {
  stroke: var(--kk-ink);
  stroke-opacity: 0.45;
  stroke-width: 1;
}
.kb text.ks {
  fill: var(--kk-ink);
  font-size: 14px;
}
.kb text.kv {
  font-size: 24px;
}
.kb text.kv.n {
  fill: var(--spot);
}
.kb text.kc {
  fill: var(--soft);
  font-size: 12px;
  font-weight: 500;
}
table.sums {
  border-collapse: collapse;
  font-size: 15px;
  width: 100%;
  margin: 12px 0;
  font-variant-numeric: tabular-nums;
}
.sums th,
.sums td {
  text-align: start;
  padding: 6px 6px;
  border-bottom: 1px solid var(--rule);
}
.sums bdi {
  white-space: nowrap;
}
.sums th {
  font-size: 15px;
  color: var(--soft);
}

/* תשחץ boards (scripts/guide-tash.ts), in the app's colours. */
.tb .tqc {
  fill: var(--rule);
}
.tb .tw {
  fill: var(--paper);
}
.tb .tcor {
  fill: var(--spot);
}
.tb text.tcorx {
  fill: #fff;
  font-size: 16px;
  font-weight: 800;
}
.tb text.tq {
  font-size: 11px;
  font-weight: 500;
}
.tb .ta {
  fill: var(--ink);
  stroke: none;
}
.tb .tsep {
  stroke: var(--soft);
  stroke-width: 1;
}
.tb text.tl {
  font-size: 30px;
}
.tb text.tl.n {
  fill: var(--spot);
}

/* Sudoku boards (scripts/guide-sudoku.ts). */
.sg .se {
  fill: var(--paper);
}
.sg .ss {
  fill: color-mix(in srgb, var(--rule) 55%, var(--paper));
}
.sg .sk {
  fill: color-mix(in srgb, var(--spot) 18%, var(--paper));
}
.sg rect {
  stroke: var(--rule);
}
.sg .sb,
.sg .sf {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}
.sg text.sv {
  font-size: 20px;
}
.sg text.sv.n {
  fill: var(--spot);
}
.sg text.sc {
  fill: var(--soft);
  font-size: 11px;
  font-weight: 600;
}
.sg text.sx {
  fill: var(--spot);
}
.sg .sxl {
  stroke: var(--spot);
  stroke-width: 1.2;
}
