h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5em;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.5em;
}

h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.75em;
}

h4 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5em;
}

p {
  font-size: clamp(16px, 2.5vw, 19px);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1.5em;
}

small {
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 400;
  line-height: 1.6;
}

.page {
  color: var(--primary-dark);
  padding: 2em 0;
  max-width: 768px;
} 

.page h1, .page h2, .page h3, .page h4, .page h5, .page h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111;
}

.page h1 { font-size: 2.5rem; border-bottom: 2px solid #eee; padding-bottom: 0.3rem; }
.page h2 { font-size: 2rem; }
.page h3 { font-size: 1.75rem; }
.page h4 { font-size: 1.5rem; }
.page h5 { font-size: 1.25rem; }
.page h6 { font-size: 1rem; color: #555; }

/* Paragraphs */
.page p {
    margin: 1rem 0;
}

/* Links */
.page a {
    color: #1e90ff;
    text-decoration: none;
}

.page a:hover {
    text-decoration: underline;
}

/* Lists */
.page ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.page li {
    margin-bottom: 0.5rem;
}

/* Code blocks */
.page pre, .page code {
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.page code {
    padding: 0.2rem 0.4rem;
    font-size: 0.95rem;
}

.page pre {
    padding: 1rem;
    overflow-x: auto;
}

/* Blockquotes */
.page blockquote {
    border-left: 4px solid #ddd;
    padding-left: 1rem;
    color: #666;
    font-style: italic;
    margin: 1rem 0;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Horizontal rule */
.page hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

/* Tables */
.page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.page th, .page td {
    padding: 0.75rem 1rem;
    border: 1px solid #eee;
    text-align: left;
}

.page th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Images */
.page img {
    max-width: 100%;
    border-radius: 5px;
}

/* Inline highlights */
.page mark {
    background-color: #fff9c4;
}

/* Optional: code syntax highlighting (light theme) */
.page pre .page code {
    color: #2d2d2d;
}

