:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border-color: #e2e8f0;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --border-color: #334155;
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

#theme-toggle:hover {
    background-color: var(--border-color);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}


.content-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.landing-container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.profile-image-container {
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.bio {
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    /* Narrower padding as requested */
    background-color: transparent;
    border: 1px solid var(--accent);
    /* Slightly thinner border for cleaner look */
    color: var(--accent);
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    background-color: var(--accent);
    color: var(--bg-color);
    /* Contrast text against accent background */
    transform: translateY(-2px);
}

/* Blog/Archive Styles */
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-container {
    max-width: 800px;
    width: 100%;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.post-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

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

.post-title a:hover {
    color: var(--accent);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}
/* Featured Image */
.featured-image {
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

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

.image-credit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
    padding: 0.5rem 1rem;
    background: var(--border-color);
    margin: 0;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--border-color);
    color: var(--text-secondary);
    border-radius: 9999px;
    font-size: 0.85rem;
}

/* Source Link */
.source-link {
    margin: 1rem 0;
}

.source-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.source-link a:hover {
    text-decoration: underline;
}

/* Post Thumbnail in List */
.post-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.post-info {
    flex: 1;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .post-item {
        flex-direction: column;
    }

    .post-thumbnail {
        width: 100%;
        height: 180px;
    }
}
