/*
Theme Name: The System
Theme URI: https://local.thesystem.com
Author: The System
Description: Custom theme for The System.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: thesystem

This theme is a classic (non-block/non-FSE) WordPress theme. It does not
declare block-template support, so Appearance > Editor (Full Site Editing)
is not available; layout is controlled entirely through the PHP templates
in this theme and the classic Customizer.
*/

/* fonts */
@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/Inter-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni';
    src: url('./assets/fonts/bodoni-72-book-italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni';
    src: url('./assets/fonts/bodoni-72-book.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Layout */
body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
}

.site {
    width: 100%;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    display: flex;
    flex-direction: column;
}

.site-content {
    width: 100%;
    flex: 1 1 auto;
}

.container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

/* Header */
.header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    width: 100%;
    z-index: 100;
    background-color: #fff;
    padding: 30px 0 15px;
}

.header__content {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.custom-logo-link {
    flex: 0 0 auto;
    text-decoration: none;
}

.custom-logo {
    display: block;
    width: 200px;
    height: auto;
}

.header__nav {
    position: relative;
    /* drop the menu's text baseline onto the logo's baseline */
    top: 6px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header__menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-item a {
    text-transform: uppercase;
    color: #000;
    font-weight: 400;
    display: inline-block;
    padding: 0;
    font-size: 21px;
    line-height: 1;
    text-decoration: none;
    background: linear-gradient(currentColor 0 0) var(--p, 50%) 100% /var(--d, 0) 1px no-repeat;
    transition: background 0.3s linear;
}

.menu-item a:hover {
    --d: 150%;
    --p: 0;
}

.menu-item.italic a {
    font-family: 'Bodoni', serif;
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    font-size: 32px;
}

/* footer */
.footer {
    padding: 40px 0;
}

.footer__contacts p {
    font-size: 24px;
    line-height: 1.5;
}

.footer__contacts a {
    color: #000;
    text-decoration: none;
}

.wp-block-social-links.has-large-icon-size {
    gap: 6px;
}

.wp-block-social-links .wp-block-social-link.wp-social-link-instagram {
    color: #fff;
    background-color: #000;
}

.wp-block-social-links .wp-block-social-link.wp-social-link-instagram .wp-block-social-link-anchor {
    padding: 5px;
}

.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor {
    width: 44px;
    height: 44px;
}

.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor svg {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.wp-block-social-links .wp-block-social-link.wp-social-link-facebook .wp-block-social-link-anchor {
    width: 53px;
    height: 53px;
    padding: 0;
}

.wp-block-social-links .wp-block-social-link.wp-social-link-facebook {
    color: #000;
    background-color: #fff;
}

@media (hover: hover) {
    .footer__contacts a:hover {
        text-decoration: underline;
    }
}

@media (max-width: 991px) {
    .container {
        padding: 0 16px;
    }

    .header__content {
        padding-bottom: 12px;
        border-bottom: 1px solid #000;
    }
}

@media (max-width: 767px) {
    .custom-logo {
        display: block;
        width: 160px;
        height: auto;
    }

    .header {
        padding: 15px 0;
    }

    .menu-item a {
        font-size: 18px;
    }

    .container {
        padding: 0 16px;
    }

    .menu-item.italic a {
        font-size: 22px;
    }
}
