/* Home page specific reset and styles */
.home-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Typography & Colors - Only for home page */
:root {
  --color-paper: #fdfcf8;
  --color-ink: #262420;
  --color-light-ink: rgba(38, 36, 32, 0.7);
  --color-accent: #9d9080;
  --color-subtle: #e8e5df;
  --color-space: #f8f5f0;
  --font-body: 'Petrona', Georgia, serif;
  --font-heading: et-book,"Noto Serif SC",Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Georgia,serif,"Noto Emoji";
}

.home-page {
  font-family: var(--font-body);
  background-color: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.6;
  font-weight: 400;
  padding: 0;
  margin: 0;
}

.home-page html {
  font-size: 18px;
}

/* Global Layout - for home page */
.home-page .container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Home Page Specific Elements */
.home-page .home-header {
  margin: 6rem auto 5rem;
  padding: 0 1.5rem;
  max-width: 720px;
}

.home-page .home-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

.home-page .home-quote {
  font-family: var(--font-body);
  font-style: italic;
  line-height: 1.1;
  font-size: 1.2rem;
  color: var(--color-light-ink);
  max-width: 580px;
  /* background-color: var(--color-space); 
  border: 1px solid var(--color-subtle);*/
  border-radius: 3px;
  padding: 0 3.5rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.home-page .home-quote p {
  margin: 0 0;
}

.home-page .home-quote .attribution {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  color: var(--color-accent);
  font-style: normal;
}

/* Article List - only on home page */
.home-page .article-list {
  max-width: 720px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.home-page .article {
  position: relative;
  display: block;
  padding: 2.8rem 2.5rem;
  background-color: var(--color-space);
  border: 1px solid var(--color-subtle);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.home-page .article:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.home-page .article-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.06;
  transition: opacity 0.4s ease;
}

.home-page .article:hover .article-image {
  opacity: 0.09;
}

.home-page .article-content {
  position: relative;
  z-index: 1;
}

.home-page .article-title {
  font-family: Georgia, serif; /* Direct font override */
  font-size: 1.6rem;
  font-weight: normal;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  color: var(--color-ink);
}

.home-page .article-description {
  width: 92%;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  color: var(--color-light-ink);
}

.home-page .article-meta {
  font-size: 1.0rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

/* Responsive Design - home page only */
@media (max-width: 768px) {
  .home-page html {
    font-size: 16px;
  }
  
  .home-page .home-header {
    margin: 4rem auto 3rem;
  }
  
  .home-page .home-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .home-page .article {
    padding: 2rem;
  }
  
  .home-page .article-description {
    width: 100%;
  }
} 

/* Article page title styles */
.content-title {
  max-width: 800px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.intro-text{
  font-size: 1.2rem;
}

/* Specific override for IFS article title */
body[data-url="/ifs/"] .content-title,
body[data-url="ifs"] .content-title,
body[data-url*="/ifs"] .content-title {
  max-width: 800px;
} 