:root {
    --main-text-color: #002800;
    --nav-accent-color: #e03f69;
    --menu-active-color: #f9b4b4;
}

/*
 *  Base styles
 */

html {
    height: 100%;
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    line-height: 1.25;
    background: #fff2ec;
    color: #002800; /* var(--main-text-color) */
}

h1, h2, h3, h4, h5, h6, p, label {
    color: #002800; /* var(--main-text-color) */
    margin-top: 0;
}

h2, h3, h4 {
    margin-bottom: .2rem;
    align:;
}

ol {
    margin-top: -.5rem;
}

    ol li {
        margin-bottom: .4rem;
    }

a, a:visited {
    color: #0067AC;
    text-decoration: none;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*
 *  Menu 
 *  (https://code-boxx.com/simple-responsive-pure-css-hamburger-menu)
 */

nav {
    position: absolute;
    right: 0;
    font-size: calc(1rem - 2px);
    font-weight: 500;
    text-align: right;
    z-index: 20;
    -webkit-transform: translate3d(0,0,2px);
}

    nav ul, nav li {
        display: inline-block;
    }

/* Hamburger (hidden on big screens) */
#menu-hamburger {
    color: ivory;
    background: #e03f69; /* var(--nav-accent-color) */
    padding: 11px 14px;
    margin-left: 5px;
}

#menu-label, #menu-hamburger, #menu-checkbox {
    display: none;
}

/* Menu items */
nav ul {
    list-style-type: none;
    margin: 0;
}

nav li {
    padding: .6em;
}

nav a, nav a:visited {
    color: #002800; /* var(--main-text-color) */
}

    nav a:hover, nav a:active {
        color: #e03f69; /* var(--nav-accent-color) */
    }

/*
 *  Splash
 */

header {
    background: ivory;
    padding-bottom: .4em;
}

#splash .logo {
    font-weight: 600;
    line-height: 1.15em;
    padding-bottom: .3em;
}

#splash img {
    display: block;
    margin: auto;
    width: 6.6em;
    padding-bottom: .3em;
    cursor: pointer;
}

#splash .logo .big {
    font-size: 1.4em;
    text-transform: uppercase;
    padding-bottom: .25em;
}

#splash p {
    display: block;
    font-style: italic;
    margin-top: 1em;
}

header.home #splash {
    padding: 5em 1em 2em 1em;
    text-align: center;
}

header.small #splash img {
    display: inline;
    vertical-align: top;
    margin: 8px .3em 0 14px;
    width: 6.2em;
}

header.small #splash .text {
    display: inline-block;
    padding-top: 11px;
    text-align: center;
    font-size: 75%;
    line-height: 1.4em;
}

header.small #splash .big {
    padding-bottom: .03em;
}

header.small #splash p {
    display: none;
}

/*
 *  Content
 */

.content a, .content a:visited {
    border-bottom: thin solid;
}

    .content a:hover, .content a:active {
        color: #e03f69; /* var(--nav-accent-color) */
    }

.introduction {
    margin-top: 1.5rem;
}

/*
 *  Menus
 */

#actions {
    display: flex;
    justify-content: space-between;
    margin-top: -1rem;
}

.menu-container {
    font-weight: 500;
    font-size: .8rem;
    text-transform: uppercase;
}

.menu {
    position: relative;
    z-index: 10;
    -webkit-transform: translate3d(0,0,1px);
    /* Without this, on iOS the buzzsprout player's iframe overlaps the menu.
       https://stackoverflow.com/a/19572572/362702 
    */
}

#actions .menu > a {
    display: inline-block;
    min-width: 5rem;
    padding: .18rem .8rem;
    border: 1px solid #aed2d6;
    border-radius: .7rem;
    background-color: #ddf6ff;
    text-align: center;
}

    #actions .menu > a:not(:hover) {
        color: #42767b;
    }

.menu a:hover, .menu input:checked ~ a {
    color: #e03f69; /* var(--nav-accent-color) */
}

.menu input {
    display: none; /* Hide the checkbox */
}

    .menu input:checked ~ .menu-content {
        display: block;
    }

.menu-content {
    display: none;
    position: absolute;
    margin-top: .45em;
    font-size: .9rem;
    text-transform: none;
    color: #002800; /* var(--main-text-color) */
    background-color: ivory;
    border: 6px solid #eee;
}

.menu-message {
    padding: .4em 1em .8em;
    font-weight: 400;
    font-style: italic;
    white-space: nowrap;
    background-color: #eee;
}

a.item, a.item:visited {
    display: block; /* make entire item clickable */
    padding: .7em 1em .5em 1em;
    white-space: nowrap;
    color: #002800; /* var(--main-text-color) */
    border-top: 1px solid #eee;
    border-bottom: none;
}

    a.item:hover, a.item:active {
        color: #002800; /* var(--main-text-color) */
        background-color: #f9b4b4; /* var(--menu-active-color) */
    }

.item img {
    height: 1.3em;
    margin: 0 .6em .15em 0;
}

/*
 *  Home page
 */

#mc-embedded-subscribe-form input.email {
    font-size: 15px;
    border: 1px solid #ABB0B2;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    color: #343434;
    background-color: #fff;
    box-sizing: border-box;
    height: 32px;
    display: inline-block;
    margin: 0 0 5px 0;
    width: 350px;
}

#mc-embedded-subscribe-button {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid #aed2d6;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background-color: #ddf6ff;
    color: #42767b;
    box-sizing: border-box;
    height: 32px;
    width: auto;
    padding: 0px 18px 2px 18px;
    display: inline-block;
    margin: 0 0 5px 0;
    transition: all 0.23s ease-in-out 0s;
}

.episode-box {
    border: 1px solid #bbb;
    padding: .6em;
    margin-bottom: 1em;
    background-color: #d7e0c7;
    overflow: auto;
}

    .episode-box:hover {
        cursor: pointer;
        border-color: black;
    }

    .episode-box:focus, .episode-box:active {
        border-color: #e03f69; /* var(--nav-accent-color) */
    }

    .episode-box img {
        height: 5.4em;
        float: left;
        margin-right: .6em;
    }

    .episode-box p {
        margin-bottom: 0;
    }

        .episode-box p:last-child:after {
            content: "\25B8"; /* solid triangle pointing right */
            padding-left: 10px;
            float: right;
            font-size: 1.6em;
            position: relative;
            bottom: .15em;
            margin-bottom: -.3em;
            color: #454;
        }

    .episode-box .date {
        font-size: .7rem;
        font-weight: 600;
        text-transform: uppercase;
        color: #565;
        padding-bottom: .6em;
    }

/*
 *  Print Episode Summary page
 */

.content-print .episodes {
    height: 11in; /* I don't understand why these dimensions make it fit the print page */
    width: 7in;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

    .content-print .episodes > * {
        margin-right: 1em;
    }

.content-print .episode-box p:last-child:after {
    content: "";
    position: fixed;
}

/*
 *  Episode page
 */
.episode-details {
    margin: .5em 0 1em 0;
    overflow: auto;
}

    .episode-details img {
        height: 6.7em;
        float: right;
        padding-left: .6em;
    }

.player-header {
    padding-bottom: .5em;
    color: #555;
}

    .player-header a {
        color: #555;
        border-bottom: none;
    }

.player-container {
    background: rgba(204, 215, 187, 1);
    padding: 1em;
    margin-bottom: 1em;
}

.player {
    width: 100%;
}

div.meta {
    display: none; /* Hide unused element from Buzzsprout player which takes up space */
}

/*
 *  Transcript page
 */

.speaker {
    font-weight: 600;
    margin: .2em 0 .35em 0;
}

.utterance {
    margin: 0 0 .5em 1em;
}

/*
 *  Form
 */

fieldset {
    margin: 0;
    padding: .35em 0 .75em;
    border: 0;
}

form label {
    display: block;
    font-weight: 600;
}

form input[type], form textarea {
    display: inline-block;
    vertical-align: middle;
    box-shadow: none;
    border: 2px solid #ddd;
    border-radius: 4px;
    width: 100%;
    padding: .5em .6em;
    margin: .3em 0 1em;
}

form button {
    font-family: inherit;
    font-size: 100%;
    border: transparent;
    text-decoration: none;
    display: inline-block;
    zoom: 1;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #1f8dd6;
    color: white;
    padding: .35em 2em .5em;
    border-radius: 5px;
}

/*
 *  Footer
 */

body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.all-but-footer {
    flex: 1 0 auto;
}

footer {
    display: flex;
    flex-shrink: 0; /* don't expand vertically */
    justify-content: center;
    background: black;
    color: #bac9ad;
    padding: .5em 0 1.5em;
    font-size: calc(1rem - 2px);
}

    footer .link-group {
        display: flex;
        padding: 1em 0 0 0;
        width: 18em;
    }

    footer .group-label {
        padding: .2em .7em 0 1em;
    }

    footer a, footer a:visited {
        color: white;
        white-space: nowrap;
    }

    footer img {
        width: 1.8em;
        margin: 0 .3em .1em 0;
    }

/* ==========================================================================
   Responsive styles (breakpoints from
   https://medium.freecodecamp.org/the-100-correct-way-to-do-css-breakpoints-88d6a5ba1862)
   ========================================================================== */

/*
 *  Phone only
 */
@media (max-width: 599px) {
    html {
        font-size: 16px;
    }

    .content {
        padding: 1.5rem 1rem 1rem 1rem;
    }

    #actions {
        margin-top: -.5rem;
    }

    header.home #splash .logo {
        font-size: 1.5rem;
    }

    /* Show hamburger */
    header.small #main-menu {
        padding: 15px 15px 0 0;
    }

    header.small #menu-hamburger, header.small #menu-label {
        display: inline-block;
    }

    /* Vertical menu */
    header.small nav li {
        display: block;
        background: #e03f69; /* var(--nav-accent-color) */
        border-top: 1px solid ivory;
        text-align: left;
    }

        header.small nav li a, header.small nav li a:visited {
            color: ivory;
            display: block; /* Makes full menu item clickable */
        }

            header.small nav li a:hover, header.small nav li a:active {
                color: #f9b4b4; /* var(--menu-active-color) */
            }

    /* Show/hide menu on hamburger click */
    header.small nav ul {
        display: none;
    }

    header.small nav input:checked ~ ul {
        display: block;
    }

    #mc-embedded-subscribe-form input.email, #mc-embedded-subscribe-button {
        width: 100%;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

        footer .group-label {
            width: 6.3em;
        }
}

/*
 *  Small phone
 */
@media (max-width: 349px) {
    .episode { /* so numbers show on Buzzsprout player */
        margin-left: -7px;
        margin-right: -7px;
    }
}

/*
 *  Tablet portrait & up
 */
@media (min-width: 600px) {
    html {
        font-size: 17px;
    }

    header.home #splash .logo {
        font-size: 1.8em;
    }

    .content {
        padding: 2rem 3rem 1rem 3rem;
    }

    .episode-box img { /* Home page image */
        height: 7.6em;
    }

    .episode-details img { /* Episode page image */
        height: 9.9em;
    }
}

/*
 * Tablet landscape & up
 */
@media (min-width: 900px) {
    html {
        font-size: 18px;
    }

    nav {
        right: calc((100% - 900px)/2);
    }

    header.small #splash {
        margin-left: calc((100% - 917px)/2);
    }

    .content {
        width: 800px;
        margin: auto;
        padding: 2rem 0 1rem;
    }

    header.home #splash .logo {
        font-size: 2.1em;
    }
}

/*
 *  Desktop & up
 */
@media (min-width: 1200px) {
    html {
        font-size: 19px;
    }

    header.home #splash .logo {
        font-size: 2.4em;
    }
}
