/* === CLEAN, COMPACT, MINIMALIST STYLES === */
:root {
    --bg-color: #f6f6ef;
    --text-color: #222;
    --link-color: #444;
    --link-hover-color: #000;
    --border-color: #ddd;
    --header-bg: #ff6600;
}

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

body {
    font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.814rem;
    line-height: 1.265;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 13.2px;
}

header {
    background-color: var(--header-bg);
    padding: 6.6px 13.2px;
    margin-bottom: 14.3px;
    border-radius: 4px;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.title-row {
    display: flex;
    align-items: baseline;
    gap: 3.3px;
}

.sep {
    color: rgba(255,255,255,0.95);
    opacity: 0.9;
}

.header-left h1 {
    margin: 0;
}

.header-left h1 a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1638rem;
}

.site-tag {
    color: rgba(255,255,255,0.9);
    font-size: 0.748rem;
    opacity: 0.95;
}

.site-tag a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}

.main-nav {
    margin: 5.5px 0 0 0;
    padding: 0;
    display: flex;
    gap: 11px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.836rem;
    text-transform: lowercase;
    position: relative;
    padding: 0 3.3px;
    transform: translateX(-3.85px);
    border-radius: 0;
    background: transparent;
    border: none;
}

.main-nav a:hover {
    text-decoration: underline;
}

nav {
    display: flex;
    gap: 13.2px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.792rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 1;
}

h2 {
    font-size: 1.012rem;
    margin-bottom: 4.4px;
    font-weight: 600;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 4.4px;
    padding: 0;
    margin-bottom: 8.8px;
}

.post {
    padding: 3.3px;
    border-bottom: 1px solid var(--border-color);
}

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

.post h3 {
    font-size: 0.836rem;
    margin-bottom: 2.2px;
}

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

.post h3 a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.post time {
    font-size: 0.66rem;
    color: #666;
    display: block;
    margin-bottom: 2.2px;
}

.post p {
    font-size: 0.726rem;
    color: #444;
    line-height: 1.32;
}

#about {
    margin-top: 17.6px;
    padding: 8.8px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* About Popup Styles */
.about-key {
    color: var(--header-bg);
}

.about-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-popup {
    background: rgba(40, 40, 40, 0.95);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10001;
    width: 100%;
    max-width: 420px;
    min-width: 320px;
    padding: 20px 24px 18px 24px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    position: relative;
}

.about-content p {
    font-size: 0.814rem;
    color: #e0e0e0;
    margin-top: 0;
    line-height: 1.65;
}

.about-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
    width: 100%;
}

.about-email {
    color: rgba(255,255,255,0.85);
    font-size: 0.726rem;
    text-decoration: none;
    opacity: 0.9;
}

.about-email:hover {
    opacity: 1;
    text-decoration: underline;
}

.about-location {
    color: rgba(255,255,255,0.75);
    font-size: 0.726rem;
    opacity: 0.85;
    font-style: italic;
}

.about-close {
    margin-top: 2px;
    margin-left: 0;
    background: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: inherit;
    font-weight: 700;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    opacity: 0.88;
    transition: background 0.2s, opacity 0.2s;
    text-align: center;
    line-height: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.about-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.10);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 11px;
    }

    header {
        padding: 8.8px;
    }

    h1 {
        font-size: 0.968rem;
    }

    .header-left h1 a {
        font-size: 0.968rem;
    }

    .title-row {
        align-items: flex-start;
        gap: 2.2px;
    }

    nav {
        gap: 11px;
    }

    .header-left {
        gap: 4.4px;
    }

    .main-nav {
        gap: 6.6px;
        flex-wrap: wrap;
    }

    .main-nav a {
        font-size: 0.748rem;
    }

    .site-tag {
        font-size: 0.66rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --link-color: #b4b4b4;
        --link-hover-color: #ffffff;
        --border-color: #333;
    }

    #about {
        background: #242424;
    }
}