:root {
    --bg-color: #070606;
    --text-color: #e0e0e0;
    --text-bright: #ffffff;
    --link-color: #80d8ff;
    --border-color: #222;
    --card-bg: #050505;
    --code-bg: #111;
    --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 700px;
    padding: 3rem 1.5rem;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

/* Link & Typography */
a { color: var(--link-color); text-decoration: none; transition: 0.2s; }
h1, h2, h3, h4 { color: var(--text-bright); font-weight: 800; line-height: 1.2; }

/* Home */
.home-header { margin-bottom: 3rem; }
.site-title-large { font-size: 2rem; letter-spacing: -0.04em; margin: 0; }
.site-title-large a { color: var(--text-bright) !important; }
.site-title-large a:hover { color: var(--link-color) !important; }

.post-list { display: flex; flex-direction: column; gap: 1.2rem; }
.post-card { border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 12px; background: var(--card-bg); transition: 0.2s; }
.post-card:hover { border-color: var(--link-color); transform: translateY(-2px); }
.post-link-card { font-size: 1.25rem; font-weight: 700; display: block; margin-top: 0.4rem; }
.date { font-size: 0.85rem; opacity: 0.4; text-transform: uppercase; letter-spacing: 0.05em; }

/* Article */
.back-home { font-size: 0.9rem; opacity: 0.5; margin-bottom: 1rem; display: block; }
.entry-title { font-size: 2.2rem; margin-bottom: 0.5rem; letter-spacing: -0.03em; color: var(--text-bright); }
.entry-date { display: block; margin-bottom: 3rem; opacity: 0.5; }

/* Content Details */
.content h2 { font-size: 1.8rem; margin: 3.5rem 0 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.content h3 { font-size: 1.4rem; margin: 2.5rem 0 0.8rem; }
.content p { margin-bottom: 1.5rem; }
blockquote { border-left: 3px solid var(--link-color); margin: 2rem 0; padding: 0.8rem 1.5rem; background: #0a0a0a; font-style: italic; }

/* Highlighting */
.highlight { background: var(--code-bg) !important; border-radius: 12px; margin: 2rem 0; border: 1px solid var(--border-color); overflow: hidden; }
.highlight pre { background: transparent !important; padding: 1.2rem; margin: 0; overflow-x: auto; }
.highlight code { background: transparent !important; border: none !important; padding: 0 !important; color: #f8f8f2; }
:not(pre) > code { background: #222; padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.9em; color: var(--link-color); }

/* Images */
.content img { max-width: 100%; height: auto; display: block; margin: 2.5rem auto; border-radius: 8px; cursor: zoom-in; transition: 0.3s; }
.content img.zoomed { transform: scale(1.05); cursor: zoom-out; z-index: 10; position: relative; }

/* Footer */
.site-footer {
    margin: 3rem auto 3rem;
    max-width: 700px;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    font-size: 0.85rem;
    opacity: 0.5;
    margin: 0;
}

.mini-pagination {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #0a0a0a;
    overflow: hidden;
}

.p-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    color: var(--link-color);
    text-decoration: none;
    transition: 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-btn:hover:not(.disabled) {
    background: var(--link-color);
    color: #000;
}

.p-btn.disabled {
    opacity: 0.15;
    cursor: not-allowed;
}

.p-info {
    font-size: 0.75rem;
    padding: 0 1rem;
    height: 100%;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 700;
    min-width: 55px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    body { padding: 2rem 1.2rem; font-size: 17px; }
    .footer-container {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }
    .site-footer { margin-top: 4rem; padding-bottom: 3rem; }
}