/* Base layout */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 18px;
  background-color: #f5f5f5;
  color: #1e1e1e;
}

/* Works well on dark desktop themes, too */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #1c1c1c;
    color: #ddd;
  }
}

/* Container */
main {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 1.2rem;
}

/* Headings */
h1, h2, h3 {
  color: #106a73; /* muted teal that works on both themes */
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5rem;
}

/* Links */
a {
  color: #007acc;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,0.2);
}
a:hover {
  color: #0093e6;
  border-bottom-color: transparent;
}

/* Paragraph spacing */
p {
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  margin: 4rem 0 2rem;
  font-size: 0.9em;
  color: #666;
}

/* Dark theme footer adaptation */
@media (prefers-color-scheme: dark) {
  footer {
    color: #999;
  }
}

/* Links in footer */
footer a {
  color: inherit;
  border-bottom: 1px dotted currentColor;
}
footer a:hover {
  color: #0093e6;
}

/* Optional: soft fade-in animation */
body {
  opacity: 0;
  animation: fadein 0.8s ease forwards;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
