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

body {
  background-color: #f5f0e8;
  font-family: Georgia, serif;
  color: #2c2c2c;
  line-height: 1.7;
}

/* Nav */
nav {
  background-color: #588157;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

nav .nav-title {
  font-weight: bold;
}

/* Main content */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Home */
.home {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
}

.home-image img {
  width: 100%;
  border-radius: 4px;
}

h1 {
  font-size: 1.9rem;
  color: #588157;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.role {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #588157;
}

/* Writing list */
.writing h1 {
  margin-bottom: 2.5rem;
}

.post-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0d8cd;
}

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

.post-item a {
  font-size: 1.15rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.2rem;
  text-decoration: none;
}

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

.post-item time {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  color: #999;
}

.post-item p {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Post */
.post header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0d8cd;
}

.post header h1 {
  margin-bottom: 0.3rem;
}

.post header time {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  color: #999;
}

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

.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .home {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-image img {
    width: 140px;
  }
}
