/* Typography */

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

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

/* Dark color scheme */

html, body {
  background-color: #040720 !important;
  color: #ffffff;
}

header nav,
.nav-container {
  background-color: rgba(4, 7, 32, 0.92) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

aside,
.hextra-scrollbar {
  background-color: #040720 !important;
}

footer {
  background-color: #040720 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

article a,
main a {
  color: #0097B2;
}

article a:hover,
main a:hover {
  color: #5A3F8C;
}

/* Hero button — keep white text despite the link color rule above */
main a.not-prose {
  color: #ffffff;
}

main a.not-prose:hover {
  color: #ffffff;
  opacity: 0.9;
}

/* Homepage component styles */

.homepage-section-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.homepage-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 2.5rem 0;
}

.homepage-post-card {
  border-left: 3px solid #0097B2;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
}

.homepage-post-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
}

.homepage-post-card a:not(.homepage-read-more) {
  color: inherit !important;
  text-decoration: none;
}

.homepage-post-card a:not(.homepage-read-more):hover {
  color: #0097B2 !important;
}

.homepage-read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #0097B2 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  font-size: 0.875rem;
}

.homepage-read-more:hover {
  color: #5A3F8C !important;
}

.homepage-authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.homepage-author-card {
  border-left: 3px solid #5A3F8C;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
  padding: 1rem;
}

.homepage-author-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff !important;
  text-decoration: none !important;
  text-align: center;
}

.homepage-author-card a:hover {
  color: #0097B2 !important;
}

.homepage-author-card img,
.homepage-author-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.homepage-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #0097B2;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0097B2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.homepage-tag-chip:hover {
  background-color: #0097B2;
  color: #040720 !important;
}

.homepage-tag-chip span {
  opacity: 0.6;
}

/* Author index page — bigger cards with bio */

.author-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.author-index-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  border-left: 3px solid #5A3F8C;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
}

.author-index-card img,
.author-index-card .homepage-author-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-index-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.author-index-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0;
}

.author-index-name a {
  color: inherit !important;
  text-decoration: none;
}

.author-index-name a:hover {
  color: #0097B2 !important;
}


/* Fix TOC scroll-to-top sticky area background */
.hextra-toc div[class*="bottom-0"] {
  background-color: #040720 !important;
  box-shadow: 0 -12px 16px #040720 !important;
}
