/* ================================
   Base / Branding
   ================================ */

/* Site title */
.title {
  display: block;
  font-size: 30px;
  text-align: center;
}

/* ================================
   Navigation
   ================================ */

nav {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

nav ul {
  display: flex;
  gap: 20px; /* spacing between links */
  justify-content: center;
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
}

/* ================================
   Consumed (/posts) layout
   ================================ */

/* Two-in-line section grid */
.posts-grid {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 800px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Section preview card */
.section-preview {
  margin: 0;
}

/* Header with title and "See all" inline */
.section-header {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.section-title {
  margin: 0;
}

/* "See all" link */
.see-all {
  font-size: 0.95em;
  text-decoration: none;
  white-space: nowrap;
}

.see-all:hover {
  text-decoration: underline;
}

/* Items list: no bullets */
.section-items {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.section-items li {
  margin: 0.25rem 0;
}

/* ================================
   Latest block (homepage)
   ================================ */

#latest {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  text-align: center;
}

.latest-wrapper {
  max-width: 600px;
  text-align: center;
  width: 100%;
}

/* ================================
   Post meta + content
   ================================ */

.post-metadata {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.post-metadata p {
  margin: 5px 0;
}

.post-metadata a {
  color: #0073e6;
  font-weight: bold;
  text-decoration: none;
}

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

.post-content {
  margin-top: 2rem;
}

.post-content p {
  margin-bottom: 1.2em;
  line-height: 1.6;
}

.post-content p:last-child {
  margin-bottom: 0;
}

/* ================================
   Movies: single page layout
   ================================ */

.movie-header-wrapper {
  align-items: flex-start;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.movie-poster img {
  border-radius: 4px;
  height: auto;
  max-width: 150px;
}

.movie-meta h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.movie-details {
  color: #ccc;
  list-style: none;
  margin: 0;
  padding: 0;
}

.movie-details li {
  margin-bottom: 0.3rem;
}

.book-header-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.book-cover img {
  max-width: 150px;
  height: auto;
  border-radius: 4px;
}

.book-meta h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.book-author {
  color: #ccc;
  margin: 0;
}
