/*
Theme Name: Drishti
Author: Velvetia Themes
Author URI: https://velvetiathemes.com
Description: A calm block theme for yoga and Pilates studios, wellness teachers and small movement spaces. Narrow Instrument Serif headlines with italic accents, clean Jost text, a warm linen palette and photos toned to soft sand. The homepage opens with a light studio hero, introduces the studio with a short list of what makes it special, presents four classes as photo cards, shows the latest journal posts and ends with a call to book a first class. Built with WordPress Full Site Editing.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: drishti
Tags: blog, one-column, two-columns, grid-layout, custom-colors, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, block-patterns, block-styles, threaded-comments, translation-ready, wide-blocks
*/

/* ========================================
   Base
   ======================================== */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}

/* Sections sit flush; spacing comes from each section's own padding. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Sticky footer */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: clip;
}

.wp-site-blocks > footer {
	margin-block-start: auto;
}

/* Italic accents in headings take the rosewood colour */
:where(h1, h2, h3, .wp-block-post-title, .wp-block-query-title, .drishti-lead) em {
	font-style: italic;
	color: var(--wp--preset--color--accent);
}

/* On dark photo covers the accent turns to blush so it stays readable */
:where(.wp-block-cover:not(.is-light)) :where(h1, h2, h3) em {
	color: var(--wp--preset--color--accent-2);
}

:where(h1, h2, h3, .drishti-lead) {
	text-wrap: balance;
}

a:focus-visible,
.wp-element-button:focus-visible {
	outline: 1px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Submenus */
.wp-block-navigation .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	padding: 8px 0;
	min-width: 220px;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 22px;
}

.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}

/* ========================================
   Block styles
   ======================================== */

/* Eyebrow — small tracked caps above a heading */
.is-style-drishti-eyebrow {
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Hairline list — rows divided by thin lines, each with a plus */
.is-style-drishti-hairline {
	list-style: none;
	padding-left: 0;
	border-top: 1px solid var(--wp--preset--color--border);
}

.is-style-drishti-hairline li {
	display: flex;
	gap: 14px;
	margin: 0;
	padding-block: 0.85em;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.is-style-drishti-hairline li::before {
	content: "+";
	color: var(--wp--preset--color--accent);
}

/* Text link — underlined caps without a pill */
.wp-block-button.is-style-drishti-link .wp-block-button__link,
.wp-block-button.is-style-drishti-link .wp-block-button__link:hover,
.wp-block-button.is-style-drishti-link .wp-block-button__link:focus {
	padding: 0 0 3px;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: currentColor;
}

.wp-block-button.is-style-drishti-link .wp-block-button__link:hover {
	color: var(--wp--preset--color--accent);
}

/* ========================================
   Header
   ======================================== */

.drishti-header .wp-block-navigation__responsive-container-open,
.drishti-header .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--contrast);
}

/* Phones: the menu button sits at the right edge, after "Book a class" */
@media (max-width: 599px) {
	.drishti-header .wp-block-site-title {
		margin-right: auto;
	}

	.drishti-header .wp-block-navigation {
		order: 3;
	}
}

.drishti-header .wp-block-button__link {
	padding: calc(0.8rem - 1px) calc(1.4rem - 1px);
	font-size: 0.72rem;
}

/* Custom overlay (template part) fills the screen */
.drishti-overlay {
	min-height: 100vh;
	min-height: 100dvh;
}

.drishti-overlay .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.2;
}

.drishti-overlay .wp-block-navigation-item__content:hover {
	font-style: italic;
}

/* ========================================
   Classes — photo cards
   ======================================== */

.drishti-class-card {
	overflow: hidden;
}

.drishti-class-card .wp-block-cover__image-background {
	transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.drishti-class-card:hover .wp-block-cover__image-background {
	transform: scale(1.03);
}

/* ========================================
   Call to action — light pill on the dark photo
   ======================================== */

.drishti-cta .wp-block-button:not(.is-style-outline):not(.is-style-drishti-link) .wp-block-button__link {
	background-color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.drishti-cta .wp-block-button:not(.is-style-outline):not(.is-style-drishti-link) .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--accent-2);
	border-color: var(--wp--preset--color--accent-2);
}

/* ========================================
   Journal cards
   ======================================== */

.drishti-card .wp-block-post-featured-image {
	overflow: hidden;
}

.drishti-card .wp-block-post-featured-image img {
	transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.drishti-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.drishti-meta > * + *::before {
	content: "·";
	margin-inline-end: 10px;
}

@media (min-width: 601px) and (max-width: 960px) {
	.drishti-cards.wp-block-post-template-is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.drishti-cards.wp-block-post-template-is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ========================================
   Footer
   ======================================== */

.drishti-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent);
}

.drishti-footer .wp-block-site-title {
	font-size: 1.75rem;
}

/* ========================================
   Single post and pages
   ======================================== */

.wp-block-post-content > .wp-block-image,
.wp-block-post-content > .wp-block-gallery {
	margin-block: var(--wp--preset--spacing--40);
}

.drishti-post-nav .wp-block-post-navigation-link {
	flex: 1;
}

.drishti-post-nav .wp-block-post-navigation-link a {
	display: block;
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: none;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.drishti-post-nav .post-navigation-link-next {
	text-align: right;
}

.wp-block-post-author-name a {
	text-decoration: none;
}

.wp-block-pullquote cite,
.wp-block-quote cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--tiny);
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
}

/* Breadcrumbs */
.wp-block-breadcrumbs {
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
}

.wp-block-breadcrumbs a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}

.wp-block-breadcrumbs a:hover {
	color: var(--wp--preset--color--accent);
}

/* Comments */
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	padding: 12px 16px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--normal);
}

.wp-block-post-comments-form input:focus,
.wp-block-post-comments-form textarea:focus {
	border-color: var(--wp--preset--color--contrast);
	outline: none;
}

/* Pagination */
.wp-block-query-pagination a {
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers {
	padding: 0 6px;
}

.wp-block-query-pagination-numbers .current {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: 1.6em;
	letter-spacing: 0;
	color: var(--wp--preset--color--accent);
}

/* 404 */
.drishti-404-number {
	line-height: 0.85 !important;
}

/* Centered page heads (archive, search, page, single) */
.drishti-page-head {
	text-align: center;
}

.drishti-page-head .wp-block-group.is-layout-flex {
	justify-content: center;
}

.drishti-page-head .wp-block-breadcrumbs ol {
	justify-content: center;
}
