/* Ceylon Luminous, the light shell for every inner page (rolled out 17 Nov 2026, her call).
 * The homepage keeps its own inline block (index.html, <style id="ceylon-theme">); this file is
 * that design made generic. Link it AFTER the page's own <style>, then /css/cosmic.css.
 * Two shells are covered: the nav-link shell (CSS tokens) and the Tailwind shell
 * (utility classes and inline colour styles, overridden by attribute selectors). */

/* ── Tokens: plum ink on cream ─────────────────────────────────────── */
:root{
  --bg:#fdf8f0;--bg2:transparent;--panel:rgba(255,255,255,.62);--line:rgba(44,18,56,.12);
  --cream:#2c1238;--body:rgba(44,18,56,.88);--faint:rgba(44,18,56,.76);
  --gold:#6a2378;--gold-soft:#6a2378
}
html{background:#fdf8f0!important}
body{background:#fdf8f0!important;color:rgba(44,18,56,.88)}
::selection{background:rgba(212,72,110,.22)}
::-webkit-scrollbar-track{background:#fdf8f0}::-webkit-scrollbar-thumb{background:rgba(106,35,120,.3)}

/* ── Type ───────────────────────────────────────────────────────────── */
h1,h2,h3{font-weight:400!important}
h1 em,h2 em,h3 em{background:linear-gradient(100deg,#d9861a 0%,#d4486e 45%,#16805a 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;padding-right:.08em}
.eyebrow{font-size:.74rem!important;letter-spacing:.24em!important;font-weight:700!important;color:#6a2378}
.eyebrow::before{background:linear-gradient(90deg,#d4486e,transparent)!important}
.lead{font-size:1.14rem}
.go-link{font-weight:700;color:#6a2378;border-bottom-color:rgba(106,35,120,.35)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline-color:#d4486e!important}

/* ── Nav ────────────────────────────────────────────────────────────── */
nav{background:rgba(253,248,240,.91)!important;border-bottom:1px solid rgba(44,18,56,.08)!important}
.nav-brand{color:#6a2378!important;font-size:1.45rem}
.nav-link{font-size:.78rem!important;letter-spacing:.1em!important;font-weight:500;color:rgba(44,18,56,.82)!important}
.nav-link:hover,.nav-link[aria-current="page"]{color:#2c1238!important}
.nav-link::after{background:linear-gradient(90deg,#d9861a,#d4486e)!important}
.nav-burger{color:rgba(44,18,56,.78)!important}
.mob-menu{background:#fdf8f0!important;border-top-color:rgba(44,18,56,.08)!important}
.mob-menu a{color:rgba(44,18,56,.85)!important;border-bottom-color:rgba(44,18,56,.07)!important}

/* ── Buttons: gold kept ────────────────────────────────────────────── */
.btn-gold,.nav-cta,.mob-menu .nav-cta{background:linear-gradient(100deg,#e9b44c,#d99a2b)!important;color:#1a1408!important}
.nav-cta{font-size:.72rem!important;font-weight:600!important}
.btn{font-weight:600!important}
.btn-ghost{background:rgba(255,255,255,.72)!important;color:#2c1238!important;border:1px solid rgba(44,18,56,.22)!important}
.btn-ghost:hover{border-color:#d4486e!important}

/* ── Surfaces ──────────────────────────────────────────────────────── */
.plain{background:transparent!important;border-color:rgba(44,18,56,.07)!important}
/* Glass card: white glass, sunset stripe on top */
.glass{position:relative;background:rgba(255,255,255,.6)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.85)!important;box-shadow:0 20px 50px -28px rgba(60,30,60,.45);overflow:hidden}
.glass::after{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#d9861a,#d4486e,#16805a);pointer-events:none}
/* Orbs: one large blurred colour per section, painted as a background so no pseudo-element is taken */
.orb-emerald-r{background:radial-gradient(560px 560px at 100% 0%,rgba(63,191,138,.26),transparent 70%)!important}
.orb-saffron-l{background:radial-gradient(560px 560px at 0% 10%,rgba(242,168,58,.26),transparent 70%)!important}
.orb-rose-r{background:radial-gradient(560px 560px at 100% 20%,rgba(236,122,156,.26),transparent 70%)!important}
.orb-lagoon-l{background:radial-gradient(560px 560px at 0% 0%,rgba(74,163,216,.24),transparent 70%)!important}
.orb-violet-r{background:radial-gradient(560px 560px at 100% 80%,rgba(160,100,220,.22),transparent 70%)!important}
/* The invitation band: saffron, rose and mint */
.invite{background:linear-gradient(120deg,#fde3b8 0%,#f9c9cf 50%,#cfe9dd 100%)!important}

/* ── Tailwind shell ────────────────────────────────────────────────── */
.nav-glass{background:rgba(253,248,240,.91)!important}
.bg-black,.section-dark,[class*="bg-black/"]{background-color:transparent!important}
section[style*="#000"]{background:radial-gradient(ellipse 90% 60% at 50% -10%,rgba(242,168,58,.18),transparent 62%),#fdf8f0!important}
.text-cream,.text-white{color:#2c1238!important}
[class*="text-white/"]{color:rgba(44,18,56,.8)!important}
[class*="hover:text-white"]:hover{color:#2c1238!important}
.text-gold,[class*="text-gold/"]{color:#6a2378!important}
[class*="border-white"]{border-color:rgba(44,18,56,.1)!important}
[class*="bg-white/"]{background-color:rgba(255,255,255,.62)!important}
[class*="border-gold"]{border-color:rgba(106,35,120,.25)!important}
[class*="bg-gold/"]{background-color:rgba(217,134,26,.1)!important}
/* Inline colours written for the navy page */
[style*="color:rgba(255,255,255"],[style*="color: rgba(255,255,255"],[style*="color:rgba(248,244,237"],[style*="color: rgba(248,244,237"],[style*="color:rgba(245,245,247"],[style*="color:#f8f4ed"],[style*="color:#f5f5f7"]{color:rgba(44,18,56,.84)!important}
[style*="color:#c9a84c"],[style*="color: #c9a84c"],[style*="color:rgba(201,168,76"]{color:#6a2378!important}
[style*="border-left:3px solid rgba(201,168,76"]{border-left-color:#d4486e!important}
#rdprog{background:linear-gradient(90deg,#d9861a,#d4486e,#7a2c9a)!important}
/* Article body */
.article-body h2,.article-body h3{color:#2c1238!important}
.article-body p,.article-body ul,.article-body ol{color:rgba(44,18,56,.88)!important}
.article-body strong{color:#2c1238!important;font-weight:600!important}
.article-body a:not(.btn-gold):not(.btn-ghost){color:#a8304c!important}
.article-body blockquote{color:rgba(44,18,56,.82)!important;border-left-color:#d4486e!important}

/* mobile.css forces nav links white with a long selector; this one outranks it */
html nav.nav-glass a:not(.btn-gold):not([style*="color:#c9a84c"]),html .nav-empire-btn{color:rgba(44,18,56,.82)!important}
html nav.nav-glass a:not(.btn-gold):not([style*="color:#c9a84c"]):hover,html .nav-empire-btn:hover{color:#2c1238!important}
html nav.nav-glass a.text-gold:not(.btn-gold){color:#6a2378!important}
#mob-menu{background:#fdf8f0!important}
.nav-empire-dropdown{background:rgba(253,248,240,.97)!important;border-color:rgba(44,18,56,.1)!important;box-shadow:0 16px 48px rgba(44,18,56,.25)!important}
.nav-empire-dropdown .dd-title{color:#2c1238!important}
/* The dark ground of a panel survives the bg-black reset */
footer.bg-black,.cosmic.bg-black,footer[class*="bg-black"]{background-color:#0e0416!important}

/* Inside a cosmic panel the Tailwind utilities go back to light */
.cosmic .text-cream,.cosmic .text-white,footer .text-cream,footer .text-white{color:#fbf6ec!important}
.cosmic [class*="text-white/"],footer [class*="text-white/"]{color:rgba(248,244,237,.8)!important}
.cosmic .text-gold,.cosmic [class*="text-gold/"],footer .text-gold,footer [class*="text-gold/"]{color:#ffc27a!important}
.cosmic [class*="border-white"],footer [class*="border-white"]{border-color:rgba(255,255,255,.12)!important}
.cosmic [class*="bg-white/"]{background-color:rgba(255,255,255,.06)!important}
.cosmic [style*="color:rgba(255,255,255"],.cosmic [style*="color:rgba(248,244,237"],footer [style*="color:rgba(255,255,255"],footer [style*="color:rgba(248,244,237"]{color:rgba(248,244,237,.84)!important}
.cosmic [style*="color:#c9a84c"],footer [style*="color:#c9a84c"],footer [style*="color:rgba(201,168,76"]{color:#ffc27a!important}

@media print{body{background:#fff!important}}

/* ── Generic headings and the legal pages ──────────────────────────── */
h1,h2,h3{color:#2c1238}
.legal{color:rgba(44,18,56,.86)!important}
.legal nav a{color:#6a2378!important;font-weight:600}
.legal .wrap a{color:#a8304c!important;border-bottom-color:rgba(168,48,76,.35)!important}
.legal .updated{color:#6a2378!important;font-weight:700}
.legal .wrap{background:radial-gradient(520px 420px at 100% 0%,rgba(242,168,58,.16),transparent 70%)}
.legal footer a{color:#f0c27a!important}

/* ── Shared components across the inner pages ─────────────────────── */
.awards span{color:#8a4a0e!important;background:rgba(242,168,58,.12)!important;border-color:rgba(217,134,26,.38)!important;font-weight:600}
.book-copy .sub{color:rgba(44,18,56,.78)!important}
.creds span{color:rgba(44,18,56,.82)!important;background:rgba(255,255,255,.7)!important;border-color:rgba(44,18,56,.14)!important}
.chap-n,p.chap-n{color:rgba(212,72,110,.55)!important}
.quote{background:rgba(255,255,255,.62)!important;border:1px solid rgba(255,255,255,.85)!important;box-shadow:0 20px 50px -28px rgba(60,30,60,.45);backdrop-filter:blur(14px)}
.quote:first-child{background:linear-gradient(160deg,rgba(253,227,184,.7),rgba(249,201,207,.55))!important}
.quote blockquote{color:#2c1238!important}.quote .who{color:#2c1238!important}
.territory,.format,.advance-card{background:rgba(255,255,255,.62)!important;border:1px solid rgba(255,255,255,.85)!important;box-shadow:0 20px 50px -28px rgba(60,30,60,.45)}
.territory::after{content:"";position:absolute;top:0;left:14px;right:14px;height:3px;border-radius:3px;background:linear-gradient(90deg,#d9861a,#d4486e,#16805a)}
.territory .n{color:rgba(212,72,110,.3)!important}
.book-fig .aura{background:radial-gradient(closest-side,rgba(242,140,100,.35),transparent 70%)!important}
.book-fig .arcs circle{stroke:rgba(212,72,110,.3)!important}
.book-fig .arcs circle:nth-of-type(3){stroke:rgba(44,18,56,.08)!important}
.book-fig img{filter:drop-shadow(0 30px 44px rgba(60,20,60,.4))!important}
.final:not(.cosmic){background:linear-gradient(120deg,#fde3b8 0%,#f9c9cf 50%,#cfe9dd 100%)!important}
.cosmic .advance-card{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,194,122,.3)!important;box-shadow:0 30px 80px rgba(0,0,0,.45)}
/* Forms: white fields with plum ink; inside a cosmic panel the card stays light */
.field input,.field textarea,.field select{background:rgba(255,255,255,.9)!important;border-color:rgba(44,18,56,.2)!important;color:#2c1238!important}
.field select option{background:#fff!important;color:#2c1238!important}
.field input:focus,.field textarea:focus,.field select:focus{border-color:#d4486e!important}

/* ── about: the speaking film is the page's cosmic moment ─────────── */
.cinema.cosmic{overflow:clip}
.cinema.cosmic>.cinema-stage{position:sticky!important;z-index:1}
.cinema-stage{background:transparent!important}
.cinema-scrim{background:
  linear-gradient(90deg,rgba(14,4,22,.1) 0%,rgba(14,4,22,.16) 26%,rgba(14,4,22,.5) 44%,rgba(14,4,22,.84) 58%,rgba(14,4,22,.9) 78%,rgba(14,4,22,.92) 100%),
  linear-gradient(180deg,rgba(14,4,22,.85) 0%,rgba(14,4,22,.1) 13%,rgba(14,4,22,.1) 74%,rgba(14,4,22,.9) 100%)!important}
@media(max-width:820px){.cinema-scrim{background:linear-gradient(180deg,rgba(14,4,22,.94) 0%,rgba(14,4,22,.72) 18%,rgba(14,4,22,.76) 72%,rgba(14,4,22,.95) 100%)!important}}
.cinema .arc span{background:rgba(14,4,22,.6)!important;border-color:rgba(255,194,122,.32)!important;color:rgba(248,244,237,.88)!important}
.cinema .chap-n,.cinema p.chap-n{color:rgba(255,194,122,.5)!important}
.film-toggle{background:rgba(14,4,22,.72)!important}

/* ── ai-office: the hero film drawn into the cosmic range ─────────── */
.warm-film,.warm-film .office-film{background:#0e0416!important}
.warm-film .office-film img,.warm-film .office-film video{filter:hue-rotate(78deg) saturate(1.15)}
.warm-film .office-film::after{background:
  linear-gradient(90deg,rgba(14,4,22,.88) 0%,rgba(14,4,22,.7) 40%,rgba(14,4,22,.28) 70%,rgba(14,4,22,.1) 100%),
  linear-gradient(180deg,rgba(14,4,22,.35) 0%,rgba(14,4,22,0) 30%,rgba(14,4,22,0) 70%,#3a1244 100%)!important}
@media(max-width:860px){.warm-film .office-film::after{background:linear-gradient(180deg,rgba(14,4,22,.55) 0%,rgba(14,4,22,.7) 40%,rgba(14,4,22,.72) 75%,#3a1244 100%)!important}}
.warm-film h1,.warm-film .hero-sub,.warm-film .hero-umbrella,.warm-film .hero-qs li{text-shadow:0 2px 28px rgba(14,4,22,.85)!important}
.warm-film .hero-qs,.warm-film .hero-umbrella{border-left-color:rgba(255,194,122,.45)!important}
/* The dusk: where a dark block meets the cream, the homepage's sunset, never a grey band */
.warm-film+section,.cinema+section{background:linear-gradient(180deg,#3a1244 0px,rgba(150,40,120,.9) 36px,rgba(222,70,110,.68) 76px,rgba(248,140,100,.38) 122px,rgba(253,206,160,.16) 170px,rgba(253,248,240,0) 226px),#fdf8f0!important;border-top:0!important}

/* ── blog: the article cards keep a dark ground for their gold pictures, warmed to plum ── */
.article-card{background:linear-gradient(160deg,#2a0d33,#160620)!important;border-color:rgba(255,194,122,.22)!important;--cream:#fbf6ec;--body:rgba(248,244,237,.86)}
.article-card,.article-card [class*="text-"],.article-card h3,.article-card p{color:rgba(248,244,237,.88)!important}
.article-card h3,.article-card .text-cream{color:#fbf6ec!important}
.article-card .text-gold,.article-card [class*="text-gold"]{color:#ffc27a!important}

/* ── Leftovers from the contrast pass ──────────────────────────────── */
[class*="text-cream/"]{color:rgba(44,18,56,.84)!important}
.cosmic [class*="text-cream/"],footer [class*="text-cream/"]{color:rgba(248,244,237,.86)!important}
.format-pill{color:#8a4a0e!important;background:rgba(242,168,58,.12)!important;border-color:rgba(217,134,26,.38)!important;font-weight:600!important}
.arc span{color:rgba(44,18,56,.85)!important;background:rgba(255,255,255,.72)!important;border-color:rgba(212,72,110,.3)!important}
.arc i{color:#d4486e!important}
.tool p.who b{color:#2c1238!important}
.legal th{color:#2c1238!important}
.legal th,.legal td{border-bottom-color:rgba(44,18,56,.1)!important}
.legal td{color:rgba(44,18,56,.86)!important}
.legal code,.legal td code{color:#7a2c5a!important;background:rgba(212,72,110,.08)!important}
html .article-body .btn-ghost{color:#2c1238!important}
