/* Medium-like Theme */
:root {
    --bg-color: #ffffff;
    --text-primary: #242424;
    --text-secondary: #6B6B6B;
    --accent: #1a8917;
    --font-serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Feed Layout */
.medium-feed {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 40px;
}

.feed-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #f2f2f2;
    gap: 32px;
}

.feed-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feed-author {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.author-name {
    font-weight: 500;
    color: var(--text-primary);
}

.feed-title {
    font-family: var(--font-serif);
    /* Medium uses serif for titles */
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 4px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-desc {
    font-family: var(--font-sans);
    /* Sans for preview text */
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 20px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 40px;
    /* fallback */
}

.feed-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.feed-image {
    width: 112px;
    height: 112px;
    flex-shrink: 0;
}

.feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    /* Slight radius but mostly square */
}

/* Detail View */
.article-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-header-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.article-header-subtitle {
    font-family: var(--font-sans);
    font-size: 22px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 32px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.article-meta-info {
    font-size: 14px;
}

.article-body {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.58;
    color: #292929;
    /* Slightly softer black */
}

.article-body p {
    margin-bottom: 32px;
}

.article-body h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 24px;
    margin-top: 48px;
    margin-bottom: 14px;
}

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

/* Navbar override for Medium look */
.medium-nav {
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
    padding: 0 24px;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.medium-logo {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 24px;
    color: #000;
    text-decoration: none;
    letter-spacing: -1px;
}