/* style.css */

body {
  margin: 0;
  font-family: Arial, Verdana, sans-serif;
  background-color: #f6f3ee;
  color: #2f2a24;
}

header {
  border-bottom: 1px solid #d8d0c5;
  padding: 30px 50px;
  background-color: #fffdf9;
}

.site-title {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #3f352b;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a,
.post-links a,
.related-links a,
footer a {
  text-decoration: none;
  color: #6a5a4d;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.post-links a:hover,
.related-links a:hover,
footer a:hover {
  color: #2f2a24;
}

main {
  max-width: 820px;
  margin: 50px auto;
  padding: 0 20px;
}

article h1 {
  font-size: 42px;
  margin-bottom: 10px;
  color: #3b3128;
  line-height: 1.2;
}

article h2 {
  font-size: 28px;
  margin-top: 50px;
  margin-bottom: 20px;
  color: #3b3128;
}

article p {
  font-size: 18px;
  line-height: 1.8;
  color: #4d433a;
  margin-bottom: 22px;
}

blockquote {
  margin: 30px 0;
  padding: 20px 25px;
  background: #efe7dc;
  border-left: 4px solid #b89d7c;
  color: #4d433a;
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
}

.meta {
  color: #8b7d70;
  font-size: 14px;
  margin-bottom: 30px;
}

.hero-box {
  background: #efe7dc;
  border: 1px solid #ddd1c2;
  padding: 28px;
  margin-bottom: 35px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 25px;
}

.hero-image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.hero-text p {
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
  font-style: italic;
}

.post-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #d8d0c5;
  align-items: stretch;
}

.post-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf9;
  padding: 20px;
  border: 1px solid #ddd1c2;
  text-align: center;
  font-size: 16px;
  min-height: 90px;
}

.related-section {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #d8d0c5;
}

.related-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #3b3128;
}

.related-links {
  list-style: square;
  padding-left: 20px;
  margin: 0;
}

.related-links li {
  margin-bottom: 12px;
}

footer {
  margin-top: 60px;
  padding: 30px 20px;
  background-color: #fffdf9;
  border-top: 1px solid #d8d0c5;
  text-align: center;
  font-size: 14px;
  color: #7a6c60;
}

footer nav {
  margin-top: 10px;
}

footer nav a {
  margin: 0 10px;
}

@media (max-width: 768px) {
  header {
    padding: 25px 20px;
  }

  .post-links {
    grid-template-columns: 1fr;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-image img {
    width: 100%;
    height: auto;
  }

  article h1 {
    font-size: 32px;
  }

  article h2 {
    font-size: 24px;
  }
}
