:root {
    --blue: #32bed7;
    --red: #ec1d31;
    --serif: 'EB Garamond', Garamond, 'Times New Roman';
    --sans: Montserrat, Verdana;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--sans), sans-serif;
    font-size: 12px;
    color: #333;
    font-weight: 400;
    margin: auto;
    padding: 0;
}

a {
    color: #333;
    transition: all .2s;
}

a:hover {}

hr {
    margin: 2em auto;
    padding: 0;
    border: none;
    height: 1px;
    background: none;
border-top: 1px dotted var(--blue);
}

main {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    clear: both;
}

main:after {
    content: '';
    display: block;
    clear: both;
}


/***************************

MAIN BOOK SECTIONS

****************************/

.section {
    width: 100%;
    max-width: 100rem;
    margin: auto;
}

.section:after {
    content: '';
    display: block;
    clear: both;
}

#book {
    padding-bottom: 4em;
}

/* LEFT MARGIN: Bookshot width + 3em */

#book .buylinks,
#book .desc,
#book .reviews {
    padding-left: 38em;
}

/***************************

TITLE + AUTHOR

****************************/

h1,
h2,
h3 {
    margin: auto;
    font-weight: normal;
    line-height: 1.1em;
}

header {
    text-align: center;
    margin: auto;
    padding: 4em 0;
}

header br {
    display: none;
}

header h1,
header h2 {
    font-family: var(--serif), serif;
}

/* LIVE TYPE TITLE */

header h1 {
    font-size: 10em;
    line-height: .8em;
}

/* AUTHOR NAME */

header h2 {
    font-size: 5em;
    text-transform: uppercase;
    border-bottom: 1px dotted #CCC;
    padding-bottom: 3rem;
}


/* SUBTITLE */

header h3 {
    text-transform: uppercase;
    font-size: 1.25em;
    letter-spacing: .1em;
    margin: 2em 0 1em;
    font-weight: 600;
    color: var(--blue)
}

/***************************

BOOK JACKET

****************************/

#book picture.bookshot {
    float: left;
    width: 35em;
    max-width: 600px;
    margin: auto;
}

#book picture.bookshot img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/***************************

BUY LINKS

***************************/

.js .buylinks {
    opacity: 0;
    /* Removes flash from ON SALE JS */
}

#book .buylinks button {
    display: none;
}

#book .buylinks h1 {
    display: inline-block;
    text-transform: uppercase;
    font-size: 2em;
    font-weight: bold;
    color: var(--red)
}

#book .buylinks h2 {
    font-weight:
}


#book .buylinks ul {
    padding: 0;
    /* Removes list indent */
    list-style-type: none;
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    text-align: center;
}

#book .buylinks li {
    display: flex;
    flex: 0 1 19%;
    /* Three buttons per line */
    margin-bottom: 1.5%;
    overflow: hidden;
}


#book .buylinks li a {
    width: 100%;
    padding: .75em 1em;
    text-decoration: none;

    background: transparent;
    color: #333;
    border: 2px solid var(--blue);
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 2em;
    text-overflow: ellipsis;
}

#book .buylinks li a:hover {
    background: var(--blue);
    color: white;
}

#book .buylinks li a:before {
    color: var(--red);
    vertical-align: -.2rem
}

#book .buylinks li a:hover:before {
    color: #111;
}


/***************************

DESCRIPTION

****************************/

.desc {
    margin-top: 2em;
}

.desc h1 {
    font-family: var(--serif), serif;
    font-size: 2em;
    margin-bottom: .5em;
}

.desc p {
    line-height: 1.7em;
    font-size: 1.5em;
    margin-top: 1.5em;
    margin: 0 0 1em 0;
}

.desc p b {
    display: inline;
    line-height: 1em;
}




/***************************

REVIEWS

****************************/

.reviews {
    margin-top: 2em;
}

blockquote {
    margin: auto;
    text-indent: -.5em;
}

blockquote:after {
    content: '';
    display: block;
    clear: right;
}

q {
    font-family: var(--serif), serif;
    quotes: none;
    font-size: 2em;
    line-height: 1.5em;

}

cite {
    font-style: normal;
    display: block;
    line-height: 1.3em;
    font-size: 1.1em;
    margin-top: .5em;
    text-align: right;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .05em;
}

cite:before {
    content: "\2014";
    margin-left: .5em;
}



/***************************

EVENTS

****************************/


#events {
    background: var(--blue);
    background-size: 50%;
    text-align: center;
    padding: 4em 0;

}

#events h1 {
    font-family: var(--sans);
    font-size: 3em;
    letter-spacing: .1em;
    color: white;
    text-transform: uppercase;
}

#events h1 br {
    display: none;
}

#events h1 i {
    color: var(--red);
    font-family: var(--serif);
    text-transform: none;
    letter-spacing: .02em;
    font-size: .8em
}


#events .social img {
    height: .75em;
}

#events p {
    color: white;
    font-size: 1.5em;
}


.loading {
    -webkit-animation: fadeinout .5s infinite;
    animation: fadeinout .5s infinite;
}

@-webkit-keyframes fadeinout {
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}

@keyframes fadeinout {
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}

#events .tour {
    display: none;
    opacity: 0;
    max-width: 80rem;
    margin: 2em auto 0;
    display: table;
    border: .5px;
    border-spacing: 1px 0;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tour .row,
.tour .header {
    display: table-row;
}

.tour .header {
    text-transform: uppercase;
    font-size: .8em;
    white-space: nowrap;
}

.tour .header div {
    display: table-cell;
    padding: .5em;
    background: #333;
    color: white;
    font-weight: bold;
    letter-spacing: .2em;
    color: var(--red)
}

.tour .row > div {
    display: table-cell;
    padding: 1rem 1rem;
    font-size: 1.1em;
    line-height: 1.4rem;
    vertical-align: middle;
    color: white;
}


.tour .row div {
    border-bottom: 1px solid var(--red);
    white-space: nowrap;
}


.tour .row:nth-child(odd) div {
    background: var(--red);
    color: #333;
}

.tour .row div:nth-child(odd) {
    font-weight: bold;
}

.tour .row .venue {
    white-space: normal;
}

.tour .row:last-of-type > div {
    border-bottom: 0;
}

.tour .row .ticket {
    width: 10%;
}

.tour .ticket a, .tour .tbdticket a {
    font-size: 1rem;
    padding: .5em 1em;
    display: block;
    color: #FFF;
    width: 100%;
    background: white;
    color: var(--blue);
    border: 2px solid white;
    text-decoration: none;
    border-radius: 2em;
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: .03em;
}

.tour .ticket a:hover {
    background: var(--blue);
    color: white;
}

.tour .tbdticket a {
    background: black;
    color: white;
    border-color: transparent;
    opacity: .2;
    pointer-events: none;
}

.tour br {
    display: none;
}


/***************************

SOCIAL MEDIA

****************************/


#social {
    background: var(--red);
    text-align: center;
    padding: 4em 0;

}

#social h1 {
    font-family: var(--serif), serif;
    font-size: 2em;
    letter-spacing: .2em;
    margin-bottom: 1em;
    text-transform: uppercase;
}

#social a {
    font-size: 1.5em;
    text-decoration: none;
    display: inline-block;
    margin: 0 1em;
}

#social a:hover {
    text-decoration: underline;
}

#social .social img {
    height: .75em;
}

/***************************

FLATRION FIRST EDITION SIGN UP

****************************/


#newsletter {
    width: 100%;
    max-width: 100em;
    margin: 0 auto 3em;
}

#newsletter h1 {
    font-family: var(--serif), serif;
    font-size: 2em;
    text-transform: uppercase;
    line-height: 1.25em;
    margin: 0 auto;
    padding: 0 .5em .125em;
}

#newsletter form {
    width: 75%;
    margin: 1em auto;
    display: flex;
    align-items: flex-end;
    flex-flow: wrap;
    justify-content: space-between;
}

#newsletter form div {
    margin-top: 1em;
}

#newsletter form .country {
    flex: 1.5;
}

#newsletter form .email {
    flex: 3;
    margin: 0 1em;
}

#newsletter form div input,
#newsletter form div select,
#newsletter form #submit {
    font-family: var(--sans);
    width: 100%;
}


#newsletter form label {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--blue);
    display: block;
    text-align: left;
    margin: 0 0 .5em .5em;
}

#newsletter form div input,
#newsletter form div select {
    padding: .5rem 1rem;
    border: 1px solid var(--blue);
    border-radius: none;
    outline: none;
    margin-right: 1rem;
    border-radius: 5em;
}

#newsletter form .country select {
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--blue) 50%),
        linear-gradient(135deg, var(--blue) 50%, transparent 50%);
    background-position:
        calc(100% - 1.5em) center,
        calc(100% - 1em) center;
    background-size:
        .5em .5em,
        .5em .5em;
    background-repeat: no-repeat;
    cursor: pointer;
    padding-right: 3em;
    text-overflow: ellipsis;
}

#newsletter form select::-ms-expand {
    display: none;
}



::placeholder {
    color: #CCC;
}

#newsletter form #submit {
    display: inline-block;
    vertical-align: bottom;
    padding: calc(.5rem - 1px) 1rem;
    background: var(--red);
    border: 2px solid var(--red);
    border-radius: 5em;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: .2s;
    flex: 1;
}

#newsletter form #submit:hover {
    background: transparent;
    color: var(--red);
}

#newsletter form #submit.nocountry {
    background: white;
    border-color: #CCC;
    color: #ccc;
    cursor: not-allowed;
}


#newsletter #countryrules div {
    display: none;
    margin: 1em auto 0;
    line-height: 1.5em;
    font-weight: normal;

}

/***************************

FOOTER & COPYRIGHT

****************************/

footer {
    color: white;
    text-align: center;
    padding: 3em 0 2em;
    background: #111;
}


footer a {
    color: var(--blue);
}

footer span {
    content: '';
    display: inline-block;
    width: 1em;
}

#logo {
    display: block;
    width: 4em;
    margin: 0 auto .5em;
}

#logo img {
    width: 100%;
}


footer .social {
    display: block;
    text-align: center;
}


footer .social a {
    font-size: 1.25em;
    text-decoration: none;
    line-height: 0;
    font-weight: bold;
    color: antiquewhite;
}



footer .social a {
    white-space: nowrap;
    margin: 0 1em .5em 0;
    display: inline-block;
}

footer .social a:hover {
    text-decoration: underline;
}

footer .social img {
    height: 1.25em;
    width: 1.25em;
    vertical-align: -.375em;
    margin-right: .25em;
}

footer .social div {
    display: inline-block;
    margin: auto;
}

/*!!!!!!!!!!!!!!!!!!!!!!

MEDIA QUERIES

!!!!!!!!!!!!!!!!!!!!!!*/


/* Medium Desktop & Landscape iPad */

@media only screen and (max-width: 1200px) {
    .section {
        padding: 0 5vw;
    }

    #book .buylinks ul li {
        flex: 0 1 32%;
        /* Three buttons per line */
        margin-bottom: 2%;
    }
}

/* Medium Desktop & Landscape iPad */

@media only screen and (max-width: 1024px) {
    .section {
        max-width: 80rem;
    }

    #book picture.bookshot {
        width: 35%;
    }



    #book .buylinks,
    #book .desc {
        padding-left: calc(35% + 2em);
        /* LEFT MARGIN: Bookshot width + 2em */
    }

    #book br {
    display: none;
}

    #book .reviews {
        padding-left: 0;
        clear:  both;
    }

    #book .reviews hr:first-of-type {
        display: none;
    }

    #newsletter form {
        width: 100%
    }

    #newsletter #countryrules div {
        margin: 1em 2em 0;

    }

    #newsletter form .email {
        flex: 2;
    }


    .tour .row div {
        white-space: normal;
    }
}

/* Small Desktop & Portrait iPad */

@media only screen and (max-width: 800px) {

    header br {
    display: block;
}

    header {
        padding: 2em 0;
    }

    header h1 {
        font-size: 12vw;
    }

    header h2 {
        font-size: 6vw;
    }

    .section {
        padding: 0 5vw;
    }

    #book picture.bookshot {
        width: 45%;
        margin-left: 2em;
        float: right;
    }

    #book .buylinks ul li {
        flex: 0 1 49%;
        /* Three buttons per line */
        margin-bottom: 2%;
    }

    #book .buylinks,
    #book .desc {
        padding: 0;
        /* LEFT MARGIN: Bookshot width + 2em */
    }

    #book .desc {
        padding-left: 0;
        margin-bottom: 4em;
    }

    #book .desc p {
        line-height: 2em;
    }

    #book .reviews {
        padding-left: 0;
    }

    #book .buylinks h1 {
        display: inline;
    }


    #events p {
        font-size: 1.5em;
    }


    .tour {
        display: block;
        text-align: left;
    }

    .tour .row,
    .tour .header {
        display: flex;
        flex-flow: wrap;
        align-content: center;
        align-items: center;
        justify-content: space-between;
    }

    .tour .row div,
    .tour .header div {
        display: block;
        border: 0;
        padding-left: 1rem;
    }

    .tour .row {
        padding: 1em 0;
    }

    .tour .row div {
        padding: 0 1em;
    }

    .tour .row:nth-child(odd) {
        background: var(--red);
    }

    .tour .header .venue,
    .tour .header .host {
        display: none;
    }

    .tour .date {
        flex: 0 1 15em;
        white-space: nowrap !important;
        padding-bottom: 1em;
    }

    .tour .row .date {
        border-right: 1px solid var(--red) !important;
    }

    .tour .row:nth-child(odd) .date {
        border-color: white !important;

    }

    .tour .time {
        flex: 1 0 10rem;
    }

    .tour .host {
        flex: 0 1 100%;
        order: 4;
        padding: .5em 1em 0 !important;
        font-weight: bold;
        text-transform: uppercase;
    }

    .tour .host:before {
        font-family: var(--serif);
        content: 'In conversation with ';
        font-size: .9em;
        text-transform: none;
        font-weight: normal;
        font-style: italic;
        line-height: 1.5rem;
        color: var(--blue);

    }


    .tour .venue {
        order: 5;
        flex: 1 0 50%;
        padding: 0 1em 1em !important;
    }

    .tour .venue:before {
        content: 'Venue: ';
        font-weight: bold;
        text-transform: uppercase;
        font-size: .8em;
        line-height: 1.5rem;
        color: var(--blue);
    }

    .tour .row:nth-child(even) .host:before,
    .tour .row:nth-child(even) .venue:before {
        color: white;

    }

    .tour .ticket {
        order: 3;
        flex: 0 1 10rem;
        text-align: center;
    }

    footer .social div {
        display: inline-block;
        text-align: left;
        margin-left: 1rem;
    }


    footer .social a {
        display: block;
    }

}

/* Mobile Device */

@media only screen and (max-width: 600px) {

    header {
        padding: 2em 0;
        margin-bottom: 2em;
        background: var(--red);
        color: white;
    }

    header h1 {
        font-size: 13vw;
        /* responsive title font */
    }

    header h2 {
        font-size: 8vw;
        border: 0;
        padding: 0;
        /* responsive author font */
    }

    header h3 {
        font-size: 1em;
        color: #000
    }

    header br {
        display: none;

    }

    .section {
        /* Responsive side padding */
        padding: 0 5vw;
    }

    #book .buylinks,
    #book .desc {
        /* Remove book float */
        padding-left: 0;
    }


    /* Reorder book details for mobile */

    #book .section {
        display: flex;
        flex-flow: wrap;
    }


    /* Option 1: Move buylinks next to bookshot */

    #book picture.bookshot {
        float: none;
        width: 20vw;
        flex: 1.5;
        margin: 0 2.5vw 0 0;
    }

    #book .buylinks {
        text-align: center;
        flex: 1;
        margin-bottom: 2em;
    }

    #book .buylinks h1 {
        font-size: 1.5em;
    }

    #book .buylinks ul {
        display: block;
        font-size: .8em;
    }



    .js #book picture.bookshot {
        flex: 0 1 60%;
        order: 2;
        margin: 0 auto 2em;
    }

    .js #book .buylinks {
        flex: 0 1 100%;
        order: 1;
        margin: 0 auto 2em;
        width: 100%;
    }


    .js #book .buylinks button {
        width: 14em;
        font-family: var(--sans);
        color: var(--blue);
        font-weight: bold;
        font-size: 1em;
        margin: 1em auto;
        text-align: left;
        display: block;
        background: transparent;
        border: 2px solid var(--blue);
        padding: .5em 3em .75em 1em;
        border-radius: 2em;
        background-image:
            linear-gradient(45deg, transparent 50%, var(--blue) 50%),
            linear-gradient(135deg, var(--blue) 50%, transparent 50%);
        background-position: calc(100% - 1.5em) center, calc(100% - 1em) center;
        background-size: .5em .5em, .5em .5em;
        background-repeat: no-repeat;
        outline: none;
        transition: background-color .2s ease;
    }

    .js #book .buylinks button.clicked {
        border-color: var(--blue);
        background-color: var(--blue);
        background-image:
            linear-gradient(135deg, transparent 50%, white 50%),
            linear-gradient(45deg, white 50%, transparent 50%);
        background-position: calc(100% - 1.5em) center, calc(100% - 1em) center;
        font-weight: bold;
        color: white;
        transition: background-color .2s ease;
    }



    .js #book .buylinks div ul {
        display: none;
        margin-top: .5em;

    }

    .js #book .buylinks ul {
        display: block;
        text-align: left
    }

    .js #book .buylinks ul li {
        margin-bottom: .5em;
        display: inline-block;
        width: 49%;
        text-align: center;
    }

    .js #book .buylinks ul li:nth-of-type(odd) {
        margin-right: 1%;
    }

    .js #book .buylinks ul li a {
        font-size: 1.25em;
        display: block;
    }


    #book .desc {
        order: 3;
        padding: 0;
        margin: 0
    }

    .desc p {
        font-size: 1.25em;
        margin-bottom: 0;

    }

    #book .reviews {
        order: 4;
        font-size: 10px;
    }

    #book .reviews hr:first-of-type {
        display: block;
    }

    #book #events {
        order: 5;
        margin: 0;
        border-width: 2px;
        padding-top: 2em;
    }

    #events h1 {
        font-size: 2em;
    }

    .tour .date {
        flex: 1 0 8em;
        white-space: normal !important;
    }

    .tour .time {
        flex: 1;
    }

    .tour .ticket {
        flex: 1;
    }



    #newsletter #countryrules div {
        text-align: left;
    }


    #newsletter form div {
        margin-top: .5em;
    }

    #newsletter form .country {
        flex: 1;
        order: 4;
        margin-right: 1%;
    }

    #newsletter form .email {
        flex: 1 0 100%;
        margin: 0 0 .5em 0;
    }

    #newsletter form #submit {
        order: 5;
        flex: 1;
    }

    footer span {
        content: '';
        display: block;
    }

}
