/* ============================================================
   Dār as-Sayf wal-Qalam — house-level pages
   Adds studio components on top of style.css. Nothing here
   overrides the game page's existing look.
   ============================================================ */

/* ---------- interior pages sit under a solid fixed nav ---------- */
body.interior{padding-top:84px}
body.interior header.nav{background:var(--bg2);border-bottom:1px solid var(--line)}

/* ---------- house brand in the nav ---------- */
.brand .name.house{letter-spacing:.2em;font-size:13px}
.brand .name .ar-mark{
  font-family:"Amiri",serif;display:block;letter-spacing:0;
  font-size:15px;color:var(--gold);text-transform:none;line-height:1.2;margin-top:2px;
}
nav.links a.here{color:var(--gold-bright)}

/* ---------- second bar, carried by a work page ---------- */
.subnav{
  position:fixed;top:96px;left:0;right:0;z-index:49;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:10px 28px;
  background:var(--bg2);
  border-bottom:1px solid var(--line);
}
.subnav .where{display:flex;align-items:center;gap:10px;min-width:0}
.subnav .where .up{color:var(--faint);font-size:13px;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.subnav .where .up:hover{color:var(--gold)}
.subnav .where .sep{color:var(--faint);opacity:.6}
.subnav .where .title{color:var(--ink);font-size:15px;letter-spacing:.1em;text-transform:uppercase;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.subnav .jump{display:flex;align-items:center;gap:24px}
.subnav .jump a{color:var(--faint);font-size:14px;letter-spacing:.05em;white-space:nowrap}
.subnav .jump a:hover{color:var(--gold-bright)}
.subnav .jump a.btn-gold{color:#221708;padding:8px 16px;font-size:14px}
body.has-subnav header.nav{padding-top:14px;padding-bottom:14px}
@media(max-width:900px){
  .subnav{top:90px;padding:8px 18px}
  .subnav .jump a:not(.btn){display:none}
  .subnav .where .up{display:none}
  .subnav .where .sep{display:none}
}

/* ---------- compact page head (interior pages) ---------- */
.page-head{
  padding:78px 0 8px;text-align:center;position:relative;overflow:hidden;
  background:var(--bg);
}
.page-head .wrap{position:relative;z-index:2}
.page-head h1{
  font-size:clamp(38px,6vw,64px);font-weight:600;line-height:1.06;color:var(--ink);
  margin:14px 0 16px;
}
.page-head h1 em{font-style:normal;color:inherit}
.page-head .lede{color:var(--muted);font-size:19px;max-width:660px;margin:0 auto}
.page-head .rule{width:160px;height:16px;margin:30px auto 0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d9b05e' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpolygon points='7.3,7.3 16.7,7.3 16.7,16.7 7.3,16.7'/%3E%3Cpolygon points='12,5.35 18.65,12 12,18.65 5.35,12'/%3E%3Ccircle cx='12' cy='12' r='1' fill='%23d9b05e' stroke='none'/%3E%3C/svg%3E") center/16px 16px no-repeat,linear-gradient(var(--line-strong),var(--line-strong)) left center/calc(50% - 14px) 1px no-repeat,linear-gradient(var(--line-strong),var(--line-strong)) right center/calc(50% - 14px) 1px no-repeat}

/* ---------- house hero (front page) ---------- */
.hero h1.house-ar{
  font-size:clamp(34px,11.5vw,132px);line-height:1.32;font-weight:700;white-space:nowrap;
  padding:.14em .12em .24em;
  color:var(--gold);
  margin-bottom:2px;
}
.hero .logo-hero{display:flex;width:170px;height:170px;margin:0 auto 26px}

/* ---------- what the house makes: three columns ---------- */
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);
  border:1px solid var(--line-strong);border-radius:0;overflow:hidden;max-width:1140px;margin:0 auto}
.three .col{background:var(--bg2);padding:40px 34px;transition:background .3s;display:block}
.three a.col:hover{background:var(--bg3)}
.three .col .glyph{font-family:"Amiri",serif;font-size:30px;color:var(--gold);display:block;margin-bottom:14px}
.three .col h3{font-size:23px;color:var(--ink);font-weight:600;margin-bottom:10px}
.three .col p{color:var(--muted);font-size:16.5px;line-height:1.55}
.three .col .more{display:inline-block;margin-top:14px;color:var(--gold);font-size:14px;letter-spacing:.12em;text-transform:uppercase}
@media(max-width:900px){.three{grid-template-columns:1fr}}

/* ---------- the shelf ---------- */
.shelf-group{max-width:1140px;margin:0 auto 90px}
.shelf-group:last-child{margin-bottom:0}
.shelf-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;
  border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:34px;flex-wrap:wrap}
.shelf-head h2{font-size:clamp(26px,3.4vw,34px);font-weight:600;color:var(--ink)}
.shelf-head .ar{font-family:"Amiri",serif;color:var(--gold);font-size:24px}
.shelf{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
@media(max-width:860px){.shelf{grid-template-columns:1fr}}

.work{
  display:block;background:var(--bg2);border:1px solid var(--line-strong);border-radius:0;
  overflow:hidden;transition:border-color .3s,transform .3s,box-shadow .3s;
}
a.work:hover{border-color:var(--gold)}
.work .shot{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--bg);border-bottom:1px solid var(--line)}
.work .shot img{width:100%;height:100%;object-fit:cover}
.work .shot::after{display:none}
.work .body{padding:26px 28px 28px}
.work .kind{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--dim)}
.work h3{font-size:26px;font-weight:600;color:var(--ink);margin:8px 0 4px}
.work .sub{font-family:"Amiri",serif;color:var(--gold);font-size:20px;direction:rtl;margin-bottom:10px}
.work p{color:var(--muted);font-size:17px;line-height:1.55}
.work .foot{display:flex;align-items:center;gap:12px;margin-top:18px;flex-wrap:wrap}
.pill{display:inline-block;font-size:12px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold);border:1px solid var(--line-strong);padding:6px 13px 5px;border-radius:0}
.pill.work-state{color:var(--sage);border-color:var(--sage)}
.work .go{color:var(--gold);font-size:14px;letter-spacing:.12em;text-transform:uppercase}

/* a group with nothing published in it yet */
.empty{
  border:1px solid var(--line-strong);outline:1px solid var(--line);outline-offset:-5px;
  border-radius:0;padding:40px 34px;text-align:center;background:var(--bg2);
}
.empty p{color:var(--faint);font-size:17px}
.empty .mark{font-family:"Amiri",serif;color:var(--gold);font-size:26px;display:block;margin-bottom:10px}

/* ---------- plain prose column (about, journal, deen) ---------- */
.prose{max-width:760px;margin:0 auto}
.prose h2{font-size:clamp(26px,3.4vw,34px);font-weight:600;color:var(--ink);margin:52px 0 16px}
.prose h2:first-child{margin-top:0}
.prose p{color:var(--muted);font-size:19px;margin-bottom:18px}
.prose p.first{color:var(--ink);font-size:21px}
.prose ul{list-style:none;margin:0 0 22px}
.prose li{color:var(--muted);font-size:18.5px;padding-left:26px;position:relative;margin-bottom:10px}
.prose li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;background:var(--gold);transform:rotate(45deg)}
.prose .ar-line{font-family:"Amiri",serif;direction:rtl;color:var(--gold);font-size:24px;margin-bottom:6px}

/* ---------- support strip on the front page ---------- */
.strip{
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  background:var(--bg2);
  padding:70px 0;text-align:center;
}
.strip h2{font-size:clamp(26px,3.6vw,38px);font-weight:600;color:var(--ink);margin:12px 0 14px}
.strip h2 em{font-style:normal;color:inherit}
.strip p{color:var(--muted);max-width:620px;margin:0 auto 28px;font-size:18px}

/* ---------- footer with links ---------- */
footer .fnav{display:flex;gap:26px;justify-content:center;flex-wrap:wrap;margin-top:22px}
footer .fnav a{color:var(--muted);font-size:15px}
footer .fnav a:hover{color:var(--gold-bright)}
footer .fline.house{color:var(--ink);font-size:16px;letter-spacing:.16em;text-transform:uppercase}
footer .fline .ar-mark{font-family:"Amiri",serif;display:block;font-size:20px;color:var(--gold);
  letter-spacing:0;text-transform:none;margin-top:6px}

/* ---------- contact form reuses the waitlist card ---------- */
.ct-card{max-width:640px}
.ct-success{display:none;text-align:center;padding:20px 0}
.ct-success .seal{height:13px;max-width:260px;margin:0 auto 22px;background:var(--weave) repeat-x center top;font-size:0;color:transparent}
.ct-success h3{font-size:26px;color:var(--ink);margin-bottom:10px}
.ct-success p{color:var(--muted)}
.ct-card.done form{display:none}
.ct-card.done .ct-success{display:block}

/* ---------- a work page carries two bars, so its hero starts lower ---------- */
body.interior.has-subnav{padding-top:0}
body.has-subnav .hero{padding-top:210px}
@media(max-width:900px){body.has-subnav .hero{padding-top:184px}}

/* ---------- small screens ----------
   style.css hides every nav link that is not a button under 900px. On a work
   page the top bar carries no button, so it would be left empty: keep the two
   links that matter. The house name is also long enough to break across a
   hyphen on a phone, so it is set smaller there. */
@media(max-width:560px){
  body[data-page="home"] .hero .latin{font-size:20px;letter-spacing:.08em}
  .page-head h1{font-size:clamp(30px,8vw,44px)}
}

/* ============================================================ THE SEVEN-ITEM MENU
   One menu, same on every page, no button in the banner. style.css hides
   every non-button nav link under 900px, so below that width the links move
   into a panel opened by the Menu button. */
header.nav nav.links{gap:22px}
header.nav nav.links a{font-size:15px;letter-spacing:.06em;padding:4px 0;position:relative}
header.nav nav.links a.here{color:var(--gold-bright)}
header.nav nav.links a.here::after{
  content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;background:var(--gold)}
header.nav nav.links a:hover{color:var(--gold-bright)}

.navtoggle{
  display:none;font-family:"EB Garamond",serif;font-size:14px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--gold-bright);background:transparent;cursor:pointer;
  border:1px solid var(--gold);outline:1px solid var(--line-strong);outline-offset:-4px;border-radius:0;padding:9px 16px;
}
.navtoggle:hover{border-color:var(--gold);background:var(--bg3)}

@media(max-width:900px){
  .navtoggle{display:block}
  header.nav{flex-wrap:wrap}
  header.nav nav.links{
    display:none;order:3;width:100%;flex-direction:column;align-items:flex-start;
    gap:0;margin-top:14px;border-top:1px solid var(--line);
    max-height:calc(100vh - 110px);overflow-y:auto;   /* seven items never run off a short phone */
  }
  body.menu-open header.nav{background:var(--bg2)}
  body.menu-open header.nav nav.links{display:flex}
  header.nav nav.links a:not(.btn){display:block}   /* beats style.css */
  header.nav nav.links a{
    width:100%;padding:14px 2px;font-size:17px;letter-spacing:.08em;
    border-bottom:1px solid var(--line);color:var(--ink);
  }
  header.nav nav.links a.here::after{display:none}
  header.nav nav.links a.here{color:var(--gold-bright)}
}

/* a block hidden from the editor: it stays in the file, it just does not show */
.ed-hidden{display:none}


/* ============================================================ THE GILT OF THE MAP
   The game frames its map with two gold hairlines and a kit diamond on each
   corner. Every picture on the site wears the same frame, drawn once as a
   border-image: the outer gold line sits on the box edge, the inner dark-gold
   line 4px in, the diamonds stand on the corners and overhang them by half. */
.cinema .frame,.pshot .holder,.duo figure .shot,.wl-card,.work .shot,.soon-card{
  border:12px solid transparent;
  border-image:var(--gilt) 12 / 12px / 5px stretch;
  background:var(--bg);
}
.pshot .holder::before,.duo figure .shot::before{display:none}
.work .shot{border-bottom-width:12px}
.wl-card,.soon-card{background:var(--bg2)}

/* ============================================================ THE FORMS THAT TELL THE TRUTH */
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.form-err{margin-top:14px;color:var(--red);font-size:15.5px;text-align:center;line-height:1.5}

/* ============================================================ COMING SOON · THE TALES OF QUDAM */
.soon-card{max-width:900px;margin:0 auto;text-align:center;padding:58px 48px 54px;position:relative}
.soon-card .star{display:none}
.soon-card .kicker{display:block;margin-bottom:8px}
.soon-card h2{font-size:clamp(36px,5.4vw,58px);font-weight:600;line-height:1.04;color:var(--ink);margin:6px 0 10px}
.soon-card h2 em{font-style:normal;color:inherit}
.soon-card .sub{display:block;font-size:13px;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:24px}
.soon-card p{color:var(--body);font-size:19px;max-width:640px;margin:0 auto 14px}
.soon-card p.small{color:var(--faint);font-size:16px}
.soon-card .weave-rule{height:13px;max-width:338px;margin:28px auto;background:var(--weave) repeat-x center top}
.plaque{
  display:inline-block;background:var(--burgundy);border:1px solid var(--burgundy-edge);
  color:var(--ink);font-size:13px;letter-spacing:.32em;text-transform:uppercase;
  padding:10px 24px 9px 26px;
}
.soon-card .plaque{margin:2px 0 26px}
.soon-form{display:flex;gap:10px;max-width:560px;margin:8px auto 0}
.soon-form input{
  flex:1;min-width:0;background:var(--bg);border:1px solid var(--line-strong);color:var(--ink);
  font-family:"EB Garamond",serif;font-size:17px;padding:12px 16px;border-radius:0;
}
.soon-form input:focus{outline:1px solid var(--gold);outline-offset:2px;border-color:var(--gold-bright);box-shadow:none}
.soon-form .btn{white-space:nowrap;padding:12px 20px;font-size:15px}
.soon-card .wl-note{margin-top:14px}
.soon-card .soon-done{display:none;color:var(--gold-bright);font-size:18px;margin-top:10px}
.soon-card.done .soon-form,.soon-card.done .wl-note{display:none}
.soon-card.done .soon-done{display:block}
.soon-card .cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:22px}
@media(max-width:600px){
  .soon-card{padding:40px 22px 38px}
  .soon-form{flex-direction:column}
  .soon-form .btn{width:100%}
}


/* ============================================================ THE DE-AI PASS (2026-09-11)
   No italic emphasis anywhere; a heading is one colour. No motion. */
h1 em,h2 em,h3 em,h4 em,.big em,.lede em{font-style:normal;color:inherit}
*,*::before,*::after{animation:none!important}
.reveal{opacity:1!important;transform:none!important}

/* ============================================================ QURṬUBA IN THE GAME'S GREEN
   The owner's word (2026-09-11): the Qurṭuba part of the title takes the game's own green,
   DIN_GREEN #8fae72 (the --sage token), wherever the full name stands as a heading. */
.qurtuba,h2 em.qurtuba,.subnav .where .title .qurtuba{color:var(--sage)}
body[data-page="game"] .hero .gloss{color:var(--sage)}
