/*
Theme Name: Vista Editorial
Theme URI: https://viva-vista.com/
Author: Vista Design
Description: A quiet editorial block theme powered by native WordPress posts and Gutenberg.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vista-editorial
Tags: full-site-editing, block-patterns, portfolio, blog, wide-blocks
*/

:root {
	--vista-line: 1px solid var(--wp--preset--color--ink);
	--vista-transition: 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
img { display: block; }

::selection {
	background: #5cbc9e;
	color: #000;
}

::-moz-selection {
	background: #5cbc9e;
	color: #000;
}

@media (pointer: fine) {
	html,
	body,
	body * {
		cursor: url("assets/vista-cursor.svg?v=2") 10 6, default;
	}
}

.vista-site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 20;
	width: 100%;
	max-width: none;
	margin: 0 !important;
	border-bottom: 0;
	background: var(--wp--preset--color--paper);
}

body.home .vista-site-header,
body.single-post .vista-site-header { background: transparent; }

.vista-site-header .vista-header-logo {
	mix-blend-mode: difference;
}

.vista-site-header .vista-header-logo img {
	filter: invert(1);
}

body.admin-bar .vista-site-header { top: 32px; }

body:not(.home):not(.single-post) > .wp-site-blocks {
	padding-top: 4rem;
}

.vista-site-header .wp-block-site-title,
.vista-site-header .wp-block-navigation { font-size: clamp(0.75rem, 0.9vw, 0.95rem); line-height: 1; }
.vista-site-header .wp-block-navigation-item__content {
	font-weight: 700;
	text-decoration: none;
}

body.home .vista-site-header .wp-block-navigation-item__content,
body.home .vista-site-header .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--white);
}

body.home .vista-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
body.home .vista-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--ink);
}

.vista-site-header .wp-block-navigation-item__content:hover,
.vista-site-header .wp-block-navigation-item__content:focus-visible { opacity: 0.55; }

.vista-hero { min-height: clamp(34rem, 76svh, 58rem); border-bottom: var(--vista-line); }
.vista-hero > .wp-block-group { min-height: inherit; }
.vista-hero__title { max-width: none !important; overflow: hidden; }
.vista-hero__title .wp-block-site-title {
	font-size: clamp(4.4rem, 15.5vw, 15rem);
	font-weight: 400;
	letter-spacing: -0.085em;
	line-height: 0.76;
	white-space: nowrap;
}
.vista-hero__title .wp-block-site-title a { text-decoration: none; }
.vista-hero__meta { font-size: clamp(0.75rem, 0.95vw, 0.95rem); text-transform: uppercase; }
.vista-section-heading { border-bottom: var(--vista-line); }

.vista-project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; padding: 0; }
.vista-project-grid > li { grid-column: span 6; border-bottom: 0; list-style: none; }
.vista-project-grid > li:nth-child(4n + 1) { grid-column: span 7; border-right: var(--vista-line); }
.vista-project-grid > li:nth-child(4n + 2) { grid-column: span 5; }
.vista-project-grid > li:nth-child(4n + 3) { grid-column: span 5; border-right: var(--vista-line); }
.vista-project-grid > li:nth-child(4n + 4) { grid-column: span 7; }

.vista-project-card { height: 100%; }
.vista-project-card .wp-block-post-featured-image { overflow: hidden; background: var(--wp--preset--color--mist); }
.vista-project-card .wp-block-post-featured-image img { transition: transform var(--vista-transition); }
.vista-project-card:hover .wp-block-post-featured-image img { transform: scale(1.018); }
.vista-project-card .wp-block-post-title a { text-decoration: none; }
.vista-project-card .wp-block-post-title a:hover,
.vista-project-card .wp-block-post-title a:focus-visible { opacity: 0.58; }

.vista-category-index.wp-block-categories-list,
.vista-category-index .wp-block-categories-list { margin: 0; padding: 0; list-style: none; }
.vista-category-index .cat-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 2rem;
	border-top: var(--vista-line);
	padding: clamp(1rem, 2vw, 1.75rem) 0;
	font-size: clamp(1.5rem, 4vw, 4.25rem);
	letter-spacing: -0.045em;
	line-height: 1;
}
.vista-category-index .cat-item:last-child { border-bottom: var(--vista-line); }
.vista-category-index .cat-item a { text-decoration: none; }
.vista-category-index .cat-item a:hover,
.vista-category-index .cat-item a:focus-visible { font-style: italic; }
.vista-category-index .cat-item-count { font-size: 0.75rem; letter-spacing: 0; }

.vista-site-footer { border-top: 0; }
.vista-site-footer .wp-block-site-title {
	font-size: clamp(3.75rem, 13vw, 13rem);
	font-weight: 400;
	letter-spacing: -0.08em;
	line-height: 0.8;
}
.vista-site-footer .wp-block-site-title a { text-decoration: none; }
.vista-entry-header { border-bottom: var(--vista-line); }
.vista-entry-title { max-width: 15ch; }
.vista-query-pagination { border-top: 0; }

@media (max-width: 780px) {
	body.admin-bar .vista-site-header { top: 46px; }
	.vista-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1rem; }
	.vista-hero { min-height: 70svh; }
	.vista-hero__title .wp-block-site-title { font-size: clamp(3.6rem, 20vw, 7.5rem); white-space: normal; }
	.vista-project-grid { display: block; }
	.vista-project-grid > li { border-right: 0 !important; }
	.vista-category-index .cat-item { font-size: clamp(1.6rem, 9vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.vista-project-card .wp-block-post-featured-image img { transition: none; }
}


