/* css styles */

/******************/
/* Light Theme */
/******************/

body {
  font-family: 'Inter', sans-serif;
  background-color: #f7f3ef;   
  color: #2e2e2e;
  line-height: 1.7;
}

h1, h2, h3 {
  font-weight: 600;
  color: #1f1e1c;
  letter-spacing: -0.02em;
}

a {
  color: #3b6d70;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: #295154;
  text-decoration: underline;
}

.navbar {
  background-color: #f7f3ef;
  border-bottom: 1px solid #e0d9d2;
  box-shadow: none;
}

img {
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.post-header {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1em;
}

/* Code blocks */
pre, code {
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}

pre {
  background-color: #f3eee9;
  color: #2e2e2e;
  padding: 1em;
  overflow-x: auto;
}

code {
  background-color: #f3eee9;
  color: #2e2e2e;
  padding: 0.2em 0.4em;
}

/* Callouts */
.callout {
  background-color: #f9f6f2;
  border-left: 4px solid #b8a382;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.5em 0;
}
.callout-icon-container {
  display: none;
}
.callout-title {
  font-weight: 600;
  color: #2e2e2e;
  margin-bottom: 0.3em;
}
.callout-body {
  color: #3d3d3d;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Main content container */
main.content, .quarto-article, .page-content {
  background-color: #fffdfb;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Footer */
footer {
  background-color: #f4efe9;
  color: #555;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Header Banner Styling */

/* General header section */
header, .navbar, .quarto-title-block {
  background: linear-gradient(145deg, #f9f7f3, #f2ece5);
  border-bottom: 1px solid #e1dad2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Blog title text */
.quarto-title {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 2.2rem;
  color: #1f1e1c;
  margin-bottom: 0.3rem;
}

.quarto-subtitle {
  color: #4a4947;
  font-size: 1.1rem;
}

/* Navbar links */
.navbar-nav .nav-link {
  color: #3b6d70 !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: #295154 !important;
}


/******************/
/* Dark Mode Variant */
/******************/


@media (prefers-color-scheme: dark) {
  body {
    background-color: #262421;  
    color: #eae6df;             
  }

  h1, h2, h3 {
    color: #f2eee9;
  }

  a {
    color: #85b5b0;             
  }
  a:hover {
    color: #9ccac4;
  }

  .navbar {
    background-color: #2e2b27;
    border-bottom: 1px solid #3a3732;
  }

  pre, code, .sourceCode {
    background-color: #2f2b26 !important;
    color: #e8e4de !important;
  }

  /* Inline code inside paragraphs */
  p code {
    background-color: #3a3630;
    color: #e8e4de;
    padding: 0.2em 0.4em;
    border-radius: 4px;
  }

  /* Quarto-specific code block class */
  .highlight pre {
    background-color: #2f2b26;
    color: #e8e4de;
  }

  /* Optional: make copy button visible */
  .code-tools {
    filter: brightness(1.2);
  }

  .callout {
    background-color: #2c2925;
    border-left: 4px solid #bba984;
  }
  .callout-title {
    color: #e9e4dc;
  }
  .callout-body {
    color: #dcd8d1;
  }

  main.content, .quarto-article, .page-content {
    background-color: #2c2a27;
    border-radius: 10px;
    box-shadow: none;
  }

  footer {
    background-color: #2a2724;
    color: #c8c2bb;
  }

  img {
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
  }

   /* Header Banner Styling */
  header, .navbar, .quarto-title-block {
    background: linear-gradient(145deg, #2c2a27, #262421);
    border-bottom: 1px solid #3a3732;
    box-shadow: none;
  }

  .quarto-title {
    color: #f2eee9;
  }

  .quarto-subtitle {
    color: #d2cdc6;
  }

  .post .quarto-title {
    color: #f2eee9; 
  }

  .post .quarto-subtitle {
    color: #d2cdc6;
  }

  .navbar-nav .nav-link {
    color: #85b5b0 !important;
  }

  .navbar-nav .nav-link:hover {
    color: #9ccac4 !important;
  }
}
