body {
  font-family: system-ui, sans-serif;
  margin: 2rem auto;
  max-width: 700px;
  line-height: 1.6;
  color: #222;
}

header, footer {
  text-align: center;
  margin-bottom: 2rem;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

a {
  text-decoration: none;
  color: #333;
}
a:hover {
  text-decoration: underline;
}

.essay-list li:first-child {
  border-bottom: 2px solid #ccc;
  padding-bottom: 1em;
  margin-bottom: 1.5em;
}

footer {
  text-align: center;
  margin-top: 3rem;
  color: #666;
  font-size: 0.9rem;
}

footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #aaa;
  transition: border-color 0.2s ease;
}

footer a:hover {
  border-color: #333;
  color: #000;
}

footer small {
  display: inline-block;
  line-height: 1.6;
}


/* Enhanced code block styling */
pre, code {
  font-family: 'Fira Code', 'JetBrains Mono', 'Source Code Pro', monospace;
}

pre {
  background-color: #1e1e1e;       /* dark but not pure black */
  color: #dcdcdc;                  /* light gray text */
  font-size: 0.95rem;              /* slightly larger */
  line-height: 1.5;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  margin: 1.5rem 0;
}

code {
  background-color: #2a2a2a;
  color: #e0e0e0;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* Optional: subtle syntax highlight for YAML-like code */
.language-yaml .hljs-keyword,
.language-yaml .hljs-attr {
  color: #9cdcfe;
}
.language-yaml .hljs-string {
  color: #ce9178;
}
.language-yaml .hljs-number {
  color: #b5cea8;
}

/* General figure styling (screenshots, diagrams, etc.) */
figure {
  display: block;
  margin: 2.5rem auto;
  padding: 1rem;
  max-width: 90%;
  background: #0e0e0e;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

figure:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.75);
}

figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 6px;
}

figcaption {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.75rem;
  line-height: 1.4;
  font-style: italic;
}
