@import "normalize";
@import "icons";

$fontFamily-mono: "Roboto Mono", "Menlo", monospace;
$fontFamily-sans: "Rubik", "Helvetica Neue", "Arial", sans-serif;

$color-blue: #0000ff;
$color-red: #ff0000;
$color-white: #ffffff;

$easing-outExpo: cubic-bezier(0.190, 1.000, 0.220, 1.000);

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

html {
    font-size: 10px;
    height: 100%;
}

body {
    background-color: $color-white;
    color: $color-red;
    font-family: $fontFamily-sans;
    font-size: 1.6em;
    font-weight: 300;
    height: 100%;
    line-height: 1.45;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    margin: 0 0 1em 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.info {
    background-color: $color-white;
    box-shadow: 0 0 15px rgba(#000000, 0.05);
    left: 50%;
    padding: 4rem;
    position: fixed;
    top: 50%;
    width: 90%;
    max-width: 550px;
    z-index: 2;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}

.info-headline {
    font-weight: 300;
    font-size: 3.8rem;
    margin: 0 0 0.5em 0;
    line-height: 1;
}

.info-tagline {
    margin: 0 0 2em 0;
}

.info-links {
    margin: 0;
    padding: 0;
    list-style: none;
    > li {
        display: inline;
        margin: 0 3px;
    }
}

.field {
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIwLjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMDAgMTAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I0VEMjAyNDt9Cjwvc3R5bGU+CjxjaXJjbGUgY2xhc3M9InN0MCIgY3g9IjUwIiBjeT0iNTAiIHI9IjEwIi8+Cjwvc3ZnPgo=');
    background-repeat: repeat;
    background-size: 6px;
    height: 400%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.dot {
    background-color: rgba($color-red, 0.75);
    border-radius: 50%;
    height: 2.5rem;
    left: 0;
    position: absolute;
    top: 0;
    width: 2.5rem;
    -webkit-transition: background-color 0.2s $easing-outExpo, -webkit-transform 0.2s $easing-outExpo;
            transition: background-color 0.2s $easing-outExpo, transform 0.2s $easing-outExpo;
}

.dot.in-view {
    background-color: rgba($color-blue, 0.75);
    -webkit-transform: scale(2);
            transform: scale(2);
}

.btn {
    background-color: transparent;
    border-width: 1px;
    border-color: $color-red;
    border-radius: 4px;
    border-style: solid;
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    padding: 1em 1.5em;
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-transition: background-color 0.075s ease-in-out;
            transition: background-color 0.075s ease-in-out;
    &:hover {
        background-color: $color-red;
        color: $color-white;
    }
}

@media screen and (max-width: 540px) {
    .info {
        padding: 2rem;
    }
    .info-links > li {
        display: block;
        margin: 0 0 10px;
    }
}
