* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   FRONT PAGE
   ========================================================= */

body.front-page {
    position: relative;

    width: 100vw;
    height: 100vh;

    overflow: hidden;

    background-color: #000;
    background-image: var(--front-image, url("/assets/fib-front.png"));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}


/* =========================================================
   FIB BRAND
   ========================================================= */

.brand {
    position: fixed;

    top: 12px;
    left: 20px;

    display: flex;
    align-items: center;
    gap: 16px;

    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;

    font-size: 22px;
    font-weight: 400;

    z-index: 100;
}

.brand img {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: contain;
}


/* =========================================================
   TOP NAVIGATION
   ========================================================= */

.top-nav {
    position: fixed;

    top: 18px;
    right: 22px;

    display: flex;
    align-items: center;
    gap: 18px;

    z-index: 100;
}

.top-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;

    font-size: 13px;
    font-weight: 400;

    transition: color 0.15s ease;
}

.top-nav a:hover {
    color: #fff;
}

.top-nav a.active {
    color: #fff;
    font-weight: 600;
}


/* =========================================================
   BACK PAGE
   ========================================================= */

body.back-page {
    position: relative;

    display: flex;

    width: 100vw;
    height: 100vh;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #fff;
}

.back-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #fff;
}


/* Backpage header uses dark text on white background */

body.back-page .brand {
    color: #333;
}

body.back-page .top-nav a {
    color: rgba(0, 0, 0, 0.62);
}

body.back-page .top-nav a:hover {
    color: #000;
}

body.back-page .top-nav a.active {
    color: #000;
    font-weight: 600;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    body.front-page {
        background-position: center center;
        background-size: contain;
    }

    .brand {
        top: 10px;
        left: 14px;

        gap: 12px;

        font-size: 19px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .top-nav {
        top: 17px;
        right: 15px;

        gap: 14px;
    }

    .top-nav a {
        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .brand {
        top: 10px;
        left: 12px;

        gap: 10px;

        font-size: 18px;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .top-nav {
        top: 16px;
        right: 12px;

        gap: 11px;
    }

    .top-nav a {
        font-size: 11px;
    }
}
