@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    position: relative;
}

body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

body > header {
    background-color: transparent;
    border-bottom: none;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo a {
    color: #333;
    text-decoration: none;
}

.logo a:hover {
    text-decoration: underline;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #000;
}

.hero {
    min-height: 80vh; /* Slightly reduced from 100vh for better balance */
    display: flex;
    align-items: center;
    padding: 80px 0;
    background-color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
}

.animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.tagline {
    font-size: 20px;
    color: #ff6b00; /* Orange color */
    margin-bottom: 30px;
    font-weight: 400;
    font-style: italic;
}

.bio p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

.bio a {
    color: #0000EE;
    text-decoration: underline;
}

.bio a:hover {
    text-decoration: none;
}

.bio a.go-link {
    color: #00ADD8;
}

.bio a.go-link:hover, .bio a.liet-link:hover {
    cursor: help;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1200px;
}
.post-item {
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.post-item:last-child {
    border-bottom: none;
}

.post-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 0;
    font-family: 'Inter', monospace;
    letter-spacing: 0.02em;
    min-width: 100px; /* Ensure alignment */
    flex-shrink: 0;
}

.post-link {
    display: inline-block;
    color: #111;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s;
    line-height: 1.4;
}

.post-link:hover {
    color: #ff6b00;
}

.archive-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    margin-left: 10px;
}

.archive-link:hover {
    text-decoration: underline;
    color: #333;
}

footer {
    background-color: white;
    padding: 60px 0;
    border-top: 1px solid #eaeaea;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #000;
}

.copyright {
    color: #888;
    font-size: 14px;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 36px;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .container {
        padding: 0 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Additional Text Formatting */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 15px;
}

.blog-content th, .blog-content td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: left;
}

.blog-content th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.blog-content blockquote {
    border-left: 3px solid #ff6b00;
    margin: 0 0 25px 0;
    padding-left: 20px;
    color: #666;
    font-style: italic;
}

.blog-content mark {
    background-color: rgba(255, 107, 0, 0.2);
    color: #333;
    padding: 0 2px;
    border-radius: 2px;
}

.blog-content kbd {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
    color: #333;
    display: inline-block;
    font-size: 0.85em;
    font-family: 'Inter', monospace;
    line-height: 1.4;
    padding: 0 4px;
    white-space: nowrap;
}

.blog-content u {
    text-decoration: underline;
    text-decoration-color: #ff6b00;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 18px;
    transition: background-color 0.3s, opacity 0.3s;
    opacity: 0.7;
}

#backToTop:hover {
    background-color: #ff6b00;
    opacity: 1;
}

/* Additional Formatting Elements */
.blog-content del,
.blog-content s {
    text-decoration: line-through;
    color: #999;
    opacity: 0.7;
}

.blog-content small {
    font-size: 0.85em;
    color: #666;
}

.blog-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 40px 0;
}

.blog-content dl {
    margin-bottom: 25px;
}

.blog-content dt {
    font-weight: 600;
    color: #333;
    margin-top: 15px;
    margin-bottom: 5px;
}

.blog-content dd {
    margin-left: 20px;
    margin-bottom: 10px;
    color: #555;
}

/* More Advanced Formatting Elements */
.blog-content abbr {
    text-decoration: underline dotted;
    text-decoration-color: #ff6b00;
    cursor: help;
}

.blog-content sup {
    font-size: 0.7em;
    vertical-align: super;
    color: #ff6b00;
}

.blog-content sub {
    font-size: 0.7em;
    vertical-align: sub;
    color: #666;
}

.blog-content details {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #fafafa;
}

.blog-content summary {
    cursor: pointer;
    font-weight: 600;
    color: #333;
    user-select: none;
    margin-bottom: 10px;
}

.blog-content summary:hover {
    color: #ff6b00;
}

.blog-content details[open] summary {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-content figure {
    margin: 30px 0;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.blog-content figcaption {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.blog-content cite {
    font-style: italic;
    color: #555;
}

.blog-content var {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    font-style: italic;
    color: #d63384;
    background-color: #f8f8f8;
    padding: 2px 4px;
    border-radius: 3px;
}

.blog-content samp {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #333;
    border: 1px solid #ddd;
}
