* {
    box-sizing: border-box;
}

:root {
    --width: 1500px;
}

html {
    font-size: 18px;
}

body {
    margin: 0;
    padding: 0;
    background: black;
    color: white;
    font-family: "Source Sans Pro", sans-serif;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0 0 1rem 0;
    line-height: 1.6em;
}

a {
    color: white;
}

h1 {
    font-family: "Piazzolla", serif;
    font-size: 66px;
    font-weight: 900;
}

em {
    font-size: 15px;
}

p.lead {
    font-size: 21px;
}

p.letter:first-letter {
    margin-top: .65rem;
    margin-right: .3rem;
    float: left;
    font-family: "Piazzolla", serif;
    font-size: 3.2rem;
    font-weight: 700;
}

p.editors-note {
    position: relative;
    padding-left: 36px;
    font-size: 18px;
}

p.editors-note::after {
    position: absolute;
    content: "";
    top: 3px;
    left: 0;
    height: 24px;
    width: 24px;
    background: url(./images/comment-alt-edit-solid.svg) no-repeat center center;
}

p.editors-note.without::after {
    display: none;
}

p.editors-note::before {
    content: "Editors Note:";
    margin-right: 6px;
    color: orange;
    font-family: "Caveat", cursive;
    font-size: 24px;
}

p.editors-note.without::before {
    content: "";
    margin-right: 0;
}

p.book-note {
    position: relative;
    padding-left: 36px;
    font-size: 18px;
}

p.book-note::after {
    position: absolute;
    content: "";
    top: 3px;
    left: 0;
    height: 24px;
    width: 24px;
    background: url(./images/bookmark-solid.svg) no-repeat center center;
}

p.book-note.without::after {
    display: none;
}

p.book-note::before {
    content: "Book note:";
    margin-right: 6px;
    color: orange;
    font-family: "Caveat", cursive;
    font-size: 24px;
}

p.book-note.without::before {
    content: "";
    margin-right: 0;
}

p.writer {
    font-family: "Piazzolla", serif;
    text-transform: uppercase;
}

.slides {
    position: relative;
    display: flex;
    height: 100vh;
    width: 100vw;
    flex-flow: row nowrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.slides-slide {
    position: relative;
    display: block;
    height: inherit;
    width: inherit;
    scroll-snap-align: center;
    flex: 0 0 auto;
    overflow: auto;
}

.slides,
.slides-slide {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.slides::-webkit-scrollbar,
.slides-slide::-webkit-scrollbar {
    display: none;
}

.full-image {
    position: relative;
    display: flex;
    height: 100vh;
    width: 100vw;
    align-items: center;
    flex-flow: column;
    justify-content: center;
}

.full-image-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .5;
}

.grid {
    position: relative;
    display: grid;
    grid-gap: 30px;
    grid-template-columns: 300px 1fr 300px;
    grid-template-rows: auto;
}

.grid-column {
    position: relative;
    display: block;
}

.story-container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: var(--width);
}

.story-content {
    position: relative;
    display: block;
    padding-top: 60px;
    padding-bottom: 60px;
}

.story-header {
    position: relative;
    display: flex;
    margin-bottom: 30px;
    padding: 12px 0;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid white;
    font-family: "Piazzolla", serif;
    font-size: 21px;
}

.reference {
    font-family: "Piazzolla", serif;
    text-transform: capitalize;
    color: orange;
    opacity: 0.8;
}

blockquote {
    margin: 60px 0;
    padding-left: 90px;
}

blockquote p {
    line-height: 1.4em;
}

blockquote p:first-child {
    font-family: "Piazzolla", serif;
    font-size: 36px;
    font-style: italic;
    font-weight: 600;
}

blockquote p:last-child {
    font-size: 30px;
    opacity: .7;
}

img.backdrop-left {
    margin-bottom: 1rem;
    opacity: .5;
    width: 700px;
}

.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: black;
}

.nav-links .nav-link {
    position: relative;
    display: flex;
    padding: 6px 9px;
    align-items: center;
    color: white;
    font-family: apple-new-york-large, serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
    opacity: .5;
    text-decoration: none;
    transition: opacity .3s ease-in-out;
    vertical-align: middle;
}

.nav-links .nav-link.nav-angle svg {
    height: 24px;
    vertical-align: middle;
}

.nav-links .nav-link.is-active,
.nav-links .nav-link:hover {
    opacity: 1;
}

#slides-nav {
    position: fixed;
    left: 12px;
    bottom: 12px;
}

@media only screen and (max-width: 1500px) {
    :root {
        --width: 1200px;
    }

    img.backdrop-left {
        width: 500px;
    }
}

@media only screen and (max-width: 1200px) {
    :root {
        --width: 900px;
    }

    .grid {
        grid-template-columns: 300px 1fr;
        grid-template-rows: repeat(2, auto);
    }

    .grid-column:first-child {
        grid-row: 1/span 2;
    }

    .editors-note {
        margin-top: 30px !important;
    }
}

@media only screen and (max-width: 900px) {
    :root {
        --width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
    }

    .grid-column:first-child em {
       display: none;
    }

    .grid-column:not(:first-child) {
        padding: 30px;
    }

    img.backdrop-left {
        position: absolute;
        width: 100%;
        opacity: 0.3;
    }

    .slide-link{
        display: none !important;
    }
}
