/* 
 * Minimal Portfolio Styles
 * Easy to customize - adjust CSS variables below
 */

:root {
    --primary-color: #333;
    --accent-color: #666;
    --background: #fff;
    --text-color: #333;
    --border-color: #ddd;
    --spacing: 2rem;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    padding: var(--spacing);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

h2, h3 {
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* Portfolio Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing);
    margin-top: var(--spacing);
}

.work-item {
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.work-item:hover {
    transform: translateY(-4px);
}

.work-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1rem;
}

.work-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.work-item h3 {
    font-size: 1.2rem;
}

.work-item .date,
.work-item .categories,
.work-item .series {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin: 0.25rem 0;
}

/* Work Detail Page */
.work-detail {
    max-width: 900px;
    margin: 0 auto;
}

.work-meta {
    margin: var(--spacing) 0;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 3px solid var(--primary-color);
}

.work-meta p {
    margin: 0.5rem 0;
}

.featured-image {
    margin: var(--spacing) 0;
}

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

.description {
    margin: var(--spacing) 0;
}

.additional-content {
    margin: var(--spacing) 0;
}

.additional-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* Intro text */
.intro {
    max-width: 800px;
    margin: 1rem 0 2rem 0;
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* Prose/Article Content Styling */
.prose {
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.5rem;
}

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

.prose a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.prose a:hover {
    color: #666;
}

.prose h1, .prose h2, .prose h3 {
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h1 {
    font-size: 2rem;
}

.prose h2 {
    font-size: 1.5rem;
}

.prose h3 {
    font-size: 1.25rem;
}

.prose ul, .prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

.prose blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}