body {
    font-family: 'Poppins', 'Inter', -apple-system-font, "Helvetica Neue", sans-serif;
    line-height: 1.7; /* Slight increase for readability */
    font-size: 18px;
    background: #f9f9f9; /* Softer background color */
    margin: 0;
    color: #3a343a;
    /*border-top: 4px solid #1692cc;*/
    /*padding: 0 20px;*/
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* Mobile */
@media only screen and (max-width: 900px) {
    body {
        padding: 0 1em;
    }
    body h1, body h2, body h3, body h4 {
        font-weight: bold;
        margin-top: 1.2em;
    }
    body h1 {
        font-size: 46px;
        margin-top: 50px;
        line-height: 1.3;
    }
    body h2 {
        font-size: 34px;
        margin-top: 50px;
    }
    body h3 {
        font-size: 24px;
        margin-top: 35px;
    }

    body p {
        text-align: justify;
    }
    body p {
        margin-bottom: 1.2em;
        text-align: justify;
    }
    body .nav ul li {
        margin-right: 15px;
    }
    body .intro {
        padding: 40px 0;
    }
    body .intro h1 {
        margin-top: 0.6em;
    }

    body img {
        max-width: 100%;
    }

    body {
        flex-direction: column-reverse;
    }
    .status {
        margin: 0 auto;
        width: 20rem;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .content {
        flex-grow: 1;
    }

    .status img {
        width: 80%;
        margin: 0 auto;
        margin-top: 1rem;
        display: block;
        height: auto;
        border-radius: 50%;
    }

    .name {
        text-align: center;
        font-weight: bold;
        font-size: 1.3rem;
    }

    .whoami {
        text-align: center;
    }

    .links {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0 0.5rem;
        color: #3a343a;
    }

    .menu {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    p:has(span.figure-number) {
        color: gray;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

}

/* Computer */
@media (min-width: 900px) {
    .status {
        margin-top: 10px;
        width: 20rem;
        margin-right: 1rem;
        /*padding: 1rem 2rem 1rem 1rem;*/
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .status img {
        width: 80%;
        margin: 0 auto;
        margin-top: 1rem;
        display: block;
        height: auto;
        border-radius: 50%;
    }

    .name {
        text-align: center;
        font-weight: bold;
        font-size: 1.3rem;
    }

    .whoami {
        text-align: center;
    }

    .links {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0 0.5rem;
        color: #3a343a;
    }

    .menu {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    .content {
        max-width: 1024px;
        flex-grow: 1;
    }

    p:has(span.figure-number) {
        color: gray;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

}

.menu li a {
    font-weight: bold;
}

body a {
    text-decoration: none;
    color: darkgreen;
}
body a:hover {
    color: darkgreen;
    text-decoration: underline;
    text-decoration: darkgreen underline;
}
body pre {
    background: #eee;
    border: 1px solid #ccc;
    padding: 10px;
}
body pre.src {
    overflow-y: auto !important;
    font-size: .9em;
}
body code {
    background: #eee;
    border: 1px solid #ccc;
    padding: 0px 4px;
    color: #666;
    overflow-x: auto;
    font-size: .9em;
}
body img {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    height: auto;
    max-width: 100%;
    text-align: center;
}
/*@media (max-width: 1024px) {
    body img {
        max-width: 100%;
    }
}*/
body img.no-border {
    border: none;
}
body img.rounded-border {
    border-radius: 20px;
}
body img.black-border {
    border: 2px solid black;
}
body img.spaced-border {
    border: 1px solid gray;
    padding: 15px;
}
body .tag {
    background: transparent;
    font-size: 0.6em;
}
body .tag span {
    background: darkgreen;
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
}
body .pubdate {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
    margin-top: -16px;
    text-align: right;
    border-bottom: 1px solid #e2e2e2;
}
body .pubdate p {
    display: inline;
    margin-right: 10px;
}
@media (max-width: 1024px) {
    body .pubdate {
        margin-top: 0;
        text-align: left;
    }
}
body .nav-blog {
    text-align: right;
}
body .org-info-js_info-navigation {
    background: #bbb;
}

body #content {
    margin-top: 10px;
}
body #postamble {
    font-size: 0.8em;
    line-height: 1.8em;
    margin-top: 50px;
    text-align: center;
    color: #aaa;
    padding: 15px 0;
    border-top: 1px solid #e2e2e2;
}
body #postamble a {
    color: #e9a390;
}

body .intro {
    padding-top: 20px;
    color: #BBB;
    text-align: center;
}
body .intro h1 {
    font-size: 42px;
    font-weight: bold;
    line-height: 1em;
    margin: .3em;
    padding: 0;
}
body .intro p {
    color: #aaa;
    font-size: 14px !important;
    text-align: center;
}
body .intro img {
    border-radius: 100%;
    width: 100px;
}
body .nav {
    text-align: center;
    margin-top: 30px;
    border-bottom: 1px solid #e2e2e2;
    font-size: 12px;
    text-transform: uppercase;
}
body .nav ul {
    list-style: none;
    padding: 0;
}
body .nav ul li {
    color: #999;
    display: inline-block;
    margin: 0;
}
body .nav ul li a {
    display: inline-block;
    padding-right: 6px;
    border-radius: 0;
    font-weight: normal;
    color: #6a6a6a;
}
body #disqus_thread {
    margin-top: 40px;
}
body .clearfix {
    clear: both;
}
/*@media (min-width: 800px) {
    body .contact {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        -moz-column-gap: 3em;
        -webkit-column-gap: 3em;
        column-count: 2;
        column-gap: 3em;
    }
}*/
body .timestamp {
    color: #aaa;
}

.org-center p {
    text-align: center;
}

/*.links {
    margin-top: 0.7em;
    opacity: 0.7;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
}*/

blockquote {
    border-left: 4px solid darkgreen;
    padding-left: 10px;
    margin-left: 0;
    font-style: italic;
    color: #333;
}

blockquote p {
    font-style: italic;
}

figcaption {
    text-align: center;
    font-style: italic;  /* Можно добавить, если нужен курсив */
}
