*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    background-color: #0b0c10;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Layout */

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top left, #1a1f2b, #050608);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #27ae60, #f1c40f);
    color: #050608;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6),
        0 8px 20px rgba(0, 0, 0, 0.5);
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.site-tagline {
    font-size: 13px;
    color: #a5acc4;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    font-size: 14px;
    color: #ccd2eb;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.nav-link:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.03);
}

/* Main */

.page-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px 40px;
}

/* Hero */

.hero {
    padding: 10px 0 18px;
}

.hero-inner {
    max-width: 640px;
}

.hero h2 {
    font-size: 26px;
    margin-bottom: 6px;
}

.hero p {
    font-size: 14px;
    color: #9fa6c2;
}

/* Archive */

.archive-section {
    margin-top: 10px;
}

.archive-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.archive-header h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a5acc4;
}

.archive-meta {
    font-size: 12px;
    color: #7c829a;
}

.article-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

/* Article card */

.article-card {
    position: relative;
    padding: 14px 14px 12px;
    border-radius: 10px;
    background: radial-gradient(circle at top left, #181c27, #050608);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
    transition: transform 0.12s ease, box-shadow 0.12s ease,
        border-color 0.12s ease, background 0.15s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    background: radial-gradient(circle at top left, #1f2433, #050608);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.article-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 2px;
}

.article-title a {
    text-decoration: none;
    color: #f8f8ff;
}

.article-title a:hover {
    text-decoration: underline;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: #8f95b0;
    margin-top: 4px;
}

.article-hook {
    font-size: 14px;
    color: #c7ccd9;
    margin-top: 8px;
}

.article-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.article-read-link {
    font-size: 13px;
    color: #f1c40f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-read-link span {
    font-size: 11px;
}

.article-read-link:hover {
    text-decoration: underline;
}

/* Empty or error states */

.archive-empty,
.archive-error {
    margin-top: 18px;
    font-size: 14px;
    color: #b3b8d1;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #050608;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 16px;
    font-size: 12px;
    color: #7c829a;
}

/* Responsive */

@media (max-width: 720px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .page-main {
        padding-inline: 14px;
    }

    .article-card {
        padding: 12px 12px 10px;
    }

    .hero h2 {
        font-size: 22px;
    }
}
