/* ==========================================
   BLOG PAGE STYLES
   ========================================== */
@font-face {
    font-family: 'Inconsolata';
    src: url('Inconsolata-Regular.ttf') format('truetype');
    font-weight: 400;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #e7e7e7;
    color: #2b2b2b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.8;
    padding: 2.5rem 1.5rem 4rem 1.5rem;
    max-width: 768px;
    margin: 0 auto;
}

nav.top-nav {
    margin-bottom: 2.5rem;
}

nav.top-nav a,
footer.post-footer a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

nav.top-nav a:hover,
footer.post-footer a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111111;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eaeaea;
}

p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #333333;
}

/* LaTeX Container Overflow Handling */
.MathJax_Display,
mjx-container[jax="CHTML"][display="true"] {
    overflow-x: auto !important;
    max-width: 100% !important;
    padding: 0.5rem 0;
}

/* Media Displays */
figure {
    margin: 2rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

figcaption {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 0.5rem;
}

video {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 2rem 0;
}

/* Monospace Code Blocks */
pre {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    font-family: 'Inconsolata', SFMono-Regular, Consolas, monospace;
    font-size: 0.95rem;
    color: #24292e;
}

footer.post-footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}