/* Reset & base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding: 0 1rem;
}

/* Layout helpers */
header, main, footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #007acc;
  font-weight: 500;
}

nav a:hover,
nav a:focus {
  text-decoration: underline;
}

/* Headings */
h1, h2, h3 {
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

/* Content styles */
p {
  margin-bottom: 1rem;
}

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

article {
  margin-top: 2rem;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}
