
/* ==================================
   LINUX VESPER — WEBSITE STYLES
   ================================== */

:root {
    color-scheme: dark;
    --background: #101010;
    --surface: #181818;
    --surface-hover: #202020;
    --border: #303030;
    --text: #e5e5e5;
    --muted: #a0a0a0;
    --silver: #aeb8c5;
    --silver-hover: #d0d7e0;
}

/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

/* Links */

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

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

/* Header */

.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px 6%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.logo:hover {
    color: var(--silver-hover);
    text-decoration: none;
}

.logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* Navigation */

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.site-header nav a {
    padding: 7px 11px;
    color: var(--muted);
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header nav a:hover {
    color: var(--text);
    background: var(--surface-hover);
    text-decoration: none;
}

.site-header nav a[aria-current="page"] {
    color: var(--silver-hover);
    background: #292d33;
}

/* Main content */

.site-main {
    width: min(1100px, 88%);
    margin: 0 auto;
    padding: 48px 0 70px;
    flex: 1;
}

.introduction {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.introduction h1 {
    margin-bottom: 10px;
    color: var(--silver-hover);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
}

.introduction p {
    max-width: 750px;
    color: var(--muted);
    font-size: 16px;
}

/* Sections */

.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h2 {
    margin-bottom: 12px;
    color: var(--silver);
    font-size: 21px;
    font-weight: 600;
}

.sidebar-section p {
    max-width: 850px;
    margin-bottom: 12px;
    color: var(--text);
}

.sidebar-section ul {
    padding-left: 24px;
    color: var(--muted);
}

.sidebar-section li {
    margin-bottom: 5px;
}

/* Home page layout */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 45px;
    align-items: start;
}

.news-entry {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.news-entry h3 {
    margin-bottom: 5px;
    color: var(--silver);
    font-size: 17px;
}

.news-entry p {
    color: var(--muted);
}

.sidebar-section {
    overflow-wrap: anywhere;
}

.sidebar-section h3 {
    margin: 14px 0 5px;
    color: var(--silver);
    font-size: 16px;
}

.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin: 8px 0;
}

/* Footer */

.site-footer {
    padding: 22px 6%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

/* Selection */

::selection {
    color: #ffffff;
    background: #505b6a;
}

/* Keyboard accessibility */

a:focus-visible {
    outline: 2px solid var(--silver);
    outline-offset: 4px;
}

/* Mobile layout */

@media (max-width: 800px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 6%;
    }

    .site-header nav {
        width: 100%;
        gap: 4px;
    }

    .site-header nav a {
        padding: 7px 9px;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .site-main {
        padding-top: 35px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .logo {
        font-size: 15px;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .site-header nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header nav a {
        padding: 9px;
        background: var(--surface-hover);
    }

    .introduction h1 {
        font-size: 27px;
    }

    .site-main {
        width: 90%;
    }
}
