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

/* All H1 elements use Playfair Display */
h1 {
  font-family: 'Playfair Display', serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

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

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: #044828;
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: normal;
}

.site-title a {
  color: white;
  text-decoration: none;
  font-weight: normal;
}

.site-title-link {
  display: flex;
  align-items: center;
}

.site-logo {
  width: 40px;
  height: 40px;
  margin-right: 16px;
}

.site-nav a {
  color: white;
  text-decoration: none;
  margin-right: 1.5rem;
  opacity: 0.9;
}

.site-nav a:hover,
.site-nav a:focus {
  opacity: 1;
  text-decoration: underline;
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.site-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
}

/* Main Content */
main {
  min-height: 60vh;
  margin-bottom: 3rem;
}

/* Posts */
.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.post-list h2 {
  margin-bottom: 0.5rem;
}

.post-list h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.post-list h2 a:hover {
  color: #3498db;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  color: #555;
}

/* Single Post */
.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.post-content {
  margin-bottom: 3rem;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #34495e;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 1rem;
  margin-left: 2rem;
}

.post-content blockquote {
  border-left: 4px solid #3498db;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #666;
}

.post-content code {
  background-color: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
}

.post-content pre {
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

/* Rouge Syntax Highlighting */
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #000000; font-weight: bold } /* Keyword */
.highlight .o { color: #000000; font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #000000; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d01040 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nl { color: #990000; font-weight: bold } /* Name.Label */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d01040 } /* Literal.String.Backtick */
.highlight .sc { color: #d01040 } /* Literal.String.Char */
.highlight .sd { color: #d01040 } /* Literal.String.Doc */
.highlight .s2 { color: #d01040 } /* Literal.String.Double */
.highlight .se { color: #d01040 } /* Literal.String.Escape */
.highlight .sh { color: #d01040 } /* Literal.String.Heredoc */
.highlight .si { color: #d01040 } /* Literal.String.Interpol */
.highlight .sx { color: #d01040 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d01040 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */

/* Post Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.post-nav a {
  color: #3498db;
  text-decoration: none;
}

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

/* Pages */
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 2rem;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.pagination a {
  color: #3498db;
  text-decoration: none;
  margin: 0 1rem;
}

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

.page-number {
  color: #666;
  margin: 0 1rem;
}

/* Footer */
.site-footer {
  background-color: #f8f9fa;
  padding: 2rem 0;
  text-align: center;
  color: #666;
}

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

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

/* 404 Error Page */
.error-page {
  text-align: center;
  padding: 3rem 0;
  min-height: 50vh;
}

.error-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: #044828;
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.error-page a {
  color: #3498db;
  text-decoration: none;
  font-size: 1.1rem;
}

.error-page a:hover {
  text-decoration: underline;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #044828;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .site-title {
    font-size: 1.5rem;
  }
  
  .post-title, .page-title {
    font-size: 2rem;
  }
  
  .site-nav a {
    display: block;
    margin-bottom: 0.5rem;
  }
}