/***************************************************************
# Tags
***************************************************************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #111;
    --secondary: #cc0000;
    --tertiaty: #707070;
}


html,
body {
    font-family: 'Work Sans', serif;
}

pre {
    margin: 1rem 0;
    font-size: 0.875rem;
}

h1,
h2,
h3,
h4,
h5 {
    margin-bottom: .5em;
    line-height: 1.1;
    color: var(--primary);
}

h1 {
    font-size: clamp(3rem, 10vw, 4rem);
}

h2 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
}

h3 {
    font-size: clamp(2rem, 6vw, 3rem);
}

h4 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h5 {
    font-size: clamp(1rem, 2vw, 2rem);
}

p:not(:last-child) {
    margin-bottom: 1.5em;
}

ol,
ul {
    margin: 1rem 0;
    margin-left: 2em;
}

ol ol,
ol ul,
ul ul,
ul ol {
    margin: 0 0 0 1.5em;
}

blockquote {
    margin: 2rem 0;
    padding: 3rem;
    background: whitesmoke;
    font-style: italic;
    border-left: 0.25rem solid var(--secondary);
    margin-left: 1em;
}

figcaption {
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.8;
}

/***************************************************************
# Tables
***************************************************************/

table {
    border-collapse: collapse;
    text-align: left;
}

table th,
table td {
    border: 0;
    padding: 0.4em 0.8em;
}

table th {
    background: rgba(0, 0, 0, 0.2);
}

table tr:nth-child(odd) {
    background: rgba(0, 0, 0, 0.05);
}


/***************************************************************
# Forms
***************************************************************/

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
select,
textarea {
    padding: .5em 1em;
    font-family: inherit;
    border: navajowhite;
    border-radius: .25em;
    background: whitesmoke;
    width: 100%;
    display: block;
}

option {
    font-family: inherit;
}


/***************************************************************
# Common
***************************************************************/

.site {
    overflow: hidden;
}

.page__title {
    text-align: center;
    font-size: 2rem;
    margin: 3rem 0 6rem;
}


/***************************************************************
# Structure
***************************************************************/

.container {
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

.container--sm {
    max-width: 51rem;
}

.container--md {
    max-width: 71rem;
}

.container--lg {
    max-width: 84rem;
}

.container--xl {
    max-width: 100rem;
}

.margin {
    margin-top: 8%;
    margin-bottom: 8%;
}

.padding {
    padding-top: 6%;
    padding-bottom: 6%;
}


@media(min-width: 48rem) {

    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .margin {
        margin-top: 3.5rem;
        margin-bottom: 3.5rem;
    }

    .padding {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }



}

@media(min-width: 72rem) {

    .content-with-sidebar__row {
        display: flex;
        gap: 4rem;
    }

    .content-with-sidebar__col:nth-child(1) {
        flex: 1;
    }

    .content-with-sidebar__col:nth-child(2) {
        width: 20rem;
    }

}


/***************************************************************
# Buttons
***************************************************************/

.button,
a.button,
.woocommerce a.button,
button,
input[type="submit"],
input[type="button"] {
    background: var(--primary);
    color: white;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 0.3rem;
    border: 0;
    display: block;
    width: 100%;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    position: relative;
    text-align: center;
    transition: transform .4s ease;
    font-size: 1rem;
}

.wp-element-button:visited {
    color: initial;
}

.button__icon {
    fill: white;
    height: 1.2rem;
    vertical-align: middle;
    position: relative;
    top: -0.05em;
    margin: 0 .2em;
}

.button.button--block,
a.button.button--block {
    display: block;
    width: 100%;
    text-align: center;
}

.button--outline,
a.button--outline {
    background: none;
    border: .2em solid var(--primary);
    color: var(--primary);
}

.button-container {
    display: flex;
    gap: .5rem;
    flex-flow: column;
}

.button:hover,
a.button:hover,
.woocommerce a.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-5%);
}

@media(min-width: 32rem) {

    .button-container {
        flex-flow: wrap;
    }

    .button,
    a.button,
    .woocommerce a.button,
    button,
    input[type="submit"],
    input[type="button"] {
        display: inline-block;
        width: initial;
    }

}

/***************************************************************
# Header
***************************************************************/

/* Common */

.site-header {
    background: whitesmoke;
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}



.site-header__row {
    display: flex;
    align-items: center;
    gap: 1rem 2rem;
    flex-flow: wrap;
    justify-content: space-between;
}

.site-header__col--logo {
    flex-shrink: 0;
}

.site-header .custom-logo-link {
    display: block;
}

.site-header .custom-logo {
    max-height: 5rem;
    width: auto;
}



/* Menu */

.site-header__menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    justify-content: end;
    gap: 0 0.5em;
    flex-flow: wrap;
    font-size: 1rem;
}

.site-header__menu a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.site-header__menu .menu-item {
    position: relative;
}

.site-header__menu>.menu-item>a {
    padding: .5em;
}

.site-header__menu .menu-item-has-children>a::after {
    display: inline-block;
    content: "▼";
    font-size: .5em;
    margin-left: 1em;
    vertical-align: middle;
}


.site-header__menu .sub-menu {
    visibility: hidden;
    position: absolute;
    top: 100%;
    background: white;
    margin: 0;
    padding: 0;
    color: var(--primary);
    list-style-type: none;
    width: 16em;
    box-shadow: 0 .5em .5em rgba(0, 0, 0, 0.25);
    transform: translate(0%, -5%);
    opacity: 0;
    transition: all .4s ease;
}

.site-header__menu .sub-menu .menu-item-has-children>a::after {
    content: "►";
}

.site-header__menu .sub-menu .menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.site-header__menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translate(-5%, 0%);
}


.site-header__menu .sub-menu a {
    padding: .5em 1em;
}

.site-header__menu .menu-item:hover>.sub-menu {
    visibility: visible;
    transform: translate(0%, 0%);
    opacity: 1;
}


/* Cart */

.site-header__col--cart {
    flex-shrink: 0;
}

.site-header__cart {
    margin: 0;
    list-style-type: none;
    position: relative;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: .5rem;
    font-weight: bold;
    font-size: 0.875rem;
    display: flex;
    gap: 1em;
}

.site-header__cart a.cart-contents {
    color: inherit;
    text-decoration: none;
}

.site-header__cart .count::before {
    content: "/ ";
}

.site-header__cart-icon {
    fill: white;
    width: 1.25em;
}

.site-header__cart li:nth-of-type(1) {}

.site-header__cart li:nth-of-type(2) {
    visibility: hidden;
    position: absolute;
    top: 100%;
    right: 0%;
    opacity: 0;
    background: white;
    box-shadow: 0em 0.5rem 0.5rem rgba(0, 0, 0, 0.1);
    width: 24rem;
    padding: 10%;
    transform: translateY(5%);
    transition: .4s ease;
}

.site-header__cart:hover li:nth-of-type(2) {
    visibility: visible;
    opacity: 1;
    transform: translateY(0%);
}



/***************************************************************
# Footer
***************************************************************/

.site-footer {
    background: gainsboro;
    padding: 1rem 0;
}




/***************************************************************
# Mobile Menu
***************************************************************/

.mobile-menu {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: var(--primary);
    color: white;
    max-width: 32rem;
    transform: translateX(0%);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: -1rem 0rem 2rem rgba(0, 0, 0, 0.5);
    z-index: 10000000;
}

.mobile-menu--open {
    transform: translateX(-100%);
    visibility: visible;
}

.mobile-menu__button {
    background: var(--secondary);
    text-align: center;
    text-transform: uppercase;
    padding: 1em;
    font-weight: bold;
    cursor: pointer;
}

.mobile-menu__menu {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    list-style-type: none;
    margin: 0;
    margin-top: 2rem;
    padding: 0;
}

.mobile-menu__menu ul {
}

.mobile-menu__menu a {
    color: inherit;
    text-decoration: none;
}

.mobile-menu__menu .menu-item {
    margin: 1rem 0;
}

.mobile-menu .woocommerce-product-search {
    margin: 2rem auto;
}



/***************************************************************
# Legal
***************************************************************/

.legal {
    background: #111;
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.legal__row {
    display: flex;
    flex-flow: column;
    gap: .5rem;
}

.legal__menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: inherit;
    line-height: 1.8;
}

.legal__menu a {
    color: inherit;
    text-decoration: none;
}

.legal__menu a:hover {
    text-decoration: underline;
}

@media(min-width: 40rem) {

    .legal__row {
        flex-flow: row;
        justify-content: space-between;
        align-items: center;
    }

    .legal__menu {
        display: flex;
        flex-flow: wrap;
        gap: 1em;
        line-height: 1;
    }

    .legal__menu .menu-item+.menu-item {
        border-left: 1px solid white;
        padding-left: 1em;
    }

}

/***************************************************************
# Post feed
***************************************************************/

.post-feed {}

.excerpt {
    padding: 3%;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.excerpt__thumbnail {
    position: relative;
    padding-top: 100%;
    display: block;
    background: #eee;
    border: 1px solid #eee;
}

.excerpt__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.entry-footer {}

.entry-footer span {
    display: block;
    margin: .5em 0;
}

.entry-footer span a {
    color: inherit;
    text-decoration: none;
    background: #eee;
    border-radius: .5em;
    padding: 0.1em 0.4em;
    display: inline-block;
    font-size: 0.875rem;
}

/* Responsive */

@media(min-width: 48rem) {
    .excerpt__row {
        display: flex;
        gap: 2em;
        align-items: center;
    }

    .excerpt__col--image {
        width: 30%;
    }

    .excerpt__col--text {
        flex: 1;
    }
}



/* Navigation */

.navigation {
    margin: 2rem 0;
}

.navigation a {
    color: inherit;
    text-decoration: none;
}

.navigation a:hover {
    text-decoration: underline;
}

.page-numbers {
    margin-right: 0.5em;
    padding: 0.2em 0.4em;
}

.page-numbers.current {
    background: #efefef;
    padding: 0.6em 1.2em;
}




/***************************************************************
# Comments
***************************************************************/

#comments .comments-title,
#comments .comment-reply-title {
    font-size: 2rem;
}

#comments .comment-list {
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

#comments .children {
    list-style-type: none;
    border-left: 1px solid gainsboro;
    padding-left: 1rem;
}

#comments .comment-list>li+li {
    border-top: 1px solid gainsboro;
    padding-top: 2rem;
}

#comments .comment {
    margin: 2rem 0;
}

#comments .comment-metadata,
.comment-reply-link {
    font-size: 0.875rem;
    font-style: italic;
    opacity: .8;
}

#comments .comment-content {
    margin: 1rem 0;
}

#comments .comment-author .avatar {
    border-radius: 50%;
    vertical-align: middle;
}

#comments .comment-author a,
#comments .comment-metadata a {
    color: inherit;
    text-decoration: none;
}

#comments .comment-author a:hover,
#comments .comment-metadata a:hover {
    text-decoration: underline;
}

#comments #cancel-comment-reply-link {
    font-size: 0.5em;
    margin-left: 1em;
}


/** END OF FILE **/