/* Generated theme values from config/quality/lubab-color-contract.json. */
:root {
  --background: #FBF8F2;
  --text: #201B17;
  --muted: #675F58;
  --action: #4F6252;
  --rule: #E3DAD0;
  --kernel: #C59B3D;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root {
  --background: #14110F;
  --text: #F5EFE6;
  --muted: #B9AFA5;
  --action: #A5B7A0;
  --rule: #332C27;
  --kernel: #C59B3D;
} }
@media (prefers-contrast: more) { :root {
  --background: #FBF8F2;
  --text: #201B17;
  --muted: #4A423B;
  --action: #2E3D31;
  --rule: #E3DAD0;
  --kernel: #C59B3D;
} }
@media (prefers-color-scheme: dark) and (prefers-contrast: more) { :root {
  --background: #14110F;
  --text: #F5EFE6;
  --muted: #D6CCC1;
  --action: #C3D3BE;
  --rule: #332C27;
  --kernel: #C59B3D;
} }

* { box-sizing: border-box; }
html { scroll-padding-block-start: 1.5rem; }
body { margin: 0; background: var(--background); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration-color: var(--action); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--action); outline-offset: 5px; border-radius: 2px; }
.skip { position: absolute; inset-block-start: 0.8rem; inset-inline-start: 1rem; transform: translateY(-180%); padding: 0.5rem 0.9rem; background: var(--background); z-index: 2; }
.skip:focus { transform: none; }
.site-header, footer { max-width: 70rem; margin-inline: auto; padding: 1.3rem clamp(1.25rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header { border-block-end: 1px solid var(--rule); }
.brand { font-size: 1.3rem; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 0.65rem; }
.brand span { font-size: 1.55rem; }
nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px; }
main { max-width: 49rem; margin: 0 auto; padding: clamp(2.4rem, 7vw, 5rem) 1.5rem 5rem; outline: none; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 7vw, 4.5rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.035em; margin: 0.6rem 0 1.5rem; }
h2 { font-size: 1.3rem; line-height: 1.4; margin: 0 0 1.1rem; }
h3 { font-size: 1.04rem; margin: 1.6rem 0 0.6rem; }
p { margin: 0 0 1rem; }
.intro { font-size: 1.2rem; line-height: 1.7; color: var(--muted); max-width: 40rem; }
.metadata { color: var(--muted); font-size: 0.9rem; margin-block-start: 1.5rem; }
.eyebrow { font-size: 0.85rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
section { margin-block-start: 2.8rem; padding-block-start: 2rem; border-block-start: 1px solid var(--rule); }
footer { border-block-start: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; margin-block-end: 1rem; }
.home { max-width: 51rem; }
.home h1 { font-size: clamp(3.2rem, 9vw, 5.75rem); }
.mark { width: 72px; height: 72px; margin-block: 0 1.4rem; }
.mark path { fill: none; stroke: var(--action); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.mark circle { fill: var(--kernel); }
.arabic-tagline { text-align: start; font-size: 1.1rem; color: var(--muted); margin-block-start: 1.8rem; }
@media (max-width: 540px) { .site-header, footer { align-items: flex-start; flex-wrap: wrap; gap: 0.5rem 1rem; } nav { gap: 1rem; } main { padding-inline: 1.25rem; } }
@media (forced-colors: active) { a:focus-visible { outline-color: Highlight; } .mark path { stroke: CanvasText; } .mark circle { fill: CanvasText; } }
@media print { .site-header, footer, .skip { display: none; } body { font-size: 11pt; } main { padding: 0; max-width: none; } section { break-inside: avoid; } }
