* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe Sans", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: rgb(248, 244, 241);
    padding: 0;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    margin-top: 40px;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 10px;
    line-height: 1.2;
}

.highlight {
    background-color: rgb(240, 234, 229);
    padding: 2px 8px;
}

.subtitle {
    font-size: 1rem;
    margin-bottom: 5px;
}

.handle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.handle a {
    color: #666;
    text-decoration: none;
}

.handle a:hover {
    color: #333;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    text-decoration: none;
    color: #666;
    font-size: 1rem;
}

.social-icon:hover {
    color: #333;
}

.category-section {
    margin-bottom: 35px;
    padding: 10px 12px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.category-title {
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: lowercase;
    background-color: rgb(240, 234, 229);
    padding: 4px 8px;
    display: inline-block;
    margin-bottom: 8px;
    border-radius: 2px;
}

.post-list {
    list-style: none;
    padding-left: 15px;
}

.post-item {
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-date {
    display: inline-block;
    width: 85px;
    color: #666;
    font-size: 0.9rem;
}

.post-item a {
    color: #333;
    text-decoration: none;
}

.post-item a:hover {
    text-decoration: underline;
}

.post-description {
    color: #555;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .post-date {
        display: block;
        width: auto;
        margin-bottom: 2px;
    }
}

/* Article Detail Page Styles */
.article-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.article-header {
    background-color: transparent;
    margin: 0 0 0 0;
    padding: 0 20px 30px 20px;
    border-bottom: none;
}

.site-handle {
    text-align: center;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin: 0 -20px 0 -20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.site-handle a {
    color: #333;
    text-decoration: none;
}

.site-handle a:hover {
    color: #333;
    text-decoration: none;
}

.back-link {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    margin: 15px auto 20px auto;
    padding: 0 0 0 40px;
    max-width: 720px;
}

.back-link:hover {
    color: #333;
}

.article-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 30px auto 25px auto;
    padding: 0;
    max-width: 752px;
    color: #000;
    text-align: left;
}

.article-meta {
    font-size: 0.9rem;
    color: #333;
    margin: 0 auto 15px auto;
    padding: 0;
    max-width: 752px;
    line-height: 1.8;
    text-align: left;
}

.story-by {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.meta-separator {
    margin: 0 8px;
}

.article-date,
.read-time {
    color: #666;
}

.key-takeaways {
    background-color: rgb(240, 234, 229);
    border-radius: 8px;
    padding: 24px;
    margin: 20px auto 0 auto;
    max-width: 752px;
}

.takeaways-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.takeaways-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bookmark-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.takeaways-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

.takeaways-content p {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.takeaways-content p:before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.takeaways-content ul {
    list-style-position: outside;
    padding-left: 20px;
}

.takeaways-content li {
    margin-bottom: 10px;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1a1a1a;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px 40px 20px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
}

.article-content blockquote {
    border-left: 4px solid #e5e5e5;
    padding-left: 20px;
    margin: 25px 0;
    color: #666;
    font-style: italic;
}

.article-content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
}

@media (max-width: 600px) {
    .article-container {
        padding: 15px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}
