/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa; /* Light gray background */
  color: #333;
  line-height: 1.8;
  min-height: 100vh;
}

/* Header */
header {
  background-color: #ffffff;
  color: #1a1a1a;
  text-align: center;
  padding: 60px 20px;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 40px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1a1a1a;
  margin: 0;
}

/* Container */
.container {
  max-width: 900px; /* Optimized reading width */
  margin: 0 auto;
  padding: 0 20px 60px 20px;
}

/* Sections */
section {
  background: #ffffff;
  margin-bottom: 30px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); /* Subtle shadow */
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Headings within sections */
h2 {
  color: #1a1a1a;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

h3 {
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 25px 0 15px 0;
  padding-left: 12px;
  border-left: 4px solid #1a1a1a; /* Minimalist black accent */
}

/* Paragraphs */
p {
  color: #555;
  margin-bottom: 1.5rem;
  text-align: justify;
  font-size: 1rem;
}

/* Links */
a {
  color: #1a1a1a;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: #555;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Selection */
::selection {
  background: #1a1a1a;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 40px 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 15px 40px 15px;
  }
  
  section {
    padding: 25px;
    margin-bottom: 20px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
}