@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
    --black: #0f1a23;
    --white: #f6f6d9;
    --cyan: #20f0ff;
    --lime: #b4ff39;
    --pink: #ff67c4;
    --gray-500: #8aa0b5;
    --gray-600: #6e8296;
    --border: 3px solid #1f3244;
    --shadow: 0 0 0 2px #000, 8px 8px 0 #000;
    --transition: all 0.18s steps(3, end);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background:
        linear-gradient(0deg, rgba(20, 34, 47, 0.88), rgba(20, 34, 47, 0.88)),
        repeating-linear-gradient(90deg, #102131 0 4px, #12283b 4px 8px);
    color: var(--white);
    font-family: 'VT323', monospace;
    font-size: 24px;
    line-height: 1.35;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--lime); }

.pixel-wrap,
.container {
    width: min(1120px, 94vw);
    margin: 0 auto;
}

.main-content { padding: 28px 0 56px; }

.pixel-header {
    border-bottom: 4px solid #000;
    background: linear-gradient(180deg, #223a4f, #162838);
    position: sticky;
    top: 0;
    z-index: 40;
}

.pixel-header .pixel-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.pixel-logo {
    font-family: 'Press Start 2P', monospace;
    color: var(--lime);
    font-size: clamp(12px, 2vw, 18px);
    text-shadow: 2px 2px 0 #000;
}

.pixel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pixel-nav a {
    border: var(--border);
    padding: 8px 12px;
    background: #0d1b27;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--white);
    box-shadow: 3px 3px 0 #000;
}

.pixel-nav a:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 #000;
    color: var(--lime);
}

.breadcrumb,
.blog-header,
.blog-featured,
.blog-card,
.article-main,
.article-sidebar .sidebar-box {
    border: var(--border);
    box-shadow: var(--shadow);
    background: #0f1c29;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 20px;
}

.blog-header {
    padding: 20px;
    margin-bottom: 20px;
}

.blog-header-label,
.blog-section-title,
.sidebar-box-title,
.article-langs-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    letter-spacing: 0.8px;
    color: var(--pink);
    text-transform: uppercase;
}

.blog-header h1,
.article-header h1,
h2,
h3 {
    font-family: 'Press Start 2P', monospace;
    color: var(--lime);
    line-height: 1.5;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.blog-card-img-link,
.blog-featured-link {
    display: grid;
    grid-template-columns: 1fr;
}

.blog-card img,
.blog-featured img,
.article-hero-img,
.article-img-fig img {
    display: block;
    width: 100%;
    image-rendering: pixelated;
    border-bottom: var(--border);
}

.blog-card-body,
.blog-featured-body,
.article-header,
.article-section,
.article-download-section,
.article-langs,
.article-social-grid,
.article-two-col,
.article-features-grid,
.article-highlight-box {
    padding: 14px;
}

.blog-post-meta,
.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.blog-tag,
.blog-date,
.blog-card-lang,
.blog-lang-btn,
.blog-read-more,
.store-btn,
.sidebar-store-btn,
.sidebar-lang-link,
.sidebar-calc-link {
    border: var(--border);
    background: #132537;
    color: var(--white);
    padding: 4px 8px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-tag--new { background: #3f1038; color: #ffd6f1; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
}

.article-section {
    border-top: var(--border);
}

.article-list,
.sidebar-feature-list {
    padding-left: 18px;
}

.article-list li,
.sidebar-feature-list li {
    margin-bottom: 8px;
}

.article-highlight-box {
    border: var(--border);
    background: #152c3f;
    margin-top: 12px;
}

.article-highlight-box--dark {
    background: #0a1219;
}

.article-features-grid,
.article-social-grid,
.article-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.article-feature,
.social-link-card,
.article-two-col-item {
    border: var(--border);
    background: #102536;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-hero-fig,
.article-img-fig {
    margin: 0;
}

.article-hero-fig figcaption,
.article-img-fig figcaption {
    padding: 10px 12px;
    background: #0a141d;
    border-top: var(--border);
    color: var(--gray-500);
}

.pixel-footer {
    margin-top: 34px;
    border-top: 4px solid #000;
    background: #101f2d;
    padding: 18px 0 26px;
    text-align: center;
}

.pixel-footer p {
    margin: 8px 0;
    color: var(--gray-500);
}

@media (max-width: 960px) {
    body { font-size: 22px; }
    .article-layout { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-features-grid,
    .article-social-grid,
    .article-two-col { grid-template-columns: 1fr; }
}
