/*   C S S   R E S E T   (selection, https://elad2412.github.io/the-new-css-reset/)   */

/* Preferred box-sizing value */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* For images to not be able to exceed their container */
img {
    max-width: 100%;
}


/*   S O U R C E S   */

:root {
    --primary-text-color: hsl(209, 79%, 6%);
    --primary-background-color: hsl(60, 23%, 97%);
    --primary-font-weight: 450;
    --primary-font-weight-fallback: 400;
    --emphasized-font-weight: 620;
    --emphasized-font-weight-fallback: 600; /* round to 100s for better compatibility */
    --section-and-select-font-weight: 400;
    --inner-heading-font-size: 2rem;
    --footnote-font-size: 1.3rem;
    --brand-complementary-color: hsl(208, 100%, 49%);
    --decorative-lines-color: hsl(180, 10%, 48%);
    --decorative-areas-color: hsl(180, 10%, 92%);
    --image-thin-border-color: hsl(0, 0%, 75%);
    --button-text-color: hsl(0, 0%, 100%);
    --button-padding: 0.4em 0.8em;
    --button-border-radius: 3px;
    --inner-content-width: 820px;
    --outer-content-width: 1580px;
}

@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Variable.ttf") format('truetype');
}

@font-face {
    font-family: "Source Code Roman";
    src: url("../fonts/SourceCodeVariable-Roman.ttf") format('truetype');
}

@font-face {
    font-family: "Macklin Variable Italic";
    src: url("../fonts/Monotype - Macklin Variable Italic.ttf") format('truetype');
}


/*   G L O B A L S   */

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 66px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.58rem;
    line-height: 1.6em;
    font-weight: var(--primary-font-weight-fallback);
    color: var(--primary-text-color);
    background-color: var(--primary-background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; /* push footer to bottom */
    background-repeat: no-repeat;
    background-position: center 0;
    background-color: var(--primary-background-color);
    overflow: visible; /* ensures position:sticky works for child elements */
}

@supports (font-variation-settings: 'wght' 450) {
    body {
        font-family: "Satoshi", sans-serif;
        font-variation-settings: 'wght' var(--primary-font-weight);
        font-feature-settings: 'ss03'; /* stylistic set 3 = alt lowercase t */
        font-synthesis: none; /* will font-synthesis be inherited? */
    }
}

a:link,
a:visited,
a:hover,
a:active {
    color: var(--brand-complementary-color);
    text-decoration: none;
}

h1,
h3,
h4,
h5,
h6 {
    font-weight: var(--emphasized-font-weight-fallback);
    font-variation-settings: 'wght' var(--emphasized-font-weight);
}

h2,
.version-select,
.version-select a:visited,
.version-select a:hover,
.version-select a:link,
.version-select a:active {
    font-family: "Andale Mono", "Menlo", "Consolas", "Lucida Sans Typewriter", "Lucida Console", "Monaco", monospace;
    font-size: 1.26rem;
    font-weight: var(--section-and-select-font-weight);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--decorative-lines-color);
}

@supports (font-variation-settings: 'wght' 450) {
    h2,
    .version-select,
    .version-select a:visited,
    .version-select a:hover,
    .version-select a:link,
    .version-select a:active {
        font-family: "Source Code Roman", monospace;
        font-variation-settings: 'wght' var(--section-and-select-font-weight);
    }
}

ol, ul {
    list-style-position: outside;
    padding-left: 1.5em;
}


/*   N A V I G A T I O N   */

nav.primary {
    display: flex;
    justify-content: center;
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    font-weight: var(--emphasized-font-weight-fallback);
    font-variation-settings: 'wght' var(--emphasized-font-weight);
    line-height: 1.4em;
    background-repeat: no-repeat;
    background-position: center 0;
    background-color: var(--primary-background-color);
    padding: 1.4em 0;
    z-index: 10000;
}

body, nav.primary {
    background-image: url("../images/circle-short.svg");
}

body.home {
    background-image: url("../images/circle-h.svg");
    background-position: 11vw center;
    background-size: cover;
}

body.home nav.primary {
    background-image: none;
    background-color: transparent;
}

body.bookends-for-mac, body.bookends-for-mac nav.primary {
    background-image: url("../images/circle-m.svg");
}

body.bookends-for-ios, body.bookends-for-ios nav.primary {
    background-image: url("../images/circle-i.svg");
}

body.support, body.support nav.primary {
    background-image: url("../images/circle-s.svg");
}

nav.primary a:link,
nav.primary a:visited,
nav.primary a:hover,
nav.primary a:active {
    color: var(--primary-text-color);
}

nav.primary > ul {
    display: flex;
    flex-flow: row;
    width: 100vw;
    max-width: var(--outer-content-width);
    padding-left: 1.7em;
}

nav.primary .brand {
    font-weight: 800;
    font-variation-settings: 'wght' 800;
    letter-spacing: 0.02em;
}

/* .bookends-for-mac nav.primary .brand {
    pointer-events: none;
} */

nav.primary > ul li:hover {
    z-index: 1000;
}

nav.primary .nav-title {
    display: inline;
    padding-bottom: 0.1em;
}

nav.primary .nav-title.active-area {
    border-bottom: 2px solid var(--primary-text-color);
}

nav.primary > ul li {
    /* helps nested ul getting the item's width */
    position: relative;
    display: block;
    cursor: default;
}

nav.primary > ul > li:not(:last-child) {
    margin-right: 1.6rem;
}

nav.primary > ul li ul {
    position: absolute;
    left: -0.8rem;
    top: -0.6rem;
    box-sizing: content-box;
    background-color: hsla(60, 20%, 97%, 0.97);
    min-width: 100%;
    padding: 4rem 0.8rem 0.8rem 0.8rem;
    box-shadow: 0 1px 2px 0 hsla(0, 0%, 0%, 0.3);
    border-radius: 3px;
    white-space: nowrap;
    z-index: -1;
    display: none;
}

nav.primary > ul li ul li a {
    display: block;
    width: 100%;
    padding-right: 0.8rem;
}

nav.primary > ul li:hover ul {
    display: block;
}


/*   H E A D E R   */

header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 4.4rem 0 10.6rem 0;
}

header a:link,
header a:visited,
header a:hover,
header a:active,
.home-text a:link,
.home-text a:visited,
.home-text a:hover,
.home-text a:active {
    color: var(--primary-text-color);
    padding-bottom: 1px;
    border-bottom: 1px solid var(--primary-text-color);
}

header .impact {
    position: relative; 
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 3.2rem;
    margin: 0 5vw 3.2rem 5vw;
    width: 92vw;
    max-width: 1360px;
}

.support header .impact {
    max-width: 1290px;
}

header .impact figure {
    position: relative;
    width: 408px;
    flex-shrink: 0;
    line-height: 0;
}

.support header .impact figure {
    width: 280px;
}

header .impact img, .home img {
    border-radius: 50%;
    /* mimick inner, overlayed border: */
    box-shadow: inset 0 0 1px 0 hsl(0, 0%, 0%);
}

header h1, .home h1 {
    position: relative;
    font-size: 5.1vw;
    font-weight: 700;
    font-variation-settings: 'wght' 680;
    line-height: 1.05em;
    text-shadow: 0 0 0.8em hsla(0, 0%, 100%, 0.2);
}

header h1 {
    left: -8rem;
    top: -1.4rem;
}

.support header h1 {
    top: 0;
    left: 2rem;
}

header .info {
    width: 92vw;
    max-width: var(--inner-content-width);
    margin: 0 5vw;
}

header .info > * {
    margin: 0 0 1.2rem 64px;
    line-height: 1.3em;
    margin-bottom: 1.6rem;
}

header p, header ul, .home-text p {
    font-weight: var(--emphasized-font-weight-fallback);
    font-variation-settings: 'wght' var(--emphasized-font-weight);
}

header ul {
    display: flex;
    padding-left: 0;
    list-style-type: none;
}

header ul li {
    display: block;
}

header ul li:not(:last-child) {
    margin-right: 1.8rem;
}

header ul li:first-child a {
    color: var(--button-text-color);
    background-color: var(--primary-text-color);
    padding: var(--button-padding);
    border-radius: var(--button-border-radius);
    margin-right: 0.14em;
}


/*   M A I N   */

main {
    width: 92vw;
    max-width: var(--inner-content-width);
    flex: 1; /* push footer to bottom */
    margin: 0 5vw;
}

main h1 {
    font-size: 4.1rem;
    line-height: 1.1em;
    margin-bottom: 0.4em;
}

main h2 {
    margin-bottom: 3rem;
}

main h3 {
    font-size: var(--inner-heading-font-size);
    margin-bottom: 0.6em;
}

main h3:not(:first-of-type) {
    /*
    Using padding-top in place of margin-top to prevent margin collapse (e.g. with pre blocks)
    If this value changes, you need to adjust…
    • padding-bottom of p:not(:last-child) et al
    • padding-bottom of .footnote p
    • margin of main section.outro a, a.btn
    */
    padding-top: 2.6rem;
}

main h4 {
    font-size: var(--inner-heading-font-size);
    font-weight: 500; /* avoid fallback var here, go slightly bolder instead */
    font-variation-settings: 'wght' var(--primary-font-weight);
    margin: 0.8em 0 0.6em 0;
}

main section {
    position: relative;
    margin: 0 0 4.2em 64px;
}

main strong {
    font-weight: var(--emphasized-font-weight-fallback);
    font-variation-settings: 'wght' var(--emphasized-font-weight);
}

main .footnote p, form label {
    font-size: var(--footnote-font-size);
    line-height: 1.36em;
    padding-bottom: 0.9em;
    color: var(--decorative-lines-color);
}

main .header-inline {
    position: relative;
    margin: 62px 0 6rem 64px;
}

main ol li::marker {
    font-weight: var(--emphasized-font-weight-fallback);
    font-variation-settings: 'wght' var(--emphasized-font-weight);
}

main section p:not(:last-child),
main section ol:not(:last-child),
main section ul:not(:last-child)
{
    padding-bottom: 0.9em;
}

main section code {
	color: #07a; /* from prism .token */
	background: none;
    font-family: "Andale Mono", "Menlo", "Consolas", "Lucida Sans Typewriter", "Lucida Console", "Monaco", monospace;
	font-size: 0.94em; /* as in prism */
    letter-spacing: -0.03em;
}

main section.outro {
    display: flex;
    justify-content: center;
    color: var(--decorative-lines-color);
    margin: 8rem 0;
}

main section.outro > div {
    width: 10em;
    margin: 0 0.7em;
}

main section.outro p:last-child {
    font-size: var(--footnote-font-size);
    line-height: 1.36em;
}

main section.outro a, a.btn, form input.btn {
    font-size: initial;
    display: inline-block;
    font-weight: var(--emphasized-font-weight-fallback);
    font-variation-settings: 'wght' var(--emphasized-font-weight);
    text-align: center;
    border: none;
    box-shadow: none;
    color: var(--button-text-color);
    background-color: var(--primary-text-color);
    padding: var(--button-padding);
    border-radius: var(--button-border-radius);
    margin: 0.2em 0 0.6em 0;
}

main section.outro a {
    display: block;
    margin-bottom: 0;
}

header a.appStore-btn, a.appStore-btn {
    content: url("../images/download_on_the_app_store_badge_us-uk_rgb_blk_092917.svg");
    display: inline-block;
    border-bottom: none;
}

main section::before {
    content: var(--icon);
    position: absolute;
    top: -15px;
    left: -64px;
}

main section.break::before, main section.outro::before {
    content: none;
}

main .figurewrapper {
    display: flex;
    justify-content: center;
}

main figure img, main div.bordered figure img {
    margin: 0.2em 0 1.2em 0;
    border: 0.5px solid var(--image-thin-border-color);
}

main div.inline {
    width: 172px;
    max-width: 36%;
}

main div.inline.left {
    float: left;
    margin: 0 1em 0.4em 0;
}

main div.inline.right {
    float: right;
    margin: 0 0 0.4em 1em;
}

main div.inline figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 50%;
    border: 0.5px solid var(--image-thin-border-color);
}

main div.borderless figure img {
    margin: 0;
    border: none;
}

.break {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 1.4rem; /* balance optically with left alligned text */
}

.break.testimonial {
    color: hsl(156, 100%, 22%);
    background: no-repeat center center url("../images/testimonial-bubble.svg");
    min-height: 141px;
}

.break.review {
    color: hsl(14, 100%, 40%);
    background: no-repeat center center url("../images/review-thumb.svg");
    min-height: 158px;
}

.break.rating {
    color: hsl(207, 100%, 36%);
    background: no-repeat center center url("../images/rating-star.svg");
    min-height: 174px;
    text-align: center;
}

.break.rating div {
    font-size: 2.5rem;
    max-width: 14em;
}

.break.testimonial div, .break.review div {
    font-family: "Georgia", "Lucida Bright", "Times New Roman", serif;
    font-style: italic;
    font-weight: 300;
    font-size: 2.5rem;
    line-height: 1em;
    max-width: 14em;
    position: relative;
}

@supports (font-variation-settings: 'wght' 450) {
    .break.testimonial div, .break.review div {
        font-family: "Macklin Variable Italic", serif;
        font-style: normal;
        font-variation-settings: 'CONT' 1, 'wght' 280;
    }
}

.break.review div::before {
    content: url("../images/opening-quote.svg");
    position: absolute;
    top: -0.08em;
    left: -44px;
    font-size: 8rem;
    line-height: 0;
}

.break footer {
    all: initial; /* detach from global footer styles */
    font-size: inherit;
    display: block;
    color: inherit;
    font-family: inherit;
    line-height: 1.2em;
}

.break.testimonial footer, .break.review footer {
    margin-top: 0.4em;
    text-align: right;
}

.break.rating footer {
    margin-top: 0.8em;
    text-align: center;
}

/*   M A I N   ( H O M E )   */

.home > div { /* wrapper for the figure, headline and text elements */
    position: relative;
    width: 100vw;
    max-width: 2000px;
    max-height: 82vh;
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    justify-content: flex-end;
}

.home figure {
    transform: translate(-56px, 0);
    height: 58%; /* fallback if calc, vh, vw are not supported */
    height: calc(36vw + 28vh);
    max-height: 58vh;
    flex-grow: 1;
    flex-shrink: 1;
}

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

.home-text {
    position: relative;
    margin-left: 16vw;
    padding-right: 2em;
    width: 76%;
    max-width: var(--outer-content-width);
    flex-grow: 1;
}

.home h1 {
    margin-top: -1.8em;
    margin-bottom: 1.8rem;
}

/*   M A I N   ( F O R   M A C   >   P R O M O T I O N   B A D G E )   */

.promotion {
    position: absolute;
    width: 100vw;
    max-width: var(--outer-content-width);
    display: flex;
    justify-content: flex-end;
    padding-right: 4.6vw;
    top: 0;
    pointer-events: none;
    z-index: 20000;
}

.promotion a:link,
.promotion a:visited,
.promotion a:hover,
.promotion a:active {
    position: relative;
    top: -2.6em;
    display: flex;
    align-items: center;
    width: 12em;
    height: 12em;
    aspect-ratio: 1 / 1;
    padding: 1.5em;
    border-radius: 50%;
    font-weight: var(--emphasized-font-weight-fallback);
    font-variation-settings: 'wght' var(--emphasized-font-weight);
    font-size: 1.84rem;
    line-height: 1.14em;
    text-align: center;
    color: var(--brand-complementary-color);
    background-color: var(--primary-background-color);
    text-decoration: none;
    pointer-events: auto;
}

.promotion p {
    position: relative;
    top: 1rem;
}

/*   M A I N   ( V E R S I O N   H I S T O R Y )   */

.release-heading {
    display: flex;
    align-items: center;
}

.release-heading:not(:first-of-type) {
    margin-top: 3.8rem;
}

.release-heading h3 {
    margin-bottom: 0;
}

.release-heading a {
    position: relative;
    height: 1.26em;
    top: 0.2em;
    margin-left: 0.4em;
    content: url("../images/mac-app-download-glyph.svg");
}

.version-history main .footnote p {
    padding: 0.2em 0 1.2em 0;
}

.version-history main section ul {
    font-weight: var(--emphasized-font-weight-fallback);
    font-variation-settings: 'wght' var(--emphasized-font-weight);
}

.version-history main section ul li {
    padding-bottom: 0.6em;
}

.version-history main section ul li ul {
    font-weight: var(--primary-font-weight-fallback);
    font-variation-settings: 'wght' var(--primary-font-weight);
    list-style: none;
    padding: 0;
}

.version-history main section ul li ul li {
    padding: 0;
}

.version-history main section p:not(:last-child),
.version-history main section ol:not(:last-child),
.version-history main section ul:not(:last-child) {
    padding-bottom: 0;
}

div.version-select {
    position: relative;
    list-style: none;
    width: 10.2em;
    padding: 0.3em 0.5em;
    border: 0.5px solid var(--decorative-lines-color);
    border-radius: 5px;
    background-color: var(--primary-background-color);
    white-space: no-wrap;
    background: no-repeat center right url("../images/icon-chevron.svg");
    cursor: default;
}

div.version-select ul {
    position: absolute;
    top: 1.96em;
    width: 10.2em;
    left: -0.5px;
    display: none;
    list-style: none;
    padding: 0.5em 0.5em 0 0.5em;
    border: 0.5px solid var(--decorative-lines-color);
    border-radius: 0 0 5px 5px;
    background-color: var(--primary-background-color);
}

div.version-select:hover {
    border-radius: 5px 5px 0 0;
}

div.version-select:hover ul {
    display: inline-block;
}

.version-select,
.version-select a:visited,
.version-select a:hover,
.version-select a:link,
.version-select a:active {
    display: block;
    line-height: 1.4em;
}

.version-select a:hover {
    color: var(--primary-text-color);
}

/*   M A I N   ( F A Q )   */

.spacer { /* Adds whitespace between "questions" and "answers" */
    display: block;
    width: 100%;
    height: 5rem;
}


/*   M A I N   ( T E C H   S U P P O R T )   */

/* Modelled after https://getkirby.com/docs/cookbook/forms/basic-contact-form */

form {
    padding-top: 1.6rem;
}

.cul-de-sac {
    position: absolute;
    left: -9999px;
}

form > div {
    margin-bottom: 1.2rem;
}

form label {
    display: block;
    padding-bottom: 0.3rem;
}

.form-peanuts {
    display: flex;
    justify-content: space-between;
}

.form-peanuts > div {
    width: 32.6%;
}

.field input[type="text"],
.field input[type="email"],
.field textarea,
.form-peanuts select {
    display: block;
    width: 100%;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
    border: 0.5px solid var(--decorative-lines-color);
    border-radius: 2px;
    padding: 0.3rem 0.5rem;
    font-size: 1.26rem;
}

.field textarea {
    resize:vertical;
}

form input[type="submit"] {
    margin-top: 1.4rem;
}

form span.alert {
    display: block;
    padding-top: 0.3rem;
    font-size: var(--footnote-font-size);
    line-height: 1.1em;
    color: red;
}

form span.alert::before {
    content: "↑ ";
}


/*   F O O T E R   */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: var(--decorative-areas-color);
    margin-top: 5rem;
    padding: 4rem 0 5rem;
    font-size: var(--footnote-font-size);
    line-height: 1.2em;
}

footer > div { /* the wrapper for the footer content */
    width: 92vw;
    max-width: var(--inner-content-width);
    flex: 1;
    padding-left: 64px;
}

nav.secondary {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding-bottom: 2em;
}

nav.secondary > div {
    width: 25%;
}

nav.secondary h4 {
    padding-bottom: 0.6em;
    font-weight: var(--primary-font-weight-fallback);
    font-variation-settings: 'wght' var(--primary-font-weight);
    color: var(--decorative-lines-color);
}

nav.secondary ul {
    list-style-type: none;
    padding: 0;
}

nav.secondary a:link,
nav.secondary a:visited,
nav.secondary a:hover,
nav.secondary a:active {
    color: var(--primary-text-color)
}

footer .copyright {
    color: var(--decorative-lines-color);
}

footer .copyright a:link,
footer .copyright a:visited,
footer .copyright a:hover,
footer .copyright a:active {
    color: var(--decorative-lines-color)
}


/*   M E D I A   Q U E R I E S   */

@media screen and (min-width: 1580px) { /* 1580 = var(--outer-content-width) */
    header h1, .home h1 {
        font-size: 8.1rem;
    }
}

@media screen and (min-width: 1400px) {
    .support header .info {
        margin-top: -6em;
    }
}

@media screen and (max-width: 940px) {
    header .impact {
        width: 100vw;
    }
    header h1, .home h1 {
        font-size: 4.8rem;
    }
    header h1 {
        left: -7vw;
    }
    .home figure {
        max-height: 52vh;
    }
    header .impact figure {
        width: 38%;
        min-width: 260px;
        margin-left: -9vw;
    }
    main {
        padding-right: 1rem;
    }
    .promotion a:link,
    .promotion a:visited,
    .promotion a:hover,
    .promotion a:active {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    body {
        font-size: 1.5rem;
        line-height: 1.44em;
    }
    body, nav.primary {
        background-size: 280%;
    }
    body, nav.primary {
        background-size: 180vh;
    }
    nav.primary {
        flex-direction: column;
        font-size: 1.36rem;
    }
    nav.primary > ul {
        padding-left: 1.2em;
    }
    nav.primary > ul > li:not(:last-child) {
        margin-right: 1.2rem;
    }
    header {
        padding-bottom: 6rem;
    }
    header .impact {
        margin-bottom: 1.2rem;
    }
    header .impact figure {
        width: 220px;
        min-width: initial;
        margin-left: -95px;
    }
    .support header .impact figure {
        width: 130px;
        min-width: initial;
        margin-left: -62px;
    }
    .home figure {
        max-height: 42vh;
    }
    header h1, .home h1 {
        font-size: 3.8rem;
    }
    header h1 {
        /*
        Get left from known values to align with siblings:
        4vw => from 100vw - main's width / 2 (effectively main's left margin)
        minus 61px => from 64px - 125px (section margin-left minus visible with of .impact figure)
        */
        left: calc(4vw - 61px);
    }
    .support header h1 {
        left: calc(4vw - 2px);
    }
    .support header .info {
        margin-top: -2.8em;
    }
    header ul {
        display: block;
    }
    header ul li {
        display: list-item;
        margin-bottom: 0.6em;
    }
    main h1 {
        font-size: 3.3rem;
    }
    main h2 {
        margin-bottom: 2.2rem;
    }
    main h3, main h4 {
        font-size: 1.8rem;
    }
    .break.rating div {
        font-size: var(--inner-heading-font-size);
    }
    .break.testimonial div, .break.review div {
        font-size: var(--inner-heading-font-size);
    }
    .promotion {
        position: relative;
        justify-content: center;
        padding-right: 0;
        top: 0;
        border-bottom: 2px solid var(--brand-complementary-color);
    }
    .promotion a:link,
    .promotion a:visited,
    .promotion a:hover,
    .promotion a:active {
        top: 0;
        width: 100%;
        height: auto;
        aspect-ratio: initial;
        padding: 0.8em 1.2em;
        border-radius: 0;
    }
    .promotion p {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        top: 0;
    }
    .release-heading a {
        height: 1.2em;
        top: 0.1em;
    }
    .form-peanuts {
        flex-direction: column;
        margin-bottom: 0.4rem;
    }
    .form-peanuts > div {
        width: 100%;
        padding-bottom: 0.8rem;
    }
    nav.secondary {
        flex-wrap: wrap;
    }
    nav.secondary > div {
        width: 50%;
    }
    nav.secondary > div:first-child,
    nav.secondary > div:nth-child(2) {
        padding-bottom: 2em;
    }
}

@media screen and (max-width: 600px) and (pointer:coarse) {
    /* Keep primary navigation items at a tappable size on small touch-enabled devices: */
    nav.primary > ul li ul li a {
        font-size: 1.58rem;
        padding-top: 0.1rem;
        padding-bottom: 0.3rem;
    }    
}

@media screen and (orientation: portrait) {
    .home-text {
        margin-left: 22vw;
    }
}