@font-face {
    font-family: 'terminal';
    src: url('/static/fonts/terminal-grotesque_open.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'aileron';
    src: url('/static/fonts/Aileron-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'archivo';
    src: url('/static/fonts/Archivo-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'aileron', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1 {
    font-family: 'archivo', sans-serif;
}

.marquee {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: black;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: inline-flex;
    animation: scroll-left 20s linear infinite;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 0;
}

.marquee-content span {
    display: inline-block;
    padding-right: 50px;
}

.marquee-content a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.marquee-content a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

main {
    margin-top: 0;
    padding-top: 48px; /* space for marquee + nav */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.site-nav-bar {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    color: white;
    background-color: black;
}

.site-brand {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    background: none;
    padding: 6px 10px;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.site-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.site-nav-links a:hover {
    text-decoration: underline;
}

.image-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* correct path lives in /static/images/ */
    /* background-image: url("/static/images/redacted_cover.JPG"); */
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: black;
}

.image-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}
/* h1 {
    position: relative;
} */

/* h1::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% - 1rem);
    width: 70%;
    height: 10px;
    background-color: rgb(0, 0, 0);
    transform: translateY(-50%) translateX(-50%);
    z-index: -1;
} */

/* Mobile responsive */
@media (max-width: 768px) {
    .site-nav-bar {
        top: 40px;
        left: 0;
        right: 0;
        padding: 12px 16px;
        gap: 10px;
        background: black;
        align-items: center;
        justify-content: space-between;
    }

    .nav-toggle {
        display: inline-block;
        color: white;
        border-color: white;
        font-weight: 700;
        padding: 8px 14px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
    }

    .site-brand {
        font-size: 1.4rem;
        color: white;
    }

    .site-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-left: 0;
        padding: 12px 16px;
        background: black;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        transition: max-height 0.25s ease, opacity 0.25s ease;
    }

    .site-nav-links a {
        font-size: 1rem;
        padding: 8px 4px;
        color: white;
        width: 100%;
    }

    .site-nav-bar.nav-open .site-nav-links {
        max-height: 320px;
        opacity: 1;
    }

    main {
        padding-top: 110px;
    }

    h1{
        font-size: 2rem;
        margin-top: 20px !important;
    }
}

/* Site Modal Styles */
.site-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-modal.active {
    display: flex;
    opacity: 1;
}

.site-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.site-modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.site-modal.active .site-modal-content {
    transform: scale(1);
}

.site-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.site-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.site-modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #fff;
    font-family: 'archivo', sans-serif;
}

.site-modal-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #f7f7f7;
    margin-bottom: 30px;
}

.site-modal-body p {
    margin: 0 0 1em 0;
}

.site-modal-body a {
    color: #f5d9a8;
    text-decoration: underline;
}

.site-modal-body a:hover {
    color: #fff;
}

.site-modal-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-modal-button {
    display: inline-block;
    background: white;
    color: #000;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.site-modal-button:hover {
    background: #f5d9a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.site-modal-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .site-modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .site-modal-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .site-modal-body {
        font-size: 1rem;
    }

    .site-modal-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}