:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --text-primary: #e5e5e5;
    --text-secondary: #a0a0a0;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --text-muted: #6b7280;
    --card-bg: rgba(20, 20, 20, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.starry-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.05) 0%, transparent 50%),
        var(--bg-primary);
    z-index: -1;
}

.starry-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 40% 20%, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 60% 60%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.1), transparent);
    background-size: 300px 300px;
    animation: twinkle 12s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

main {
    min-height: 100vh;
    padding: 3rem 1.5rem;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem 0;
}

.title {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.narrative {
    margin: 4rem 0;
}

.chapter {
    margin-bottom: 4rem;
}

.chapter p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    color: var(--text-secondary);
    text-align: left;
}

.chapter p:last-child {
    margin-bottom: 0;
}

.epitaph {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    margin: 4rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.epitaph h2 {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent);
    text-align: center;
}

.epitaph p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.cta {
    text-align: center;
    margin: 4rem 0;
    padding: 2rem 0;
}

.cta p {
    font-size: 1.2rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

footer {
    text-align: center;
    margin-top: 5rem;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

footer p:first-child {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

footer small {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    main {
        padding: 2rem 1rem;
    }
    
    .chapter p,
    .epitaph p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .epitaph {
        padding: 2rem;
    }
}