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

:root {
    --foreground: #e0e0e0;
    --pre-muted: #c0c0c0;
    --muted: #a0a0a0;
    --accent: #ee243d;
    --accent-muted: #9a2839;
    --background: #0d101b;
}

html {
    position: relative;
    min-height: 100%;

    font-size: 20pt;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

body {
    background-color: var(--background);
    margin-bottom: 100px;
}

.container {
    text-align: left;

    display: grid;
    color: var(--foreground);

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    margin-top: 20px !important;
}

.project {
    font-size: 16px;

    margin-top: 2px;
    margin-bottom: 4px;

    text-decoration: none;
    color: var(--accent);
}

.project:hover {

}

.project-title-link {
    color: var(--accent);
}

.project-dstu-link {
    color: var(--accent);
    text-decoration: underline;
}

.project-2026-link {
    color: var(--accent);
    text-decoration: underline;
}

.project-about-link {
    color: var(--accent);
}

.project-title-link:hover {
    text-shadow: 0 0 15px var(--accent) !important;
}

.project-dstu-link:hover {
    text-shadow: 0 0 15px var(--accent) !important;
}

.project-2026-link:hover {
    text-shadow: 0 0 15px var(--accent) !important;
}

.project-about-link:hover {
    text-shadow: 0 0 15px var(--accent) !important;
}

.intro {
    font-size: 50pt;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;

    margin-top: 2px;
    margin-bottom: 8px;

    text-align: justify;
    text-align-last: justify;
}

.sub-intro {
    text-align: justify;
    text-align-last: justify;

    margin-top: 2px;
}

.article-image {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: lighter;
    margin: 0;
    margin-top: 2px;
}

strong {
    color: var(--accent);
    font-weight: bold;
}

.stalin-edit {
    color: var(--accent);
    text-decoration: none;
}

.stalin-edit:hover {
    color: var(--accent);
    text-decoration: none;
    text-shadow: 0 0 15px var(--accent) !important;
}

.article {
    margin-bottom: 26px;
}

.article-year {
    font-weight: normal;
    color: var(--accent);
}

.article-title {
    color: var(--accent);
}

.article-description {
    color: var(--foreground);
    font-size: 26px;
}

a {
    text-decoration: none;
}

@media (max-width: 768px) {
    a {
        text-decoration: underline;
        text-decoration-color: rgba(255, 255, 255, 0.5);
    }
}

a:hover {
    text-shadow: 1px 1px 2px var(--foreground);
}

a:hover .article-year {
    text-shadow: 0 0 15px var(--accent-muted);
}

a:hover .article-title {
    text-shadow: 0 0 15px var(--accent);
    text-decoration: underline;
}

a:hover .article-description {
    text-shadow: 0 0 15px var(--muted);
}

.project-dstu {
    margin-bottom: 30px;
}

.stalin-intro {
    width: 100%;
    margin-bottom: 30px;
}

.article-section {
    margin-top: 30px;
}

.article-label {
    font-family: 'Playfair Display', serif;
    font-size: 40pt;
    margin-bottom: 4px;
}

.view-article-title-and-year {
    text-align: justify;
    text-align-last: justify;
}

.view-article-title {
    color: var(--accent);
}

.view-article-year {
    color: var(--accent);
}

.view-article-description {
    margin-top: 20px;

    text-align: justify;
    text-align-last: justify;
}

.about-author {
    
}

.about-name {
    font-size: 30px;
    color: var(--foreground);
    margin: 0 0 -6px;
}

.about-job {
    font-size: 26px;
    color: var(--pre-muted);
    margin: 0 0 2px;
}

.about-description {
    font-size: 26px;
    margin: 0 0 22px;
}

.article-author-name {
    margin-top: 2px;
    font-size: 18px;
}

/* ─── Планшет (до 1024px) ─────────────────────────── */
@media (max-width: 1024px) {
    html {
        font-size: 17pt;
    }

    .intro {
        font-size: 40pt;
    }

    .article-label {
        font-size: 28px;
    }
}

/* ─── Мобильный (до 640px) ───────────────────────── */
@media (max-width: 640px) {
    html {
        font-size: 13pt;
    }

    body {
        margin-bottom: 80px;
    }

    .container {
        padding: 0 16px;
        margin-top: 16px !important;
    }

    .project {
        font-size: 15px;
    }

    .intro {
        font-size: 28pt;
        line-height: 1.15;
    }

    .sub-intro {
        margin-top: 6px;
    }

    .article-label {
        font-size: 22px;
    }
}

/* ─── Маленький телефон (до 380px) ──────────────── */
@media (max-width: 380px) {
    html {
        font-size: 11pt;
    }

    .intro {
        font-size: 24pt;
    }

    .article-label {
        font-size: 19px;
    }
}