
:root {
    --blue-dark: #172b40;
    --blue-button: #24577d;
    --blue-hover: #3479a8;

    --page-background: #121a23;
    --header-background: #172635;
    --content-background: #202c38;
    --content-border: #344454;

    --text: #d5dee7;
    --text-muted: #9aabba;
    --heading: #e6edf5;
    --link: #70baff;
    --link-hover: #a3d2ff;

    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

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

/* Main header */
header {
    background: var(--header-background);
    color: white;
    padding: 24px 20px 18px;
    border-bottom: 1px solid var(--content-border);
}

.header-inner {
    max-width: 1200px;
    margin: auto;
}

.site-title {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
    color: #f0f5fa;
}

.site-description {
    margin: 4px 0 18px;
    color: var(--text-muted);
}

/* Top navigation buttons */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

nav a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--blue-button);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.2s ease;
}

nav a:hover,
nav a:focus {
    background: var(--blue-hover);
}

/* Page layout */
.container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: start;
}

/* Main article */
main,
.sidebar-box {
    background: var(--content-background);
    border: 1px solid var(--content-border);
    border-radius: 7px;
    padding: 28px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    min-width: 0;
}

h1, h2, h3 {
    color: var(--heading);
    line-height: 1.3;
}

h1 {
    margin-top: 0;
    font-size: 30px;
}

h2, h3 {
    color: #b9d9f2;
}

main a {
    color: var(--link);
    text-decoration: none;
}

main a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

main img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.article-image {
    display: block;
    margin: 20px auto;
}

.caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Right-hand article links */
.sidebar-box {
    padding: 20px;
}

.sidebar-box h2 {
    font-size: 21px;
    margin: 0 0 12px;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-links li {
    border-bottom: 1px solid var(--content-border);
}

.sidebar-links a {
    display: block;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--link);
    transition: color 0.2s ease;
}

.sidebar-links a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Footer */
footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 18px 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile devices */
@media (max-width: 760px) {
    .container {
        grid-template-columns: 1fr;
        margin-top: 15px;
    }

    main {
        padding: 20px;
    }

    .site-title {
        font-size: 25px;
    }

    nav a {
        padding: 8px 12px;
    }
}
