:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #090b12;
    color: #e7e7f0;
    line-height: 1.7;
    font-size: 1rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background: radial-gradient(circle at top left, #2a3b58 0%, #090b12 55%);
    color: #e7e7f0;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 48%),
                radial-gradient(circle at top right, rgba(123, 156, 255, 0.12), transparent 25%),
                radial-gradient(circle at bottom left, rgba(111, 187, 255, 0.08), transparent 20%);
    pointer-events: none;
}

.page-content {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px 64px;
    display: grid;
    gap: 28px;
}

h1, h2 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    color: #ffffff;
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    color: #cde2ff;
}

pre {
    margin: 0;
    padding: 26px 28px;
    border-radius: 24px;
    background: rgba(18, 26, 42, 0.96);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e7e7f0;
    font-family: "Fira Code", "JetBrains Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
    text-transform: none;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 100%);
    margin: 0;
}

@media (max-width: 820px) {
    .page-content {
        padding: 28px 20px 40px;
        gap: 24px;
    }

    h1 {
        font-size: 2.6rem;
    }

    pre {
        padding: 20px 20px;
        font-size: 0.98rem;
    }
}

@media (max-width: 540px) {
    .page-content {
        padding: 20px 16px 32px;
        gap: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    pre {
        padding: 18px 18px;
        font-size: 0.95rem;
    }
}
