@charset "utf-8";
/* Naireen · base.css — tokens, reset, page ground */

/* Layout: one fixed WebGL cosmos behind the whole page; chapters ride over it on a
   right-weighted grid, cut twice — once to earth (night dunes), once to metal (the seal). */
:root{
  --night:#0B0B0E; --graphite:#16161B; --card:rgba(20,20,26,.66); --line:#272731; --line-soft:rgba(245,240,230,.10);
  --ivory:#F5F0E6; --sand:#E7DECF; --mist:#A49F94; --stone:#6B665C;
  --gold:#D6AE5B; --flash:#F2D08A; --deep:#8A6A22; --emerald:#1E8A63;
  --f-ar-display:"Markazi Text","IBM Plex Sans Arabic",serif;
  --f-ar:"IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif;
  --f-en:"Instrument Serif","Times New Roman",serif;
  --f-ui:"Geist","IBM Plex Sans Arabic",system-ui,sans-serif;
  --nav:62px;
  color-scheme:dark; direction:rtl; background:#0B0B0E;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
body{
  margin:0; background:var(--night); color:var(--ivory);
  font-family:var(--f-ar); font-size:17px; line-height:1.92; font-weight:300;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
::selection{background:var(--gold); color:#0B0B0E}
a{color:inherit; text-decoration:none}
:focus-visible{outline:2px solid var(--flash); outline-offset:3px; border-radius:4px}
img,canvas,svg{max-width:100%}

/* ---------- cosmos ---------- */
#cosmos{position:fixed; inset:0; width:100%; height:100%; z-index:0; display:block}
.no-gl #cosmos{display:none}
.no-gl body, .no-gl #page{
  background:
    radial-gradient(900px 620px at 72% 12%, rgba(214,174,91,.16), transparent 62%),
    radial-gradient(1100px 700px at 18% 52%, rgba(242,208,138,.08), transparent 60%),
    var(--night);
}
#page{position:relative; z-index:1}

/* ---------- skip link ---------- */
.skip{position:fixed; top:-220px; inset-inline-start:16px; z-index:80; background:var(--gold); color:#0B0B0E; padding:12px 18px; border-radius:0 0 12px 12px; font-family:var(--f-ar); font-size:15px; transition:top .2s}
.skip:focus{top:0}
