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

body {
    display: flex;
    justify-content: center;
}

.app {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

header {
    display: flex;
    padding: 10px;
    gap: 12px;
    align-items: center;
    font-size: 1.1rem;
    background-color: rgb(var(--mdui-color-surface-container));
    white-space: nowrap;
    overflow-x: auto;
}

main, .moments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

main {
    padding: 10px;
}

.title {
    display: flex;
    column-gap: 10px;
    margin-right: auto;
}

.banner img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.banner {
    position: relative;
}

.personal-card {
    display: flex;
    gap: 12px;
    position: absolute;
    bottom: -23px;
    left: 33px;
}

.personal-card mdui-avatar {
    width: 65px;
    height: 65px;
}

.personal-card .intro {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.personal-card .intro * {
    width: fit-content;
}

.personal-card .intro .desc {
    opacity: .9;
    font-size: .9rem;
}

.personal-card .intro .name {
    font-size: 1.6rem;
    color: #e6e1e5;
    font-weight: 700;
}

@media screen and (max-width: 400px) {
    .personal-card .intro .name {
        font-size: 1.2rem;
    }
    .personal-card .intro .desc {
        font-size: .8rem;
    }
    .personal-card {
        left: 10px;
        gap: 8px;
    }
    .personal-card .intro * {
        max-width: calc(100vw - 120px);
    }
    .subscribe-btn {
        bottom: 20px !important;
        width: 77px !important;
        height: auto !important;
    }
}

.subscribe-btn {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: auto;
    height: 32px;
}

.show-comment-btn {
    width: 100%;
    text-align: center;
}

.moment-text {
    line-height: 2;
}

.moment-text img {
    width: 100%;
    margin: 20px 0;
}

.moment-text a {
    color: rgb(var(--mdui-color-primary));
}

.moment-text a:active {
    text-decoration: none;
}

.moment-text a:focus {
    outline: 1px dashed rgb(var(--mdui-color-primary));
}

main mdui-card {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

mdui-divider {
    background-color: rgb(var(--mdui-color-on-surface-variant));
    opacity: .17;
}

.moment-details .datetime {
    opacity: .76;
    font-size: .8rem;
    line-height: 1.5;
}

.moment-details {
    display: flex;
    column-gap: 20px;
}

.like-btn, .comment-btn {
    width: 20px;
    height: 20px;
    font-size: 1rem;
}

::selection {
    background: #333;
    color: #fff;
}

.sort-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.giscus-wrapper {
    display: none;
    margin-top: 20px;
}

footer {
    padding: 10px;
    margin-bottom: 70px;
}

:root {
    scroll-behavior: smooth;
}

.main__failure {
    display: flex;
    align-items: center;
    opacity: .8;
    justify-content: center;
    gap: 1em;
    margin-top: 2em;
}

.main__failure__desc {
    font-size: .7em;
}

.main__failure mdui-icon {
    font-size: 1em;
}