:root {
    --bg-color: #020617;
    --card-bg: rgba(30, 41, 59, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 30%);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

header {
    margin-bottom: 5rem;
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after {
    width: 100%;
}

main {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    margin-top: 8rem;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Home Section */
.home {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.home p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Post List */
.post-list h2 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-align: left;
}

.posts {
    display: grid;
    gap: 1.5rem;
}

.post-item-link {
    text-decoration: none;
    display: block;
}

.post-item {
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.post-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.post-item h3 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
}

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

.post-item .date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.post-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Post Detail */
.post-detail article {
    text-align: left;
}

.post-detail h1 {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 1rem;
}

.post-detail .meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    display: block;
}

.post-detail .content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-detail .content h2 {
    color: var(--text-primary);
    margin-top: 3rem;
    font-size: 1.75rem;
}

.post-detail .content p {
    margin-bottom: 1.5rem;
}

.back-link {
    margin-top: 4rem;
}

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

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

/* Technical elements */
code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }

    .post-detail h1 {
        font-size: 2.25rem;
    }

    .container {
        padding: 2rem 1rem;
    }
}