/* Index page (home) — welcome landing page */

/* --- Welcome Section --- */

.welcome-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.welcome-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* --- Section Headings --- */

.section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Featured Post Section --- */

.featured-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.featured-post {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.featured-content {
    padding: 32px;
}

.featured-meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.featured-meta time {
    color: var(--text-secondary);
}

.featured-category {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.featured-post h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

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

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

.featured-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.featured-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.read-more {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    display: inline-block;
    padding: 8px 0;
}

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

/* --- Link Grid --- */

.links-section {
    margin-bottom: 48px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.link-card {
    display: block;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.15s;
}

.link-card:hover {
    border-color: var(--link);
    text-decoration: none;
}

.link-card:visited {
    color: inherit;
}

.link-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.link-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Footer --- */

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--link);
}

.credits {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    .welcome-section h2 {
        font-size: 1.4rem;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-post h3 {
        font-size: 1.3rem;
    }

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