/* site.css: the plain reading pages of 4square.studio (about, how to play, levels, the maths, privacy, terms, contact). */
:root { --bg: #f4f7fb; --card: #fff; --ink: #1c1640; --dim: #5b6470; --line: #dde3ec; --accent: #2a7fdc;
  --e0: #ef5a3c; --e1: #3d8fe8; --e2: #e8c547; --e3: #4caf50; --hole: #aab4bf; }
@media (prefers-color-scheme: dark) { :root { --bg: #0d1117; --card: #161b22; --ink: #e6edf3; --dim: #9aa4af; --line: #30363d; --accent: #58a6ff; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header.site { background: linear-gradient(180deg, #3aa6f0, #2a7fdc); color: #fff; }
header.site .in, main, footer.site .in { max-width: 720px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
header.site .in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 12px; padding-bottom: 12px; }
header.site .brand { font-weight: 900; font-size: 1.35rem; color: #fff; text-decoration: none; letter-spacing: .01em; }
header.site .brand b { color: #ffd84a; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .95rem; }
header.site nav a { color: #fff; text-decoration: none; opacity: .9; }
header.site nav a[aria-current] { opacity: 1; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
header.site .play { margin-left: auto; background: #2fbf4a; color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; text-decoration: none; box-shadow: 0 3px 0 #1d7a2c; }
main { padding-top: 24px; padding-bottom: 40px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 22px 0 4px; }
.k { color: var(--dim); font-size: .92rem; margin: 0 0 20px; }
.lede { font-size: 1.1rem; }
a { color: var(--accent); }
figure { margin: 20px 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
figure svg { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
figcaption { color: var(--dim); font-size: .92rem; margin-top: 8px; }
.island { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 10px; margin: 18px 0; }
.island h2 { margin-top: 16px; }
.lv { border-top: 1px solid var(--line); padding: 10px 0; }
.lv:first-of-type { border-top: 0; }
.lv h3 { margin: 0; font-size: 1rem; }
.lv h3 .n { display: inline-block; min-width: 3.2em; color: var(--dim); font-variant-numeric: tabular-nums; }
.lv .meta { color: var(--dim); font-size: .85rem; margin: 2px 0 4px; }
.lv p { margin: 0; }
dl dt { font-weight: 700; margin-top: 12px; } dl dd { margin: 2px 0 0 0; }
.cta { display: inline-block; margin: 8px 0; background: #2fbf4a; color: #fff; font-weight: 800; padding: 10px 20px; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 0 #1d7a2c; }
footer.site { border-top: 1px solid var(--line); color: var(--dim); font-size: .9rem; }
footer.site .in { padding-top: 16px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer.site a { color: var(--dim); }
