:root {
    --bg: #0b0d12;
    --bg-2: #12151d;
    --fg: #f2f4f8;
    --fg-muted: #9aa3b2;
    --accent: #6ea8fe;
    --accent-2: #8f7bff;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
}

.site-header__inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fg);
}

.site-nav {
    display: flex;
    gap: 20px;
}

.site-nav a {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--fg);
    text-decoration: none;
}

.site-main {
    flex: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    color: var(--fg-muted);
    font-size: 0.85rem;
    text-align: center;
}

.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.post-card__title {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.post-card__meta {
    color: var(--fg-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.post-card__excerpt {
    color: var(--fg-muted);
    line-height: 1.6;
}

.empty-state {
    color: var(--fg-muted);
    text-align: center;
    padding: 48px 24px;
}

.post-detail__title {
    font-size: 1.8rem;
    margin: 0 0 8px;
}

.post-detail__meta {
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.post-detail__body {
    line-height: 1.7;
}

.post-detail__body h1,
.post-detail__body h2,
.post-detail__body h3 {
    margin: 32px 0 12px;
    line-height: 1.3;
}

.post-detail__body p {
    margin: 0 0 16px;
}

.post-detail__body ul,
.post-detail__body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.post-detail__body blockquote {
    margin: 0 0 16px;
    padding: 4px 16px;
    border-left: 3px solid var(--border);
    color: var(--fg-muted);
}

.post-detail__body code {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
}

.post-detail__body pre {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
    margin: 0 0 16px;
}

.post-detail__body pre code {
    background: none;
    border: none;
    padding: 0;
}

.post-detail__body img {
    max-width: 100%;
    border-radius: 8px;
}

.post-detail__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
}

.post-detail__body th,
.post-detail__body td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}

.post-card__excerpt p {
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    color: var(--fg-muted);
}

.about {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about__photo {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    border: 1px dashed var(--border);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--fg-muted);
    background: var(--bg-2);
}

.about__photo span {
    font-size: 0.8rem;
    text-align: center;
}

.about__info {
    flex: 1;
    min-width: 0;
}

.about__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin: 0 0 8px;
}

.about__name {
    font-size: 1.6rem;
    margin: 0 0 4px;
}

.about__role {
    color: var(--fg-muted);
    margin: 0 0 32px;
}

.about__section {
    margin-bottom: 28px;
}

.about__section h2 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--fg);
}

.about__placeholder {
    color: var(--fg-muted);
    font-style: italic;
    line-height: 1.6;
}

.about__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 560px) {
    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f4f6fb;
        --bg-2: #ffffff;
        --fg: #171a21;
        --fg-muted: #5b6472;
        --border: rgba(15, 23, 42, 0.08);
    }
}
