:root {
  --nyt-black: #121212;
  --nyt-gray: #666666;
  --nyt-border: #e2e2e2;
  --nyt-white: #ffffff;
  --nyt-cream: #f9f9f9;

  --bg-color: var(--nyt-white);
  --text-color: var(--nyt-black);
  --accent-color: #326891;
}

body.light-theme {
  --bg-color: var(--nyt-white);
  --text-color: var(--nyt-black);
}

body.dark-theme {
  --bg-color: #1a1a1a;
  --text-color: #e2e2e2;
  --nyt-border: #333333;
}

body {
  font-family: 'Lora', serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--text-color);
  letter-spacing: -1px;
}

.logo-text-small {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-color);
}

.date-display {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.navbar {
  padding: 0;
  min-height: auto;
}

.nav-link {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-color) !important;
  padding: 10px 0 !important;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--nyt-gray) !important;
}

/* Featured Article */
.featured-article {
  border-bottom: 1px solid var(--nyt-border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.featured-title {
  font-size: 2.5rem;
  margin-top: 1rem;
  line-height: 1.1;
}

.featured-subtitle {
  font-size: 1.2rem;
  color: var(--nyt-gray);
  margin-bottom: 1rem;
}

/* Category Sections */
.category-header {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid var(--nyt-black);
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 2px;
}

body.dark-theme .category-header {
  border-bottom-color: var(--text-color);
}

.article-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--nyt-border);
}

.article-card:last-child {
  border-bottom: none;
}

.article-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.article-card h3 a {
  text-decoration: none;
  color: var(--text-color);
}

.article-card h3 a:hover {
  color: var(--nyt-gray);
}

.article-meta {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.7rem;
  color: var(--nyt-gray);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.article-summary {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.9;
}

/* Pagination */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 1.5rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.8rem;
}

.btn-nyt {
  background: none;
  border: 1px solid var(--nyt-border);
  padding: 4px 12px;
  font-family: 'Libre Franklin', sans-serif;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-color);
}

.btn-nyt:hover {
  background-color: var(--nyt-border);
}

/* Article View */
.article-full-title {
  font-size: 3rem;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 1.5rem;
}

.article-full-subtitle {
  font-size: 1.5rem;
  color: var(--nyt-gray);
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

.article-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* Footer */
.copyright {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.75rem;
  color: var(--nyt-gray);
}

.footer-links a {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.75rem;
  color: var(--nyt-gray);
  text-decoration: none;
  margin: 0 5px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Utils */
.border-end-md {
  border-right: 1px solid var(--nyt-border);
}

.loading-indicator {
    text-align: center;
    padding: 50px;
    font-family: 'Libre Franklin', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

@media (max-width: 767px) {
  .border-end-md {
    border-right: none;
    border-bottom: 1px solid var(--nyt-border);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
}
