* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Source Serif 4', 'Noto Serif SC', Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  color: #000;
  background: #fff;
}
a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
a:hover {
  border-bottom-color: #000;
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 6rem;
}
.header {
  padding: 3rem 0;
  border-bottom: 1px solid #000;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: none;
}
.site-title:hover {
  opacity: 0.7;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-link {
  font-size: 0.9rem;
  color: #666;
}
.nav-link:hover {
  color: #000;
}
.posts {
  margin-top: 2rem;
}
.post-item {
  padding: 3rem 0;
  border-bottom: 1px solid #eee;
}
.post-item:first-child {
  padding-top: 0;
}
.post-date {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.post-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.post-title a {
  border-bottom: none;
}
.post-title a:hover {
  opacity: 0.7;
}
.post-excerpt {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.post-excerpt p {
  margin: 0;
}
.post-photos {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  overflow-x: auto;
}
.post-photo {
  height: 120px;
  width: auto;
  border-radius: 4px;
  object-fit: cover;
}
.read-more {
  font-size: 0.85rem;
  color: #999;
}
.read-more:hover {
  color: #000;
}
.post {
  padding-top: 2rem;
}
.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}
.post .post-date {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.post .post-title {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.post-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.85rem;
  color: #999;
}
.tag:hover {
  color: #000;
}
.post-content {
  font-size: 17px;
  line-height: 1.8;
}
.post-content p {
  margin-bottom: 1.5em;
}
.post-content h2 {
  font-size: 1.4rem;
  margin: 2em 0 1em;
  font-weight: 600;
}
.post-content h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.75em;
  font-weight: 600;
}
.post-content blockquote {
  margin: 1.5em 0;
  padding-left: 1.5em;
  border-left: 3px solid #000;
  color: #666;
  font-style: italic;
}
.post-content ul,
.post-content ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}
.post-content li {
  margin-bottom: 0.5em;
}
.post-content img {
  margin: 1.5em 0;
  border-radius: 4px;
}
.post-content code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.9em;
  background: #fafafa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}
.post-content pre {
  margin: 1.5em 0;
  padding: 1em;
  background: #fafafa;
  border-radius: 4px;
  overflow-x: auto;
}
.post-content pre code {
  background: none;
  padding: 0;
}
.post-content hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid #eee;
}
.post-gallery {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  margin: 0;
}
.gallery-item img {
  width: 100%;
  border-radius: 4px;
  margin: 0;
}
.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.prev-post,
.next-post {
  flex: 1;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.prev-post:hover,
.next-post:hover {
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.next-post {
  text-align: right;
}
.nav-label {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.25rem;
}
.nav-title {
  font-size: 0.95rem;
  color: #000;
}
.archive {
  padding-top: 2rem;
}
.archive-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
}
.archive-year {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #000;
}
.archive-list {
  list-style: none;
}
.archive-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
}
.archive-date {
  font-size: 0.85rem;
  color: #999;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.archive-link {
  color: #000;
}
.archive-link:hover {
  opacity: 0.7;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.page-link {
  font-size: 0.9rem;
  color: #666;
}
.page-link:hover {
  color: #000;
}
.page-number {
  font-size: 0.85rem;
  color: #999;
}
.footer {
  padding: 2rem 0;
  border-top: 1px solid #000;
  margin-top: auto;
}
.footer-content {
  text-align: center;
}
.footer p {
  font-size: 0.85rem;
  color: #666;
  margin: 0.25rem 0;
}
.footer-links a {
  color: #666;
}
.footer-links a:hover {
  color: #000;
}
.separator {
  margin: 0 0.5rem;
  color: #999;
}
@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }
  .header {
    padding: 1.25rem 0;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .post .post-title {
    font-size: 1.5rem;
  }
  .post-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .next-post {
    text-align: left;
  }
}
