* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f1ecdf;
    color: #4f4a46;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.68;
}

a {
    color: #356bce;
    text-decoration: none;
}

a:hover {
    color: #8739cf;
    text-decoration: underline;
}

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

#header-image {
    height: 34px;
}

.wrap {
    width: min(960px, calc(100% - 34px));
    margin: 0 auto;
}

.site-header {
    background: transparent;
}

.header-grid {
    padding: 0 0 18px;
    text-align: center;
}

.brand {
    padding: 20px 0 18px;
}

.site-title {
    display: inline-block;
    color: #8739cf;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 8vw, 76px);
    font-style: italic;
    line-height: 1;
    text-shadow: 0 1px 0 #fff;
}

.site-title:hover {
    color: #8739cf;
    text-decoration: none;
}

.brand p {
    margin: 9px 0 0;
    color: #636363;
    font-size: 18px;
}

.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 auto;
    background: #f8fbfd;
    border: 1px solid #d7e6ef;
    width: fit-content;
    max-width: 100%;
}

.nav a {
    color: #636363;
    padding: 12px 18px;
    font-size: 15px;
    border-right: 1px solid #d7e6ef;
}

.nav a:last-child {
    border-right: 0;
}

.nav a:hover {
    background: #e3eff7;
    color: #3c3c3c;
    text-decoration: none;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 650px) 250px;
    gap: 34px;
    align-items: start;
    padding: 22px 0 48px;
}

.content-list,
.post-full,
.sidebar {
    min-width: 0;
}

.intro-card,
.post-card,
.post-full,
.widget,
.not-found {
    background: #fff;
    border: 1px solid #ded6ca;
    box-shadow: 0 1px 2px rgba(77, 63, 45, 0.08);
}

.intro-card {
    padding: 24px 28px;
    margin-bottom: 24px;
}

.intro-card h2,
.post-card h2,
.post-full h1,
.widget h3 {
    margin: 0;
    color: #4a4a4a;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: italic;
    line-height: 1.25;
}

.intro-card h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.intro-card p {
    margin: 0;
}

.post-card {
    display: block;
    margin-bottom: 24px;
    padding: 0;
}

.post-card .thumb {
    display: block;
    background: #e8e0d3;
    border-bottom: 1px solid #ded6ca;
}

.post-card .thumb img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.post-card-body {
    padding: 26px 30px 28px;
}

.post-card h2 {
    font-size: 31px;
    margin-bottom: 12px;
}

.post-card h2 a {
    color: #4a4a4a;
}

.post-card h2 a:hover {
    color: #8739cf;
}

.home-excerpt {
    margin-bottom: 4px;
}

.home-excerpt p,
.home-excerpt blockquote,
.home-excerpt pre,
.home-excerpt ul,
.home-excerpt ol {
    margin: 0 0 1.05em;
}

.home-excerpt :last-child {
    margin-bottom: 0;
}

.home-excerpt blockquote {
    padding-left: 18px;
    border-left: 3px solid #e6d8ef;
    color: #62566a;
}

.home-excerpt pre {
    white-space: pre-wrap;
}

.home-excerpt img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
}

.excerpt-fade {
    color: #777;
}

.date {
    display: inline-block;
    margin: 0 0 16px;
    padding: 7px 12px;
    background: #f8fbfd;
    color: #6b6b6b;
    border: 1px solid #e3eff7;
    font-size: 13px;
}

.more {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 13px;
    background: #f8fbfd;
    color: #6b6b6b;
    border: 1px solid #e3eff7;
    font-size: 14px;
}

.more:hover {
    background: #e3eff7;
    text-decoration: none;
}

.post-full {
    padding: 32px 36px;
}

.post-full h1 {
    font-size: clamp(34px, 5vw, 54px);
    margin-bottom: 14px;
}

.article-body :first-child {
    margin-top: 0;
}

.article-body p,
.article-body pre,
.article-body ul,
.article-body ol,
.article-body blockquote {
    margin: 0 0 1.24em;
}

.article-body pre,
.article-body blockquote {
    white-space: pre-wrap;
    font-family: Georgia, "Times New Roman", serif;
    color: #615b54;
    background: #fbf8f1;
    border-left: 4px solid #e1d6bb;
    padding: 14px 18px;
}

.article-body img {
    display: block;
    margin: 22px auto;
}

.article-body .tiled-gallery {
    display: none;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
    color: #4a4a4a;
    font-weight: 400;
    font-style: italic;
    line-height: 1.25;
}

.widget {
    padding: 20px;
    margin-bottom: 22px;
}

.widget h3 {
    color: #356bce;
    font-size: 23px;
    margin-bottom: 12px;
}

.widget p,
.widget li {
    color: #5d5650;
    font-size: 15px;
}

.widget ul {
    margin: 0;
    padding-left: 18px;
}

.widget li {
    margin: 0 0 9px;
}

.site-footer {
    background: #f8fbfd;
    border-top: 1px solid #d7e6ef;
    color: #6b6b6b;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-size: 14px;
}

.footer-grid p {
    margin: 0;
}

.not-found {
    padding: 40px;
    margin: 36px auto;
}

@media (max-width: 880px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .widget {
        margin-bottom: 0;
    }
}

@media (max-width: 620px) {
    #header-image {
        height: 18px;
    }

    .wrap {
        width: min(100% - 24px, 960px);
    }

    .brand {
        padding-top: 14px;
    }

    .brand p {
        font-size: 16px;
    }

    .nav {
        width: 100%;
    }

    .nav a {
        flex: 1 1 50%;
        border-bottom: 1px solid #d7e6ef;
        text-align: center;
    }

    .post-card-body,
    .intro-card,
    .post-full,
    .widget,
    .not-found {
        padding: 22px 18px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        display: block;
    }

    .footer-grid p + p {
        margin-top: 8px;
    }
}
