/* Dark theme overrides */
:root {
  --color-charcoal: #f5f1e8;
  --color-off-white: #2c3440;
  --color-gray-light: #9ca3af;
  --color-gray-medium: #b0b7c3;
}

body {
  color: var(--color-charcoal);
  background-color: var(--color-off-white);
}

/* Header and logo */
.site-header {
  background: var(--color-off-white);
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
  overflow: visible;
  padding: 20px 0;
}

.header-content {
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
  margin-top: -15px;
  margin-bottom: -15px;
  position: relative;
}

.footer-content {
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-logo {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
}

.logo-primary {
  height: 90px;
  width: auto;
  margin-top: 1px;
  margin-bottom: 10px;
}

.site-name {
  font-family: var(--font-serif);
  font-size: 2.0rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-charcoal);
  text-transform: uppercase;
  margin-left: 20px;
}

.site-title,
.nav-link,
h1, h2, h3, h4, h5, h6,
.card-title,
.footer-title {
  color: var(--color-charcoal);
}

.card {
  background: rgba(245, 241, 232, 0.05);
  border-color: rgba(245, 241, 232, 0.1);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.site-footer {
  background: rgba(245, 241, 232, 0.02);
  border-top: 1px solid rgba(245, 241, 232, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.1);
}

code {
  background: rgba(245, 241, 232, 0.1);
}

@media (max-width: 768px) {
  .site-nav {
    background: var(--color-off-white);
    border-top: 1px solid rgba(245, 241, 232, 0.1);
  }
}

/* ── Homepage: Recent Posts ── */

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

.post-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(245, 241, 232, 0.06);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.post-item a:hover .post-title {
  color: #b87860;
}

.post-item time {
  font-size: 0.8rem;
  color: #9ca3af;
  white-space: nowrap;
  min-width: 5.5rem;
}

.post-title {
  font-size: 1.05rem;
  color: #f5f1e8;
  transition: color 0.2s;
}

.post-summary {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #9ca3af;
  margin: 0.3rem 0 0 6.5rem;
}

.section-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: #b87860;
  text-decoration: none;
}

.section-link:hover {
  color: #d4967e;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .post-item a {
    flex-direction: column;
    gap: 0.2rem;
  }

  .post-summary {
    margin-left: 0;
  }
}
