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

:root {
    --amarelo: #fae02b;
    --branco: #e8e4d9;
    --preto: #18191d;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.15);
    --texto-claro: rgba(239, 239, 239, 0.75);
}



html,
body {
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
    overflow-x: hidden;
    max-width: 100%;
    background-color: var(--preto);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100svh;
    min-width: 380px;
}


.container {
    width: 100%;
    max-width: 860px;
    padding: 0 24px;
    box-sizing: border-box;
}


/* =============================================
   TIPOGRAFIA BASE (MOBILE)
============================================= */
h1 {
    font-family: good-times, sans-serif;
    font-size: 2em;
    color: var(--branco);
    font-weight: 400;
    letter-spacing: 0.147em;
    text-align: left;
    margin-top: 1em;
    margin-bottom: 2em;
}


.hero-subtitle-word {
    color: var(--branco);
}

h2 {
    font-family: 'Arimo', sans-serif;
    font-size: 0.6em;
    color: var(--amarelo);
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5em;
    text-align: center;
    margin-top: 0.83em;
    margin-bottom: 3em;
}

p {
    font-family: 'Arimo', sans-serif;
    font-size: 1.15em;
    color: var(--branco);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 170%;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Safari */
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.formulario-ok {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3em;
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    background-color: var(--glass-bg);
    margin-top: 6em;
    max-height: 40%;
    max-width: 90%;
    text-align: center;
}

.formulario-ok h1 {
    margin-top: 0;
    letter-spacing: 0.03em;
}

.formulario-ok p {
    font-family: 'Arimo', sans-serif;
    letter-spacing: 0.04em;
    line-height: 120%;
    margin-top: 0.4em;
}

        .trabalho-sessao {
            margin-top: 3em;
            border-left: 2px solid var(--amarelo);
            padding-left: 2em;
            margin-bottom: 3em;
        }

        .titulo-trabalho {
            font-family: 'mono45-headline', monospace;
            font-size: 1em;
            font-weight: 500;
            color: var(--preto);
            background-color: var(--branco);
            letter-spacing: 0.05em; /* Reduz o espaçamento entre letras */
            margin-top: 0.5em;
            margin-bottom: 1em; /* Reduz o espaço para os parágrafos virem logo abaixo */
            text-align: left;
            font-style: italic;
        }

        .autores-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 2em;
        }

        .aluno-card {
            display: flex;
            align-items: center;
            padding: 16px;
            cursor: pointer;
            transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
            border: 1px solid var(--glass-border);
        }

        .aluno-card:hover {
            transform: translateY(-5px);
            background-color: rgba(255, 255, 255, 0.12);
            border-color: var(--amarelo);
        }

        .aluno-foto {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--amarelo);
            margin-right: 15px;
        }

        .aluno-nome, .modal-nome, .tematica-nome {
            font-family: 'good-times', sans-serif;
            color: var(--amarelo);
            font-size: 1em;
            display: block;
            margin-bottom: 0.5em;
        }

        .aluno-resumo {
            font-size: 0.85em !important;
            line-height: 1.4 !important;
            margin: 0;
        }

        /* --- MODAL COM EFEITO GLASS TOTAL --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            padding: 20px;
        }

        .modal-content {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            max-width: 600px;
            width: 100%;
            padding: 40px;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            color: var(--amarelo);
            font-size: 2.5em;
            cursor: pointer;
            z-index: 10;
        }

        .aluno-foto-grande {
            display: block;
            margin: 0 auto 20px;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 3px solid var(--amarelo);
            object-fit: cover;
        }

        .modal-texto h3{
            font-family: 'good-times', sans-serif;
            color: var(--amarelo);
            font-size: 0.9em;
            margin: 1.5em 0 0.5em 0;
        }
    

        .modal-texto ul, .modal-texto li, .modal-texto h1 {
            font-family: 'Arimo', sans-serif;
            font-size: 1em;
            color: var(--branco);
            font-weight: 300;
            letter-spacing: 0.04em;
            line-height: 170%;
        }

    .materia-titulo {
        display: flex;
        justify-content: center;
        margin-top: 4em;
        max-width: 800px;
        padding: 1.5em 24px;
        margin-bottom: 1em;
    }

    .footer {
    width: 100%;
    text-align: center;
    padding: 2em 24px;
    border-top: 1px solid var(--glass-border);
    margin-top: 2em;
    }

    .footer p {
    font-size: 0.75em;
    color: var(--texto-claro);
    letter-spacing: 0.1em;
    }


@media (min-width: 768px) {

    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 1.4em;
        letter-spacing: 0.693em;
        /* letter-spacing original do desktop */
        margin-bottom: 1em;
    }

            .titulo-trabalho {
            font-size: 1.8em;
}
}