/*
Theme Name: mivo-theme
Theme URI: https://spiritually.co.il/
Author: Mivo
Description: Independent Mivo WordPress theme with first-class WooCommerce support and a design-neutral foundation for custom development.
Version: 0.1.0
Requires at least: 6.8
Requires PHP: 7.4
Text Domain: mivo-theme
License: GPL-2.0-or-later
*/

:root {
	--mivo-content-width: 1200px;
	--mivo-reading-width: 760px;
	--mivo-space-page: clamp(1rem, 3vw, 2rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	direction: rtl;
	scroll-behavior: smooth;
}

body {
	direction: rtl;
	text-align: right;
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.mivo-shell {
	width: min(calc(100% - (2 * var(--mivo-space-page))), var(--mivo-content-width));
	margin-inline: auto;
}

.mivo-reading-width {
	max-width: var(--mivo-reading-width);
}

.mivo-site-header,
.mivo-site-footer {
	padding-block: 1rem;
}

.mivo-header-inner,
.mivo-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.mivo-site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.mivo-site-title {
	font-weight: 700;
	text-decoration: none;
}

.mivo-primary-menu,
.mivo-primary-menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mivo-main {
	padding-block: clamp(2rem, 5vw, 4rem);
}

.mivo-entry-header {
	margin-block-end: 2rem;
}

.mivo-entry-content > *:first-child {
	margin-block-start: 0;
}

.mivo-entry-content > *:last-child {
	margin-block-end: 0;
}

.mivo-post-list {
	display: grid;
	gap: 2rem;
}

.mivo-post-list article {
	min-width: 0;
}

.mivo-pagination {
	margin-block-start: 2rem;
}

/* WooCommerce intentionally inherits the Mivo base styles.
 * Product, shop, cart, checkout and account design will be developed later.
 */
.woocommerce .mivo-main,
.woocommerce-page .mivo-main {
	width: 100%;
}

@media (max-width: 720px) {
	.mivo-header-inner,
	.mivo-footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}
}
