/*
Theme Name: Kari Sperring
Description: Modernised theme based on the original karisperring.com design.
Version: 1.0
*/

:root {
    --ks-blue: #314c95;
    --ks-dark-blue: #232e4b;
    --ks-text: #333333;
    --ks-border: #d7dce8;
    --ks-background: #f5f6f8;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: var(--ks-text);
    background: var(--ks-background);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: #003366;
    text-decoration: underline;
}

a:hover {
    color: #000;
}

.site {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    background: #fff;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--ks-blue);
}

.site-logo {
    width: 130px;
    height: auto;
    flex: 0 0 auto;
}

.site-title {
    margin: 0;
    color: var(--ks-dark-blue);
    font-size: 1.7rem;
    line-height: 1.2;
}

.site-description {
    margin: 6px 0 0;
    color: var(--ks-blue);
    font-size: 0.95rem;
}

.site-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    padding: 28px;
}

.content-area {
    min-width: 0;
}

.sidebar {
    border-left: 1px solid var(--ks-border);
    padding-left: 24px;
}

.entry-date {
    margin: 28px 0 4px;
    color: #555;
    font-size: 1rem;
    text-align: right;
}

.entry-title {
    margin: 0 0 16px;
    padding: 0 0 5px;
    border-bottom: 2px solid var(--ks-blue);
    color: #222;
    font-size: 1.3rem;
    line-height: 1.35;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--ks-blue);
}

.entry-content {
    font-size: 1rem;
}

.entry-content p {
    margin: 0 0 1em;
}

.entry-footer {
    margin: 14px 0 32px;
    padding-bottom: 10px;
    color: #555;
    font-size: 0.78rem;
}

.sidebar-nav {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.sidebar-nav li {
    margin: 0 0 8px;
}

.sidebar-nav a {
    color: var(--ks-dark-blue);
    font-weight: bold;
    text-decoration: none;
}

.sidebar-nav a:hover {
    text-decoration: underline;
}

.author-photo {
    width: 100%;
    max-width: 210px;
    height: auto;
    display: block;
}

.photo-credit,
.book-title {
    margin: 5px 0 20px;
    color: var(--ks-dark-blue);
    font-size: 0.78rem;
}

.book-cover {
    display: block;
    width: 110px;
    height: auto;
}

.site-footer {
    padding: 18px 28px 26px;
    border-top: 1px solid var(--ks-border);
    color: var(--ks-dark-blue);
    font-size: 0.75rem;
}

.entry-title-placeholder {
    margin: 0 0 16px;
    border-bottom: 2px solid var(--ks-blue);
}

@media (max-width: 760px) {
    .site {
        width: 100%;
    }

    .site-header {
        align-items: flex-start;
        padding: 20px;
    }

    .site-logo {
        width: 95px;
    }

    .site-layout {
        display: block;
        padding: 20px;
    }

    .sidebar {
        margin-top: 40px;
        padding: 30px 0 0;
        border-top: 1px solid var(--ks-border);
        border-left: 0;
    }

    .entry-date {
        text-align: left;
    }
}
