@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=JetBrains+Mono&family=Oswald:wght@700&display=swap");

html {
  font-size: 105%; /* Boost base font size for better readability */
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  color: #444; /* Lighter gray for body text */
  background-color: #fbf8f3; /* Light sepia */
  margin: 0;
  padding: 0;
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;  border-bottom: 1px solid #e0ddd7;
  margin-bottom: 2rem;
}

.site-title {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: #333;
}

.site-header nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #444;
}

.site-header nav a.active {
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e0ddd7;
  color: #666; /* Medium gray for footer text */
  font-size: 0.9rem;
}

.site-footer a {
  color: #666;
  text-decoration: none;
}

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

.rss-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
}

/* --- Post Navigation (Next/Previous) --- */

.post-navigation {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.post-navigation a {
  color: #555;
  text-decoration: none;
  max-width: 350px; /* Prevent very long titles from breaking layout */
  display: inline-block;
}

.post-navigation a:hover {
  color: #c55a11; /* Warm orange for hover */
}

.nav-previous {
  text-align: left;
}
.nav-next {
  text-align: right;
}

.post-navigation-top {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0ddd7;
}

.post-navigation-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0ddd7;
}

/* --- Single Post Layout --- */
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem; /* row-gap and column-gap */
  margin-bottom: 2rem;
}

/* --- Content Typography & Links --- */

main h1,
main h2,
main h3 {
  color: #444;
  line-height: 1.2;
  margin-top: 2rem;
}

.post-header h1 {
  margin-top: 0;
  margin-bottom: 0;
}

.post-header .post-meta {
  margin-bottom: 0;
}

main a {
  color: #a54a09; /* Warm, earthy brown/orange for links */
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}
main p {
  margin-bottom: 1rem;
}

/* --- Post List (for homepage) --- */

.post-list {
  list-style: none;
  padding: 0;
}

.post-list-item {
  margin-bottom: 2.5rem;
}

.post-list-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.post-list-item h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  flex: 1 1 auto;
}

.post-list-item .post-meta {
  margin-bottom: 0;
  flex-shrink: 0;
}

.post-list-item h2 a {
  color: #444; /* Match body text for a cleaner look */
  text-decoration: none;
}

.post-list-item h2 a:hover {
  color: #c55a11; /* Warm orange on hover for interactivity */
  text-decoration: underline;
}

.post-meta {
  font-size: 0.9rem;
  color: #666; /* Medium gray for dates and other meta info */
}

.post-snippet {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-style: italic;
}

/* --- Inline Code --- */

code {
  background: #f0f0f0; /* Light gray for inline code */
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 85%;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;
}

/* Reset for code inside pre blocks, so pre styling takes over */
pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* --- Code Blocks --- */

pre {
  background-color: #f6f8fa;
  border: 1px solid #d1ccc0; /* Warmer border for code blocks */
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem; /* Adjusted to compensate for root font size increase */
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;
}

/* --- Syntax Highlighting (Pygments) --- */
/* Styles for the classes generated by Pygments, themed to match the old highlight.js style. */

pre .c,
pre .c1,
pre .cs {
  color: #6a737d;
} /* Comment */
pre .k,
pre .kc,
pre .kd,
pre .kn,
pre .kp,
pre .kr,
pre .kt,
pre .o,
pre .ow {
  color: #d73a49;
} /* Keyword, Operator */
pre .s,
pre .s1,
pre .s2,
pre .sb,
pre .sc,
pre .sd,
pre .se,
pre .sh,
pre .si,
pre .sr,
pre .ss,
pre .sx {
  color: #032f62;
} /* String */
pre .nf,
pre .nc,
pre .nt {
  color: #6f42c1;
} /* Name.Function, Name.Class, Name.Tag */
pre .m,
pre .mf,
.highlight .mh,
pre .mi,
pre .mo,
pre .il,
pre .nb,
pre .bp,
pre .no {
  color: #005cc5;
} /* Number, Name.Builtin, Name.Constant */
pre .p,
pre .n {
  color: #333;
} /* Punctuation, Name */

/* --- Post Credits --- */

.post-credits {
  margin-top: 2rem;
  text-align: right;
  font-size: 0.9rem;
  color: #555;
}

.post-credits .pathway-glyph {
  font-style: normal;
  color: #555;
  font-size: 0.8em;
  margin-left: 0.2em;
  vertical-align: middle;
}

.collaborator-divider {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 40px 0 20px;
}
.post-credits {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    font-size: 0.9em;
    color: #666;
}
.collaborator-prefix {
    margin-right: 8px;
}
