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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
}

nav {
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
}

nav a {
  text-decoration: none;
}

nav img {
  max-width: 300px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.grid-post {
  text-decoration: none;
  color: inherit;
}

.grid-post img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.grid-post h2 {
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
  color: #ff5700;
  margin-top: 0.5rem;
}

.grid-post .date {
  color: #777;
  font-size: 0.9rem;
  font-weight: 500;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
}

.pagination .active {
  background: #333;
  color: white;
  border-color: #333;
}

.pagination a:hover {
  background: #f0f0f0;
}

.post h1 {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  font-weight: 900;
  color: #ff5700;
}

.post .date {
  color: #777;
  margin-bottom: 1rem;
  font-weight: 500;
}

.post img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

a.back {
  display: inline-block;
  text-decoration: none;
  color: #333;
  margin-top: 1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

a.back:hover {
  border-bottom-color: #333;
}
