/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: #f1f5f9;
  background-color: #0f172a;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  background-color: #1e293b;
  border-right: 1px solid #334155;
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.nav-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
}

.nav-header h2 {
  font-family: -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.75rem;
}

.sidebar a {
  color: #cbd5e1;
  text-decoration: none;
  font-family: -apple-system, sans-serif;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: block;
  padding: 0.25rem 0;
}

.sidebar a:hover {
  color: #f1f5f9;
}

/* Main Content Area */
main {
  max-width: 800px;
  padding: 3rem 2rem;
  margin: 0 auto;
}

article {
  background-color: #0f172a;
}

/* Typography */
h1 {
  font-family: -apple-system, sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
  color: #f1f5f9;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #334155;
}

h2 {
  font-family: -apple-system, sans-serif;
  font-size: 1.75rem;
  font-weight: bold;
  color: #f1f5f9;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid #334155;
}

h3 {
  font-family: -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: #f1f5f9;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

code {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.9em;
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  border: 1px solid #334155;
}

pre {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

section.intro {
  margin-bottom: 3rem;
}

section.conclusion {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #334155;
}

/* CTA Block */
.cta-block {
  background-color: #1e293b;
  border-left: 3px solid #334155;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.cta-block p {
  margin-bottom: 1rem;
}

.cta-block p:last-child {
  margin-bottom: 0;
}

.cta-block a {
  color: #93c5fd;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cta-block a:hover {
  color: #bfdbfe;
}

/* Links */
a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 968px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #334155;
  }

  main {
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  main {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  body {
    font-size: 16px;
  }

  .sidebar {
    padding: 1.5rem 1rem;
  }
}

/* Scrollbar Styling for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: #1e293b;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
