/* ===== Base Reset ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===== Body & Layout ===== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial,
               sans-serif;

  background-color: #f9fafb;
  color: #1f2933;

  margin: 0;
  padding: 0;

  line-height: 1.7;
  font-size: 16px;
}

/* Centered content */
main, body > div {
  max-width: 900px;
  margin: auto;
  padding: 2rem 1.5rem;
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 80px;
}

h1 {
  font-size: 2.4rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.15rem;
  color: #374151;
}

/* ===== Text ===== */
p {
  margin: 1rem 0;
}

strong {
  font-weight: 600;
}

em {
  color: #374151;
}

/* ===== Links ===== */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #1e40af;
}

/* ===== Lists ===== */
ul, ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin: 0.4rem 0;
}

/* ===== Code ===== */


code {
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro",
               Consolas, monospace;

  background: #e0f2fe;   /* light sky blue */
  color: #000000;        /* black text */

  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}


/* Code blocks */
pre {
  background: #e0f2fe;   /* same light sky blue */
  color: #000000;        /* black text */

  padding: 1rem;
  border-radius: 8px;

  overflow-x: auto;
  margin: 1.5rem 0;

  font-size: 0.9rem;

  border: 1px solid #bae6fd; /* subtle border */
}

/* Code inside blocks */
pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}


/* ===== Blockquotes ===== */
blockquote {
  border-left: 4px solid #3b82f6;
  background: #eff6ff;

  padding: 1rem 1.2rem;
  margin: 1.5rem 0;

  color: #1e3a8a;
  border-radius: 4px;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

th {
  background: #f1f5f9;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #fafafa;
}

/* ===== Images ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 6px;
}

/* ===== Horizontal Rule ===== */
hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 3rem 0;
}

/* ===== Footer (optional) ===== */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;

  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {

  body {
    font-size: 15px;
  }

  main, body > div {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

