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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Navigation */
nav {
  border: 1px solid #333;
  margin-bottom: 40px;
  padding-top: 10px;
  padding-right: 10px;
  width: fit-content;
  background-color: #fff;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #0066cc;
}

nav a.active {
  color: #0066cc;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 2px;
}

/* Typography */
h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 600;
}

h1.title {
  margin: auto;
}

h2 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

h3 {
  font-size: 1.3em;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

p {
  margin-bottom: 15px;
}

p.author {
  font-size: small;
  margin: auto;
  margin-bottom: 30px;
}

p.author::before {
  content: "by ";
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-left: 25px;
  margin-bottom: 15px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9em;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: left;
}

table th {
  background-color: #e8e8e8;
  font-weight: 600;
}

table tr:nth-child(even) {
  background-color: #fafafa;
}

pre {
    padding:            1em;
    border:             1px solid #333;
    background-color:   #fff;
    color:              #000;
    clear:              both;
    display:            table;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
	margin-bottom: 2em;
}

/* Footer */
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  color: #888;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  nav ul {
    gap: 20px;
  }
}
