/*
Theme Name: Manohara
Theme URI: https://mediscuss.org/manohara/
Author: Shashikiran Umakanth
Author URI: https://mediscuss.org/
Description: A block theme for long-form publishing in Kannada and English. One warm palette in a light and a dark counterpart, a top bar carrying the site's sections as tabs with dropdowns under them, and a gear that lets each reader choose light, dark or whatever their device says. A reading column with a margin for notes and references, an optional sidebar, a category landing page, series navigation for articles published in parts, four section colour styles, and an adjustable corner scale. A footer whose small print is an ordinary editable paragraph carrying template tags, and a settings screen that feeds theme.json rather than overriding it, so a value set in Global Styles always wins. First-class Kannada and Devanagari typography with Vedic accents. Accessible, fast, and free of external requests.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.39
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manohara
Tags: blog, news, education, one-column, two-columns, full-site-editing, block-patterns, block-styles, style-variations, wide-blocks, accessibility-ready, translation-ready, editor-style, featured-images, custom-logo, custom-menu, rtl-language-support, threaded-comments

Manohara is distributed under the terms of the GNU GPL v2 or later.
*/

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.wp-block-post-content p {
	text-wrap: pretty;
	hanging-punctuation: first last;
}

.wp-block-post-title,
h1, h2, h3 {
	text-wrap: balance;
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title {
	hyphens: auto;
	overflow-wrap: break-word;
}

.wp-block-post-content a,
.wp-block-post-content code {
	overflow-wrap: break-word;
}

:lang(sa),
:lang(hi),
:lang(mr),
:lang(kn) {
	line-height: 1.85;
}

.skip-link:focus {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent);
	clip-path: none;
	font-family: var(--wp--preset--font-family--structure);
	font-size: var(--wp--preset--font-size--small);
	inset-inline-start: var(--wp--preset--spacing--30);
	padding: 0.9rem 1.4rem;
	text-decoration: underline;
	top: var(--wp--preset--spacing--30);
	z-index: 999999;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

:is(.is-style-manohara-inverted, .is-style-manohara-accent) {
	--manohara-band-ink: var(--wp--preset--color--base);
}

.is-style-manohara-vivid {
	--manohara-band-ink: var(--wp--preset--color--contrast);
}

:is(.is-style-manohara-tinted,
	.is-style-manohara-card,
	.is-style-manohara-summary,
	.is-style-manohara-note) {
	--manohara-band-ink: initial;
}

:focus-visible {
	outline: 2px solid var(--manohara-band-ink, var(--wp--preset--color--accent));
	outline-offset: 2px;
}

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

.wp-block-embed:not([class*="wp-embed-aspect-"]) .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.wp-block-embed__wrapper iframe {
	height: 100%;
	width: 100%;
}

.wp-block-image img[style*="aspect-ratio"],
.wp-block-post-featured-image img[style*="aspect-ratio"] {
	height: 100%;
	object-fit: cover;
}
