/* Basic styles for Mimas site */

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

body {
  line-height: 1.2;
  color: #333;
  background: #f5f5f5;
  counter-reset: chapter;
}

div {
  font-family: 
  "Times New Roman",
  "LXGW WenKai GB Screen",
  "Noto Serif SC",
  sans-serif;
  font-variant-ligatures: common-ligatures;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.site-header nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
}

.site-header a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.site-header a:hover {
  color: #0066cc;
}

/* Main content */
main {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #696969;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  line-height: 0.9;
}

h1:before {
  counter-increment: chapter;
  content:"Chapter " counter(chapter) ": ";
}

h1 {
  font-size: 2.5rem;
  font-family: 'Baskerville BT', sans-serif;
  counter-reset: section;
}

h2:before {
  counter-increment: section;
  content: counter(chapter) "." counter(section) " ";
  color: #dcdcdc;
  font-size: 80%;
}

h2 {
  font-size: 2rem;
  font-family: 'Baskerville BT', sans-serif;
  counter-reset: subsection;
}

h3:before {
  counter-increment: subsection;
  content: counter(chapter) "." counter(section) "." counter(subsection) " ";
  color: #dcdcdc;
  font-size: 60%;
}

h3 {
  font-size: 1.4rem;
  font-family: 'Baskerville BT', sans-serif;
  counter-reset: subsubsection;
}

h4:before {
  counter-increment: subsubsection;
  content: counter(chapter) "." counter(section) "." counter(subsection) "." counter(subsubsection) " ";
  color: #dcdcdc;
  font-size: 50%;
}

h4 {
  font-size: 1.2rem;
  font-family: 'Baskerville BT', sans-serif;
  counter-reset: paragraph;
}

p {
  margin-bottom: 1.1rem;
  white-space: pre-wrap;
}

code {
  background: #f0f0f0;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', sans-serif;
  font-size: 0.9em;
}

pre code {
  display: block;
  padding: 0.9rem;
  overflow-x: auto;
}

footer {
  text-align: center;
  padding: 5px;
}

/* Card component */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  margin: 0 0 0.5rem 0;
}

.card-description {
  color: #666;
  margin: 0;
}

.card-body {
  margin-bottom: 1rem;
}

.card-footer {
  border-top: 1px solid #e0e0e0;
  padding-top: 1rem;
  color: #666;
  font-size: 0.9em;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.9em;
}
