:root {
    --bg: #fff;
    --panel: #ffffff;
    --panel2: #f7f7fb;
    --text: #101114;
    --muted: #4b5563;
    --border: rgba(16, 17, 20, .12);
    /*--accent: #2563eb;*/
    --accent: #5B2D82;
    /*--accent2: #1d4ed8;*/
    --accent2: #5B2D82;
    --shadow: 0 10px 28px rgba(16, 17, 20, .08);
    --radius: 16px;
    --readMax: 820px;
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: radial-gradient(1100px 700px at 15% 0%, rgba(124, 58, 237, .08), transparent 55%),
    radial-gradient(1000px 700px at 85% 10%, rgba(37, 99, 235, .08), transparent 60%),
    var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    font-size: 16px;
}

body, h1, h2, h3, h4, h5, h6, strong, b {
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
}

.topbar-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.nav {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 15px;
    color: rgba(16, 17, 20, .88);
    font-weight: 450;
}

.nav a {
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav a:hover {
    border-color: rgba(16, 17, 20, .10);
    background: rgba(16, 17, 20, .02);
    transform: translateY(-1px);
}

.bottom-buttons {
    margin: 30px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 15px;
    color: rgba(16, 17, 20, .88);
    font-weight: 450;
    justify-content: center;
}

.bottom-buttons a {
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(16, 17, 20, .10);
    transition: all 0.2s ease;
    background: rgba(16, 17, 20, .02);
    transform: translateY(-1px);
}

.shell {
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.page {
    max-width: var(--readMax);
    margin: 0 auto;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
    transition: box-shadow 0.3s ease;
}

.page h1 {
    font-size: 32px;
    margin: 0 0 18px;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--accent);
    font-weight: 500;
}

.page p {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: 20px;
    color: rgba(16, 17, 20, .96);
    line-height: 1.7;
}

@media (max-width: 880px) {
    .page p {
        font-size: 18px;
        line-height: 1.65;
    }

    .page h1 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .nav {
        gap: 8px;
        font-size: 14px;
    }

    .shell {
        padding: 32px 16px 60px;
    }

    .page {
        padding: 24px 20px;
    }

    .logo img {
        height: 30px;
    }

    .topbar-inner {
        padding: 16px 16px;
    }

    .site-footer {
        padding: 20px 16px;
    }

    .site-footer-inner {
        font-size: 13px;
        gap: 6px 16px;
    }
}

strong {
    font-weight: bold;
}

/* Site footer */
.site-footer {
    margin-top: auto;
    padding: 24px 20px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .6);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
    font-size: 14px;
    color: var(--muted);
}

.site-footer a {
    color: var(--muted);
    padding: 4px 0;
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer-sep {
    color: var(--border);
    user-select: none;
}
