/* Base elements, bilingual typography, focus, accessibility helpers. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-mr);
	font-size: var(--fs-body);
	line-height: 1.75; /* Marathi: room for matras and conjuncts */
	font-variant-numeric: lining-nums;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
html[lang^="en"] body { font-family: var(--font-en); line-height: 1.6; }

h1, h2, h3, h4 {
	margin: 0 0 var(--s-3);
	color: var(--c-blue-700);
	font-family: var(--font-display-mr);
	font-weight: 700;
	line-height: 1.35;
	text-wrap: balance;
}
html[lang^="en"] h1, html[lang^="en"] h2 { font-family: var(--font-display-en); line-height: 1.2; }
html[lang^="en"] h3, html[lang^="en"] h4 { font-family: var(--font-en); line-height: 1.35; }

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); color: var(--c-text); }

p { margin: 0 0 var(--s-4); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--c-blue-700); text-underline-offset: 3px; }
a:hover { color: var(--c-navy-900); }

:focus-visible {
	outline: 3px solid var(--c-blue-500);
	outline-offset: 2px;
	border-radius: 2px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.section--brand :focus-visible,
.topbar :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-gold-500); }

table { border-collapse: collapse; width: 100%; font-variant-numeric: lining-nums tabular-nums; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: var(--s-4);
	top: -100px;
	z-index: 1000;
	padding: var(--s-3) var(--s-4);
	background: var(--c-surface);
	color: var(--c-blue-700);
	font-weight: 700;
	border-radius: var(--r-btn);
	box-shadow: var(--shadow-2);
}
.skip-link:focus { top: var(--s-4); }

.site-main:focus { outline: none; }

/* Prose (page and post content) */
.prose { font-size: 1.0625rem; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s-2); }
.prose blockquote {
	margin: var(--s-5) 0;
	padding: var(--s-4) var(--s-5);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-card);
	color: var(--c-text-2);
}
.prose__figure { margin: 0 0 var(--s-5); }
.prose__figure img { border-radius: var(--r-card); width: 100%; }
.prose--intro { max-width: var(--container-narrow); margin-bottom: var(--s-6); }

.lead { font-size: 1.125rem; color: var(--c-text-2); }
