main > *:first-child {
  margin-top: 0;
}

body {
  font-family: "Georgia", serif;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  line-height: 1.7;
  background: #fcfcf7;
  color: #222;
  display: flex;
}

/* Sidebar nav for laptops/desktops */
.sidebar {
  flex: 0 0 120px;
  margin-right: 2rem;
  text-align: right;
  margin-top: 0.75rem;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar a {
  color: #6b5632;
  text-decoration: underline;
  font-weight: 500;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.75rem;  /* spacing between links */
}

/* Main content */
main {
  flex: 1;                 /* takes remaining space */
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}

a {
  color: #0055cc;
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

/* 📱 Mobile view */
@media (max-width: 768px) {
  body {
    flex-direction: column;   /* stack nav above content */
  }

  .sidebar {
    flex: none;
    text-align: left;
  }

  .sidebar ul {
    display: flex;
    gap: 1.25rem;
  }

  .sidebar li {
    margin: 0;
  }

  h1 {
    font-size: 2rem;
  }
}

.posts h2 a {
  color: #6b5632;
  text-decoration: underline;
  font-weight: 500;
}

/* Faded dates */
.posts .date {
  font-size: 0.9rem;
  color: #888;   /* lighter gray for "faded" look */
  margin: 0;
}

.posts h2 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem; /* remove top margin, tiny bottom gap */
}

.posts .date {
  font-size: 0.9rem;
  color: #888;
  margin: 0;           /* no extra spacing */
}