/*
Theme Name: Sitevari
Theme URI: https://sitevari.com
Author: Sitevari
Description: The companion theme for the Sitevari website builder. A clean, fast foundation: Sitevari designs the pages, this theme provides the site frame, blog and archive styling.
Version: 0.1.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sitevari
Tags: one-column, custom-logo, custom-menu, rtl-language-support, translation-ready
*/

/*
 * Colors and fonts come from Sitevari design tokens (--sv-*), with fallbacks so
 * the site stays readable when the plugin is inactive. Logical properties only.
 */

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--sv-color-background, #fff);
	color: var(--sv-color-text, #1b1f2a);
	font-family: var(--sv-font-body, system-ui, sans-serif);
	font-size: var(--sv-size-body, 1.0625rem);
	line-height: calc(1.6 * var(--sv-leading-body, 1));
}

a {
	color: var(--sv-color-link, var(--sv-color-primary, #2f4bd8));
}

img {
	max-inline-size: 100%;
	block-size: auto;
}

.screen-reader-text {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.screen-reader-text:focus {
	position: static;
	inline-size: auto;
	block-size: auto;
	clip-path: none;
}

.site-frame {
	display: flex;
	flex-direction: column;
	min-block-size: 100vh;
}

.site-main {
	flex: 1;
}

.site-header,
.site-footer {
	padding-inline: var(--sv-gutter, 1.25rem);
}

/* The site's layout (Standard, Wide or Full width), as set in Sitevari. */
.site-header__inner,
.site-footer__inner,
.entry-wrap {
	max-inline-size: var(--sv-container-content, var(--sv-container-standard, 72rem));
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.25rem;
}

.site-title {
	margin: 0;
	font-family: var(--sv-font-heading, inherit);
	font-size: 1.25rem;
	font-weight: 700;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: inherit;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	color: var(--sv-color-link, var(--sv-color-primary, #2f4bd8));
}

.site-footer {
	border-block-start: 1px solid var(--sv-color-border, #e2e5ec);
	color: var(--sv-color-muted, #5b6474);
	font-size: var(--sv-size-small, 0.875rem);
}

.site-footer__inner {
	padding-block: 2rem;
}

.entry-wrap {
	padding: var(--sv-space-md, 2rem) var(--sv-gutter, 1.25rem);
}

.entry-title {
	margin-block: 0 1rem;
	font-family: var(--sv-font-heading, inherit);
	font-size: var(--sv-size-h1, 2.5rem);
	line-height: calc(1.15 * var(--sv-leading, 1));
}

.entry-meta {
	color: var(--sv-color-muted, #5b6474);
	font-size: var(--sv-size-small, 0.875rem);
}

.entry-content > * {
	max-inline-size: var(--sv-container-narrow, 46rem);
}

.entry-content > .alignwide {
	max-inline-size: var(--sv-container-standard, 72rem);
}

.entry-content > .alignfull {
	max-inline-size: none;
}

.post-list {
	display: grid;
	gap: 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	margin-block-start: 2rem;
}

:focus-visible {
	outline: 2px solid var(--sv-focus, var(--sv-color-text, #1b1f2a));
	outline-offset: 2px;
}
