/* ===== Шрифты ===== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@300;400;600&display=swap');

/* ===== Фон ===== */

body {
    background: #050505;
    color: #d8d8d8;

    font-family: "Inter", sans-serif;
    line-height: 1.7;

    max-width: 1000px;
    margin: auto;
    padding: 40px;

    position: relative;
    overflow-x: hidden;
}

/* ===== Звёзды ===== */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    background-image:
        radial-gradient(circle at 10% 20%, white 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, white 1px, transparent 1px),
        radial-gradient(circle at 80% 10%, white 1px, transparent 1px),
        radial-gradient(circle at 60% 40%, white 1px, transparent 1px),
        radial-gradient(circle at 30% 90%, white 1px, transparent 1px);

    background-size: 300px 300px;

    opacity: 0.3;

    animation: starsMove 120s linear infinite;

    z-index: -2;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to   { transform: translateY(-300px); }
}

/* ===== ASCII логотип ===== */

pre {
    font-family: "JetBrains Mono", monospace;

    color: #ffffff;
    font-size: 0.65rem;

    text-shadow:
        0 0 10px rgba(255,255,255,0.2),
        0 0 20px rgba(255,255,255,0.15);

    animation: wave 6s ease-in-out infinite;

    white-space: pre;
    margin-bottom: 40px;
    
    font-family: "JetBrains Mono", monospace;

    width: fit-content;

    margin: 40px auto;

    text-align: left; /* важно: чтобы ASCII не "ломался" */
}

@media screen and (max-width: 768px) {
    pre {
        font-size: 0.22rem;
        overflow-x: auto;
        width: 100%;
    }
}


/* ===== Волна ===== */

@keyframes wave {
    0%   { transform: translateY(0px); }
    25%  { transform: translateY(-5px); }
    50%  { transform: translateY(0px); }
    75%  { transform: translateY(5px); }
    100% { transform: translateY(0px); }
}

@media screen and (max-width: 768px) {

    .logo-desktop {
        font-size: 0.2rem;
        overflow-x: auto;
        width: 100%;
    }

/* ===== Заголовки ===== */

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

h2 {
    margin-top: 60px;
    margin-bottom: 20px;

    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* ===== Текст ===== */

p {
    margin-bottom: 20px;
    transition: 0.2s;
}

/* более мягкий hover */
p:hover {
    color: #ffffff;
}

/* ===== Ссылки ===== */

a {
    color: #8FBC8F;
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: white;
    text-shadow:
        0 0 10px #008080,
        0 0 20px #8FBC8F;
}

/* ===== Списки ===== */

ul {
    margin-left: 20px;
}

/* ===== Шапка ===== */

header {
    padding: 20px;

    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);

    backdrop-filter: blur(8px);

    border-radius: 12px;

    margin-bottom: 40px;
}

/* ===== Разделитель ===== */

hr {
    border: none;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        #666,
        transparent
    );

    margin: 40px 0;
}

/* ===== Ник ===== */

.nick {
    display: inline-block;

    color: #8ab4f8;

    padding: 2px 8px;

    border: 1px solid rgba(138, 180, 248, 0.3);

    border-radius: 4px;

    background: rgba(138, 180, 248, 0.05);

    transition: 0.2s;
}

.nick:hover {
    color: white;

    text-shadow: 0 0 10px #8ab4f8;

    border-color: #8ab4f8;
}
/* ===== Выделение ===== */

::selection {
    background: #4d67a8;
}

.layout {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 220px;

    position: sticky;
    top: 20px;

    height: fit-content;

    padding: 20px;

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 10px;

    background: rgba(255,255,255,0.03);
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar a {
    display: block;

    margin-bottom: 10px;

    color: #7db6ff;

    text-decoration: none;
}

.sidebar a:hover {
    color: white;
}

.content {
    flex: 1;
}
