/* Medium-inspired homepage styles - Override existing theme */

/* Force white background and reset */
body,
html {
  background-color: #ffffff !important;
  color: #242424 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

/* Navigation styles */
nav {
  padding: 16px 0 !important;
  background-color: #ffffff !important;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo-square {
  width: 40px;
  height: 40px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.logo-text {
  color: #ffffff;
  font-size: 6px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links .nav-link {
  color: #242424 !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-links .nav-link:hover {
  color: #6b6b6b !important;
}

/* Override any existing container styles */
.homepage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: #ffffff !important;
  min-height: 100vh;
}

/* Hero section */
.hero-section {
  text-align: center;
  margin-bottom: 80px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 40px;
}

.hero-title {
  font-size: 48px !important;
  font-weight: 400 !important;
  color: #242424 !important;
  margin: 0 0 24px 0 !important;
  line-height: 1.2 !important;
}

.hero-subtitle {
  font-size: 20px !important;
  color: #6b6b6b !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Main content */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff !important;
}

.articles-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Article card styles */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid #f0f0f0;
  background-color: #ffffff !important;
  transition: background-color 0.2s ease;
}

.article-card:first-child {
  padding-top: 0;
}

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

.article-card:hover {
  background-color: #fafafa !important;
}

/* Clickable article link */
.article-link {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}

/* Article main content */
.article-main {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.article-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-title {
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #242424 !important;
  transition: color 0.2s ease;
}

.article-link:hover .article-title {
  color: #1a8917 !important;
}

.title-link {
  color: #242424 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.title-link:hover {
  color: #1a8917 !important;
}

.article-excerpt {
  color: #6b6b6b !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article metadata - Updated for smaller, lighter date */
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px !important;
  color: #9b9b9b !important;
  margin-top: 8px;
}

.publish-date {
  color: #9b9b9b !important;
  font-size: 11px !important;
  font-weight: 400;
  opacity: 0.8;
}

/* Article image */
.article-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Override any existing navigation styles */
nav a {
  color: #6b6b6b !important;
}

nav a:hover,
nav a.active {
  color: #242424 !important;
}

/* Ensure all text is readable */
h1, h2, h3, h4, h5, h6 {
  color: #242424 !important;
}

p {
  color: #6b6b6b !important;
}

a {
  color: #242424 !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .homepage-container,
  .header-content {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 36px !important;
  }
  
  .hero-subtitle {
    font-size: 18px !important;
  }
  
  .article-main {
    flex-direction: column;
    gap: 16px;
  }
  
  .article-image {
    width: 100%;
    height: 200px;
    order: -1;
  }
  
  .article-title {
    font-size: 22px !important;
  }
  
  .articles-container {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px !important;
  }
  
  .hero-subtitle {
    font-size: 16px !important;
  }
  
  .article-title {
    font-size: 20px !important;
  }
  
  .article-excerpt {
    font-size: 15px !important;
  }
  
  .logo-text {
    font-size: 5px;
  }
}