/* ============================
   Theme Variables
============================ */
:root {
  --bg: #1c1b1a;              /* Warm charcoal */
  --text: #f2e9e4;            /* Soft cream */
  --accent: #d4a373;          /* Warm amber */
  --card: #2a2826;            /* Deep cocoa */
  --heading: #e6b980;         /* Muted gold */
  --link: #f4a261;            /* Soft orange */
  --nav-bg: #2f2d2b;          /* Rich espresso */
  --footer-bg: #2f2d2b;
}

.light-mode {
  --bg: #fdf6f0;              /* Light parchment */
  --text: #3c3c3c;            /* Deep gray */
  --accent: #d4a373;
  --card: #ffffff;
  --heading: #b5838d;         /* Rosewood */
  --link: #8d6e63;            /* Cocoa brown */
  --nav-bg: #ffffff;
  --footer-bg: #ffffff;
}

/* ============================
   Base Styles
============================ */
body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================
   Header & Navigation
============================ */
header {
  background-color: var(--nav-bg);
  color: var(--text);
  padding: 1rem 2rem;
  transition: background-color 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
}

/* ============================
   Intro Section
============================ */
.intro {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--card);
  transition: background-color 0.3s ease;
}

.intro h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading);
}

.intro p {
  font-size: 1.2rem;
  color: var(--text);
}

/* ============================
   Posts & Categories
============================ */
.posts {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: auto;
}

.category {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--card);
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.category:hover {
  transform: translateY(-2px);
}

.category h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--heading);
}

.category ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.category ul li {
  margin-bottom: 0.75rem;
}

.category ul li a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.category ul li a:hover {
  text-decoration: underline;
}

/* ============================
   Blog Post Layout (Optional)
============================ */
.blog-post {
  padding: 2rem;
  background-color: var(--card);
  margin: 2rem;
  border-left: 5px solid var(--accent);
}

.blog-post .meta {
  font-size: 0.9rem;
  color: var(--text);
}

/* ============================
   Footer
============================ */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--footer-bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

/* ============================
   Responsive Layout
============================ */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .intro, .posts, .blog-post {
    padding: 1rem;
    margin: 1rem;
  }

  .intro h1 {
    font-size: 1.8rem;
  }

  .intro p {
    font-size: 1rem;
  }

  .category h2 {
    font-size: 1.3rem;
  }

  .category ul li a {
    font-size: 1rem;
  }

  .logo {
    margin-bottom: 1rem;
  }
}

