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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin-bottom: 2px;
}

.main-nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
}

.main-nav a {
    margin-right: 25px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1.05em;
    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.6;
}

main {
    min-height: 60vh;
}

h1 {
    margin-bottom: 20px;
    font-size: 2em;
}

h2 {
    margin: 30px 0 20px;
    font-size: 1.8em;
}

article {
    margin-bottom: 30px;
}

.home {
    max-width: 800px;
    margin: 0 auto;
}

.home .ascii-video-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.home .ascii-surface {
    display: inline-block;
    margin: 0 auto;
}

.home p {
    margin: 15px 0;
    line-height: 1.8;
}

.home .contact-links {
    margin-top: 30px;
    text-align: center;
}

.home .contact-links a {
    color: #000;
    text-decoration: underline;
    margin: 0 5px;
}

.home .contact-links a:hover {
    opacity: 0.7;
}

footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: center;
    color: #666;
}

.list article {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/* ASCII Video Styles */
.ascii-surface {
    font-family: monospace;
    white-space: pre;
    line-height: 1;
    background: transparent;
    color: #fff;
    padding: 0;
    overflow: visible;
    margin: 0;
    text-align: center;
    font-size: 0.5rem;
}

.ascii-invert-on-light {
    filter: invert(1);
}

@media (prefers-color-scheme: dark) {
    .ascii-invert-on-dark {
        filter: invert(1);
    }
}

/* TIL / Writings Page Styles */
.til-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.til-header {
    margin-bottom: 30px;
}

.til-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.til-description {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

.til-content {
    margin-top: 40px;
}

.til-section {
    margin-bottom: 50px;
}

.til-section h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.til-list {
    list-style: none;
    padding: 0;
}

.til-list li {
    margin-bottom: 25px;
    padding-left: 0;
}

.til-list a {
    display: block;
    color: #000;
    text-decoration: none;
    transition: all 0.2s ease;
}

.til-list a:hover {
    text-decoration: none;
}

.til-list a:hover .til-title {
    text-decoration: underline;
}

.til-date {
    display: inline-block;
    font-size: 0.9em;
    color: #999;
    font-family: monospace;
    margin-right: 15px;
}

.til-title {
    font-size: 1.1em;
    font-weight: 500;
    color: #000;
}

.til-excerpt {
    margin-top: 8px;
    margin-left: 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.blog-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

.blog-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.blog-meta {
    font-size: 0.95em;
    color: #666;
}

.blog-meta time {
    font-family: monospace;
    margin-right: 15px;
}

.blog-categories {
    display: inline-block;
}

.blog-category {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.9em;
    margin-right: 5px;
}

.blog-content {
    line-height: 1.8;
    color: #333;
}

.blog-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #000;
}

.blog-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #000;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content ul, .blog-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.back-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}
