/* assets/css/main.scss */
/* "Coat of Arms" Color Palette */
:root {
  --color-bg: #FDFBF7;
  --color-text: #3D405B;
  --color-heading: #2E4636;
  --color-accent: #D5A021;
  --color-light-gray: #E0E0E0;
  --color-pattern-green: rgba(46, 70, 54, 0.04);
  --color-pattern-pink: rgba(216, 160, 166, 0.04);
  --color-pattern-teal: rgba(140, 200, 190, 0.04);
}

/* Base Styles with New Background Pattern */
body {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, var(--color-pattern-pink) 2px, transparent 3px), radial-gradient(circle, var(--color-pattern-teal) 2px, transparent 3px), radial-gradient(circle, var(--color-pattern-green) 2px, transparent 3px);
  background-position: 0 0, 30px 30px, 60px 60px;
  background-size: 90px 90px;
}

/* Header & Navigation */
header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background-color: var(--color-bg);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.header-crest {
  width: 50px;
  height: auto;
}

.header-brand h1 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-heading);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  nav {
    display: flex;
    align-items: center;
  }
}
nav a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

/* Mobile Navigation */
nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border-bottom: 1px solid var(--color-light-gray);
  padding: 0.5rem 0;
  z-index: 10;
}

nav.is-open {
  display: flex;
}

nav a {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  color: var(--color-text);
}

nav a:last-child {
  border-bottom: none;
}

nav a:hover {
  background-color: #f7f7f7;
  color: var(--color-accent);
}

@media (min-width: 768px) {
  nav a {
    padding: 0;
    border-bottom: none;
    margin-left: 2rem;
  }
  nav a:hover {
    background-color: transparent;
  }
}
/* Mobile Menu Button ("Hamburger") */
#mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@media (min-width: 768px) {
  #mobile-menu-button {
    display: none;
  }
}
#mobile-menu-button .bar {
  width: 25px;
  height: 3px;
  background-color: var(--color-heading);
  border-radius: 3px;
}

/* Main Content & Sections */
main {
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section h2 {
  color: var(--color-heading);
  font-weight: bold;
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
  background-color: #fff;
  border-top: 1px solid var(--color-light-gray);
}

/* Blog Post Styling */
.post {
  max-width: 800px;
  margin: 4rem auto;
}

.post-meta {
  font-size: 0.9rem;
  color: #828282;
  font-style: italic;
}

.post-content {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-heading);
  margin-top: 2rem;
}

/* Code Styling (Merged) */
.post-content code,
.post-content pre,
code,
pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  font-family: "Courier New", Courier, monospace;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  white-space: pre-wrap;
  border: 1px solid #444;
}

/* Scrollbar Customization for Code Blocks */
pre::-webkit-scrollbar {
  height: 6px;
}

pre::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 3px;
}

/*# sourceMappingURL=main.css.map */