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

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  color: #151414;
  background-color: #F2F1ED;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */

.site-header {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

.site-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #151414;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* Main content */

main {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  flex: 1;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #E3E2DE;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: #151414;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid #E3E2DE;
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

th {
  background-color: #EBE9E4;
  font-weight: 700;
}

hr {
  border: none;
  border-top: 1px solid #E3E2DE;
  margin: 2rem 0;
}

strong {
  font-weight: 700;
}

.subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Index page */

.nav-links {
  list-style: none;
  padding-left: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links li {
  margin-bottom: 0;
}

.nav-links a {
  font-size: 1rem;
}

/* Footer */

.site-footer {
  background-color: #E3E2DE;
  padding: 1.5rem;
}

.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0;
}

.footer-links a {
  color: #555;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #151414;
}

@media (max-width: 600px) {
  .site-header {
    padding: 1.5rem 1rem 0.75rem;
  }

  main {
    padding: 0 1rem 2rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.4rem 0.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
