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

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

a {
  color: #e8e8e8;
  text-decoration: underline;
}

a:hover {
  color: #fff;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid #333;
  padding: 20px 0;
  margin-bottom: 40px;
}

.site-title {
  font-size: 26px;
  font-weight: bold;
  text-decoration: none;
  color: #e8e8e8;
}

.site-nav {
  float: right;
  margin-top: 5px;
}

.site-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #999;
}

.site-nav a:hover {
  color: #e8e8e8;
}

/* Banner */
.banner-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 8px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
}

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

h1 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

h2, h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Post List */
.post-list {
  list-style: none;
  margin-top: 30px;
}

.post-list li {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-meta {
  color: #999;
  font-size: 14px;
}

.post-list h3 {
  margin-top: 5px;
  margin-bottom: 10px;
}

.post-list h3 a {
  text-decoration: none;
  color: #e8e8e8;
}

.post-list h3 a:hover {
  color: #fff;
}

/* Post */
.post {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 42px;
  line-height: 1.2;
}

.post-content {
  margin-bottom: 30px;
}

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

.post-content pre {
  background-color: #2a2a2a;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

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

.post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.post-footer a {
  text-decoration: none;
  color: #e8e8e8;
}

/* Footer */
.site-footer {
  border-top: 1px solid #333;
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .site-nav {
    float: none;
    margin-top: 10px;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 15px;
  }

  .post-title {
    font-size: 32px;
  }

  .banner-container {
    margin-bottom: 30px;
    border-radius: 4px;
  }
}
