/* style.css */
/* Source: https://github.com/trcrsired/pwa-wasm-example
   License: GNU GPL v3.0 */

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

/* Ensure proper scaling on mobile */
body {
  font-size: 18px;
  padding: 1rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  body {
    font-size: 20px; /* bump font size on small screens */
  }
  h1 {
    font-size: 2.2rem;
  }
}

/* Auto dark mode based on OS preference */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #121212;
    color: #e0e0e0;
  }

  h1 {
    color: #ffffff;
  }

  a {
    color: #90caf9;
  }

  ul, li {
    color: #cccccc;
  }
}
