/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* ---------- Body ---------- */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #222;
  background-color: #ffffff;
  line-height: 1.7;
}

/* ---------- Main Content Wrapper ---------- */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px; /* 👈 mobile-safe padding */
}

/* ---------- Headings ---------- */
h1 {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* ---------- Text ---------- */
p {
  margin: 0 0 16px;
}

small {
  color: #666;
}

/* ---------- Lists ---------- */
ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

li {
  margin-bottom: 8px;
}

/* ---------- Links ---------- */
a {
  color: #1976d2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 40px;
  padding: 20px 16px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #555;
  text-align: center;
}

/* ---------- Larger Screens ---------- */
@media (min-width: 768px) {
  main {
    padding: 40px 24px;
  }

  h1 {
    font-size: 2rem;
  }
}
