@font-face {
    font-family: "Ubuntu";
    src: url(/assets/fonts/ubuntu-light.woff2);
    font-weight: normal
}

@font-face {
    font-family: "Ubuntu";
    src: url(/assets/fonts/ubuntu-medium.woff2);
    font-weight: bold
}

@font-face {
    font-family: "VCR-mono";
    src: url(/assets/fonts/vcr-mono.woff2);
    font-weight: normal;
}


/* RESET */

:root {
    margin: 0;
    padding: 0;
    font-family: "Ubuntu", Helvetica, Arial, sans-serif;
    font-size: 62.5%;
    text-align: left;
    font-weight: normal;
}

html, body, div, iframe, h1, h2, h3, h4, h5, h6, p, ol, ul, a {
    margin: 0 auto;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
  }

ol, ul {
    list-style: none;
    text-transform: uppercase;
}

li {
    text-align: left;
}
  
img {
    max-width: 100%;
    height: auto;
}

/* DEBUG */

/* * {
    outline: 1px solid #f00 !important;
  }
   */


/* MAIN STYLE */

:root {
    --main-color:#fff;
    --bg-color:#000;
    --page-width: 1280px;
    --navbar-height: 8em;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--main-color);
    font-weight: normal;
    width: 100%;
    max-width: 1440px;
    border: none;
}

@media (min-width: 1444px) {
    body {
        border: solid 2px #151515;
    }
}


h1 {
    font-family: "VCR-mono";
    font-weight: normal;
    text-transform: uppercase;
    font-size: 3em;
    padding: 0 0 1em 0;
    margin: 0;
}

h2 {
    font-weight: bold;
    font-size: 2em;
    padding: 0 0 0.5em 0;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

h3 {
    font-weight: normal;
    font-size: 1.4em;
    padding: 0 0 0.5em 0;
    letter-spacing: -0.05em;
    text-transform: uppercase
}

p {
    font-weight: normal;
    font-size: 1.8em;
    padding: 0 0 0.5em 0;
}

a {
    color: inherit;
    font-weight: bold;

}

a.stealth {
    text-decoration: none;
}

.bold {
    font-weight: bold;
}

/* NAVIGATION */

nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    height: var(--navbar-height);
    min-height: var(--navbar-height);
    width: 100vw;
    background-image: url(/assets/images/nav-bg.svg);
    background-size: auto;
    background-repeat: repeat-x;
    background-position: bottom left;
}

#nav-flex {
    display: flex;
    justify-content: space-between;
    align-items:center;
    width: 100%;
    max-width: var(--page-width);
    height: calc(var(--navbar-height) - 2em);
    padding: 0 0.7em;
}


.logo {
    display: inline-block;
    padding: 0 0 0 1em;
    flex-grow: 1;
}

.logo img {
    height: 4em;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    font-size: 1.4em;
}
  
.nav-item a {
    display: inline-block;
    padding: 1em 1em;
    font-weight: bold;
    text-decoration: none;
    color: var(--main-color);
}
  
.nav-item:hover {
    background-color: var(--main-color);
}
  
.nav-item:hover a {
    color: var(--bg-color);
}

/* PAGE ITEMS */

.constrained {
    width: 100%;
    max-width: var(--page-width);
    padding: 1em 2em;
}

.inverted {
    background-color: var(--main-color);
    color: var(--bg-color);
}

.section-top-border {
    background-image: url(/assets/images/section-top-border.svg);
    width: 100%;
    height: 5em;
    background-size: contain;
    background-repeat: repeat-x;
    background-position: bottom;
}

.section-bottom-border {
    background-image: url(/assets/images/section-bottom-border.svg);
    width: 100%;
    height: 5em;
    background-size: contain;
    background-repeat: repeat-x;
    background-position: top;
}

#footer-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(32em, 1fr) );
    min-height: 20em;
    height: auto;
}

#footer-logo {
    padding: 0 2.5em 0 0;
    min-width: 10em;
}

@media only screen and (max-width: 42em) {
    #footer-logo {
        display: none;
    }
}


.footer-item {
    min-height: 10em;
}