/* Character Jigsaw — light/blue theme, matching the game's UI.
   Deliberately its OWN stylesheet so the shared ../style.css (and the Snakes Escape page
   that uses it) is untouched. It also does NOT carry a prefers-color-scheme: dark override:
   the shared sheet flips to a dark palette in dark mode, which is what made this page look
   dark. Character Jigsaw's identity is a light blue screen with navy chrome, so the page
   stays light in both modes — `color-scheme: light` keeps form controls and scrollbars in
   step rather than leaving a dark UA-styled scrollbar around a light page. */
:root {
  color-scheme: light;

  --bg: #eef3fa;          /* light blue-tinted page, like the game's Light board theme */
  --surface: #ffffff;     /* cards / callouts */
  --fg: #1e2a44;          /* dark navy — the game's ink colour */
  --muted: #5a6b88;       /* secondary navy-grey */
  --rule: #d3e0f0;        /* soft blue hairlines */
  --accent: #2f6fbf;      /* link blue */
  --accent-deep: #39507b; /* the game's top-bar navy */
  --band: #2c3e63;        /* deepest navy, used behind the title */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.75rem 1.6rem 2.25rem;
  box-shadow: 0 2px 10px rgba(44, 62, 99, 0.06);
}

/* Title sits on a navy band, echoing the game's top bar. */
h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: -0.35rem -0.35rem 1.25rem;
  padding: 1.05rem 1.15rem;
  background: var(--band);
  color: #f2f5fa;
  border-radius: 12px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.2rem;
  margin: 2.4rem 0 0.6rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--rule);
  color: var(--accent-deep);
  letter-spacing: -0.005em;
}

h3 { font-size: 1.02rem; margin: 1.6rem 0 0.5rem; color: var(--accent-deep); }

p, li { overflow-wrap: break-word; }
ul { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }

.meta {
  background: #f3f7fd;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent-deep);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
  font-size: 0.94rem;
  color: var(--muted);
}
.meta div { margin: 0.2rem 0; }
.meta strong { color: var(--fg); font-weight: 600; }

.lede { font-size: 1.05rem; color: var(--muted); }

.apps { list-style: none; padding: 0; margin: 1.5rem 0; }
.apps li { margin: 0.6rem 0; }
.apps a {
  display: block;
  padding: 1rem 1.15rem;
  background: #f3f7fd;
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
}
.apps a:hover { border-color: var(--accent); }
.apps span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

footer {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
