@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;500;700&display=swap');

body {
  font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500; /* Red Hat Text Medium */
  font-size: 1rem;
  line-height: 1.65;
  color: #222222;
  
  /* Layout centering */
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem 1.5rem;
  background-color: #ffffff;
}

/* Headings inherit Red Hat Text with slightly heavier weight */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.4rem;
}

h3 {
  font-size: 1.2rem;
}

/* Link Styling */
a {
  color: #0055bb;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* Formatted Code / R Outputs / Inline Code */
code, pre {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  background-color: #f6f8fa;
  border-radius: 4px;
}

code {
  padding: 0.2rem 0.4rem;
  font-size: 0.9em;
}

/* Navigation Bar Layout */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 2.5rem;
}

.nav-brand a {
  font-weight: 700;
  font-size: 1.2rem;
  color: #111111;
}

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

.nav-links a {
  color: #0055bb;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
}