/*
Theme Name: Cleanon
Theme URI: https://cleanon.creatory.studio
Author: topb
Author URI: https://topb.dev
Description: CleanOn theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cleanon
Tags: clean, minimal, custom
*/

/* ресети і базові стилі */
@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope.ttf') format('truetype');
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
}


:root {
    /* КОЛЬОРИ */
    /* accent */
    --yellow: #f4b400;
    --yellow_hover: #dfa200;
    --yellow_pressed: #c78f00;
    /* secondary */
    --olive: #6f7b5b;
    --olive_hover: #5f6b4c;
    /* text, bg */
    --black: #1f1b16;
    --dark: #5a524a;
    --light: #8a8076;
    --text_beige: #f7f3ed;
    --bg_beige: #f6f5ee;
    --dark_beige: #e8ded3;
    --dark_brown: #2a2420;
    /* status - success */
    --success_primary: #ae7d32;
    --success_dark: #1e5b22;
    --success_bg: #eaf6ec;
    /* status - error */
    --error_primary: #c23b2a;
    --error_dark: #be2a1f;
    --error_bg: #fdecea;
    /* status - warning */
    --warning_primary: #b26a00;
    --warning_dark: #7a4300;
    --warning_bg: #fff4e0;
    /* status - info */
    --info_primary: #2f6fa3;
    --info_dark: #214f75;
    --info_bg: #eaf3fb;
    
    /* ТЕКСТИ */
    --font-base: 'Manrope', system-ui, sans-serif;
    --font-size-base: 16px;
    --line-height: 1;
    
    /* ЛЕЙАУТ */
    --cols: 12;
    --gap: 24px;
    --padding-x: 120px;
    --col-width: calc((100vw - 2 * var(--padding-x) - 11 * var(--gap)) / 12);
    --cols1-width: calc(1 * var(--col-width) + 0 * var(--gap));
    --cols2-width: calc(2 * var(--col-width) + 1 * var(--gap));
    --cols3-width: calc(3 * var(--col-width) + 2 * var(--gap));
    --cols4-width: calc(4 * var(--col-width) + 3 * var(--gap));
    --cols5-width: calc(5 * var(--col-width) + 4 * var(--gap));
    --cols6-width: calc(6 * var(--col-width) + 5 * var(--gap));
    --cols7-width: calc(7 * var(--col-width) + 6 * var(--gap));
    --cols8-width: calc(8 * var(--col-width) + 7 * var(--gap));
    --cols9-width: calc(9 * var(--col-width) + 8 * var(--gap));
    --cols10-width: calc(10 * var(--col-width) + 9 * var(--gap));
    --cols11-width: calc(11 * var(--col-width) + 10 * var(--gap));
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--black);
    background-color: var(--color-bg);
    line-height: var(--line-height);
}

a {
    color: var(--black);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ТЕКСТИ */

h1, .h1 {
    font-size: 64px;
    line-height: 76px;
    letter-spacing: -0.8px;
}
h2, .h2 {
    font-size: 48px;
    line-height: 58px;
    letter-spacing: -0.4px;
}
h3, .h3 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.3px;
}
h4, .h4 {
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.2px;
}
h5, .h5 {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.15px;
}
h6, .h6 {
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0px;
}
.label1 {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.18px;
}
.label2 {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.16px;
}
.label3 {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -0.12px;
}
.body1 {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0;
}
.body2 {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}
.body3 {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
}
.body4 {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
}
.caption1 {
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0;
}
.caption2 {
    font-size: 9px;
    line-height: 10px;
    letter-spacing: 0;
}

.thin {
    font-weight: 100;
}
.extralight {
    font-weight: 200;
}
.light {
    font-weight: 300;
}
.regular {
    font-weight: 400;
}
.medium {
    font-weight: 500;
}
.semibold {
    font-weight: 600;
}
.bold {
    font-weight: 700;
}
.extrabold {
    font-weight: 800;
}
.black {    
    font-weight: 900;
}

.text-dark {
    color: var(--dark);
}
.text-light {
    color: var(--light);
}
.text-white {
    color: white;
}
.text-olive {
    color: var(--olive);
}
.text-black {
    color: var(--black);
}

/* ЛЕЙАУТ */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media screen and (max-width: 1440px) {
    :root {
        --padding-x: 60px;
    }
}
@media screen and (max-width: 1200px) {
    :root {
        --padding-x: 40px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --padding-x: 16px;
        --gap: 16px;


    }

    h1, .h1 {
        font-size: 48px;
        line-height: 58px;
        letter-spacing: -0.4px;
    }
    h2, .h2 {
        font-size: 40px;
        line-height: 48px;
        letter-spacing: -0.3px;
    }
    h3, .h3 {
        font-size: 32px;
        line-height: 38px;
        letter-spacing: -0.2px;
    }
    h4, .h4 {
        font-size: 24px;
        line-height: 30px;
        letter-spacing: -0.15px;
    }
    h5, .h5 {
        font-size: 20px;
        line-height: 24px;
        letter-spacing: 0px;
    }
    h6, .h6 {
        font-size: 18px;
        line-height: 24px;
        letter-spacing: 0px;
    }
    .label1 {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.16px;
    }
    .label2 {
        font-size: 12px;
        line-height: 16px;
        letter-spacing: -0.12px;
    }
    .label3 {
        font-size: 10px;
        line-height: 14px;
        letter-spacing: 0px;
    }
    .body1 {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0;
    }
    .body2 {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0;
    }
    .body3 {
        font-size: 14px;
        line-height: 16px;
        letter-spacing: 0;
    }
    .body4 {
        font-size: 10px;
        line-height: 12px;
        letter-spacing: 0;
    }
    .caption1 {
        font-size: 10px;
        line-height: 12px;
        letter-spacing: 0;
    }
    .caption1 {
        font-size: 9px;
        line-height: 10px;
        letter-spacing: 0;
    }
}