﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    position: relative;
    font-family: 'IBM Plex Sans', sans-serif;
    color: #000;
    background-color: #fff;
    box-shadow: inset 0 0 20px 10px rgba(0,0,0,0.03);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    user-select: none;
}

h1, h2, h3, h4, h5 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-weight: 600;
    font-style: normal;
}

article h2, article h3, article h4, article h5 {
    font-family: 'IBM Plex Sans', sans-serif;
}

p, ul, ol {
    font-size: 1.125rem;
}

article p, article ul, article ol {
    font-family: 'Source Serif', sans-serif;
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.8em;
    hanging-punctuation: first;
    hyphens: auto;
    hyphenate-limit-lines: 1;
    hyphenate-limit-chars: 2 2;
}

p, li:last-of-type {
    margin-block-end: 0.5em;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

strong {
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: color 0.2s linear;
    -webkit-user-drag: none;
}

a:hover {
    color: #46aae8;
}

abbr {
    text-decoration: none;
    cursor: help;
}

img {
    box-sizing: content-box;
    -ms-interpolation-mode: bicubic;
    -webkit-user-drag: none;
}

::selection {
    background-color: #CEE3F0;
}

/* header */

header > div {
    background-color: #0477BF;
    color: #FFF;
}

header > div > p {
    font-family: 'Keep Calm', 'Gotham', sans-serif;
    font-weight: 700;
    font-size: 9vw;
    font-feature-settings: 'kern' 1;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.15em;
    padding: 0.4em 0 0.3em 0;
    margin: 0;
}

header > div > p > a {
    color: inherit;
}

header > div > p > a:hover {
    color: #BCD4E3;
}

header > div > p > a::selection {
    background-color: transparent;
}

@media (min-width: 44.44rem) { /* = 5 ∙ 10 ÷ 0.9 */
    header > div > p {
        font-size: 4rem;
    }
}

header > hr {
    height: 0.75vw;
    background-color: #46aae8;
    border: none;
}

@media (min-width: 37.5rem) { /* = 5 ∙ 10 ∙ 0.75 */
    header > hr {
        height: 5px;
    }
}

header > h1 {
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
}

/* menu */

nav {
    margin: 3rem 0;
}

nav > ul {
    display: flex;
    justify-content: space-evenly;
}

@media (max-width: 43rem) /* manually */ {
    nav > ul {
        flex-direction: column;
        row-gap: 20px;
    }

    nav > ul > li > h1 {
        font-size: 7vw;
        margin-left: 4vw;
        margin-right: 4vw;
        padding: 0 1rem;
    }
}

nav > ul > li {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
    list-style-type: none;
    text-transform: uppercase;
    text-align: center;
}

@media (min-width: 80rem) /* manually */ {
    nav > ul > li {
        width: 33vw;
    }
}

nav > ul > li > a, nav > ul > li > h1 {
    font-size: 2.75rem;
}

nav > ul > li > h1 {
    font-size: 2.75rem;
    font-weight: 600;
}

nav > ul > li > h1 > a {
    color: #0477BF;
}

nav > ul > li > a {
    color: #000;
}

@media (max-width: 30rem) /* manually */ {
    nav > ul > li > h1, nav > ul > li a {
        font-size: 2rem;
    }
}

@media (max-width: 20rem) /* manually */ {
    nav > ul > li > h1, nav > ul > li a {
        font-size: 1.5rem;
    }
}