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

body {
    font-family: DM Sans, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

/* Header */
.header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-desktop a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-desktop a:hover {
    color: #1f2937;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #6b7280;
    transition: color 0.2s;
    width: 2.5rem;
    height: 2.5rem;
}

.mobile-menu-btn:hover {
    color: #1f2937;
}

.mobile-menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.close-icon {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

.nav-mobile {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-mobile a:hover {
    color: #1f2937;
}

/* Main Content */
.main {
    padding: 4rem 0;
}

/* Intro Text */
.intro-text {
    margin-bottom: 3rem;
}

.intro-text p {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Post List View */
.post-list {
    max-width: 768px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-item {
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.75rem 0;
}

.post-item:hover {
    color: #6b7280;
}

.post-item-content {
    display: block;
}

@media (min-width: 768px) {
    .post-item-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

.post-item-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-decoration: underline;
    text-decoration-color: #fbbf24;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

@media (min-width: 768px) {
    .post-item-title {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
}

.post-item-date {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .post-item-date {
        margin-top: 0;
    }
}

/* Single Post View */
.post-view {
    max-width: 768px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #1f2937;
}

.back-icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.post-content p {
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    font-size: 1.125rem;
}

.post-content p:last-child {
    margin-bottom: 0;
}

/* List Styling */
.post-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

/* Link Styling */
a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    color: inherit;
}

a:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    margin-top: 6rem;
    padding: 2rem 0;
    border-top: 1px solid #f3f4f6;
}

.footer-text {
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 767px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-mobile {
        display: none !important;
    }

    .post-preview-title {
        font-size: 1.75rem;
    }

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

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
}