:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

header {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

article {
    background: var(--card-bg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

article h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

article h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--primary-color);
}

article time {
    display: block;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

article p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-card h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-card time {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-card p {
    color: #555;
    font-size: 1rem;
}

/* Image styles */
.project-image {
    margin: 2.5rem 0;
}

.project-image__img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-image__img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.project-image__caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

.project-gallery {
    margin: 2.5rem 0;
}

.project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.project-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-gallery__item:hover .project-gallery__img {
    transform: scale(1.05);
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    article {
        padding: 1.5rem;
    }

    article h1 {
        font-size: 2rem;
    }

    .post-list {
        grid-template-columns: 1fr;
    }
}
