:root {
    --bg: #FFFFFF;
    --text: #37352F;
    --text-secondary: #787774;
    --border: #E9E9E7;
    --accent: #DB3334;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.main-nav {
    display: flex;
    gap: 28px;
    font-family: var(--font);
    font-size: 14px;
}

.main-nav a {
    color: var(--text-secondary);
}

.main-nav a:hover {
    color: var(--text);
}

/* Main */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px;
}

/* Featured Post */
.featured {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.featured a {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    background: #f7f6f3;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.featured a:hover .featured-image img {
    transform: scale(1.01);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured .category {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 12px;
}

.featured .title {
    font-family: var(--font);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text);
}

.featured .title:hover {
    text-decoration: underline;
}

.featured .excerpt {
    font-family: var(--font);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.featured .meta {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Posts Grid */
.grid-title {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card a {
    display: block;
}

.post-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 6px;
    background: #f7f6f3;
    margin-bottom: 16px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.post-card a:hover .post-image img {
    transform: scale(1.02);
}

.post-card .category {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.post-card .title {
    font-family: var(--font);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text);
}

.post-card .title:hover {
    text-decoration: underline;
}

.post-card .excerpt {
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.post-card .meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* AdSense */
.adsense-container {
    margin: 48px 0;
    min-height: 250px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Footer */
.site-footer {
    padding: 48px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.site-footer, .site-footer a {
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 16px;
}

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

/* Single Post */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 40px;
}

.single-post .post-thumbnail {
    margin-bottom: 32px;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f7f6f3;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post h1 {
    font-family: var(--font);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

.single-post .post-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.post-content {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 36px 0 16px;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 12px;
}

.post-content a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: #bbb;
}

.post-content ul, .post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 24px 0;
}

.post-content iframe {
    margin: 24px 0;
    border-radius: 6px;
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured a {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    main, .site-footer {
        padding: 32px 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured .title {
        font-size: 22px;
    }
    
    .single-post {
        padding: 32px 20px;
    }
    
    .single-post h1 {
        font-size: 28px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.pagination .page {
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination .page:hover {
    color: var(--text);
    background: var(--hover);
}

.pagination .page.current {
    color: var(--text);
    font-weight: 600;
    background: var(--hover);
}

.pagination .next {
    font-family: var(--font);
    font-size: 14px;
    color: var(--accent);
    padding: 8px 12px;
}

.pagination .next:hover {
    text-decoration: underline;
}