/* Base: HTML5 Boilerplate v6.1.0
 + opinionated styles */

html {
    /* https://css-tricks.com/couple-takes-sticky-footer/#article-header-id-3 */
    height: 100%;
    color: #3c3c3b;
    font-size: 14px;
    letter-spacing: .5px;
    font-family: 'aktiv-grotesk', arial, sans-serif;
    line-height: 1.4;
    overflow-y: scroll;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    /* https://css-tricks.com/couple-takes-sticky-footer/#article-header-id-3 */
    display: flex;
    height: 100%;
    flex-direction: column;
}
.touchevents body {
    /* https://stackoverflow.com/questions/14795944/jquery-click-events-not-working-in-ios */
    cursor: pointer;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/* ==========================================================================
   Opinionated base styling
   ========================================================================== */

* {
    box-sizing: border-box;
}

iframe {
    border: 0;
}

figure {
    margin: 0;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5 {
    margin: 1em 0 0;
    font-weight: 600;
    line-height: 1.5;
}
h1,
.h1 {
    font-size: 28px;
    line-height: 1.33;
}
h1 + .c-element__subheadline {
    font-size: 28px;
    font-weight: 600;
}
h2,
.h2 {
    font-size: 24px;
}
h2 + .c-element__subheadline {
    font-size: 24px;
    font-weight: 600;
}
h3,
.h3 {
    font-size: 20px;
}
h3 + .c-element__subheadline {
    font-size: 20px;
    font-weight: 600;
}
h4,
.h4 {
    font-size: 16px;
}
h4 + .c-element__subheadline {
    font-size: 16px;
    font-weight: 600;
}

p {
    line-height: 1.75;
    margin: 1em 0 0;
}

img {
    height: auto;
    max-width: 100%;
}

a {
    color: #0055ff;
    text-decoration: none;
}
.no-touchevents a:hover,
a:focus {
    color: #003399;
}

ul,
ol {
    margin: 1.5em 0 0;
    padding: 0 0 0 2em;
}
ul ul,
ol ul,
ul ol,
ol ol {
    margin-top: 0;
}

h1:first-child,
.h1:first-child,
h2:first-child,
.h2:first-child,
h3:first-child,
.h3:first-child,
h4:first-child,
.h4:first-child,
h5:first-child,
.h5:first-child,
p:first-child,
ul:first-child,
ol:first-child {
    margin-top: 0;
}

abbr[title] {
    cursor: help;
    border-bottom: 1px dotted #777;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    background-color: #3c3c3b;
    margin: 1.4em 0;
    padding: 0;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="email"],
textarea {
    border: 0;
    border-bottom: 2px solid #3c3c3b;
    border-radius: 0;
    background: #e6e6e6;
    color: #000;
    /* overwrite required due to user-agent css */
    font-size: 20px;
    padding: 25px 20px 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* https://stackoverflow.com/questions/42421361/input-button-elements-not-shrinking-in-a-flex-container */
    min-width: 0;
    transition: border-color .3s, background .3s;
}
textarea {
    /* or use valign: middle */
    display: block;
    min-width: 100px;
    max-width: 100%;
    min-height: 100px;
    max-height: 300px;
    padding-top: 30px;
    resize: vertical;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #0055ff;
    /* Hide outline in chrome */
    outline: none;
}

/* https://medium.com/simple-human/buttons-shouldnt-have-a-hand-cursor-b11e99ca374b#.dhq8oeg45 */
input[type="checkbox"],
input[type="radio"],
input[type="image"],
select,
button {
    cursor: default;
}

button:focus {
    outline: none;
}
button[disabled],
input[disabled],
select[disabled] {
    cursor: not-allowed;
}

input[type=number] {
    -moz-appearance: textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

@media ( min-width: 992px ) {
    html {
        font-size: 16px;
    }

    h1,
    .h1 {
        font-size: 38px;
    }
    h1 + .c-element__subheadline {
        font-size: 38px;
    }
    h2,
    .h2 {
        font-size: 32px;
    }
    h2 + .c-element__subheadline {
        font-size: 32px;
    }
    h3,
    .h3 {
        font-size: 25px;
    }
    h3 + .c-element__subheadline {
        font-size: 25px;
    }
    h4,
    .h4 {
        font-size: 21px;
    }
    h4 + .c-element__subheadline {
        font-size: 21px;
    }
}
@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }
}
@media ( min-width: 1600px ) {
    html {
        font-size: 20px;
    }

    h1,
    .h1 {
        font-size: 48px;
    }
    h1 + .c-element__subheadline {
        font-size: 48px;
    }
    h2,
    .h2 {
        font-size: 36px;
    }
    h2 + .c-element__subheadline {
        font-size: 36px;
    }
    h3,
    .h3 {
        font-size: 28px;
    }
    h3 + .c-element__subheadline {
        font-size: 28px;
    }
    h4,
    .h4 {
        font-size: 24px;
    }
    h4 + .c-element__subheadline {
        font-size: 20px;
    }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }
    img {
        max-width: 100% !important;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
