/* accueia.com: the one stylesheet. The look of the approved canvas pages (~/wip/website-design-2026-10-12/pages/),
   self-hosted fonts only (fonts/, SIL Open Font License 1.1, licence files beside them). Arabic is never bold. */

/* ---------- fonts (from @fontsource 5.3.0, exact pins in FONTS.md) ---------- */
@font-face { font-family: Fraunces; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/fraunces-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/fraunces-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/fraunces-latin-300-italic.woff2) format('woff2'); }
@font-face { font-family: Outfit; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/outfit-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Outfit; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/outfit-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Outfit; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/outfit-latin-600-normal.woff2) format('woff2'); }
/* Almarai: regular only. No bold face is declared, and synthesis is off, so Arabic can never be drawn bold. */
@font-face { font-family: Almarai; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/almarai-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Almarai; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/almarai-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Outfit, sans-serif; font-size: 17px; line-height: 1.7; color: #2B0A14; background: #F4ECE0; }
img { max-width: 100%; height: auto; }
a { color: #651A31; }
a:hover { color: #2B0A14; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #C9A86A; outline-offset: 3px; }
h1, h2, h3 { margin: 0; }

/* Arabic: Almarai, never bold, never slanted, no letter-spacing or capitals (the canvas rule, for every element). */
:lang(ar) { font-family: Almarai, Outfit, sans-serif !important; font-weight: 400 !important; font-style: normal !important;
  letter-spacing: 0 !important; text-transform: none !important; font-synthesis: none; }
:lang(ar) .lead { line-height: 1.95; }

/* ---------- the water wake and the gold reading thread (assets/site.js; nothing moves under reduced motion) ---------- */
.wake { position: fixed; inset: 0; pointer-events: none; z-index: 1; width: 100%; height: 100%; }
.thread { position: fixed; top: 0; inset-inline-start: 26px; width: 24px; height: 100vh; pointer-events: none; z-index: 1; }
.thread path { fill: none; vector-effect: non-scaling-stroke; }
.thread-base { stroke: rgba(184, 149, 90, .25); stroke-width: 1; }
.thread-gold { stroke: #B8955A; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- header ---------- */
.top { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 24px; }
.top-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.logo { display: flex; align-items: center; min-height: 46px; }
.logo img { height: 40px; width: auto; }
.hero-top { background: #2B0A14; padding-inline: clamp(20px, 6vw, 88px); position: relative; z-index: 3; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px Outfit, sans-serif; text-decoration: none; border: 0; cursor: pointer; box-sizing: border-box;
  transition: transform .3s ease, background .3s ease, color .3s, border-color .3s; }
.solid { background: #651A31; color: #FFFFFF; }
.solid:hover { background: #4E1226; color: #FFFFFF; transform: translateY(-2px); }
.line { background: rgba(250, 246, 239, .6); color: #2B0A14; border: 1px solid rgba(101, 26, 49, .4); }
.line:hover { border-color: #651A31; color: #2B0A14; }
.gold { background: #C9A86A; color: #2B0A14; }
.gold:hover { background: #F1D6A5; color: #2B0A14; transform: translateY(-2px); }
.glass { background: rgba(43, 10, 20, .4); color: #F4ECE0; border: 1px solid rgba(201, 168, 106, .55); }
.glass:hover { border-color: #F1D6A5; color: #F4ECE0; }
/* on the dark home header, the light buttons take the dark look */
.hero-top .line { background: rgba(43, 10, 20, .4); color: #F4ECE0; border-color: rgba(201, 168, 106, .55); }
.hero-top .line:hover { border-color: #F1D6A5; color: #F4ECE0; }
.hero-top .solid { background: #C9A86A; color: #2B0A14; }
.hero-top .solid:hover { background: #F1D6A5; color: #2B0A14; }
/* the home page carries both wordmarks: gold on dark; the voyage shows the burgundy one on its light chapters */
.logo .lg-light { display: none; }

/* Sign in: two plain links in a disclosure, no script */
.signin { position: relative; }
.signin summary { list-style: none; }
.signin summary::-webkit-details-marker { display: none; }
.signin-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 10; margin: 0; padding: 8px; list-style: none; min-width: 200px;
  background: #FAF6EF; border: 1px solid rgba(101, 26, 49, .2); border-radius: 18px; box-shadow: 0 20px 40px rgba(43, 10, 20, .18); }
.signin-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; text-decoration: none; color: #2B0A14; font-weight: 500; }
.signin-menu a:hover, .signin-menu a:focus-visible { background: rgba(201, 168, 106, .2); color: #651A31; }

/* ---------- the home page: the chapters, one after another ---------- */
body.home { background: #2B0A14; color: #F4ECE0; }
.chap { position: relative; display: flex; align-items: center; min-height: 82vh; box-sizing: border-box;
  padding-block: clamp(72px, 12vh, 140px); padding-inline: 9vw; background: #2B0A14; color: #F4ECE0; overflow: hidden; }
.chap .inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; }
.chap.hero { background: radial-gradient(ellipse at 68% 48%, rgba(122, 35, 56, .75) 0%, rgba(58, 18, 32, .35) 40%, rgba(43, 10, 20, 0) 72%), #2B0A14; min-height: 88vh; }
[dir="rtl"] .chap.hero { background: radial-gradient(ellipse at 32% 48%, rgba(122, 35, 56, .75) 0%, rgba(58, 18, 32, .35) 40%, rgba(43, 10, 20, 0) 72%), #2B0A14; }
.chap.deep { background: #3A1220; }
.chap.light { background: #F4ECE0; color: #2B0A14; }
.chap.sand { background: linear-gradient(180deg, #F6E6C8 0%, #F2D49E 70%, #E09A66 100%); color: #2B0A14; }
.chap.center { text-align: center; }
.chap.center .inner { margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.chap.hero .inner, .chap.deep .inner { max-width: 760px; margin-inline-end: auto; }

.kick { margin: 0 0 22px; font: 600 12px Outfit, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #C9A86A; }
.light .kick, .sand .kick { color: #7A5C24; }
:lang(ar) .kick { font-size: 15px; }
.chap h1, .chap h2 { font-family: Fraunces, serif; font-weight: 300; letter-spacing: -0.02em; }
.chap h1 { font-size: clamp(52px, 7.2vw, 124px); line-height: .96; }
.chap h2 { font-size: clamp(42px, 5.4vw, 90px); line-height: 1; }
:lang(ar) .chap h1 { line-height: 1.25; }
:lang(ar) .chap h2 { line-height: 1.3; }
.it { font-style: italic; color: #E3C892; }
.light .it, .sand .it { color: #651A31; }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.7; color: #E9DCCB; margin: 26px 0 0; max-width: 620px; }
.light .lead, .sand .lead { color: #3F3236; }
.center .lead { margin-inline: auto; max-width: 720px; }
.pron { margin: 0; font-family: Fraunces, serif; font-style: italic; font-size: clamp(24px, 2.6vw, 38px); color: #7A5C24; }
/* two chapters have no headline of their own: their heading is the pronunciation (02) or the kick (07), in the same look */
.chap h2.pron { font-weight: 300; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.3; letter-spacing: 0; }
.chap h2.kick { margin: 0 0 22px; font: 600 12px Outfit, sans-serif; line-height: 1.7; letter-spacing: .3em; }
:lang(ar) .chap h2.kick { font-size: 15px; }
[data-focus]:focus { outline: none; }
.motto { margin: 18px 0 0; font-family: Fraunces, serif; font-style: italic; font-size: 24px; color: #651A31; }
.acts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.center .acts { justify-content: center; }
.mail-btn { direction: ltr; unicode-bidi: isolate; }

.sun { position: absolute; z-index: 0; top: 8%; inset-inline-end: 8%; width: 84px; height: 84px; border-radius: 50%; background: #FFE3A3;
  box-shadow: 0 0 0 22px rgba(255, 227, 163, .22), 0 0 100px rgba(255, 227, 163, .65); }
.stops { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.stop { background: rgba(250, 246, 239, .94); color: #2B0A14; border-radius: 28px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px rgba(43, 10, 20, .12); }
.stop .t { font: 600 12px Outfit, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #7A5C24; }
.stop h3 { font-family: Fraunces, serif; font-weight: 400; font-size: 30px; line-height: 1.1; }
.stop p { margin: 0; font-size: 17px; line-height: 1.6; color: #3F3236; }

.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.world { display: flex; flex-direction: column; gap: 8px; background: rgba(43, 10, 20, .55); border: 1px solid rgba(201, 168, 106, .3); border-radius: 22px; padding: 24px; min-height: 190px; box-sizing: border-box; }
.world h3 { font-family: Fraunces, serif; font-weight: 400; font-size: 26px; line-height: 1.2; }
.world p { margin: 0; font-size: 15px; line-height: 1.6; color: #D9CCD2; }
.light .world { background: rgba(255, 255, 255, .7); border-color: rgba(101, 26, 49, .25); }
.light .world p { color: #3F3236; }
.tag { margin-top: auto; align-self: flex-start; font: 600 11px Outfit, sans-serif; letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; padding: 5px 11px; }
.live { background: rgba(23, 59, 42, .95); color: #A8E6C0; }
.soon { background: rgba(201, 168, 106, .16); border: 1px solid #C9A86A; color: #F1D6A5; }
.far { border: 1px dashed #A88D5C; color: #D9CCD2; }
/* the one line under a chapter's cards (DECISIONS 568 (2), 569 (2)) */
.fine { margin: 22px 0 0; max-width: 720px; font-size: 14px; line-height: 1.6; color: #D9CCD2; }
.light .fine { color: #3F3236; }

.core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; margin-top: 40px; max-width: 900px; }
.core div { border-top: 1px solid rgba(201, 168, 106, .5); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.core h3 { font-family: Fraunces, serif; font-weight: 400; font-size: 24px; line-height: 1.2; }
.core p { margin: 0; font-size: 15px; line-height: 1.6; color: #D9CCD2; }

.big { font-family: Fraunces, serif; font-weight: 300; font-size: clamp(46px, 7.4vw, 128px); line-height: 1.04; margin: 0; letter-spacing: -0.02em; }
.big .it { color: #651A31; }
:lang(ar) .big { line-height: 1.3; }

/* the home page's legal line sits in the last chapter, as on the canvas */
.chap .foot { margin-top: 34px; padding-block: 18px 0; border-top-color: rgba(201, 168, 106, .3); color: #C2AFB5; font-size: 13px; justify-content: center; gap: 4px 28px; }
.chap .foot a { color: #E9DCCB; }
.chap .foot a:hover { color: #F1D6A5; }

/* ---------- the paper pages: privacy, terms, contact ---------- */
body.paper { background: #F4ECE0; }
.wrap { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding-inline: clamp(20px, 6vw, 88px); }
.page-hero { padding-block: 72px 40px; max-width: 820px; }
.page-hero .kick { color: #7A5C24; }
.page-hero h1 { font-family: Fraunces, serif; font-weight: 300; font-size: clamp(48px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.02em; }
:lang(ar) .page-hero h1 { line-height: 1.3; }
.page-hero .lead { color: #3F3236; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.75; max-width: 680px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 28px; }
.date { font-size: 15px; color: #5E4A50; }
.toc { margin: 24px 0 56px; padding: 28px 30px; border-radius: 24px; background: rgba(250, 246, 239, .78); border: 1px solid rgba(101, 26, 49, .14); }
.toc h2 { margin: 0 0 16px; font: 600 12px Outfit, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #7A5C24; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 4px 28px; }
.toc a { display: flex; gap: 12px; align-items: baseline; min-height: 44px; padding-block: 8px; text-decoration: none; color: #2B0A14; border-bottom: 1px solid rgba(101, 26, 49, .1); }
.toc a:hover { color: #651A31; }
.toc a .n { font: 400 14px Fraunces, serif; color: #7A5C24; min-width: 24px; }
.sec { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 24px; padding-block: 40px; border-top: 1px solid rgba(101, 26, 49, .16); scroll-margin-top: 24px; }
.num { font-family: Fraunces, serif; font-weight: 300; font-size: 44px; line-height: 1; color: #B8955A; }
.sec h2 { margin: 0 0 14px; font-family: Fraunces, serif; font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -0.01em; }
:lang(ar) .sec h2 { line-height: 1.45; }
.sec p { margin: 0 0 16px; max-width: 720px; color: #3F3236; }
:lang(ar) .toc h2, :lang(ar) .note span { font-size: 14px; }

/* the preview's marks: a missing fact, a lawyer note, a draft line (a release build refuses every one of them) */
.ph { background: rgba(201, 168, 106, .18); color: #5E4416; border: 1.5px dashed #B8955A; border-radius: 6px; padding: 0 6px; }
.note { max-width: 720px; padding: 18px 22px; border-radius: 18px; border: 1.5px dashed #B8955A; background: rgba(201, 168, 106, .1); display: flex; flex-direction: column; gap: 6px; }
.note span { font: 600 11px Outfit, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #7A5C24; }
.note em { font-style: italic; color: #3F3236; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1.5px dashed #B8955A; background: rgba(201, 168, 106, .12); font: 600 13px Outfit, sans-serif; color: #5E4416; }
.draft { border-bottom: 1.5px dashed #B8955A; background: rgba(201, 168, 106, .12); }

.foot { margin-top: 40px; padding-block: 36px 56px; border-top: 1px solid rgba(101, 26, 49, .16); display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; font-size: 14px; color: #5E4A50; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; color: #2B0A14; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: #651A31; }

/* contact */
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 56px; align-items: start; padding-bottom: 40px; }
.card { background: rgba(250, 246, 239, .92); border: 1px solid rgba(101, 26, 49, .14); border-radius: 28px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 60px rgba(43, 10, 20, .08); }
.form { display: flex; flex-direction: column; gap: 18px; }
.f { display: flex; flex-direction: column; gap: 8px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.form label { font-weight: 600; font-size: 15px; color: #2B0A14; }
.form label small { font-weight: 400; color: #5E4A50; font-size: 14px; }
/* the form's fields are .inp: the 404 page and the front door use .in for their own inner boxes */
.inp { box-sizing: border-box; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(101, 26, 49, .3); background: #FFFFFF; color: #2B0A14; font: 400 16px Outfit, sans-serif; }
textarea.inp { min-height: 140px; resize: vertical; line-height: 1.6; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.6; color: #3F3236; }
.send { align-self: flex-start; min-width: 160px; }
.send[disabled] { opacity: .6; cursor: default; transform: none; }
.side { display: flex; flex-direction: column; gap: 34px; padding-top: 8px; }
.side h2 { margin: 0 0 10px; font: 600 12px Outfit, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #7A5C24; }
:lang(ar) .side h2 { font-size: 14px; }
.mail { font-family: Fraunces, serif; font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); text-decoration: none; color: #2B0A14; border-bottom: 1px solid #B8955A; display: inline-block; padding-bottom: 4px; direction: ltr; unicode-bidi: isolate; }
.mail:hover { color: #651A31; }
.dl { margin: 0; display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 10px 22px; font-size: 16px; }
.dl dt { color: #5E4A50; }
.dl dd { margin: 0; color: #2B0A14; }
.safe { margin: 0; padding-top: 22px; border-top: 1px solid rgba(101, 26, 49, .16); font-size: 15px; color: #3F3236; max-width: 440px; }

/* ---------- 404: this door leads nowhere (both languages, side by side) ---------- */
body.lost-page { background: #2B0A14; }
.nf { position: relative; min-height: max(100vh, 640px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.nf .wake { position: absolute; z-index: 2; }
.nf .side { position: relative; display: flex; align-items: center; padding: 96px clamp(24px, 6.5vw, 104px); flex-direction: row; gap: 0; }
.nf .side.en { background: #F4ECE0; color: #2B0A14; }
.nf .side.ar { background: #2B0A14; color: #F4ECE0; }
.nf .in { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 440px; }
.nf .k { font: 600 12px Outfit, sans-serif; letter-spacing: .3em; color: #7A5C24; }
.nf .side.ar .k { color: #E3C892; }
.nf .w { margin: 0; font-family: Fraunces, serif; font-weight: 300; font-size: clamp(40px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
.nf .side.ar .w { line-height: 1.35; }
.nf .side.en .dot { color: #651A31; }
.nf .side.ar .dot { color: #E3C892; }
.nf .s { margin: 0; font-size: 19px; line-height: 1.65; }
.nf .side.en .s { color: #5E4A50; }
.nf .side.ar .s { color: #D9CCD2; line-height: 1.9; font-size: 20px; }
.nf .e { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; font: 600 16px Outfit, sans-serif; transition: transform .3s, background .3s; }
.nf .side.en .e { background: #651A31; color: #FFFFFF; }
.nf .side.en .e:hover { background: #4E1226; transform: translateY(-2px); }
.nf .side.ar .e { background: #C9A86A; color: #2B0A14; }
.nf .side.ar .e:hover { background: #F1D6A5; transform: translateY(-2px); }
.lost { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.lost path { fill: none; stroke: #C9A86A; }
.lost-line { stroke-width: 1; stroke-opacity: .6; }
.lost-draw { stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.medal { position: absolute; left: 50%; top: 50%; z-index: 5; width: 150px; height: 150px; transform: translate(-50%, -50%); border-radius: 50%; background: #150B11; border: 2px solid #C9A86A;
  display: flex; align-items: center; justify-content: center; animation: sway 6s ease-in-out infinite; }
.medal img { width: 112px; height: auto; }
@keyframes sway { 0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-50%, -50%) rotate(3deg); } }

/* ---------- the front door (home): both languages side by side, the page's first screen ----------
   Without the script (or under reduced motion) it is a plain two-part screen of two links. With the script it is the
   canvas's gate: an overlay whose seam leans toward the side the pointer is on, and which opens onto the voyage. */
.gate { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: max(100vh, 560px); overflow: hidden; }
.gate .half { position: relative; grid-row: 1; display: flex; align-items: center; padding: 96px clamp(24px, 6.5vw, 104px); text-decoration: none; box-sizing: border-box; }
.gate .half.en { grid-column: 1; background: #F4ECE0; color: #2B0A14; }
.gate .half.ar { grid-column: 2; background: #2B0A14; color: #F4ECE0; }
.gate .half:focus-visible { outline-offset: -8px; }
.gate .zone { display: block; }
.gate .in { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.gate .k { font: 600 12px Outfit, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #7A5C24; }
.gate .half.ar .k { font-size: 15px; color: #C9A86A; }
.gate .w { font-family: Fraunces, serif; font-weight: 300; font-size: clamp(56px, 7.4vw, 112px); line-height: .98; white-space: nowrap; }
.gate .half.ar .w { line-height: 1.3; }
.gate .s { font-size: 19px; line-height: 1.6; max-width: min(440px, 34vw); }
.gate .half.en .s { color: #5E4A50; }
.gate .half.ar .s { color: #D9CCD2; line-height: 1.9; font-size: 20px; }
.gate .e { font-weight: 600; font-size: 16px; white-space: nowrap; }
.gate .half.en .e, .gate .half.en .dot { color: #651A31; }
.gate .half.ar .e { color: #E3C892; font-size: 17px; }
.gate .half.ar .dot { color: #E3C892; }
.gate .half:hover .e, .gate .half:focus-visible .e { text-decoration: underline; text-underline-offset: 6px; }
.gate-thread { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
.gate-thread path { fill: none; stroke: #C9A86A; }
.gate-draw { stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .4s cubic-bezier(.4, 0, .2, 1) forwards; }
.gate-line { stroke-width: 1; stroke-opacity: .6; }
.gate-medal { position: absolute; left: 50%; top: 50%; z-index: 5; box-sizing: border-box; width: 168px; height: 168px; transform: translate(-50%, -50%); border-radius: 50%;
  background: #150B11; border: 2px solid #C9A86A; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.gate-medal img { width: 128px; height: auto; }

/* the gate, live (assets/site.js adds html.voyage) */
html.voyage .gate { position: fixed; inset: 0; z-index: 40; display: block; min-height: 0; --seam: 50%; --pe: .5; --pa: .5; }
html.voyage .gate .half { position: absolute; inset: 0; padding: 0; transition: transform 1.3s cubic-bezier(.7, 0, .2, 1); }
html.voyage .gate .half.en { clip-path: inset(0 calc(100% - var(--seam)) 0 0); }
html.voyage .gate .half.ar { clip-path: inset(0 0 0 var(--seam)); }
html.voyage .gate .zone { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; }
html.voyage .gate .half.en .zone { left: 6.5vw; }
html.voyage .gate .half.ar .zone { right: 6.5vw; }
html.voyage .gate .s { max-width: min(440px, 30vw); }
html.voyage .gate .in { will-change: transform; }
html.voyage .gate .half.en .in { transform-origin: left center; transform: translate3d(calc((var(--pe) - 1) * 4vw), 0, 0) scale(calc(.76 + .32 * var(--pe))); }
html.voyage .gate .half.ar .in { transform-origin: right center; transform: translate3d(calc((1 - var(--pa)) * 4vw), 0, 0) scale(calc(.76 + .32 * var(--pa))); }
html.voyage .gate .half.en .s, html.voyage .gate .half.en .e { opacity: calc(.4 + .6 * var(--pe)); }
html.voyage .gate .half.ar .s, html.voyage .gate .half.ar .e { opacity: calc(.4 + .6 * var(--pa)); }
html.voyage .gate-medal { left: 0; transform: translate3d(calc(var(--sx, 50vw) - 50%), -50%, 0); transition: opacity 1s ease; }
html.voyage .gate-thread { transform: translate3d(calc(var(--sx, 50vw) - 50%), 0, 0); transition: opacity .8s; }
html.voyage .gate.open { pointer-events: none; }
html.voyage .gate.open .half.en { transform: translateX(-100%); }
html.voyage .gate.open .half.ar { transform: translateX(100%); }
html.voyage .gate.open .gate-medal { transform: translate3d(calc(var(--sx, 50vw) - 50%), -50%, 0) scale(9); opacity: 0; transition: transform 1.3s cubic-bezier(.7, 0, .2, 1), opacity 1s ease; }
html.voyage .gate.open .gate-thread { opacity: 0; }
html.voyage .gate.gone { visibility: hidden; }

/* ---------- the voyage (home): assets/site.js adds html.voyage; without it every chapter stays on one scrolling page ---------- */
html { --d: 1; }
html[dir="rtl"] { --d: -1; }
.glow, .field, .guide, .hint { display: none; }
html.voyage, html.voyage body { height: 100%; overflow: hidden; }
html.voyage body.home { background-color: #2B0A14; color: #F4ECE0; transition: background-color 1.1s ease, color 1.1s ease; }
html.voyage.light body.home { color: #2B0A14; }
html.voyage[data-step="1"] body.home, html.voyage[data-step="10"] body.home { background-color: #3A1220; }
html.voyage[data-step="2"] body.home, html.voyage[data-step="8"] body.home, html.voyage[data-step="11"] body.home { background-color: #F4ECE0; }
html.voyage[data-step="3"] body.home { background-color: #F6E6C8; }
html.voyage[data-step="4"] body.home { background-color: #F2D49E; }
html.voyage[data-step="5"] body.home { background-color: #E09A66; }
html.voyage[data-step="6"] body.home { background-color: #7A2338; }
html.voyage .glow { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity 1.1s ease;
  background: radial-gradient(ellipse at 68% 48%, rgba(122, 35, 56, .75) 0%, rgba(58, 18, 32, .35) 40%, rgba(43, 10, 20, 0) 72%); }
html.voyage[dir="rtl"] .glow { background: radial-gradient(ellipse at 32% 48%, rgba(122, 35, 56, .75) 0%, rgba(58, 18, 32, .35) 40%, rgba(43, 10, 20, 0) 72%); }
html.voyage.light .glow { opacity: 0; }
html.voyage .field { display: block; position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
html.voyage .thread { display: none; }
html.voyage .wake { z-index: 45; }
html.voyage .voyage-root { position: fixed; inset: 0; z-index: 3; }
html.voyage .hero-top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: none; padding-inline: 44px; }
html.voyage .top { padding-block: 22px; }
html.voyage main { position: absolute; inset: 0; z-index: 5; }
html.voyage .chap { position: absolute; inset: 0; z-index: 5; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: stretch; box-sizing: border-box;
  padding-block: 96px 120px; padding-inline: 9vw 46vw; background: none; color: inherit; overflow: hidden;
  transition: transform 1.15s cubic-bezier(.7, 0, .2, 1), opacity .9s ease, filter .9s ease, visibility 0s linear 0s; }
html.voyage .chap .inner { max-width: none; margin: 0; }
html.voyage .chap.wide { padding-inline: 9vw; }
html.voyage .chap.center { align-items: center; text-align: center; padding-inline: 10vw; }
html.voyage .chap.center .inner { max-width: 1000px; }
html.voyage .chap.now { transform: none; opacity: 1; filter: none; visibility: visible; }
html.voyage .chap.before, html.voyage .chap.after { opacity: 0; filter: blur(10px); visibility: hidden;
  transition: transform 1.15s cubic-bezier(.7, 0, .2, 1), opacity .8s ease, filter .9s ease, visibility 0s linear 1.15s; }
html.voyage .chap.before { transform: translate3d(calc(var(--d) * -24vw), 0, 0) scale(.82); }
html.voyage .chap.after { transform: translate3d(calc(var(--d) * 24vw), 0, 0) scale(1.16); }
/* the journey's kick over its sky: darker on the late-morning and midday light (#F2D49E, #E09A66), the light gold on
   the afternoon's #7A2338, so it keeps WCAG AA (4.5:1) on every step (F-6) */
html.voyage.light .chap.sand .kick { color: #4A3510; }
html.voyage:not(.light) .chap.sand .kick { color: #E3C892; }
html.voyage:not(.light) .chap.sand .it { color: #E3C892; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { opacity: 0; transform: translateX(calc(var(--d) * -12vw)); } to { opacity: 1; transform: none; } }
html.voyage .chap.now .inner > * { animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
html.voyage .chap.now .inner > :nth-child(2) { animation-delay: .18s; }
html.voyage .chap.now .inner > :nth-child(3) { animation-delay: .32s; }
html.voyage .chap.now .inner > :nth-child(n+4) { animation-delay: .46s; }
html.voyage .chap.now .inner > .big { animation-name: sweep; }

/* the journey: one stop at a time, the sun crossing the sky */
html.voyage .chap.sand .stops { display: flex; gap: 3vw; margin-top: 46px; transition: transform 1.2s cubic-bezier(.7, 0, .2, 1);
  transform: translateX(calc(var(--sub, 0) * -23vw * var(--d))); }
html.voyage .chap.sand .stop { flex: none; width: min(380px, 70vw); box-shadow: 0 30px 60px rgba(43, 10, 20, .18); transition: opacity .8s, transform .8s; }
html.voyage .chap.sand .stop.dim { opacity: .38; transform: scale(.94); }
html.voyage .sun { top: auto; inset-inline-end: auto; left: 50%; bottom: -64vh; width: 4px; height: 122vh; border-radius: 0; background: none; box-shadow: none;
  transform-origin: 50% 100%; transform: translateX(-50%) rotate(calc(var(--d) * -1 * (64deg - var(--sub, 0) * 32deg))); transition: transform 1.2s cubic-bezier(.7, 0, .2, 1); }
html.voyage .sun::before { content: ""; position: absolute; top: 0; left: 50%; width: 84px; height: 84px; border-radius: 50%; transform: translate(-50%, -50%);
  background: #FFE3A3; box-shadow: 0 0 0 22px rgba(255, 227, 163, .22), 0 0 100px rgba(255, 227, 163, .65); }

/* the top bar over the voyage's light chapters */
html.voyage.light .lg-dark { display: none; }
html.voyage.light .lg-light { display: block; }
html.voyage.light .hero-top .line { background: rgba(250, 246, 239, .55); color: #2B0A14; border-color: rgba(101, 26, 49, .45); }
html.voyage.light .hero-top .line:hover { border-color: #651A31; color: #2B0A14; }
html.voyage.light .hero-top .solid { background: #651A31; color: #FFFFFF; }
html.voyage.light .hero-top .solid:hover { background: #4E1226; color: #FFFFFF; }

/* the guide: arrows, one dot per chapter, the chapter's name; and the hint line until the first move */
html.voyage .guide { position: fixed; z-index: 20; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; align-items: center; gap: 22px; }
.vdots { display: flex; gap: 6px; align-items: center; }
.vdot { width: 32px; height: 36px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.vdot span { width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 236, 224, .35); transition: all .4s; }
.vdot.on span { width: 26px; border-radius: 5px; background: #E3C892; }
html.voyage.light .vdot span { background: rgba(101, 26, 49, .3); }
html.voyage.light .vdot.on span { background: #651A31; }
.label { min-width: 160px; font: 600 11px Outfit, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #E3C892; }
:lang(ar) .label { font-size: 13px; }
html.voyage.light .label { color: #651A31; }
.arrow { box-sizing: border-box; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid rgba(201, 168, 106, .5); background: rgba(43, 10, 20, .35); color: #F4ECE0;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .3s, transform .3s; }
.arrow:hover { border-color: #F1D6A5; transform: scale(1.06); }
.arrow:disabled { opacity: .3; cursor: default; transform: none; }
html.voyage.light .arrow { background: rgba(250, 246, 239, .5); color: #2B0A14; border-color: rgba(101, 26, 49, .4); }
.chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
[dir="rtl"] .chev { transform: scaleX(-1); }
html.voyage .hint { display: block; position: fixed; z-index: 20; left: 0; right: 0; bottom: 84px; margin: 0; text-align: center; pointer-events: none;
  font: 500 12px Outfit, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #C2AFB5; transition: opacity .6s; }
:lang(ar) .hint { font-size: 14px; }
html.voyage.light .hint { color: #5E4A50; }
html.voyage .hint.seen { opacity: 0; }

/* ---------- reduced motion: nothing moves (the script does nothing then, so the voyage never starts) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .lost-draw, .gate-draw { stroke-dashoffset: 0; }
  .wake { display: none; }
}
html { scroll-behavior: smooth; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .world { min-height: 150px; padding: 16px; }
  .world h3 { font-size: 20px; }
  .core { grid-template-columns: minmax(0, 1fr); }
  .chap { padding-inline: 7vw; min-height: 0; }
  /* the door: English above, Arabic below */
  .gate { grid-template-columns: minmax(0, 1fr); }
  .gate .half { min-height: 50vh; padding: 72px 8vw; }
  .gate .half.en { grid-column: 1; grid-row: 1; }
  .gate .half.ar { grid-column: 1; grid-row: 2; }
  .gate .s { max-width: 84vw; }
  .gate-medal { width: 110px; height: 110px; }
  .gate-medal img { width: 84px; }
  html.voyage .gate .half.en { clip-path: inset(0 0 50% 0); }
  html.voyage .gate .half.ar { clip-path: inset(50% 0 0 0); }
  html.voyage .gate .half.en .zone { left: 8vw; right: 8vw; top: 0; bottom: 50%; }
  html.voyage .gate .half.ar .zone { left: 8vw; right: 8vw; top: 50%; bottom: 0; }
  html.voyage .gate .half.en .in, html.voyage .gate .half.ar .in { transform: none; }
  html.voyage .gate .half.en .s, html.voyage .gate .half.en .e, html.voyage .gate .half.ar .s, html.voyage .gate .half.ar .e { opacity: 1; }
  html.voyage .gate .s { max-width: 84vw; }
  html.voyage .gate-medal { left: 50%; transform: translate(-50%, -50%); }
  html.voyage .gate-thread { transform: none; }
  html.voyage .gate.open .gate-medal { transform: translate(-50%, -50%) scale(9); }
  html.voyage .gate.open .half.en { transform: translateY(-100%); }
  html.voyage .gate.open .half.ar { transform: translateY(100%); }
  /* the voyage: a slide too tall for the screen scrolls inside itself */
  html.voyage .chap, html.voyage .chap.wide, html.voyage .chap.center { padding: 84px 7vw 130px; justify-content: flex-start; overflow-y: auto; }
  html.voyage .hero-top { padding-inline: 16px; }
  html.voyage .top { padding-block: 14px; }
  .label { display: none; }
  html.voyage .guide { gap: 10px; }
}
@media (max-width: 560px) {
  .top-nav { gap: 8px; }
  .top-nav .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
  html.voyage .chap, html.voyage .chap.wide, html.voyage .chap.center { padding-top: 150px; }
}
@media (max-width: 760px) {
  .thread { inset-inline-start: 6px; width: 14px; }
  .sec { grid-template-columns: minmax(0, 1fr); }
  .num { font-size: 30px; margin-bottom: 10px; }
  .page-hero { padding-block: 40px 24px; }
  .toc { padding: 22px 20px; }
  .worlds { grid-template-columns: minmax(0, 1fr); }
  .nf { grid-template-columns: minmax(0, 1fr); }
  .nf .side { padding: 72px 24px; }
  .medal { width: 96px; height: 96px; }
  .medal img { width: 72px; }
  .lost { display: none; }
}

/* ---------- print: the legal pages read cleanly on paper ---------- */
@media print {
  body, body.paper, body.home { background: #FFFFFF; color: #000000; font-size: 11pt; }
  .wake, .thread, .top-nav, .toc, .lost, .medal, .gate, .field, .glow, .guide, .hint { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .sec { break-inside: avoid; grid-template-columns: 48px minmax(0, 1fr); padding-block: 12pt; }
  .sec p, .lead, .date { color: #000000; }
  .foot { break-before: avoid; }
  a { color: #000000; }
}
