@font-face {
    font-family: "interface";
    src: url(../fonts/AUTHENTICSans-90.woff);
}

@font-face {
    font-family: "body";
    src: url(../fonts/Charis-Regular.woff2);
}

@font-face {
    font-family: "logo";
    src: url(../fonts/BBBBaskervvol-Book.woff2);
}

:root {
    --color-primary: #00C1B0;
    --color-primary-text: #000;
    --color-secondary-text: #444;
    --color-border: #ddd;
    --color-background: #f6fffe;
}

html {
    font-size: 16pt;
    scroll-behavior: smooth;
}

body {
    color: var(--color-primary-text);
    font-family: body;
    letter-spacing: 0.01ch;
    line-height: 1.4em;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em 2em;
    background-color: var(--color-background);
    text-wrap: pretty !important;
}

main {
    flex-grow: 1;
    margin: 0;
}

article {
    max-width: 80ch;
}

div {
    &.container {
        display: flex;
        flex-direction: column;
        min-height: calc(100svh - 2em);
    }
}

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

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--color-primary-text);

    &:hover {
        color: var(--color-primary-text);
    }

    &:active {
        color: var(--color-primary-text);
    }

    &:focus {
        color: var(--color-primary-text);
        outline: var(--color-primary-text);
    }

    .kg-button-card & {
        &.kg-btn,
        &.kg-btn-accent {
            font-family: interface, sans-serif !important;
            border: 2px solid #61d7c6;
            display: inline-block;
            
            padding: 1.6em 1.25em 1.25em !important;
            margin: 0.5em 0;
            text-decoration: none;
            font-size: 0.75em !important;
            text-transform: uppercase;
            background-color: var(--color-primary) !important;
            /* border-radius: 0 !important; */
            color: var(--color-primary-text);
        }
    }

    &.kg-cta-button {
        font-family: interface, sans-serif !important;
        border-radius: 0 !important;
        padding: 0.75em 1em 0.5em 1em !important;
        background-color: var(--color-secondary-text) !important;
    }
}

p:last-of-type {
    margin-bottom: 1em;
}

p,
ul,
ol,
dl,
pre {
    margin-top: 1em;
}

blockquote,
hr,
pre,
table {
    margin: 1em 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary-text);
    line-height: 1.3em;
    margin: 1em 0;
    font-family: interface, sans-serif;
    font-weight: 500;
}

h1 {
    font-size: 1.7em;
    margin-top: 0;
    margin-bottom: 1.25em;
    line-height: 1.25em;
}

h2 {
    font-size: 1.3em;
    margin-top: 1,5em;
    margin-bottom: 0.8em;
}

h3 {
  font-sie: 1.2em;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

ul,
ol {
    &>li {
        list-style: inherit;
        margin-top: 0.25em;
    }
}

hr,
.separator {
    border-top: 1px solid var(--color-border);
    border-bottom: none;
    border-left: none;
    border-right: none;
    margin: 2em 0;
    clear: both;
    background: none;

    .tag-clients &, .tag-about & {
        background: none;
        border: none;
        margin: 0 !important;
        padding: 0;
        height: 0;
    }
}

[type=button],
[type=submit],
button {
    border-radius: none;
    cursor: pointer;
    vertical-align: top;
    text-align: center;
}

header#header {
    align-items: baseline;
    display: flex;
    margin: 1em 0 2em 0;
    justify-content: space-between;
    font-family: interface, sans-serif;
    font-size: 1.4em;

    padding-bottom: 1em;
    border-bottom: 2px solid var(--color-border);
    
    .logo {
        display: block;

        a  {
            text-decoration: none;
            font-family: logo;
            font-size: 1.5em;
            line-height: 1.75rem;
        }
    }

    nav {
        ul {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            font-size: 1rem;

            li {
                display: block;
                padding: 0;
                position: relative;
                white-space: nowrap;
                text-align: right;

                a {
                    display: block;
                    padding: 0 0 0 1.5em;
                    cursor: pointer;
                    text-decoration: none;

                    &:active,
                    &:focus,
                    &:hover {
                        color: var(--color-primary-text);
                        outline: none;
                        text-decoration: underline;
                    }

                }
            }

        }

    }

}

footer {
    font-size: 0.8em;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 2em;
    padding-top: 1em;
    border-top: solid 2px #ddd;
}


article#home {
    display: flex;
    flex-direction: row;
    max-width: 100%;

    figure {
        max-width: 60%;
        margin-left: 2em;
    }

    section {
        max-width: 40%;
    }

    h2 {
      margin-top: 0;
    }
}

article.page {
    figure {
        max-width: 40%;
        margin-left: 0;
        margin-right: 1.5em;
        margin-top: 0.3em;
        margin-bottom: 1em;
        float: left;
    }

  &.tag-about {
    figure {
      margin-bottom: 0;
    }
  }
}

figure {
  figcaption {
    font-size: 0.6em;
  }
}

.kg-cta-card {
    border-radius: 0 !important;
    margin: 2em 0;
}

.posts-list {
    margin-bottom: 2em;
    
    .post {
        display: flex;
        width: 100%;
        margin: 0.5em 0;

        a {
            display: block;
        }

        .date {
            width: 15ch;
            font-size: 0.8em;
        }
    }
}

article.post:not(.page) {
    h1 {
        margin-bottom: 0em;
    }
    time {
        margin-bottom: 2em;
        display: block;
    }
    figure.feature-image {
        margin: 0;
        width: 100%;
        
        img {
            border: none;
            display: block;
        }
    }
}

header.gh-portal-signup-header {
  font-family: logo;
}

/* mobile! */
@media screen and (max-width: 600px) {
    body {
        padding: 1em;
    }

    header#header {
        flex-direction: column;
        nav {
            margin-top: 1em;
            ul {
                flex-direction: column;
                li {
                    text-align: left;
                    a {
                        padding: 0.1em 0;
                    }
                }
            }
        }
    }
    
    article#home {
        flex-direction: column-reverse;
        padding: 0;
        margin: 0;
        
        figure, section {
            max-width: 100%;
            width: 100%;
            margin: 0;
        }
    }

    article.page {
        figure {
            max-width: 100%;
            width: 100%;
            float: none;
        }
    }

    .posts-list {
        .post {
            flex-direction: column;
            margin: 1em 0;
        }
    }
}

form {
    label {
        display: block;
        margin: 1em 0;
    }
    textarea, input {
        display: block;
        padding: 0.25em;
        width: 40%;
    }
}
