*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.7;
  color: #333;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: #fafafa;
}

header {
  margin-bottom: 3rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: #555;
  text-decoration: none;
}

.nav-links a:hover {
  color: #000;
}

main {
  min-height: 60vh;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

article h1 {
  margin-bottom: 0.3rem;
}

article time {
  display: block;
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.post-content {
  font-size: 1.05rem;
}

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

.post-content h2 {
  margin: 2rem 0 0.8rem;
}

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

.post-content code {
  font-family: "Fira Code", "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
}

.post-content :not(pre) > code {
  background: #f4f4f4;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

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

.post-list li {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.post-list li a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}

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

.post-list li time {
  color: #999;
  font-size: 0.9rem;
  white-space: nowrap;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  color: #aaa;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .post-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
}
