﻿@font -face {
    font-family: 'Söhne';
    src: url('/fonts/soehne-regular.woff2') format('woff2'), url('/fonts/soehne-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* Mobile & small tablets */
#rally-landing {
    scroll-behavior: smooth;
}

#rally-landing p {
    font-family: 'Söhne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important; /* 400 = Regular */
    font-style: normal !important; /* 'Mager' isn't a valid CSS value */
    font-size: 16px !important;
    line-height: 28px !important; /* 28px leading */
    letter-spacing: 0 !important; /* 0px */
}

#rally-landing strong {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important; /* 700 = Bold */
    font-style: normal !important; /* 'Bold' isn’t a valid CSS value, use normal here */
    font-size: 16px !important;
    line-height: 28px !important;
    letter-spacing: 0 !important; /* 0px */
}

@media (max-width:768px) {
    #rally-landing .container {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }

    #rally-landing article {
        flex: 1;
    }

    #rally-landing aside {
        display: none;
    }
    /* hide TOC on mobile */
    #rally-landing h1 {
        font-size: 28px;
    }

    #rally-landing h2 {
        font-size: 22px;
        margin-top: 28px;
    }

    #rally-landing h3 {
        font-size: 17px;
    }

    #rally-landing .meta {
        margin-bottom: 18px;
    }

    #rally-landing article > * {
        max-width: 100%;
    }
}

/* Very small devices */
@media (max-width:400px) {
    #rally-landing {
        line-height: 1.6;
    }

        #rally-landing h1 {
            font-size: 24px;
        }

        #rally-landing h2 {
            font-size: 20px;
        }
}

/* Scope all variables to this view only */
#rally-landing {
    --text: #333;
    --muted: #888;
    --border: #e5e7eb;
    --bg: #fff;
    --bg-alt: #fafafa;
    --link: #111;
    --link-active: #2563eb;
    --container-max: 1000px;
    /* optional: smooth scroll only when this is the main content area */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

    #rally-landing * {
        box-sizing: border-box
    }

    #rally-landing .container {
        max-width: var(--container-max);
        margin: 0 auto;
        padding: 24px;
        display: flex;
        gap: 40px;
    }

    #rally-landing article {
        flex: 3;
        min-width: 0;
    }

    #rally-landing aside {
        flex: 1;
        border: 1px solid var(--border);
        padding: 20px;
        border-radius: 8px;
        background: var(--bg-alt);
        position: sticky;
        top: 20px;
        height: max-content;
    }

        #rally-landing aside h3 {
            margin: 0 0 12px;
            font-size: 15px;
            color: #71717A !important;
            font-family: 'Söhne',sans-serif !important;
            font-weight: 600;
            text-decoration: underline;
        }

        #rally-landing aside ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        #rally-landing aside li {
            margin-bottom: 10px;
        }

        /* TOC links scoped */
        #rally-landing aside a {
            color: #71717A !important;
            text-decoration: none !important;
            font-weight: 600;
            font-family: 'Söhne',sans-serif !important;
            transition: color .2s ease;
            font-size: 14px;
        }

            #rally-landing aside a:hover,
            #rally-landing aside a:focus {
                color: #000 !important;
                text-decoration: none !important;
                outline: none;
                font-weight: 600;
                font-family: 'Söhne',sans-serif !important;
            }

            #rally-landing aside a.active {
                color: #000 !important;
                font-weight: 700;
                text-decoration: none !important;
            }

    #rally-landing h1 {
        font-size: 32px;
        line-height: 1.2;
        margin: 0 0 8px;
    }

    #rally-landing h2 {
        font-size: 24px;
        margin: 36px 0 12px;
        line-height: 1.25;
    }

    #rally-landing h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }

    #rally-landing p {
        margin: 0 0 16px;
    }

    #rally-landing img {
        max-width: 100% !important;
        border-radius: 8px;
        margin: 20px 0;
        display: block;
        height: auto;
    }

    #rally-landing ul, #rally-landing ol {
        margin: 16px 0;
        padding-left: 20px;
    }

    #rally-landing li {
        margin-bottom: 8px;
    }

    #rally-landing blockquote {
        border-left: 4px solid var(--link-active);
        padding-left: 12px;
        color: #555;
        margin: 20px 0;
        font-style: italic;
    }

    #rally-landing .meta {
        color: var(--muted);
        margin-bottom: 24px;
    }

    /* Better readable line length on very wide screens */
    #rally-landing article > * {
        max-width: 72ch;
    }

    /* Simple CTA button */
    #rally-landing .btn {
        display: inline-block;
        padding: 10px 14px;
        border: 1px solid var(--link-active);
        border-radius: 8px;
        text-decoration: none;
        color: var(--bg);
        background: var(--link-active);
        font-weight: 600;
    }

        #rally-landing .btn:focus, #rally-landing .btn:hover {
            filter: brightness(0.95);
        }

    #rally-landing figure {
        margin: 16px 0;
    }

    #rally-landing figcaption {
        color: var(--muted);
        font-size: 14px;
        margin-top: -8px;
    }