/* Shared by every engine page: the colour tokens, the page background and text, and a
   utility for hiding things. A site can change the colours by setting them in its own stylesheet. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --line: #dddddd;
  --accent: var(--fg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111;
    --fg: #f5f5f5;
    --muted: #999999;
    --line: #333333;
    --accent: var(--fg);
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, sans-serif;
}
[hidden] { display: none !important; }

/* The main content column. Pages add a class to set their layout */
main {
  box-sizing: border-box;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
main.column { display: flex; flex-direction: column; align-items: center; }
main.centered { justify-content: center; text-align: center; }

.back { color: var(--accent); text-decoration: none; }
.meta { color: var(--muted); margin: 0; }
.notice { color: var(--muted); }

/* Buttons and button-like links. Add .large or .small for a size, and .secondary for an outline */
.button {
  font-size: 1.1rem;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { opacity: 0.4; }
.button.large { font-size: 1.25rem; padding: 14px 32px; }
.button.small { font-size: 1rem; padding: 10px 18px; }
.button.secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--muted);
}
