/* ======================================================
   MENOTERITORIJA – BENDRA TIPOGRAFIJOS SISTEMA
====================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");


/* ======================================================
   PAGRINDINIAI KINTAMIEJI
====================================================== */

:root {
	--mt-font-family: "Poppins", sans-serif;

	--mt-text-color: #1f1f1f;
	--mt-muted-color: #6f6f6f;
	--mt-accent-color: #f5c928;
	--mt-white-color: #ffffff;

	--mt-body-size: 18px;
	--mt-body-line-height: 1.65;

	--mt-h1-size: 54px;
	--mt-h2-size: 36px;
	--mt-h3-size: 27px;
	--mt-h4-size: 22px;

	--mt-card-title-size: 23px;
	--mt-small-size: 15px;

	/*
	 * Šiuos kintamuosius naudos header.css.
	 */
	--mt-menu-size: 18px;
	--mt-site-title-size: 28px;

	--mt-content-width: 1360px;
	--mt-text-width: 900px;
	--mt-side-space: 56px;
}


/* ======================================================
   BENDRAS ŠRIFTAS
====================================================== */

html {
	font-size: 100%;
}

body,
button,
input,
select,
textarea {
	font-family: var(--mt-font-family);
}

body {
	color: var(--mt-text-color);
	font-size: var(--mt-body-size);
	line-height: var(--mt-body-line-height);
	font-weight: 400;
}


/* ======================================================
   TURINIO PLOTIS IR PARAŠTĖS
====================================================== */

.site-main,
main#main {
	width: 100%;
	padding-left: var(--mt-side-space);
	padding-right: var(--mt-side-space);
}

.site-main > *,
main#main > * {
	width: 100%;
	max-width: var(--mt-content-width);
	margin-left: auto;
	margin-right: auto;
}

.entry-content {
	width: 100%;
	max-width: var(--mt-text-width);
}


/* ======================================================
   ANTRAŠTĖS
====================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--mt-font-family);
	color: var(--mt-text-color);
	text-transform: none;
	letter-spacing: -0.02em;
}

h1 {
	margin: 0 0 36px;
	font-size: var(--mt-h1-size);
	font-weight: 600;
	line-height: 1.08;
}

h2 {
	margin: 72px 0 24px;
	font-size: var(--mt-h2-size);
	font-weight: 600;
	line-height: 1.18;
}

h3 {
	margin: 52px 0 20px;
	font-size: var(--mt-h3-size);
	font-weight: 600;
	line-height: 1.25;
}

h4 {
	margin: 36px 0 16px;
	font-size: var(--mt-h4-size);
	font-weight: 600;
	line-height: 1.3;
}

h5,
h6 {
	font-weight: 600;
	line-height: 1.35;
}


/* ======================================================
   PAGRINDINIS TEKSTAS
====================================================== */

p {
	margin: 0 0 1.55em;
}

p:last-child {
	margin-bottom: 0;
}

strong,
b {
	font-weight: 600;
}

em,
i {
	font-style: italic;
}

small {
	font-size: var(--mt-small-size);
	line-height: 1.55;
	color: var(--mt-muted-color);
}


/* ======================================================
   NUORODOS TURINYJE
====================================================== */

a {
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.entry-content a {
	color: var(--mt-text-color);
	text-decoration: underline;
	text-decoration-color: var(--mt-accent-color);
}

.entry-content a:hover,
.entry-content a:focus {
	color: var(--mt-accent-color);
	text-decoration-thickness: 2px;
}


/* ======================================================
   SĄRAŠAI
====================================================== */

.entry-content ul,
.entry-content ol {
	margin-top: 0;
	margin-bottom: 1.6em;
	padding-left: 1.35em;
}

.entry-content li {
	margin-bottom: 0.5em;
}


/* ======================================================
   CITATOS
====================================================== */

blockquote {
	margin: 52px 0;
	padding: 0 0 0 28px;
	border-left: 2px solid var(--mt-accent-color);
	font-size: 24px;
	line-height: 1.55;
	font-weight: 500;
}

blockquote p:last-child {
	margin-bottom: 0;
}


/* ======================================================
   KORTELIŲ PAVADINIMAI
====================================================== */

.menininkas-card-title,
.entry-card .entry-title,
.wp-block-post-title {
	font-family: var(--mt-font-family);
	font-size: var(--mt-card-title-size);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--mt-text-color);
}


/* ======================================================
   MYGTUKAI
====================================================== */

button,
.wp-element-button,
.wp-block-button__link,
.ct-button {
	font-family: var(--mt-font-family);
	background-color: var(--mt-accent-color);
	color: var(--mt-text-color);
	border-color: var(--mt-accent-color);
	text-transform: none;
}

button:hover,
button:focus,
.wp-element-button:hover,
.wp-element-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.ct-button:hover,
.ct-button:focus {
	background-color: var(--mt-text-color);
	color: var(--mt-white-color);
	border-color: var(--mt-text-color);
}


/* ======================================================
   RESPONSYVUMAS
====================================================== */

@media (max-width: 1200px) {

	:root {
		--mt-side-space: 40px;

		--mt-h1-size: 48px;
		--mt-h2-size: 34px;

		--mt-menu-size: 16px;
		--mt-site-title-size: 26px;
	}
}


@media (max-width: 768px) {

	:root {
		--mt-body-size: 17px;
		--mt-body-line-height: 1.65;

		--mt-h1-size: 38px;
		--mt-h2-size: 29px;
		--mt-h3-size: 24px;
		--mt-h4-size: 20px;

		--mt-card-title-size: 20px;
		--mt-menu-size: 15px;
		--mt-site-title-size: 24px;

		--mt-side-space: 22px;
	}

	h1 {
		margin-bottom: 26px;
	}

	h2 {
		margin-top: 54px;
		margin-bottom: 20px;
	}

	h3 {
		margin-top: 40px;
	}

	blockquote {
		margin: 40px 0;
		font-size: 21px;
	}
}


@media (max-width: 520px) {

	:root {
		--mt-body-size: 16px;

		--mt-h1-size: 32px;
		--mt-h2-size: 26px;
		--mt-h3-size: 22px;

		--mt-card-title-size: 19px;
		--mt-menu-size: 14px;
		--mt-site-title-size: 22px;

		--mt-side-space: 18px;
	}

	body {
		line-height: 1.6;
	}
}