:root {
    --text-color: #000;
    --link-color: #4169E1;
    --link-hover: #1E3A8A;
    --bg-color: #fff;
    --border-color: #ddd;
    --gray-text: #666;
    
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono-font: 'Courier New', Courier, monospace;
}

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

html {
    font-size: 62.5%;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    padding: 2rem;
}

.minimal-container {
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
    overflow-x: auto;
}

/* Header */
.minimal-header {
    margin-bottom: 3rem;
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05rem;
}

.minimal-nav {
    display: flex;
    gap: 1.5rem;
}

.minimal-nav a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 1.6rem;
}

.minimal-nav a:hover {
    text-decoration: underline;
}

/* Main content */
.minimal-main {
    margin-bottom: 4rem;
}

.bio {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.bio-intro {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-color);
}

.bio-list {
    list-style: none;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.bio-list li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.bio-list li::before {
    content: "• ";
    margin-right: 0.5rem;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Blog List */
.blog-list {
    list-style: none;
}

.blog-item {
    margin-bottom: 1rem;
    display: flex;
    gap: 2rem;
}

.blog-date {
    color: var(--gray-text);
    min-width: 12rem;
    font-size: 1.5rem;
}

.blog-link {
    color: var(--link-color);
    text-decoration: none;
}

.blog-link:hover {
    text-decoration: underline;
}

/* Random Thoughts List */
.randomListOL {
    list-style: none;
    padding: 0;
}

.randomList {
    margin-bottom: 1rem;
    display: flex;
    gap: 2rem;
}

.randomInfo {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.randomInfo time {
    color: var(--gray-text);
    min-width: 12rem;
    font-size: 1.5rem;
}

.randomInfo a {
    color: var(--link-color);
    text-decoration: none;
}

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

/* Blog Posts List Page */
.blogListOL {
    list-style: none;
    padding: 0;
}

.blogList {
    margin-bottom: 1rem;
}

.blogInfo {
    display: flex;
    gap: 2rem;
}

.blogInfo time {
    color: var(--gray-text);
    min-width: 12rem;
    font-size: 1.5rem;
}

.blogListLink {
    color: var(--link-color);
    text-decoration: none;
    font-weight: normal;
    font-size: 1.6rem;
}

.blogListLink:hover {
    text-decoration: underline;
}

.tagList {
    display: inline;
    list-style: none;
    margin-left: 1rem;
}

.tag {
    display: inline;
    color: var(--gray-text);
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

.tag::before {
    content: "#";
}

/* Blog Post Content */
.post-content {
    max-width: 70rem;
    margin: 0 auto;
    padding: 2rem 0;
    width: 100%;
    overflow-x: auto;
}

.post-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-date {
    display: block;
    color: var(--gray-text);
    margin-bottom: 3rem;
    font-size: 1.5rem;
}

.post-article {
    font-size: 1.7rem;
    line-height: 1.8;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
}

.post-article h1,
.post-article h2,
.post-article h3,
.post-article h4 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-article h1 {
    font-size: 2.8rem;
}

.post-article h2 {
    font-size: 2.4rem;
}

.post-article h3 {
    font-size: 2rem;
}

.post-article h4 {
    font-size: 1.8rem;
}

.post-article p {
    margin-bottom: 1.5rem;
    max-width: 100%;
    width: 100%; /* Add this */
    overflow: visible; /* hidden before */
    box-sizing: border-box;
}

.post-article ul,
.post-article ol {
    margin-bottom: 1.5rem;
    padding-left: 3rem;
}

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

.post-article code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: var(--mono-font);
    font-size: 0.9em;
}

.post-article pre {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-article pre code {
    background: none;
    padding: 0;
}

{{/* .post-article p img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    width: auto;
    box-sizing: border-box;
} */}}

.post-article img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    box-sizing: border-box;
}

.post-article img[src$=".gif"] {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    box-sizing: border-box;
}

.post-article blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--gray-text);
    font-style: italic;
}

.post-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-article th,
.post-article td {
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    text-align: left;
}

.post-article th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Footer */
footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--gray-text);
    font-size: 1.4rem;
}

.socialMediaLinks {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

footer a {
    color: var(--gray-text);
}

footer a:hover {
    color: var(--text-color);
}

footer a svg {
    fill: var(--gray-text);
    height: 2rem;
    width: 2rem;
    transition: fill 0.2s ease;
}

footer a:hover svg {
    fill: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1.5rem;
    }
    
    .site-title {
        font-size: 2.4rem;
    }
    
    .minimal-nav {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .blog-item,
    .randomList,
    .blogList {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-date,
    .randomInfo time,
    .blogInfo time {
        min-width: auto;
    }
    
    .blogInfo {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-title {
        font-size: 2.4rem;
    }

    .post-article {
        font-size: 1.6rem;
    }

    .post-article h1 {
        font-size: 2.2rem;
    }

    .post-article h2 {
        font-size: 2rem;
    }
}

/* Additional styles for main content area */
main {
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
    overflow-x: auto;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

time {
    color: var(--gray-text);
}

p {
    line-height: 1.7;
    max-width: 100%;
    box-sizing: border-box;
}

mjx-container[display="true"] {
    display: block !important;
    overflow-x: scroll !important;  /* always show scrollbar */
    overflow-y: hidden !important;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;                    /* Firefox */
    scrollbar-color: var(--border-color) transparent;  /* Firefox */
}

/* Chrome/Safari */
mjx-container[display="true"]::-webkit-scrollbar {
    height: 4px;
}

mjx-container[display="true"]::-webkit-scrollbar-track {
    background: transparent;
}

mjx-container[display="true"]::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}