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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.8);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

header a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

header a:hover {
    color: #64ffda;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.1rem;
    color: #a8b2d1;
    font-style: italic;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h3 a {
    color: #64ffda;
    text-decoration: none;
}

h3 a:hover {
    color: #ffffff;
}

p {
    margin-bottom: 1rem;
    color: #ccd6f6;
}

strong {
    color: #ffffff;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: #ccd6f6;
}

ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #64ffda;
}

.insight {
    font-style: italic;
    color: #64ffda;
    font-size: 1.05rem;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.05);
    border-left: 3px solid #64ffda;
    margin: 1rem 0;
}

.motto {
    font-style: italic;
    color: #a8b2d1;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.links {
    margin-bottom: 1rem;
}

.links a {
    display: inline-block;
    margin: 0 1rem;
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.credit {
    color: #8892b0;
    font-size: 0.9rem;
}

/* Two-column layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.main-content {
    min-width: 0;
}

.writing-panel {
    background: rgba(100, 255, 218, 0.08);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(100, 255, 218, 0.2);
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.writing-panel h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.view-all {
    display: inline-block;
    margin-top: 1rem;
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.post-list {
    margin-top: 1rem;
}

.post {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.6);
    border-left: 3px solid #64ffda;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(3px);
}

.post:last-child {
    margin-bottom: 0;
}

.post h3 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.post-desc {
    font-size: 0.85rem;
    color: #a8b2d1;
    margin: 0;
}

.post-meta {
    color: #8892b0;
    font-size: 0.9rem;
    margin: 0;
}

/* Blog post pages */
article {
    color: #ccd6f6;
}

article h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

article h3 {
    color: #64ffda;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

article .date {
    color: #8892b0;
    font-style: italic;
    margin-bottom: 2rem;
}

article a {
    color: #64ffda;
    text-decoration: none;
}

article a:hover {
    color: #ffffff;
    text-decoration: underline;
}

article ul {
    margin: 1rem 0;
}

article hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.post-nav a {
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-nav a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.subtitle {
    color: #8892b0;
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .writing-panel {
        position: static;
        max-height: none;
        order: -1; /* Move to top on mobile */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .links a {
        display: block;
        margin: 0.5rem 0;
    }
}
