/* Base page */
body {
  margin: 30px;
  background-color: #1e2a23; /* dark grey-green */
  color: #f8f8f2;            /* off-white, easier on eyes than pure white */
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

/* Limit text width on desktop for better readability */
@media (min-width: 992px) {
  .post-content,
  .post-meta,
  .post-tags,
  .post-cta,
  h1 {
    max-width: 992px;     /* because h1 is outside post-content in post template */
    margin-left: auto;
    margin-right: auto;
  }
}


/* Links */
a {
  color: #66d9ef; /* bright cyan */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Permalink symbol (¶) next to headings */
.headerlink {
  color: #1e2a23 !important;           /* same as body background to make invisible */
  text-decoration: none;
  margin-left: 0.3em;       /* small spacing from heading text */
  font-size: 0.8em;         /* slightly smaller than heading */
  transition: color 0.2s;   /* smooth fade when hovering */
}

/* Show symbol on hover */
h1:hover .headerlink,
h2:hover .headerlink,
h3:hover .headerlink,
h4:hover .headerlink,
h5:hover .headerlink,
h6:hover .headerlink {
  color: #66d9ef !important;           /* same as link colour */
}


/* Footer */
footer {
  margin-top: 50px;
  background-color: #2a3b32; /* slightly lighter than body */
  padding: 15px;
  text-align: center;
  color: #aaa;
}

/* Post content */
/* Post images (desktop default) */
.post-content img,
.post-content figure img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 1.2rem auto;
  border-radius: 6px;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
  .post-content img,
  .post-content figure img {
    max-width: 95%;
    margin: 1rem auto;
  }
}

/* Figures */
.post-content figure {
  display: block;
  text-align: center;
  margin: 1.5rem auto;
}
.post-content figure figcaption {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.4rem;
  font-style: italic;
}

/* Code blocks (syntax is handled by pygments separately) */
pre code {
  display: block;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;

  /* your background colour (sits under the pygments styling) */
  background-color: #2d2d2d;  /* dark grey, works with Monokai */
}

/* Post metadata (date) */
.post-meta {
  background-color: #27352d; /* slightly lighter than #1e2a23 */
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #ddd;
}

/* Tags */
.tag-link {
  margin-right: 8px;
  text-decoration: none;
  /* color: #a6e22e; /* Monokai green */
}
.tag-link:hover {
  text-decoration: underline;
}

/* Tags container */
.post-tags {
  background-color: #27352d;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #ddd;
}

.post-tags p {
  margin: 0 0 5px 0;
  font-weight: bold;
}

/* Post CTA box */
.post-cta {
  background-color: #27352d;   /* match post-tags */
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: 20px;
  font-size: 1rem;
  color: #ddd;
  line-height: 1.5;
}

/* Social icon links inside the CTA */
.post-cta a {
  color: #66d9ef;              /* same link colour as body */
  text-decoration: none;
  margin: 0 4px;
}

.post-cta a:hover {
  text-decoration: underline;
}

.post-cta i {
  font-size: 1.2rem;           /* emoji-sized icons */
  vertical-align: -2px;        /* nudges icon to align with text nicely */
  margin-right: 4px;
}

