﻿@import url("../assets/fonts/Poppins/font.css");
@import url("../assets/fonts/Roboto/font.css");
@import url("../assets/fonts/HPE Graphik/font.css");
@import url("../assets/fonts/HPE Graphik XX Condensed/font.css");
/* @import url("../assets/fonts/Barlow/font.css");           */
/* @import url("../assets/fonts/Barlow Condensed/font.css"); */
/* @import url('https://unpkg.com/open-props');              */

:root {

/* ********************************* *
** *  global general variables     * *
** ********************************* */

    --blue      : #007bff;
    --indigo    : #6610f2;
    --purple    : #6f42c1;
    --pink      : #e83e8c;
    --red       : #dc3545;
    --orange    : #fd7e14;
    --yellow    : #ffc107;
    --green     : #28a745;
    --teal      : #20c997;
    --cyan      : #17a2b8;

    --white     : #ffffff;
    --light     : #f8f9fa;
    --grey      : #6c757d;
    --dark      : #343a40;
    --black     : #000000;

    --primary   : #007bff;
    --secondary : #6c757d;

    --success   : #28a745;
    --info      : #17a2b8;
    --warning   : #ffc107;
    --danger    : #dc3545;

/* ********************************* *
** *         G L O B A L           * *
** ********************************* */

    --nil-width : 0;
    --min-width : 280px;
    --sml-width : 576px;
    --mid-width : 768px;
    --lrg-width : 880px;
    --xlr-width : 992px;
    --std-width : 1200px;
    --wid-width : 1440px;
    --max-width : 2000px;

/* ********************************* *
** *            S I T E            * *
** ********************************* */

    --site__color-dark       : #000000;
    --site__color-light      : #FFFFFF;
    --site__color-text       : #000000; 
    --site__color-accent     : #00A982; 
    --site__color-body       : #00A982;
    --site__color-page       : #FFFFFF;

    --site__color-alert      : #FFFFFF; 
    --site__color-disabled   : #B1A29F;

/* ********************************* *
** *         F O N T S             * *
** ********************************* */

    --fs-300                 : clamp(0.94rem, calc(0.92rem + 0.08vw), 0.98rem);
    --fs-400                 : clamp(1.13rem, calc(1.06rem + 0.33vw), 1.31rem);
    --fs-500                 : clamp(1.35rem, calc(1.21rem + 0.69vw), 1.75rem);
    --fs-600                 : clamp(1.62rem, calc(1.37rem + 1.24vw), 2.33rem);
    --fs-700                 : clamp(1.94rem, calc(1.54rem + 2.03vw), 3.11rem);
    --fs-800                 : clamp(2.33rem, calc(1.70rem + 3.15vw), 4.14rem);
    --fs-900                 : clamp(2.80rem, calc(1.85rem + 4.74vw), 5.52rem);
 
    --ff-code                : monospace;
    --ff-base                : system-ui;
    --ff-regular             : var(--font-family-Graphik);
    --ff-heading             : var(--font-family-Graphik-XX-Condensed);
    --ff-option              : var(--font-family-Roboto);

    --lh-base                : 1.8;
    --lh-regular             : 1.3;
    --lh-heading             : 1;

    --fw-thin                : 100;
    --fw-extralight          : 200;
    --fw-light               : 300;
    --fw-regular             : 400;
    --fw-medium              : 500;
    --fw-semibold            : 600;
    --fw-bold                : 700;
    --fw-extrabold           : 800;
    --fw-black               : 900;

    --text-max-width         : 80ch;
}

@view-transition { navigation: auto; }

@layer reset, layout;

@layer reset {
    /* ********************************************************************************** */
    /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css -- minified */
    /* ********************************************************************************** */
    /*                                                                                    */
    *,*.before,*.after {box-sizing:border-box;}
    html {line-height:1.15;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;
        font-family:var(--ff-base);color-scheme:light dark;interpolate-size:allow-keywords;}
    body {margin:0;min-height:100vh;line-height:var(--lh-base);}
    main {display:block;}
    h1,h2,h3,h4,h5,h6 {text-wrap:balance;font-family:var(--ff-heading);line-height:var(--lh-heading);margin-block-end:0;}
    p,figure,blockquote,dl,dd {margin-block-end:0;}
    hr {box-sizing:content-box;height:0;overflow:visible;}
    pre {font-family:monospace,monospace;font-size:1em;}
    a {background-color:transparent;}
    abbr[title] {border-bottom:none;text-decoration:underline;}
    b,strong {font-weight:bolder;}
    code,kbd,samp {font-family:var(--ff-code);}
    small {font-size:80%;}
    sub,sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline;}
    sub {bottom:-0.25em;}
    sup {top:-0.5em;}
    img,picture {border-style:none;display:block;width:100%;-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;}
    button,input,label {line-height:var(--lh-heading);}
    button,input,optgroup,select,textarea {font-family:inherit;font-size:inherit;line-height:1.15;margin:0;}
    button,input {overflow:visible;}
    button,select {text-transform:none;}
    button,[type="button"],[type="reset"],[type="submit"] {-webkit-appearance:button;}
    button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner {border-style:none;padding:0;}
    button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring {outline:1px dotted ButtonText;}
    fieldset {padding:0.35em 0.75em 0.625em;}
    legend {box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}
    progress {vertical-align:baseline;}
    textarea {overflow:auto;}
    textarea:not([rows]){min-height:10em;}
    [type="checkbox"],[type="radio"] {box-sizing:border-box;padding:0;}
    [type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button {height:auto;}
    [type="search"] {-webkit-appearance:textfield;outline-offset:-2px;}
    [type="search"]::-webkit-search-decoration {-webkit-appearance:none;}
    ::-webkit-file-upload-button {-webkit-appearance:button;font:inherit;}
    details {display:block;}
    summary {display:list-item;}
    template {display:none;}
    [hidden] {display:none;}
    /*                                                                                    */
    /* ********************************************************************************** */
    /* some additions (thanks Kevin Powell et al)                                         */
    /* ********************************************************************************** */
    /*                                                                                    */
    :is(ul, ol)[class] {list-style:"";margin:0;padding:0;}
    p,li,figcaption {max-width:var(--text-max-width);text-wrap:pretty;}
    :first-child {margin-block-start:0;}
    td,math,time[datetime*=":"] {font-variant-numeric:tabular-nums lining-nums;}
    table {border-collapse:collapse;}
    :target {scroll-margin-block:32px;scroll-margin-block:5rlh;}
    @media(prefers-reduced-motion:no-preference) {html{scroll-behavior:smooth;}}
    /*                                                                                    */
    /* * {overscroll-behavior: contain;}                                                  */
    /* ********************************************************************************** */
}

/** ********************************* *
 ** *        G E N E R A L          * *
 ** ********************************* */

@layer layout {    

    html {
        font                     : var(--fw-regular) 0.825em/var(--lh-regular) var(--ff-regular);
        hanging-punctuation      : first last;
        color-scheme             : dark light;
    }

    /* force vertical scroll bars for cross-fade betterment :) but only on wider screens */
    body {
        color                    : var(--site__color-dark);
        background-color         : var(--site__color-body);
        font-size                : 1.4rem;

        @media screen and (width > 768px) {
            overflow-y           : scroll; 
        }
    }

    img {
        max-width                : var(--std-width);
    }

    header, main, footer { position : relative; }
    header               { z-index  : 3;        }
    main, footer         { z-index  : 2;        }

    label                { display  : inline;   }

    .alert {
        display                  : block;
        font-size                : 1rem;
        font-weight              : bold;
        line-height              : 1.4;
        color                    : var(--site__color-alert);
        background-color         : transparent;
        /*text-shadow: 0 0 2px var(--global__color5);*/
    }

    ::selection {
        color                    : var(--site__color-light);
        background-color         : var(--site__color-text);
    }

    .content {
        position                 : relative;
        width                    : 100%;
        max-width                : var(--std-width);
        padding                  : 0 4rem;
        margin                   : 0 auto;

        a {
            text-decoration : none;
            font-weight     : var(--fw-bold);
            color           : var(--site__color-dark);

            &:hover {
                color       : var(--site__color-accent);
                position    : relative;
            }
        }

        b {
            font-weight: var(--fw-bold);
        }

        ol {
            list-style: decimal outside;
            line-height: 1.5;
        }

        ul {
            list-style: disc outside;
            line-height:1.5;
            padding-left: 20px;
            list-style: none;

            li {
                margin-bottom: 0;
            }
        }

        .r {
            text-align: right;
            padding-inline: 20px;
        }

    }

    /* ********************************* *
    ** *       H E A D L I N E S       * *
    ** ********************************* */

    h1, h2, h3, h4, h5, h6 {
	    font-weight        : var(--fw-regular);
        text-align         : center;
        color              : var(--site__color-light);
        text-transform     : uppercase;
        margin             : 0;
    }

    h1 {
        font-size          : var(--fs-900); 
        font-weight        : var(--fw-bold);
        margin-inline      : auto;
        margin-block       : 1rem;
    }

    h2 { text-align        : left; }

    h2 { font-size         : var(--fs-600); }
    h3 { font-size         : var(--fs-500); }
    h4 { font-size         : var(--fs-400); }
    h5 { font-size         : var(--fs-300); }
    h6 { font-size         : var(--fs-300); }

    /* ********************************* *
    ** *  H O R I Z O N A L   L I N E  * *
    ** ********************************* */

    hr {
        width: 100%;
        text-align: center;
        border: none;
        border: 1px solid var(--site__color-text);
        margin: 2rem 0 0.5rem 0;
    }

    /***************************************************************************
    **  HEADER - MENU NAVIGATION
    ***************************************************************************/

    header {

        --menu__font                     : 500 1.3rem/1.2 var(--ff-regular);
        --menu__color                    : var(--site__color-dark);
        --menu__color-back               : var(--site__color-light);
        --menu__color-dropdown-back      : var(--site__color-light);
        --menu__color-hamburger          : var(--site__color-accent);
        --menu__color-selected           : var(--site__color-accent);
        --menu__color-hover              : var(--site__color-accent);
        --menu__color-hover-back         : var(--site__color-accent);
        --menu__case                     : uppercase;

        display                          : grid;
        grid-template-columns            : auto 1fr;
        align-items                      : center;

        color                            : var(--menu-color);
        background-color                 : var(--menu__color-back);

        position                         : relative;

        menu,ul {
            position                     : absolute;
            text-align                   : left;
            top                          : 100%; 
            right                        : 0; 
            background-color             : var(--menu__color-dropdown-back);

            height                       : 0;
            overflow                     : clip;
            visibility                   : hidden;
            transition                   : height 200ms ease, visibility 200ms, padding 200ms;

            margin                       : 0;
            padding                      : 0;
            list-style                   : none;

            li {
                color                    : var(--menu__color);
                a {
                    color                : inherit;
                    text-transform       : var(--menu__case);
                    text-decoration      : none;
                    display              : inline-block;
                    width                : 100%;
                    padding              : 0.3rem;

                    &:hover { 
                        color            : var(--menu__color-hover); 
                        background-color : var(--menu__color-hover-back);
                    }
                }
            }
        }

        .menu-checkbox {
            display                      : none;

            &:checked ~ :where(menu,ul) {
                height                   : auto;
                visibility               : visible;
                padding                  : 1rem;
            }
        }
    }

    .menu-hamburger {
        position    : absolute;
        top         : 0;
        right       : 10px;
        height      : 100%;

        display     : flex;
        align-items : center;
        cursor      : pointer;
        color       : var(--menu__color-hamburger);

        span,
        span::before,
        span::after {
            position   : relative;
            display    : block;
            background : var(--menu__color-hamburger);
            height     : 3px;
            width      : 1.6em;
        }

        span::before,
        span::after {
            content    : '';
            position   : absolute;
            width      : 1.9em;
            left       : -0.3em;
        }

        span::before { bottom: 7px; }
        span::after  { top:    7px; }
    }

    /****************  WIDE  ****************/

    @media screen and (width > 768px) {

        .menu-hamburger { display: none; }

        header {

            ul,menu {
                position         : relative;
                top              : unset;
                right            : unset; 
                text-align       : unset;
                visibility       : unset;
        
                display          : flex;
                height           : auto;
                justify-self     : center;

                background-color : transparent;

                li {

                    a { 
                        padding  : 0 1em;
                        &:hover {
                            color: var(--menu__color-hover);
                            background-color: transparent;
                        }
                    }

                    &:not(:last-child)::after {
                        position         : absolute;
                        top              : 0.05em;
                        content          : "";
                        width            : 2px;
                        height           : 2em;
                        background-color : var(--menu__color); 
                    }

                }
            }
        }
    }       

    /***************************************************************************
    **  FOOTER
    ***************************************************************************/

    footer {

        font                         : var(--fw-regular) 0.8rem/1.4 var(--ff-regular);
        color                        : var(--site__color-dark);
        background-color             : var(--site__color-light);

        width                        : 100%;
        margin                       : 0 auto;
        padding                      : 1rem;

        .short-terms {
            text-align               : justify;
            padding                  : 1rem;
        }

        a {
            font                     : inherit;
            color                    : var(--site__color-dark);
            font-weight              : var(--fw-bold);
            text-decoration          : none;

            &:hover {
                color                : var(--site__color-accent); 
            }
        }
    }

}