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

body {
  background: #f5f2ee;
  color: #111;
  font-family: 'Inter', sans-serif;
}

/* Masthead */
.masthead {
  text-align: center;
  padding: 20px 0 10px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  color: purple;
  letter-spacing: 2px;
}

/* ================= NAVBAR ================= */

.navbar {
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}

/* NEW: wrapper fix */
.nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Menu */
.navbar ul {
  display: flex;
  justify-content: center;
  gap: 22px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 1px;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  text-align: center;
}

/* Links */
.navbar a {
  text-decoration: none;
  color: #111;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: purple;
}

.navbar a.active {
  color: purple;
}

/* ================= FOOTER ================= */

.footer {
  background: #f5f2ee;
  color: #888;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer-line {
  height: 1px;
  background: #ddd;
  max-width: 1050px;
  margin: 0 auto 15px;
}

.footer p {
  font-size: 12px;
  letter-spacing: 1px;
}

/* ================= MAIN ================= */

.container {
  max-width: 1050px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Header */
.need-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.need-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 500;
}

/* Article Layout */
.article {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
}

/* Image */
.article-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.photo-credit {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
  font-style: italic;
  letter-spacing: 0.3px;
}

.photo-credit a {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

/* Content */
.article-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Title */
.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  line-height: 1.2;
  transition: color 0.3s ease;
  cursor: pointer;
}

.article-content h2 a {
  text-decoration: none;
  color: inherit;
}

.article-content h2:hover {
  color: purple;
}

/* Meta */
.meta {
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
  display: flex;
  gap: 8px;
}

/* Description */
.description {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

/* ================= RESPONSIVE ================= */

/* Tablets */
@media (max-width: 900px) {
  .article {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-content h2 {
    font-size: 24px;
  }
}

/* Mobile navbar + layout */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    padding: 10px;
  }

  /* Smooth dropdown instead of jump */
  .navbar ul {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: #f5f2ee;
    transition: max-height 0.3s ease;
  }

  .navbar ul.active {
    max-height: 300px;
  }

  .need-header h1 {
    font-size: 40px;
  }
}

/* Extra small screens */
@media (max-width: 600px) {
  .need-header h1 {
    font-size: 32px;
  }
}