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

body {
  background-color: #fdf8f0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  font-family: 'Georgia', serif;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #1a1a1a;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-family: "Schoolbell", cursive;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #111;
  letter-spacing: -0.5px;
}
 
.tagline {
  font-style: italic;
  color: #555;
  font-size: 1.1rem;
  font-weight: 100;
  margin-top: 0;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem auto;
  flex-wrap: wrap;
  font-family: 'Georgia', serif;
  position: relative;
}

nav a {
  margin: 0 1rem; 
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: #333;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav a:hover {
  color: #111;
}

nav a:hover::after {
  transform: scaleX(1);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: absolute;
  right: 0;
  top: 0;
  margin: 1rem 0;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background-color: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

@media (max-width: 768px) {
  nav {
    justify-content: flex-start;
    margin: 1rem auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 3rem;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  nav a {
    padding-bottom: 8px;
    font-size: 1.1rem;
  }
}

.post-list {
  margin: 2rem 0;
}

.post-item {
  margin-bottom: 1rem;
  list-style-type: none;
}

.post-item a {
  font-size: 1.1rem;
  color: #0066cc;
  text-decoration: none;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-left: 0.5rem;
}
