/* base.css */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.75;  /* Increased from 1.5 for better readability */
    font-size: 17px;    /* Base font size for better readability */
    margin: 0;           /* Add this */
    padding: 0;          /* Add this */
    overflow-x: hidden;  /* Add this */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

main {
    width: 100%;
    max-width: 672px !important;  /* Increased from 600px to account for actual size */
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Markdown Content Styles */
.markdown h1,
.blog-post-header h1 { 
    font-size: 28px !important;  /* Increased to match blog.css */
    font-weight: 500 !important;
    margin-bottom: 16px;
    line-height: 1.4;
}

.markdown h2 { 
    font-size: 20px !important;
    font-weight: 500 !important;
    margin-top: 24px;
    margin-bottom: 0.5rem !important;
    line-height: 1.5;
}

.markdown h3 { 
    font-size: 18px !important;
    font-weight: 500 !important;
    margin-top: 1.5;
    margin-bottom: 1rem !important;
    line-height: 1.5;
}

.markdown h4 { 
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-top: 2rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.5;
}

.markdown p { 
    font-size: 17px !important;  /* Updated to match new base font size */
    line-height: 1.75;          /* Updated to match new base line height */
    margin-bottom: 1.5rem;      /* Increased spacing between paragraphs */
}

.markdown strong {
    font-weight: 500 !important;
}

.markdown code { 
    background-color: var(--code-bg); 
    padding: 0.2rem 0.4rem; 
    border-radius: 0.25rem;
    font-family: ui-monospace, monospace;
    font-size: 0.9em;
}

.markdown pre { 
    background-color: var(--code-bg);
    padding: 1rem; 
    border-radius: 0.5rem; 
    overflow-x: auto; 
    margin: 1rem 0;
}

.markdown ul,
.markdown ol { 
    font-size: 17px !important;  /* Updated to match new base font size */
    padding-left: 2rem; 
    margin: 1rem 0;
}

.markdown ul { 
    list-style-type: disc; 
}

.markdown ol { 
    list-style-type: decimal; 
}

.markdown blockquote { 
    border-left: 4px solid var(--accent-primary);
    padding: 1rem;
    margin: 1rem 0;
    background-color: var(--blockquote-bg);
    border-radius: 0 0.25rem 0.25rem 0;
}

::selection {
    background-color: var(--selection-bg);
    color: var(--selection-text);
}