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

body {
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  color: #000;
  background: #fff;
  max-width: 750px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.site-header {
  margin-bottom: 2rem;
}

.divider {
  height: 1rem;
  overflow: hidden;
  color: #000;
  font-family: monospace;
  font-size: 0.7rem;
  line-height: 1rem;
}

.divider::before {
  content: '/';
  display: inline;
  letter-spacing: 0.1em;
  word-spacing: -0.5em;
}

/* Repeat the slash character to fill the line */
.divider::after {
  content: '///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////';
  display: inline;
  letter-spacing: 0.1em;
  word-spacing: -0.5em;
}

.site-title {
  display: block;
  font-size: 12pt;
  font-weight: normal;
  color: #000;
  text-decoration: none;
  text-align: center;
}

.site-title:hover {
  text-decoration: underline;
}

.tagline {
  font-style: italic;
  text-align: center;
  font-size: 12pt;
}

/* Navigation */
nav {
  margin-top: 1rem;
  text-align: center;
}

nav a {
  margin-right: 2rem;
  font-size: 12pt;
  text-decoration: none;
  color: #000;
  font-family: "IBM Plex Mono", Arial, Helvetica, sans-serif;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
}

/* Typography */
h1 {
  font-size: 20pt;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  color: red;
  text-decoration: underline;
}

h1 a {
  color: red;
  text-decoration: underline;
}

h1 a:hover {
  text-decoration: none;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

h2 a {
  color: #000;
  text-decoration: none;
}

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

p {
  margin-bottom: 1rem;
}

.date {
  display: flex;
  justify-content: space-between;
  font-size: 12pt;
  margin-bottom: 0;
}

/* Posts */
.post-preview,
.post-item {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid black;
}

.post-preview:last-child,
.post-item:last-child {
  border-bottom: none;
}

.excerpt {
  margin: 1rem 0;
}

/* Homepage post preview images with captions */
.post-preview figure {
  margin: 1.5rem 0;
}

.post-preview img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.post-preview figcaption {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
}

.read-more {
  color: red;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* Post Content */
.post-content {
  margin: 2rem 0;
}

.post h1 {
  color: red;
  text-decoration: underline;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.post-content a {
  color: red;
  text-decoration: underline;
  font-style: italic;
}

.post-content a:hover {
  text-decoration: none;
}

/* Images in posts */
.post-content img,
.excerpt img .info-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Homepage post preview images */
.post-preview img {
  max-width: 100%;
  height: auto;
  display: block;
}

.post-content figure,
.excerpt figure {
  margin: 1rem 0;
}

.post-content figcaption,
.excerpt figcaption {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Related posts */
.related-posts {
  margin-top: 2rem;
}

.related-posts h3 {
  font-size: 21pt;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.related-posts ul {
  list-style: square;
  padding: 0px 15px;
  margin: 0;
}

.related-posts li {
  margin-bottom: 0.5rem;
}

.related-posts a {
  color: red;
  text-decoration: underline;
}

.related-posts a:hover {
  text-decoration: none;
}

/* Tags */
.tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags a {
  display: inline-block;
  padding: 0.2rem 0;
  color: red;
  text-decoration: underline;
}

.tags a:hover {
  text-decoration: underline;
}

/* Tags list page */
.tags-list {
  margin-top: 1.5rem;
}

.tags-list p {
  margin-bottom: 0.5rem;
}

.tags-list a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.tags-list a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
}

footer a {
  color: #000;
  text-decoration: none;
}

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

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

  .divider {
    font-size: 0.5rem;
  }

  nav a {
    margin-right: 1rem;
  }
}
