/* Open Telugu: the same palette as teluguhistory.org. Saffron is the brand colour, used for fills, borders
   and decoration; text in the brand colour uses --accent-text (WCAG AA in both themes). */
:root {
	--saffron: #ff9933;
	--saffron-soft: #ffc27a;
	--on-saffron: #2a1a0e;
	--bg: #fffbf5;
	--surface: #ffffff;
	--surface-tint: #fff1de;
	--text: #3b2a1e;
	--text-strong: #22150b;
	--muted: #6b5444;
	--accent-text: #9e4a00;
	--border: #eedfcc;
	--shadow: 0 1px 2px rgb(60 30 0 / 0.06), 0 4px 16px rgb(60 30 0 / 0.06);
	--font-display: 'Fraunces', 'Noto Serif Telugu', Georgia, serif;
	--font-body: 'Source Sans 3', 'Noto Sans Telugu', system-ui, sans-serif;
	--radius: 12px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--bg: #17110c;
		--surface: #231a12;
		--surface-tint: #2e2116;
		--text: #f3e9df;
		--text-strong: #fff8f0;
		--muted: #bba896;
		--accent-text: #ffb255;
		--border: #3a2b1e;
		--shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 16px rgb(0 0 0 / 0.3);
		color-scheme: dark;
	}
}
:root[data-theme='dark'] {
	--bg: #17110c;
	--surface: #231a12;
	--surface-tint: #2e2116;
	--text: #f3e9df;
	--text-strong: #fff8f0;
	--muted: #bba896;
	--accent-text: #ffb255;
	--border: #3a2b1e;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 16px rgb(0 0 0 / 0.3);
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.05rem;
	line-height: 1.6;
}
a {
	color: var(--accent-text);
}
.wrap {
	max-width: 64rem;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 32px);
}
header {
	border-bottom: 1px solid var(--border);
}
.bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.9rem;
}
.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--text-strong);
	text-decoration: none;
}
.brand img {
	width: 40px;
	height: 40px;
}
.brand b {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.1;
}
.brand small {
	display: block;
	font-size: 0.8rem;
	color: var(--muted);
}
.lang {
	display: flex;
	gap: 0.25rem;
	padding: 0.2rem;
	border: 1px solid var(--border);
	border-radius: 999px;
}
.lang a {
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--text);
}
.lang a[aria-current='true'] {
	background: var(--saffron);
	color: var(--on-saffron);
}
.hero {
	padding: clamp(2.5rem, 7vw, 5rem) 0 2rem;
	border-bottom: 4px solid var(--saffron);
}
.hero h1 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.15;
	color: var(--text-strong);
	margin: 0 0 1rem;
	max-width: 20ch;
}
.hero p {
	max-width: 42rem;
	font-size: 1.15rem;
	margin: 0;
}
h2 {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--text-strong);
	margin: 2.5rem 0 1rem;
}
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: 1rem;
}
.card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 4px solid var(--saffron);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--text);
	text-decoration: none;
}
a.card:hover {
	border-color: var(--saffron);
}
.card b {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--text-strong);
}
.card .url {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--accent-text);
}
.card.soon {
	border-top-color: var(--saffron-soft);
	box-shadow: none;
	background: var(--surface-tint);
}
.tag {
	align-self: flex-start;
	padding: 0.1rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--bg);
	color: var(--muted);
	border: 1px solid var(--border);
}
.principles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem 2rem;
	padding: 0;
	list-style: none;
}
.principles li {
	padding-left: 1rem;
	border-left: 3px solid var(--saffron);
}
.principles b {
	display: block;
	color: var(--text-strong);
}
footer {
	margin-top: 3.5rem;
	padding: 1.5rem 0 2.5rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.9rem;
}

/* Contact page */
.page-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	color: var(--text-strong);
	margin: 2rem 0 0.75rem;
}
.muted {
	color: var(--muted);
}
.small {
	font-size: 0.88rem;
}
.contact {
	display: grid;
	gap: 0.9rem;
	margin: 1.25rem 0;
	max-width: 40rem;
}
.contact label {
	display: grid;
	gap: 0.3rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text-strong);
}
.contact input,
.contact select,
.contact textarea {
	font: inherit;
	font-weight: 400;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
}
.contact :is(input, select, textarea):focus {
	outline: 3px solid var(--saffron);
	outline-offset: 1px;
}
.contact .two {
	display: grid;
	gap: 0.9rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.contact button {
	justify-self: start;
	font: inherit;
	font-weight: 600;
	padding: 0.55rem 1.4rem;
	border-radius: 999px;
	border: 1px solid var(--saffron);
	background: var(--saffron);
	color: var(--on-saffron);
	cursor: pointer;
}
.contact button:disabled {
	opacity: 0.6;
	cursor: wait;
}
.contact .hp {
	position: absolute;
	left: -9999px;
}
