/* styles.css - Modern Minimalistic Style */

/* CSS Variables for easy theming */
:root {
  --primary-color: #0056b3; /* Deep blue for headings and links */
  --text-color: #333; /* Dark gray for body text */
  --background-color: #ffffff; /* White background */
  --accent-color: #007bff; /* Blue accent for links */
  --footer-bg: #f8f9fa; /* Light gray for footer/header */
  --border-color: #e0e0e0; /* Subtle borders */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Modern sans-serif stack */
  --max-width: 900px; /* Wider for better readability */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header and Navigation */
header {
  background-color: var(--footer-bg);
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

/* Main Content */
main {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin: 1.5rem 0 0.75rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.5rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px; /* Subtle rounding */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Light shadow for depth */
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  main {
    padding: 0 1rem;
  }
}

/* Accessibility Improvements */
a:focus, button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}