/* ------------------------------
   BASE STYLES
------------------------------ */

:root {
  --accent: #3d52c9;
  --accent-light: #f7cc3fb6;
  --background: #f9f8f6;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Georgia", serif;
  color: var(--text);
  background: var(--background);
  margin: 0;
  line-height: 1.8;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------
   HEADER
------------------------------ */

header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 0.5rem;
  z-index: 100;
}

header nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h2 {
  font-weight: 600;
  margin: 0;
  font-size: 1.3rem;
}

header h2 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

header h2 a:hover {
  color: var(--accent-light);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-light);
}



/* ------------------------------
   MAIN LAYOUT
------------------------------ */

main {
  max-width: 850px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: var(--radius);
}



/* ------------------------------
   ARTICLE LIST
------------------------------ */

article {
  border-bottom: 1px solid #eee;
  padding: 2.5rem 0;
}

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

article h2 {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.7rem;
  font-size: 1.6rem;
}

article a {
  text-decoration: none;
  color: var(--accent);
}

article a:hover {
  text-decoration: underline;
  color: var(--accent-light);
}

article small {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------
   POST CONTENT
------------------------------ */

.post-content {
  column-count: 1;
  column-gap: 0;
  text-align: justify;
  hyphens: auto;
  margin-top: 2rem;
}

.post-content p {
  margin: 1.2rem 0;
}

.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
  margin: 1.5rem auto;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
  margin: 1.5rem 0;
}

/* ------------------------------
   FOOTER
------------------------------ */

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 0;
}
 .subtitle {
           font-size: 0.9em; /* Adjust size as needed */
           color: #666; /* Change color */
           /*margin-top: 0.5em;  Space above the subtitle */
           font-style: italic; /* Optional: italic style */
   }

/* ------------------------------
   DARK MODE
------------------------------ */

@media (prefers-color-scheme: dark) {
  :root {
    --background: #181818;
    --text: #e9e9e9;
    --muted: #b3b3b3;
  }

  body {
    background: var(--background);
    color: var(--text);
  }

  main {
    background: #222;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  }

  header, footer {
    background: #1d1d1d;
    border-color: #333;
  }
}

.post-listing h1 {
  color: var(--accent);
  margin-bottom: 2rem;
  text-align: center;
}

.post-listing article {
  padding: 2.5rem 0;
  border-bottom: 1px solid #eee;
}

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

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--accent-light);
}

