
/* General */

body {
    background-color: #f5f6f8;
    color: #292d32;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #315d80;
}

a:hover {
    color: #1d3c56;
}


/* Header */

.site-header {
    background-color: #24282d;
    color: #ffffff;
}

.site-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
}

.site-subtitle {
    margin-top: 0.75rem;
    color: #d5d9de;
    font-size: 1.1rem;
}


/* Navigation */

.site-nav {
    background-color: #343a40;
}

.site-nav .navbar-brand {
    font-weight: 700;
}

.site-nav .nav-link {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.site-nav .nav-link:hover {
    color: #ffffff;
}


/* Main content cards */

.content-card,
.sidebar-card {
    background-color: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    padding: 1.75rem;
}

.content-card h2 {
    margin-bottom: 1.25rem;
    color: #252a30;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.content-card h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.8rem;
    color: #343a40;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.45;
}

.content-card h2 + h3 {
    margin-top: 0;
}

.content-card ul {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.section-divider {
    margin: 2rem 0;
    border-color: #e2e5e9;
    opacity: 1;
}


/* Chess diagrams */

.chess-figure {
    margin: 1.75rem auto;
    text-align: center;
}

.chess-diagram {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 440px;
    margin: 0 auto;
    object-fit: contain;
}

.chess-figure figcaption {
    max-width: 540px;
    margin: 0.8rem auto 0;
    color: #68717b;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* Highlighted quotation */

.chess-quote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background-color: #f5f6f8;
    border-left: 4px solid #667887;
    color: #343a40;
}


/* Sidebar */

.sidebar-card {
    padding: 1.35rem;
}

.sidebar-title {
    margin: 0 0 1.25rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e6e9ec;
    font-size: 1.3rem;
    font-weight: 700;
}

.article-link {
    display: block;
    margin-bottom: 0.7rem;
    padding: 0.8rem 0.9rem;
    background-color: #f5f6f8;
    border: 1px solid #e4e7ea;
    border-radius: 5px;
    color: #343a40;
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color 0.2s ease;
}

.article-link:last-child {
    margin-bottom: 0;
}

.article-link:hover {
    background-color: #e9edf1;
    color: #1d3c56;
}
/* Responsive and centered images on articles */
```css
/* Centered, responsive article images */
```css
.article-image {
    display: block;
    width: 500px;
    height: 300px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.article-figure .figure-caption {
    text-align: center;
}
``````

/* Footer */

.site-footer {
    margin-top: 1rem;
    background-color: #24282d;
    color: #d5d9de;
}

.site-footer small {
    color: #b9c0c7;
}


/* Mobile adjustments */

@media (max-width: 991.98px) {
    .sidebar-card {
        margin-top: 0;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .content-card,
    .sidebar-card {
        padding: 1.2rem;
    }

    .content-card h2 {
        font-size: 1.55rem;
    }

    .content-card h3 {
        font-size: 1.2rem;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    .chess-diagram {
        max-height: 360px;
    }
}
```css
/* Responsive, consistently sized chess diagrams */
.chess-figure {
    margin: 1.5rem 0;
    text-align: center;
}

.chess-diagram {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: contain;
    margin: 0 auto;
}

.chess-figure figcaption {
    max-width: 600px;
    margin: 0.75rem auto 0;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

/* Smaller screens */
@media (max-width: 576px) {
    .chess-diagram {
        height: 260px;
    }
}
```
