/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  background: #f8f9fa;
  line-height: 1.6;
}

header {
  background-color: #2e294e; /* deep purple for an elegant header */
  color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
}

/* Container layout */
.container {
  max-width: 1080px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

h2 {
  color: #2d2a4a;
  margin-top: 2rem;
  font-size: 1.8rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

h3 {
  color: #5c5470;
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

p {
  margin: 1rem 0;
  line-height: 1.7;
}

ul {
  list-style-type: disc;
  margin-left: 2rem;
}

li {
  margin: 0.5rem 0;
}

/* Figures */
figure {
  margin: 2rem 0;
  text-align: center;
}

figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

figure em {
  display: block;
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

table th, table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* Citation */
.citation {
  font-size: 0.85rem;
  color: #777;
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* Links */
a {
  color: #512da8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  .container {
    padding: 1rem;
    margin: 1rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.4rem;
  }
}
