@font-face {
    font-family: "Jost";
    src: url('/fonts/Jost-VariableFont_wght.ttf');
}

* {
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #fff;
    /* text-shadow: 0 1px 0 #000; */
    font-family: "Helvetica", "Arial", sans-serif;
    /* letter-spacing: -0.05em; */
    margin: 0 auto;
    max-width: 1280px;
    border-left: 1px dotted #222;
    border-right: 1px dotted #222;
    color-scheme: dark;

    --accent: #fba;
    --accent-transparent: color-mix(in srgb, var(--accent) 50%, transparent 50%);
}

.varg {
    --accent: #a00;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-transparent);
}

a:hover {
    border-bottom: 1px solid var(--accent);
}

.block {
    display: block;
}

img.crisp {
    image-rendering: crisp-edges;
}

header,
footer {
    background: #111;
    text-align: center;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    background: url('/images/bg.png');
    background-size: 128px 128px;

    @media (max-width: 640px) {
        flex-direction: column;
    }
}

header {
    border-bottom: 1px dotted #222;
    font-size: 1.1em;

    @media (max-width: 1280px) {
        body:not(.index) & {
            font-size: 0.8em;
        }
    }
}

footer {
    border-top: 1px dotted #222;
}

.langs {
    justify-content: end;
    font-size: 0.9em;
    flex-wrap: nowrap;
}

nav {

    /* background: #001; */
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    background: #0a0a0a;
    flex-grow: 1;
    padding: 2em;

    html[lang=pt-BR] & {
        letter-spacing: -0.05em;
    }

    header & {
        border-left: 1px dotted #222;
    }

    footer & {
        border-right: 1px dotted #222;
    }

    @media (max-width: 640px) {
        flex-direction: column;
        align-items: center;
    }

    .index header & {
        flex-direction: column;
        justify-content: space-around;
    }
}

nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: end;
    flex-wrap: wrap;
    list-style: none;
    column-gap: 20px;
    row-gap: 15px;

    body:not(.index) & {
        justify-content: center;
    }

    @media (max-width: 640px) {
        justify-content: center;
    }
}

header nav a {
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
}

.hero {
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: 40px;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* opacity: 0.75; */
}

.copyright {
    padding: 3em;
}

img.logo {
    user-select: none;
}

img.shrink {
    max-width: 75%;
    height: auto;
}

main {
    padding: 40px;
    min-height: 50svh;
    max-width: 960px;
    margin: 0 auto;

    h1 {
        font-size: 1.4em;
        font-weight: bold;
        padding: 10px;
        margin: 0 0 1em;
        border-bottom: 1px dotted #222;
    }

    h2 {
        font-size: 1.2em;
        font-weight: bold;
        margin: 0 0 1em;
        padding: 10px;
        border-bottom: 1px dotted #222;
    }

    h3 {
        font-size: 0.9em;
        font-weight: bold;
        margin: 0 0 1.5em;
        padding: 0 10px;
    }

    p {
        font-size: 1.1em;
        line-height: 1.5;
        margin: 0 0 1em;
        margin-left: 10px;
    }

    ul,
    ol {
        line-height: 2em;
    }

    .float {
        margin: 2em;
        float: left;
    }

    .clear {
        clear: both;
    }

}

.sepia {
    position: relative;
}

.sepia::before {
    pointer-events: none;
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent);
    mix-blend-mode: hue;
}

.sepia::after {
    pointer-events: none;
    content: '';
    opacity: 0.5;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #222;
    mix-blend-mode: overlay;
}

.cta-row {
    display: flex;
    gap: 20px;
    text-wrap: balance;
    text-align: center;
}


.cta-button {
    /* background: color-mix(in srgb, var(--accent) 60%, black 40%); */
    background: url('/images/bg.png');
    background-size: 128px 128px;
    color: #fff;
    padding: 10px 20px;
    display: inline-block;
    font-size: 1.1em;
    box-shadow: 1px 1px 1px inset #fff8, -1px -1px 1px inset #0008, 4px 4px 0 #0006;
    text-shadow: 0 1px 0 #000;
    border: none;
    position: relative;
    transition: transform 0.2s linear, box-shadow 0.2s linear;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(0deg, #333, var(--accent));
        opacity: 0.3;
        transition: opacity 0.2s linear;
        mix-blend-mode: screen;
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(15deg, #333, var(--accent));
        mix-blend-mode: overlay;
        opacity: 0.5;
        transition: opacity 0.2s linear;
    }

    &:hover {
        border-bottom: none;
        transform: scale(1.1);
        box-shadow: 1px 1px 1px inset #fff8, -1px -1px 1px inset #0008, 12px 12px 0 #0004;

        &::after {
            opacity: 1.0;
        }
    }
}


.subhero {
    padding: 50px;
    border-top: 1px dotted #222;
    text-align: center;
    background: url('/images/varg/bg.png');
    background-size: 512px 512px;

    @media (max-width: 640px) {
        padding: 40px;
    }

    h1 {
        font-size: 2.5em;
        margin-bottom: 2em;
    }

    h2 {
        font-size: 1.5em;
        font-weight: 450;
        max-width: 500px;
        text-align: center;
        text-transform: uppercase;
        margin: 0 auto 1em;
        text-shadow: 0 0 2px black, 0 0 2px black, 1px -1px #fff9, -1px 1px #6508;
    }

    p {
        font-size: 1.2em;
        max-width: 500px;
        text-align: justify;
        margin: 0 auto 2em;
        line-height: 1.8;

        @media (max-width: 640px) {
            font-size: 1.1em;
        }
    }

    ul {
        max-width: 500px;
        margin: 0 auto 2em;
        text-align: left;
        font-size: 1.5em;
        list-style: none;
        padding: 0;

        li {
            padding-left: 50px;
            background: url('/images/varg/bullet.png') top left no-repeat;
            background-size: 40px 40px;
            margin: 0 0 0.5em;
        }
    }

    table {
        border: 1px dotted #222;
        border-collapse: collapse;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 2em;
    }

    th {
        background: url('/images/bg.png');
        background-size: 128px 128px;
        font-weight: 450;
        font-size: 1.5em;
        padding: 10px;
        text-transform: uppercase;
        color: var(--accent);
        text-shadow: 0 0 2px black, 0 0 2px black, 1px -1px #fff9, -1px 1px #6508;
    }

    td {
        padding: 20px;
        font-size: 1.2em;
        border: 1px dotted #222;
        background: #111;
        text-align: left;

        @media (max-width: 640px) {
            font-size: 1em;
            padding: 15px;
        }
    }

    td:nth-child(2n) {
        background: #0a0a0a;
    }
}

.varg .subhero {
    font-family: 'Jost', sans-serif;
    font-weight: 350;
    color: #ddd;

    strong {
        font-weight: 450;
        color: #fff;
    }
}


.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    max-width: 1280px;
    border-top: 1px dotted #222;
    border-bottom: 1px dotted #222;
}

.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;

    @media (min-width: 480px) {
        width: 50%;
    }
}


.footnotes {
    padding: 50px;
    color: #aaa;
    font-size: 0.9em;
    line-height: 2.0em;

    @media screen and (max-width: 480px) {
        padding: 40px;
    }

    p {
        max-width: 800px;
        margin: 0 auto 1em;
        text-align: justify;
    }

    a {
        color: inherit;
        border-bottom: none;
    }
}

.consent {
    padding: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    font-size: 0.9em;

    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: #000c;
    backdrop-filter: blur(10px);
    z-index: 1;

    .consent-buttons {
        display: flex;
        justify-content: start;
        gap: 10px;
        margin-top: 10px;

        @media (max-width: 640px) {
            flex-direction: column;
        }
    }

    .consent-button {
        appearance: none;
        border: none;
        font: inherit;
        padding: 6px 10px;
        box-shadow: 1px 1px 0px inset #fff8, -1px -1px 0px inset #0008, 1px 1px 0 #0006;
        background: color-mix(in srgb, var(--accent) 40%, black 60%);
        color: #fff;
    }
}

img.icon {
    filter: invert(1);
}
