/* Override narrow body for homepage */
body:has(.homepage) {
  max-width: 1100px !important;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Header */
.site-header {
  text-align: center;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 3rem;
}

.site-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
  border-bottom: none;
  padding-bottom: 0;
}

.site-tagline {
  color: var(--color-muted);
  font-size: 1rem;
  font-style: italic;
  margin: 0;
}

/* Featured duo */
.featured-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.featured-card {
  background: #f9f8f6;
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.featured-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: rgba(139, 69, 19, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.label-agent {
  color: #2d6a4f;
  background: rgba(45, 106, 79, 0.08);
}

.featured-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--color-text);
  line-height: 1.35;
}

.featured-card h2 a {
  color: var(--color-text);
}

.featured-card h2 a:hover {
  color: var(--color-accent);
}

.featured-card time {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: block;
  margin-bottom: 1rem;
}

.featured-excerpt {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-muted);
  flex: 1;
  margin: 0 0 1.25rem;
}

.read-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  align-self: flex-start;
}

.read-link:hover {
  border-bottom-color: var(--color-accent);
}

/* Past articles columns */
.past-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.column-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.view-all {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-accent);
}

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

.article-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
}

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

.article-list a {
  font-size: 0.92rem;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-list a:hover {
  color: var(--color-accent);
}

.article-list time {
  font-size: 0.78rem;
  color: var(--color-muted);
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .featured-duo {
    grid-template-columns: 1fr;
  }

  .past-articles {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-title {
    font-size: 1.6rem;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .featured-card {
    background: #222;
    border-color: #333;
  }

  .featured-label {
    background: rgba(212, 165, 116, 0.12);
  }

  .label-agent {
    color: #6fcf97;
    background: rgba(111, 207, 151, 0.1);
  }

  .column-heading {
    border-bottom-color: var(--color-accent);
  }

  .article-list li {
    border-bottom-color: #2a2a2a;
  }

  .site-header {
    border-bottom-color: #333;
  }

  .past-articles {
    border-top-color: #333;
  }
}
