/*
Theme Name: Hinduhum Editorial
Theme URI: https://hinduhum.net
Author: Hinduhum Network
Author URI: https://hinduhum.net
Description: Lightweight, Bengali-first editorial WordPress theme for hinduhum.net featuring Noto Serif Bengali typography, long-form reading controls, Knowledge Compendium, Daily Shloka card, Moderated Reader Column, and CLS-free native ad containers.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hinduhum-editorial
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
	--hh-parchment: #FAF7F2;
	--hh-paper: #FFFFFF;
	--hh-sandstone: #E7E0D3;
	--hh-cream: #F4EFE6;
	--hh-sepia: #F4ECD8;
	--hh-ink: #1F2937;
	--hh-muted: #57534E;
	--hh-ochre: #B45309;
	--hh-ochre-dark: #7C2D12;
	--hh-ochre-light: #FEF3C7;
	--hh-success-bg: #ECFDF5;
	--hh-success-border: #A7F3D0;
	--hh-success-ink: #065F46;
	--hh-error-bg: #FEF2F2;
	--hh-error-border: #FECACA;
	--hh-error-ink: #991B1B;

	--hh-font-serif: 'Noto Serif Bengali', Georgia, 'Times New Roman', serif;
	--hh-font-sans: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--hh-radius-card: 1rem;
	--hh-radius-control: 0.75rem;
	--hh-radius-pill: 9999px;

	--hh-shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.05), 0 1px 2px rgba(31, 41, 55, 0.03);
	--hh-shadow-md: 0 10px 25px -5px rgba(124, 45, 18, 0.08), 0 4px 10px -4px rgba(31, 41, 55, 0.04);
	--hh-max-width: 1200px;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	scrollbar-color: var(--hh-sandstone) var(--hh-parchment);
	scrollbar-width: thin;
}

body {
	margin: 0;
	background-color: var(--hh-parchment);
	color: var(--hh-ink);
	font-family: var(--hh-font-sans);
	font-size: 1rem;
	line-height: 1.7;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background-color: var(--hh-ochre-light);
	color: var(--hh-ochre-dark);
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: var(--hh-parchment);
}

::-webkit-scrollbar-thumb {
	background-color: var(--hh-sandstone);
	border-radius: var(--hh-radius-pill);
	border: 2px solid var(--hh-parchment);
}

::-webkit-scrollbar-thumb:hover {
	background-color: var(--hh-muted);
}

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

img {
	display: block;
}

a {
	color: var(--hh-ochre-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--hh-ochre);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--hh-font-serif);
	color: var(--hh-ink);
	margin-top: 0;
	line-height: 1.35;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--hh-ochre);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--hh-paper);
	border-radius: var(--hh-radius-control);
	box-shadow: var(--hh-shadow-md);
	clip: auto !important;
	clip-path: none;
	color: var(--hh-ochre-dark);
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	height: auto;
	left: 0.75rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 0.75rem;
	width: auto;
	z-index: 100000;
}
