/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-border: #e0e0e0;
    --color-hover: #f5f5f5;
    --max-width: 800px;
    --spacing: 2rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

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

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    border-radius: 50%;
}

.logo:hover {
    opacity: 0.7;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 0.6;
}

/* Hero */
.hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Sections */
.section {
    padding: 2rem 0 3rem;
}

.section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Project Categories */
.project-category {
    margin-bottom: 2rem;
}

.project-category:last-child {
    margin-bottom: 0;
}

.project-category h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.2s, border-color 0.2s;
}

.project-card:hover {
    background: var(--color-hover);
    border-color: var(--color-text-muted);
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.project-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Page Header */
.page-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

/* Content */
.content {
    padding: 2rem 0 3rem;
}

.content p {
    margin-bottom: 1rem;
}

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

.content a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content a:hover {
    opacity: 0.7;
}

/* App List */
.app-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-list li {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.app-list a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.app-list a:hover {
    text-decoration: underline;
}

/* Blog Posts */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-post {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.blog-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-post h3 {
    margin-bottom: 0.25rem;
}

.blog-post h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.blog-post h3 a:hover {
    text-decoration: underline;
}

.blog-post .date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.blog-post p {
    color: var(--color-text-muted);
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--color-text);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    :root {
        --spacing: 1.25rem;
    }

    .hero {
        padding: 2rem 0 1.5rem;
    }

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

    .project-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 1rem;
    }

    .nav a {
        font-size: 0.85rem;
    }
}
