/* Blog Article Typography - Medium-inspired reading experience */

.blog-article {
    max-width: 680px;
    margin: 0 auto;
    font-family: source-serif-pro, "Source Serif Pro", Charter, Georgia, Cambria, "Times New Roman", Times, serif !important;
    font-size: 20px;
    line-height: 1.58;
    color: var(--secondary);
    letter-spacing: -0.003em;
}

/* Ensure all text elements within blog-article use serif */
.blog-article * {
    font-family: inherit;
}

/* Paragraphs */
.blog-article p {
    margin-bottom: 1.75rem;
    font-weight: 400;
}

/* First paragraph - slightly larger */
.blog-article > p:first-of-type {
    font-size: 20px;
    line-height: 1.58;
}

/* Headings - Medium uses sohne sans-serif */
.blog-article h1 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.016em;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--ink);
    font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.blog-article h2 {
    font-size: 26px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.012em;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: var(--ink);
    font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.blog-article h3 {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.012em;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    color: var(--ink);
    font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.blog-article h4 {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
    font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Links */
.blog-article a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.blog-article a:hover {
    color: var(--ink);
}

/* Lists */
.blog-article ul,
.blog-article ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.blog-article li {
    margin-bottom: 0.5rem;
    line-height: 1.58;
}

.blog-article li p {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.blog-article blockquote {
    border-left: 3px solid var(--orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--secondary);
    font-size: 22px;
    line-height: 1.6;
}

/* Code */
.blog-article code {
    background-color: var(--inset);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, "Courier New", monospace;
    font-size: 16px;
    color: var(--ink);
}

.blog-article pre {
    background-color: var(--inset);
    border-radius: 5px;
    padding: 1.25rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.blog-article pre code {
    background-color: transparent;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Images */
.blog-article img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    display: block;
}

/* Horizontal rules */
.blog-article hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

/* Strong and emphasis */
.blog-article strong {
    font-weight: 700;
}

.blog-article em {
    font-style: italic;
}

/* Tables */
.blog-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 18px;
}

.blog-article table th,
.blog-article table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

.blog-article table th {
    background-color: var(--inset);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-article {
        font-size: 18px;
        padding: 0 1rem;
    }

    .blog-article h1 {
        font-size: 28px;
    }

    .blog-article h2 {
        font-size: 24px;
    }

    .blog-article h3 {
        font-size: 20px;
    }

    .blog-article h4 {
        font-size: 18px;
    }

    .blog-article blockquote {
        font-size: 20px;
    }
}
