/*
    Theme Name: Weby Menšík
    Author: Jonáš Menšík
    Version: 1.0
*/

@import url('./clash-display.css');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');


:root {
    /* Screen size font sizes */
    --h1-desktop: 110px;
    --h1-tablet: 80px;
    --h1-mobile: 36px;

    --h2-desktop: 42px;
    --h2-tablet: 35px;
    --h2-mobile: 30px;

    --h3-desktop: 30px;
    --h3-tablet: 26px;
    --h3-mobile: 25px;

    --p-desktop: 25px;
    --p-tablet: 25px;
    --p-mobile: 18px;


    /* Screen sizing */
    --tablet-max-width: 1024px;
    --mobile-max-width: 768px;
}
body {
    background-color: #F4EDD3;
    padding: 0;
    margin: 0;
}

/* Default header settings */

h1 {
    font-size: var(--h1-desktop);
    font-weight: 500;
    margin-bottom: 28px !important;
    line-height: 110px;
}
h2 {
    font-size: var(--h2-desktop);
    font-weight: 500;
}
h3 {
    font-size: var(--h3-desktop);
    font-weight: 500;
}
p, li, textarea, input, select, label {
    font-size: var(--p-desktop);
}
@media only screen and (max-width: 1024px) {
    h1 {
        font-size: var(--h1-tablet) !important;
        line-height: 80px;
    }
    h2 {
        font-size: var(--h2-tablet) !important;
    }
    h3 {
        font-size: var(--h3-tablet) !important;
    }
    p, li, textarea, input, select, label {
        font-size: var(--p-tablet) !important;
    }
}
@media only screen and (max-width: 768px) {
    h1 {
        font-size: var(--h1-mobile) !important;
        line-height: 40px;
        margin-bottom: 8px !important;
    }
    h2 {
        font-size: var(--h2-mobile) !important;
    }
    h3 {
        font-size: var(--h3-mobile) !important;
    }
    p, li, textarea, input, select, label {
        font-size: var(--p-mobile) !important;
    }
}


/* Fonts */

h1, h2, h3 {
    margin: 0;
}
p {
    margin: 0;
}
* {
    font-family: ClashDisplay-Variable;
}
em {
    font-family: "Libre Baskerville", serif;
    letter-spacing: -0.02em;
    font-weight: 100;
    font-style: italic;
}
b {
    font-weight: 600;
}
ul {
    padding-left: 1.5ch;
    margin: 4px 0;
}
li {
    margin-bottom: 4px;
}
strong {
    font-weight: 600;
}

select, input, textarea {
    padding: 20px;
	outline: none;
	resize: none;
}
@media only screen and (max-width: 1024px) {
    select, input, textarea {
        padding: 16px;
    }
}
@media only screen and (max-width: 768px) {
    select, input, textarea {
        padding: 12px;
    }
}



/* Theme colors */

.has-cream-background-color {
    background-color: #F4EDD3 !important;
}
.has-cream-color {
    color: #F4EDD3;
}

.has-lavender-background-color {
    background-color: #C78CDA !important;
}
.has-lavender-color {
    color: #C78CDA;
}

.has-violet-background-color {
    background-color: #752FA4 !important;
}
.has-violet-color {
    color: #752FA4;
}

.has-black-background-color {
    background-color: #000000 !important;
}
.has-black-color {
    color: #000000;
}

.has-dark-lavender-background-color {
    background-color: #B57EC7 !important;
}
.has-dark-lavender-color {
    color: #B57EC7;
}

.has-dark-cream-background-color {
    background-color: #DDD5B8 !important;
}
.has-dark-cream-color {
    color: #DDD5B8;
}





/* Basic elements */


.wp-element-button {
    min-width: 172px;
    height: 72px;
    box-sizing: border-box;
    font-size: 30px;
    border-radius: 0;
    padding: 0 !important;
}
@media only screen and (max-width: 1024px) {
    .wp-element-button {
        font-size: 26px !important;
        height: 64px !important;
    }
}
@media only screen and (max-width: 768px) {
    .wp-element-button {
        font-size: 25px !important;
        width: 135px;
        height: 56px !important;
    }
}

li {
  list-style-type: '>';
  padding-inline-start: 1ch;
}

:where(.wp-block-columns) {
    margin-bottom: 0;
}

.edge {
    position: absolute;
    background-repeat: repeat-x;
    background-size: contain;
    height: 48px;
    width: 100%;
    background-position: center;
    left: 0;

    &:first-child {
        top: -24px;
    }
    
    &:last-child {
        bottom: -24px;
    }
}

.edge-purple {
    position: absolute;
    background-repeat: repeat-x;
    background-size: contain;
    height: 48px;
    width: 100%;
    background-position: center;
    left: 0;

    &:first-child {
        top: -24px;
    }
    
    &:last-child {
        bottom: -24px;
    }
}

.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navbar */

.navbar {
    z-index: 10;
    height: 96px;
    display: flex;
    padding: 48px max(calc(50vw - 720px), 20px);
    align-items: center;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    box-sizing: border-box;

    & img {
        height: 48px;
    }

    & .navbar-links {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 72px;

        & a {
            color: #752FA4;
            text-decoration: none;
        }
    }
}

.hamburger-button {
    display: none;
    cursor: pointer;
    
	& * {
		color: #F4EDD3 !important;
	}
	
	background-color: #752FA4 !important;
	padding: 2px 8.5px;
	aspect-ratio: 1;
	width: min-content;
}

.hamburger-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #752FA4;
	padding: 20px max(calc(50vw - 720px), 20px) 20px max(calc(50vw - 720px), 20px);
	box-sizing: border-box;
	z-index: 500;
	transform: translateY(-120%);
	transition: transform 0.5s;
	
	&.active {
		transform: translateY(0);
	}
	
	& a, h3 {
		color: #F4EDD3 !important;
		text-decoration: none;
		margin-bottom: 8px;
	}
	
	& .hamburger-menu-close {
		cursor: pointer;
		& * {
			color: #752FA4 !important;
		}
		background-color: #F4EDD3 !important;
		padding: 2px 8.5px;
		aspect-ratio: 1;
		width: min-content;
		position: absolute;
		top: 20px;
		right: max(calc(50vw - 720px), 20px);
	}
}


/* Footer */

.credit {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 48px max(calc(50vw - 720px), 20px);
}

@media only screen and (max-width: 1024px) {
	.credit {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .hamburger-button {
        display: block !important;
    }
    
    .navbar-links {
        display: none !important;
    }
    
    .navbar img {
        height: 36px;
    }
}