/* offside-regular - latin */
@font-face {
  font-family: 'Offside';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('fonts/offside-v20-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('fonts/offside-v20-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


/* rubik-300 - latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300;
  src: local(''),
       url('fonts/rubik-v23-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('fonts/rubik-v23-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


* {
    margin: 0;
    padding: 0;
}
html {
    background-color: #181A18;
    color: #F2FFF2;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 180%;
    font-weight: 100;
    letter-spacing: .05em;
}
h1, h2, h3, h4 {
    font-family: 'Offside', sans-serif;
    line-height: 150%;
}
a {
    color: #E58139;
    transition: all ease-in-out .1s;
}
a:hover {
    background-color: rgba(229, 129, 57, .1);
}
a.link {
    background-image: url(images/arrow.svg);
    background-position: 100% 50%;
    background-repeat: no-repeat;
    padding-right: 16px;
}

/* Tags */

a.tag {
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(229, 129, 57, .2);
    display: inline-block;
    padding: 0 8px;
}
a.tag:hover {
    background-color: rgba(229, 129, 57, .2);
    border-color: transparent;
}
a.tag:active,
a.tag.selected {
    background-color: rgba(229, 129, 57, 1);
    border-color: transparent;
    color: #181A18;
}
h2.tag {
    border: 1px solid rgba(229, 129, 57, .2);
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 32px;
    color: #E58139;
}

/* Main Layout */

main {
    display: grid;
    grid-template-columns: 1fr 2fr .75fr;
}

@media only screen and (max-width: 600px) {
    main {
        display: block;
    }
  }

  @media only screen and (max-width: 800px) {
    main {
        grid-template-columns: 1fr 2fr .5fr;
    }
  }

/* Navigation */

header {
    padding: 48px;
}
main > nav ul,
header h1 {
    position: fixed;
}
header h1 {
    left: 48px;
    top: 32px;
}
main nav ul {
    top: 120px;
    left: 48px;
    padding: 0;
}
nav ul {
    list-style: none;
}
nav ul li {
    margin-bottom: 16px;
}

@media only screen and (max-width: 600px) {
    header {
        background-color: #181A18;
        padding: 24px 32px;
        position: fixed;
        width: 100%;
    }
    main {
        padding: 32px;
        padding-top: 100px;
    }
    main > nav {
        margin-bottom: 32px;
    }
    main > nav ul,
    header h1 {
        position: static;
    }
    header h1 {
        margin-bottom: 0;
    }
    main > nav ul li {
        display: inline-block;
        margin-bottom: 0;
    }
  }

/* Article */

.articles {
    padding-top: 24px;
}
article {
    background: transparent url(images/pattern.svg) 0 100% repeat-x;
    padding-bottom: 64px;
    margin-bottom: 64px;
}
article:last-child {
    background: transparent;
    margin-bottom: 0;
}
article h2,
article nav {
    margin-bottom: 24px;
}
article h2 a {
    color: #F2FFF2;
    text-decoration: none;
}
article h2 a:hover {
    color: #E58139;
}
article h3,
article h4 {
    color: #5CE55C;
    margin: 16px 0;
}
article time {
    color: #5CE55C;
    background: transparent url(../images/apple-pi-logomark.svg) 0% 50% no-repeat;
    padding-left: 24px;
}
article nav ul li {
    display: inline-block;
    margin: 0 8px 0 0;
}
article p,
article blockquote,
article ul,
article ol {
    margin-bottom: 16px;
}
article ul,
article ol {
    list-style-position: outside;
    padding-left: 1.5em;
}
article ul li {
    list-style-type: square;
}
article ul li,
article ol li {
    margin-bottom: .5em;
}
article img {
    border-radius: 4px;
}
article img.flex {
    width: 100%;
}
article blockquote {
    background: transparent url(../images/quote.svg) 100% 0 no-repeat;
    border-left: 2px solid #5CE55C;
    padding: 8px 64px 8px 32px;
}
article blockquote p {
    margin: 0;
    font-style: italic;
}

/* Footer */

footer {
    color: #616661;
    font-size: 12px;
    line-height: 150%;
    padding: 32px 26.5%;
}
footer a {
    color: #616661;
}
@media only screen and (max-width: 600px) {
    footer {
        padding: 32px;
    }
  }
@media only screen and (max-width: 800px) {
footer {
    padding-left: 28.5%;
}
}
