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

body {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: #2d2d2d;
  background: #fdfbf7;
  -webkit-font-smoothing: antialiased;
  padding: 80px 20px;
}

.container {
  max-width: 650px;
  margin: 0 auto;
}

/* Landing page */
h1 {
  font-size: 32px;
  font-weight: normal;
  margin-bottom: 24px;
  color: #2d2d2d;
}

.nav-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.nav-list li {
  margin-bottom: 4px;
  color: #2d2d2d;
}

.nav-list li::before {
  content: "• ";
  color: #D97757;
  margin-right: 8px;
}

.email {
  color: #6a6a6a;
  font-size: 16px;
  margin-top: 8px;
}

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

a:hover {
  text-decoration: underline;
}

/* Subpages */
header {
  margin-bottom: 40px;
}

header h1 {
  font-size: 28px;
  margin-bottom: 0;
}

header h1 a {
  color: #2d2d2d;
}

header h1 a:hover {
  color: #D97757;
  text-decoration: none;
}

main {
  margin-bottom: 60px;
}

main h2 {
  font-size: 26px;
  font-weight: normal;
  margin-bottom: 40px;
  color: #2d2d2d;
}

main h3 {
  font-size: 22px;
  font-weight: normal;
  margin: 50px 0 30px 0;
  border-bottom: 1px solid #e5e1d8;
  padding-bottom: 8px;
  color: #2d2d2d;
}

main h3:first-of-type {
  margin-top: 0;
}

article {
  margin-bottom: 40px;
}

article h4 {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 8px;
  color: #2d2d2d;
}

article p {
  margin-bottom: 8px;
  color: #4a4a4a;
}

.intro {
  color: #6a6a6a;
  margin-bottom: 50px;
  font-size: 16px;
  font-style: italic;
}

.tags {
  font-size: 14px;
  color: #D97757;
  font-style: italic;
}

footer {
  padding-top: 40px;
  border-top: 1px solid #e5e1d8;
  margin-top: 60px;
}

footer a {
  color: #D97757;
  text-decoration: none;
  font-size: 16px;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 700px) {
  body {
    padding: 50px 20px;
  }

  h1 {
    font-size: 28px;
  }

  header h1 {
    font-size: 24px;
  }

  main h2 {
    font-size: 22px;
  }

  main h3 {
    font-size: 20px;
  }
}

/* Code block */

details.code-block {
  margin: 1rem 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem;
  background: #fafafa;
}

details.code-block summary {
  cursor: pointer;
  font-weight: 600;
}

details.code-block pre {
  margin-top: 0.75rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

.blog-figure {
  margin: 2rem auto;
  text-align: center;
}

.blog-image {
  max-width: 700px;      /* controls size on desktop */
  width: 100%;           /* responsive */
  height: auto;
  display: block;
  margin: 0 auto;
}

.blog-figure figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

pre {
  background: #f7f7f7;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre; /* critical */
}

pre { white-space: pre; }
code { white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
