/* =========================================
   OMIGLPRO — BLOG STYLES
   ========================================= */

:root {
    --blog-bg: #070b14;
    --blog-surface: #0d1422;
    --blog-surface-light: #111a2b;
    --blog-border: rgba(255, 255, 255, 0.08);

    --blog-text: #f5f7fb;
    --blog-text-soft: #aab4c5;
    --blog-text-muted: #737f92;

    --blog-blue: #3b82f6;
    --blog-blue-soft: rgba(59, 130, 246, 0.12);

    --blog-max-width: 820px;
}


/* =========================================
   RESET
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(59, 130, 246, 0.09),
            transparent 34rem
        ),
        var(--blog-bg);

    color: var(--blog-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.75;
}


/* =========================================
   MAIN BLOG AREA
   ========================================= */

main {
    width: 100%;
    padding: 70px 20px 90px;
}

article {
    width: 100%;
    max-width: var(--blog-max-width);
    margin: 0 auto;
}


/* =========================================
   ARTICLE HEADER
   ========================================= */

article > header {
    margin-bottom: 58px;
    padding-bottom: 42px;
    border-bottom: 1px solid var(--blog-border);
}

article > header p:first-child {
    display: inline-flex;
    align-items: center;

    margin: 0 0 20px;
    padding: 7px 12px;

    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;

    background: var(--blog-blue-soft);

    color: #6ea8ff;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
}

article > header h1 {
    max-width: 760px;

    margin: 0 0 22px;

    color: var(--blog-text);

    font-size: clamp(34px, 7vw, 58px);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

article > header p:last-child {
    max-width: 700px;

    margin: 0;

    color: var(--blog-text-soft);

    font-size: 17px;
    line-height: 1.75;
}


/* =========================================
   ARTICLE SECTIONS
   ========================================= */

article section {
    margin-bottom: 56px;
}

article section h2 {
    margin: 0 0 18px;

    color: var(--blog-text);

    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

article section p {
    margin: 0 0 18px;

    color: var(--blog-text-soft);

    font-size: 16px;
    line-height: 1.8;
}

article section p:last-child {
    margin-bottom: 0;
}


/* =========================================
   LISTS
   ========================================= */

article ul,
article ol {
    margin: 22px 0;
    padding-left: 24px;

    color: var(--blog-text-soft);
}

article li {
    margin-bottom: 10px;
    padding-left: 5px;

    line-height: 1.7;
}

article li::marker {
    color: var(--blog-blue);
    font-weight: 700;
}


/* =========================================
   LINKS
   ========================================= */

article a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    margin-top: 8px;
    padding: 12px 20px;

    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;

    background: var(--blog-blue);

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

article a:hover {
    background: #2563eb;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

article a:active {
    transform: translateY(0);
}


/* =========================================
   RESPONSIVE — TABLET
   ========================================= */

@media (min-width: 700px) {
    main {
        padding: 90px 32px 120px;
    }

    article section {
        margin-bottom: 68px;
    }

    article section p {
        font-size: 17px;
    }
}


/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */

@media (max-width: 520px) {
    main {
        padding: 46px 18px 70px;
    }

    article > header {
        margin-bottom: 42px;
        padding-bottom: 32px;
    }

    article > header h1 {
        font-size: 36px;
        letter-spacing: -0.04em;
    }

    article > header p:last-child {
        font-size: 15px;
        line-height: 1.7;
    }

    article section {
        margin-bottom: 44px;
    }

    article section h2 {
        font-size: 25px;
    }

    article section p {
        font-size: 15.5px;
        line-height: 1.75;
    }

    article ul,
    article ol {
        padding-left: 21px;
    }

    article a {
        width: 100%;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    article a {
        transition: none;
    }
}