/*
Theme Name: BDSMerx Typecho
Theme URI: http://bdsmerx.test/
Author: Site Custom
Description: WordPress migration of the original Typecho visual theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bdsmerx-typecho
Tags: block-styles, editor-style, wide-blocks
*/

:root {
    --bdsmerx-bg: #0d0e11;
    --bdsmerx-text: #e3e5f0;
    --bdsmerx-muted: #9b9ea5;
    --bdsmerx-primary: #d5c0d4;
    --bdsmerx-surface: #171a1f;
}

html {
    background: var(--bdsmerx-bg);
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bdsmerx-bg);
    color: var(--bdsmerx-text);
    font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

footer {
    box-sizing: border-box;
}

.site-topbar-lock,
.private-vault-modal-open {
    overflow: hidden;
}

.private-vault-modal-open {
    position: fixed;
    width: 100%;
}

.font-newsreader {
    font-family: "Newsreader", "Noto Serif SC", "Songti SC", serif;
}

.text-gradient-mist {
    background: linear-gradient(135deg, #514252 0%, #d5c0d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-mist {
    background: linear-gradient(135deg, #514252 0%, #d5c0d4 100%);
}

.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.icon-sm {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.text-on-primary {
    color: #4a3b4c;
}

.post,
.post-content,
#postContent {
    max-width: 100%;
}

main.max-w-screen-xl {
    width: min(1280px, calc(100% - 3rem));
    padding-left: 0;
    padding-right: 0;
}

.post-cover {
    aspect-ratio: 16 / 9;
}

.post-cover img {
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    main.max-w-screen-xl {
        width: min(100% - 2rem, 1280px);
        padding-top: 5.5rem;
    }

    #postTitle {
        max-width: 100%;
        font-size: clamp(1.85rem, 9vw, 2.35rem) !important;
        line-height: 1.18 !important;
        overflow-wrap: anywhere;
    }

    #titleUnderline {
        max-width: 100%;
    }

    .post-cover {
        margin-bottom: 2rem;
        border-radius: 0.5rem;
    }

    #postContent p,
    #postContent li {
        font-size: 1rem;
        line-height: 1.85;
        letter-spacing: 0;
    }

    footer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        text-align: center;
    }
}
