/* ==========================================================================
   LyricsMirchi — design tokens, reset and primitives
   ========================================================================== */

:root {
	/* Palette tokens are injected by inc/enqueue.php. These are the
	   pre-paint fallbacks so the site is usable before inline CSS applies. */
	--lm-primary: #e64b32;
	--lm-primary-strong: #b83722;
	--lm-secondary: #242424;
	--lm-accent: #f2a33a;
	--lm-background: #fffdf9;
	--lm-surface: #f7f4ef;
	--lm-surface-alt: #f0ebe3;
	--lm-text: #242424;
	--lm-muted: #6f6961;
	--lm-border: #e8e1d8;
	--lm-link: #b83722;
	--lm-link-hover: #8f2918;
	--lm-selection: #ffd9a8;
	--lm-button-bg: #242424;
	--lm-button-text: #fffdf9;
	--lm-button-hover: #c8402a;
	--lm-focus: #1f6feb;
	--lm-footer-bg: #1d1a17;
	--lm-footer-text: #f3eee7;
	--lm-footer-muted: #b9b0a4;
	--lm-footer-link: #ffb59f;

	/* Type */
	--lm-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--lm-font-heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
	--lm-font-nav: var(--lm-font-body);
	--lm-fs-base: 17px;
	--lm-lh-base: 1.7;
	--lm-fs-small: 0.8125rem;
	--lm-fs-xs: 0.6875rem;
	--lm-letter-spacing: 0em;

	/* Shape and depth */
	--lm-radius: 12px;
	--lm-radius-sm: 8px;
	--lm-radius-lg: 22px;
	--lm-border-width: 1px;
	--lm-button-radius: 999px;
	--lm-shadow-sm: 0 1px 2px rgba(36, 28, 20, 0.05);
	--lm-shadow-md: 0 12px 30px rgba(36, 28, 20, 0.09);
	--lm-shadow-lg: 0 30px 70px rgba(36, 28, 20, 0.16);

	/* Metrics */
	--lm-container: 1200px;
	--lm-sidebar-width: 310px;
	--lm-header-height: 76px;
	--lm-card-gap: 24px;
	--lm-section-space: 72px;
	--lm-gutter: clamp(18px, 4vw, 40px);
	--lm-content: 748px;

	/* Space scale */
	--lm-space-3xs: 4px;
	--lm-space-2xs: 8px;
	--lm-space-xs: 12px;
	--lm-space-sm: 16px;
	--lm-space-md: 24px;
	--lm-space-lg: 32px;
	--lm-space-xl: 48px;
	--lm-space-2xl: 64px;
	--lm-space-3xl: 96px;

	/* Motion */
	--lm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--lm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--lm-speed: 220ms;

	/* Layers */
	--lm-z-header: 60;
	--lm-z-drawer: 90;
	--lm-z-overlay: 100;
	--lm-z-toast: 120;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--lm-header-height) + 24px);
}

body {
	margin: 0;
	background: var(--lm-background);
	color: var(--lm-text);
	font-family: var(--lm-font-body);
	font-size: var(--lm-fs-base);
	font-weight: var(--lm-fw-base, 400);
	line-height: var(--lm-lh-base);
	letter-spacing: var(--lm-letter-spacing);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img,
picture,
video,
canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

svg {
	display: inline-block;
	vertical-align: middle;
}

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

button {
	cursor: pointer;
}

a {
	color: var(--lm-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
	transition: color var(--lm-speed) var(--lm-ease);
}

a:hover {
	color: var(--lm-link-hover);
}

p,
ul,
ol,
dl,
figure,
blockquote,
table,
pre {
	margin-block: 0 var(--lm-space-md);
}

ul,
ol {
	padding-inline-start: 1.25em;
}

hr {
	border: 0;
	border-top: var(--lm-border-width) solid var(--lm-border);
	margin-block: var(--lm-space-xl);
}

::selection {
	background: var(--lm-selection);
	color: var(--lm-text);
}

:focus-visible {
	outline: 3px solid var(--lm-focus);
	outline-offset: 3px;
	border-radius: 2px;
}

:focus:not(:focus-visible) {
	outline: none;
}

[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

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

.screen-reader-text:focus {
	background: var(--lm-background);
	clip: auto !important;
	clip-path: none !important;
	color: var(--lm-text);
	display: block;
	font-size: var(--lm-fs-small);
	font-weight: 700;
	height: auto !important;
	inset-inline-start: var(--lm-space-md);
	top: var(--lm-space-md);
	padding: 12px 18px;
	text-decoration: none;
	width: auto !important;
	z-index: 200;
	box-shadow: var(--lm-shadow-md);
	border-radius: var(--lm-radius-sm);
}

.skip-link:focus {
	position: fixed !important;
}

.lm-hp {
	position: absolute !important;
	inset-inline-start: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Reduced motion respects the OS and the dashboard setting (inline CSS). */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
