/* Reset, typography and base elements. */

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

/* Components set display:flex/grid; make the hidden attribute always win. */
[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--lr-bg-page);
	color: var(--lr-text-primary);
	font-family: var(--lr-font-ar);
	font-size: var(--lr-fs-body);
	font-weight: 400;
	line-height: var(--lr-lh-body);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.lr-menu-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s var(--lr-ease), opacity 0.2s var(--lr-ease);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--lr-text-primary);
	font-family: var(--lr-font-heading);
	font-weight: 700;
	text-wrap: balance;
}

h1 { font-size: var(--lr-fs-h1); line-height: var(--lr-lh-heading); }
h2 { font-size: var(--lr-fs-h2); line-height: var(--lr-lh-heading); }
h3 { font-size: var(--lr-fs-h3); line-height: var(--lr-lh-h3); }
h4, h5, h6 { font-size: var(--lr-fs-h4); line-height: var(--lr-lh-h4); }

p {
	margin: 0;
	text-wrap: pretty;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

button {
	cursor: pointer;
}

::selection {
	background: var(--lr-crimson-700);
	color: var(--lr-ivory);
}

:focus-visible {
	outline: 2px solid var(--lr-gold-700);
	outline-offset: 3px;
}

.lr-on-dark :focus-visible {
	outline-color: var(--lr-gold-500);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 20px;
	background: var(--lr-bg-surface);
	color: var(--lr-text-brand);
}

/* Type utilities (match Figma text styles) */
.lr-h2 { font-family: var(--lr-font-heading); font-size: var(--lr-fs-h2); font-weight: 700; line-height: var(--lr-lh-heading); }
.lr-h3 { font-family: var(--lr-font-heading); font-size: var(--lr-fs-h3); font-weight: 700; line-height: var(--lr-lh-h3); }
.lr-body-lg { font-size: var(--lr-fs-body-lg); line-height: var(--lr-lh-body); }
.lr-small { font-size: var(--lr-fs-small); line-height: var(--lr-lh-small); }
.lr-muted { color: var(--lr-text-secondary); }
.lr-ltr { direction: ltr; unicode-bidi: embed; }
.lr-script { font-family: var(--lr-font-script); font-size: var(--lr-fs-script); font-weight: 400; line-height: 1.5; direction: ltr; color: var(--lr-gold-500); }

/* Eyebrow: small gold text, no letter-spacing (Arabic). */
.lr-eyebrow {
	display: inline-block;
	color: var(--lr-text-accent);
	font-size: var(--lr-fs-small);
	font-weight: 500;
	line-height: var(--lr-lh-small);
}

/* Marker for placeholder copy that the client still has to write. */
.lr-tmp {
	display: block;
	color: var(--lr-text-tertiary);
	font-size: var(--lr-fs-small);
	font-weight: 400;
}

/* Prose (default pages, piece description) */
.lr-prose {
	font-size: var(--lr-fs-body-lg);
	line-height: var(--lr-lh-body);
}

.lr-prose > * + * {
	margin-top: 1.25em;
}

.lr-prose h2,
.lr-prose h3 {
	margin-top: 1.8em;
}

.lr-prose a {
	color: var(--lr-text-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.lr-prose ul,
.lr-prose ol {
	padding-inline-start: 1.4em;
}

.lr-prose ul { list-style: disc; }
.lr-prose ol { list-style: decimal; }
.lr-prose li + li { margin-top: 0.5em; }

.lr-prose img,
.lr-prose figure {
	margin-inline: 0;
}

.lr-prose blockquote {
	margin-inline: 0;
	padding-inline-start: 24px;
	border-inline-start: 2px solid var(--lr-gold-500);
	color: var(--lr-text-secondary);
}
