/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f0f0f;
    --surface: #1a1a2e;
    --card: #16213e;
    --accent: #e94560;
    --accent-light: #ff6b81;
    --text: #eaeaea;
    --text-muted: #a0a0b0;
    --radius: 12px;
    --container: 960px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 28px;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav a:hover {
    color: var(--accent-light);
}

/* === Hero === */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* === Posts Grid === */
main {
    flex: 1;
    padding: 60px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(233, 69, 96, 0.12);
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}
.read-more:hover {
    color: var(--accent-light);
}

/* === About === */
.about-section {
    background: var(--surface);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.about-section h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.about-section p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 24px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.copyright {
    margin-bottom: 8px;
}

.icp {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.icp a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.icp a:hover {
    color: var(--accent-light);
}

/* === Responsive === */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 12px 24px;
        gap: 8px;
    }
    .nav a {
        margin-left: 16px;
    }
    .nav a:first-child {
        margin-left: 0;
    }
}
