:root {
    --primary-color: #1a1a2e;
    --accent-color: #c4524c;
    --text-color: #2d3436;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background: #ffffff;
}

/* Sticky Header Styles - Floating Rounded Box */
.site-header {
    position: sticky;
    top: 1.5rem;
    z-index: 1000;
    padding: 0 2rem;
    pointer-events: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.site-header.scrolled .header-container {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 2rem;
}

.site-logo {
    font-family: 'Crimson Pro', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1;
}

.site-logo:hover {
    color: var(--accent-color);
}

.site-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Main Content Area */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 3rem 2rem;
}

/* Article Grid (Homepage) */
.articles-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.article-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover .article-image {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.article-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h2 a:hover {
    color: var(--accent-color);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.article-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
    transition: gap 0.3s ease;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.read-more:hover::after {
    margin-left: 0.75rem;
}

/* Article Page Styles */
.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-full-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-body h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.article-body h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body blockquote {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--light-gray);
    border-radius: 0 8px 8px 0;
}

.article-body ol, .article-body ul {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

/* Page Content Styles (About, How I Help) */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.page-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.page-content h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content blockquote {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--light-gray);
    border-radius: 0 8px 8px 0;
}

.page-content ul {
    margin: 1.5rem 0 1.5rem 2rem;
}

.page-content li {
    margin-bottom: 0.75rem;
}

.about-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Sidebar */
.sidebar-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.sidebar-card {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sidebar-card-content {
    padding: 1.5rem;
}

.sidebar-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.sidebar-card a {
    text-decoration: none;
    color: inherit;
}

/* Bio Section */
.bio-section {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    align-items: start;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.bio-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.bio-content h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.bio-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 4rem;
}

.site-footer h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.site-footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        top: 1rem;
        padding: 0 1rem;
    }

    .header-container {
        border-radius: 12px;
    }

    .header-top {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .main-navigation {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .article-header h1,
    .page-header h1 {
        font-size: 2rem;
    }

    .article-full-image {
        height: 300px;
    }

    .bio-section {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .sidebar-section {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding-top: 10rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }