body {
    background: #f4f1ec; /* soft newspaper off-white */
    color: #553f36;
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
  }
  
  a {
    color: #333;
    text-decoration: none;
  }
  a:hover {
    color:#556;
    text-decoration: none;
  }
    
  .masthead {
    background-color: #998a84;
    color: #3C3731;
    padding: 10px 0 10px;
    text-align: center;
    border-bottom: 0px double #999;

  }

  .masthead h1 {
    font-family: Fairplay;
    font-size: 3em;
    margin: 0;
  }

  .tagline {
  font-size: 1em;
  color: #ccc;
}

.topnav {
    display: flex;
    justify-content: center;
    gap: 40px;
    background-color: #e5e1db;
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
  }

.topnav a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.2s ease;
}

.topnav a:hover {
    color: #222;
    text-decoration: underline;
  }

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 30px; /* space on left and right */
box-sizing: border-box;
}
  
  .hero-article {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    border-bottom: 1px solid #ccc;
  }
  .hero-article img {
    flex: 1 1 300px;
    max-width: 100%;
    margin-right: 20px;
    border-radius: 6px;
  }
  .hero-content {
    flex: 2 1 400px;
  }
  .hero-content h2 {
    font-size: 2em;
    margin-top: 0;
  }
  .btn {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    background-color: #222;
    color: white;
    border-radius: 4px;
    font-size: 0.95em;
  }
  .btn:hover {
    background-color: #444;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 30px; /* ← this is the key fix */
    margin-top: 20px;
  }
  
  .card {
    padding: 20px;
    background: #fffdf9;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;

  }

  .card img {
    width: 100%;
    height: 180px; /* fixed height */
    object-fit: cover;
    border-radius: 4px;

  }

  .card h3 {
    margin-top: 10px;
  }
  
  #playPauseBtn {
    margin-top: 15px;
    padding: 10px 15px;
    border: none;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
  }
  #playPauseBtn:hover {
    background-color: #555;
  }
  
  .footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #ccc;
    background: #f9f9f9;
  }
  
  .layout {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 30px;
  }
  
  .main-article {
    flex: 2;
    min-width: 300px;
  }
  .main-article img {
    width: 100%;
    border-radius: 6px;
  }
  .main-article h2 {
    font-family: Fairplay;
    font-size: 1.8rem;
    margin-top: 15px;
  }
  
  .side-pages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
  }


  .side-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-family: 'Playfair Display';
  }
  .side-card p {
    font-size: 0.95rem;
    color: #444;
  }

  .side-card {
    display: flex;
    flex-direction: row;
    border: 1px solid #ccc;
    background: #fafafa;
    padding: 10px;
    gap: 12px;
    border-radius: 4px;
    align-items: center;
  }
  
  .side-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
  }
  
  .side-text h3 {
    font-size: 1rem;
    margin: 0 0 5px;
  }
  
  .side-text p {
    font-size: 0.85rem;
    color: #444;
    margin: 0;
  }

  .btn {
    background-color: #502d16;
  }
  .btn:hover {
    color: #999;
    background-color: #744729;
  }

  #tag-filter button {
  background-color: #e5e1db;
  color: #553f36;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 6px;
  font-family: 'Playfair Display';
  cursor: pointer;
}
#tag-filter button.btn {
  background-color: #502d16;
  color: #fff;
}
