body {
    font-family: sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: #fff;
}

pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    background: #1e1e1e;
    color: #f8f8f2;
    padding: 1.2em 0.8em;
    border-radius: 0.5em;
    box-sizing: border-box;
    font-size: 0.9em;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.content-sidebar-container {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 1rem;
}

.content-sidebar-container>* {
    min-width: 0;
}

.post-content iframe,
.post-content img,
.post-content video {
    max-width: 100%;
}

.post-content img,
.post-content video {
    height: auto;
    display: block;
    padding-left: 10px;
}

.sidebar {
    border-left: 2px solid #ddd;
    padding-left: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 800px) {
    .content-sidebar-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 1;
        border-left: none;
        border-top: 2px solid #ddd;
        padding: 0 2em;
    }

    .sidebar-top {
        order: -1;
        border-left: none;
        border-bottom: 2px solid #ddd;
        padding-left: 0;
        padding-bottom: 1rem;
    }
}

.logo-subtitle-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.subtitle-group {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.logo-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.logo-main,
.logo-thorn {
    width: 100%;
}

.logo-thorn {
    margin-top: -30px;
}

@media (max-width: 768px) {
    .logo-subtitle-container {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .logo-group {
        align-items: flex-start;
    }

    .subtitle-group {
        width: 100%;
    }
}

.column-links {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: right;
}

.column-links a {
    margin: 0 0.2rem;
    line-height: 2.4em;
}

/* POST LIST ITEMS */
.post-list-item {
    display: flex;
    gap: 1rem;
    padding: 0.6rem 0;
    align-items: stretch;
    position: relative;
}

/* full click area */
.item-full-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.post-list-item a:not(.item-full-link) {
    position: relative;
    z-index: 10;
}

.post-list-item .item-thumb {
    width: 140px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 6px;
}

.post-list-item .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.post-list-item .item-main-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 40px;
}

.post-list-item:has(.item-thumb) .item-main-group {
    min-height: 100px;
}

.post-list-item .item-title-author-group {
    position: relative;
}

.item-title-author-group .item-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
}

.item-title-author-group .item-author {
    position: absolute;
    top: 0;
    right: -24px;
    width: 24px;
}

.item-title-author-group .item-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
    display: block;
}

.post-list-item .item-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.35rem;
    line-height: 1.4;
    overflow: hidden;
    max-height: calc(100px - 40px);
}

.item-extra-group {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.item-extra-group .item-date {
    margin-right: auto;
    white-space: nowrap;
    font-size: 0.65rem;
    opacity: 0.7;
}

.item-extra-group .item-column {
    margin-right: 24px;
}

.month-nav {
    margin-bottom: 1em;
    font-size: 0.9em;
    display: flex;
}

.month-nav a {
    text-decoration: none;
    padding: 0 0.5em;
}

.month-nav .nav-next {
    margin-left: auto;
}

.year-calendar {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.year-calendar td {
    border: 1px solid #e6e6e6;
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
    width: 33.333%;
    min-height: 90px;
    background: #fff;
}

.year-calendar .month-cell.empty {
    background: #f7f7f7;
    color: #9b9b9b;
}

.year-calendar .month-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.year-calendar .month-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.year-calendar .month-count {
    font-size: 0.85rem;
    color: #666;
}

.year-calendar .mute {
    color: #9b9b9b;
}

.month-calendar .has-post {
    font-weight: bold;
}

.author-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.author-info-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    order: 2;
}

.author-info-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    order: 1;
    max-width: 65%;
    text-align: left;
}

.author-info-description {
    line-height: 1.4;
}

.author-info-site {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.4em;
}

.author-info-site a {
    color: inherit;
    text-decoration: none;
}

.author-info-site a:hover {
    text-decoration: underline;
}

.post-detail-meta-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 800px) {
    .post-detail-meta-container {
        flex-direction: row;
        align-items: flex-start;
        padding: 1em 1em;
    }

    .post-detail-meta-container .meta-left {
        flex: 1;
    }

    .post-detail-meta-container .meta-right {
        flex: 0 0 auto;
        margin-left: 1rem;
    }

    .post-detail-meta-container .author-info {
        flex-direction: column;
    }
}

@media (max-width: 475px) {
    .post-detail-meta-container {
        flex-direction: column;
    }
}

.comments-container {
    border-top: 2px solid #ddd;
    margin-top: 2em;
}

.author-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.25rem 0;
}

.author-list .author-description {
    flex: 2;
    text-align: left;
    word-break: break-word;
    margin-right: 1rem;
    font-size: small;
    max-width: 300px;
}

.author-list .author-name {
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 20px;
}

.author-list .author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}





.webrings-wrapper {
    width: fit-content;
    margin: 1rem auto;
}

.webrings-wrapper h4 {
    margin: 0 0 0.4rem 0;
    text-align: left;
    justify-content: left;
}

.webrings {
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 0.35rem;
    padding: 0.5rem 0.5rem;
    background: #f7f7f9;
    border: 2px solid #ddd;
    border-radius: 10px;
}

.webrings a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.2rem;
    border-radius: 6px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.webrings a:hover {
    background: #ece8ff;
    transform: translateY(-2px);
}

.webrings img {
    height: 31px;
    width: auto;
}

footer {
    display: flex;
    flex-direction: column;
    font-size: small;
    font-weight: bold;
    justify-content: left;
}

footer .copyright-text {
    margin-left: auto;
}

.loading-placeholder {
    width: 90%;
}