/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: #ffedd4;
    color: #000000;
    line-height: 1.4;
    padding: 20px;
    max-width: 60%;
    margin: 0 auto;
}

/* Header Styles */
header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #000000;
    text-align: left;
}

/* Navigation Styles */
nav {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000000;
    justify-content: flex-start;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: #000000;
    bottom: -4px;
    left: 0;
    transition: width 300ms ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    font-weight: bold;
}

/* Main Content */
main {
    margin-top: 40px;
}

/* Article/Post Styles */
.post-meta {
    color: #78716c;
    font-size: 1rem;
    margin-bottom: 20px;
}

article h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 20px;
    color: #000000;
}

article h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #000000;
}

article h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #000000;
}

article h4, article h5, article h6 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #000000;
}

article p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

article ul, article ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

article li {
    margin-bottom: 8px;
    line-height: 1.4;
}

article strong {
    font-weight: bold;
}

article em {
    font-style: italic;
}

article img {
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    display: block;
}

article code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

article pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

article pre code {
    background-color: transparent;
    padding: 0;
}

article blockquote {
    border-left: 4px solid #2b2b2b;
    margin: 20px 0;
    padding-left: 20px;
    color: #555;
    font-style: italic;
}

/* Home Page - Intro Section */
.intro {
    margin-bottom: 40px;
}

.intro p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.intro strong {
    font-weight: bold;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #000000;
}

.social-links a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #666;
}

/* Posts Page */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.post-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 80px;
    align-items: baseline;
}

.post-date {
    color: #78716c;
    font-size: 1rem;
}

.post-title a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-family: Georgia, 'Times New Roman', serif;
    position: relative;
}

.post-title a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: #000000;
    bottom: -4px;
    left: 0;
    transition: width 300ms ease;
}

.post-title a:hover::after {
    width: 100%;
}

/* Projects Page */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-item {
    padding-bottom: 40px;
    border-bottom: 1px solid #000000;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.project-item h2 a {
    color: #000000;
    text-decoration: none;
    position: relative;
}

.project-item h2 a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: #000000;
    bottom: -4px;
    left: 0;
    transition: width 300ms ease;
}

.project-item h2 a:hover::after {
    width: 100%;
}

.project-item p {
    margin-bottom: 15px;
    color: #000000;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 15px;
    border: 1px solid #000000;
    transition: background-color 0.2s, color 0.2s;
}

.project-links a:hover {
    background-color: #666;
    color: #f5eed6;
}

/* Thoughts Page */
.thoughts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.thought-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #000000;
}

.thought-item:last-child {
    border-bottom: none;
}

.thought-date {
    color: #78716c;
    font-size: 1rem;
    margin-bottom: 10px;
}

.thought-content p {
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
        max-width: 95%;
    }

    header h1 {
        font-size: 2rem;
    }

    nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .post-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .post-date {
        font-size: 1rem;
    }
}
