/* SPDX-License-Identifier: GPL-3.0-or-later
   Copyright (C) 2026 Stephen Campbell */
/* The page follows the game's theme toggle, falling back to the system setting. */
:root { color-scheme: light dark; }
:root:has(sudoku-game[theme="light"]) { color-scheme: light; }
:root:has(sudoku-game[theme="dark"]) { color-scheme: dark; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: light-dark(#f5f8f7, #111817); /* (the palette's backgrounds: see Colours in docs/DEVELOPING.md) */
  color: light-dark(#172322, #e4edeb);
}
sudoku-game {
  height: 100vh;
  height: 100dvh;
  padding: 16px;
  box-sizing: border-box;
}

/* Printing: the game prints just the puzzle (see sudoku-controls.css), on plain paper. */
@media print {
  :root, :root:has(sudoku-game[theme]) { color-scheme: light; }
  body { background: none; }
  sudoku-game { height: auto; padding: 0; }
}
