/* Dark theme on the Stripe structure: deep plum-navy page, lighter cards, white type,
   lavender accents. Loaded after stripe.css. */
:root {
  color-scheme: dark;
  --navy: #f4f1fb;
  --ink: #f4f1fb;
  --ink-2: #d9d3ea;
  --slate: #aaa2c6;
  --muted: #958db3;
  --faint: #6f6890;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --paper: #120b24;
  --wash: #170f2d;
  --surface: #1c1435;
  --surface-2: #241b42;
  --deep: #0c0719;
  --purple: #a78bfa;
  --purple-ink: #c4b5fd;
  --violet: #8b5cf6;
  --lavender: #c9b2e8;
  --lav-wash: rgba(167,139,250,.12);
  --good: #6ee7b7;
  --warn: #fdba74;
  --t1: #a78bfa; --t2: #8b6fd6; --t3: #6c58a8; --t4: #4a3e78; --t5: #2f2752;
  --c-bg: #1c1435; --c-bg-2: #241b42; --c-line: rgba(255,255,255,.1); --c-ink: #f4f1fb; --c-ink-2: #d9d3ea; --c-muted: #958db3;
  --shadow: 0 50px 100px -20px rgba(0,0,0,.55), 0 30px 60px -30px rgba(0,0,0,.6);
  --shadow-sm: 0 13px 27px -5px rgba(0,0,0,.5), 0 8px 16px -8px rgba(0,0,0,.5);
}
html, body { background: #120b24; color: var(--ink); }
body { background: radial-gradient(1200px 600px at 80% -100px, #2a1856 0%, rgba(42,24,86,0) 60%), #120b24; background-repeat: no-repeat; }
::selection { background: #6d4fc4; color: #fff; }
a { color: var(--purple); } a:hover { color: #fff; }
h1, h2, h3, h4 { color: #fff; }
.two-tone, .hx-title { color: #fff; } .two-tone span, .hx-title span { color: #9d95bd; }
.lede, .hx-lede { color: var(--slate); }
.wash { background: rgba(255,255,255,.025); }
.dark, .dx { background: #0c0719; }
.nav { background: rgba(18,11,36,.78); }
.nav.scrolled { border-bottom-color: var(--line); }
.brand, .nav-more > button, .nav-ask { color: #f4f1fb; }
.nav-more > button:hover, .nav-ask:hover { color: #c4b5fd; }
.nav-more.active > button { color: #c4b5fd; }
.nav-more .menu { background: #1c1435; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.nav-more .menu a b { color: #fff; } .nav-more .menu a span { color: var(--muted); }
.nav-more .menu a:hover { background: rgba(255,255,255,.05); } .nav-more .menu a:hover b { color: #c4b5fd; }
@media (max-width: 1060px) { .nav.open .nav-links { background: #1c1435; } }

.btn-ink, .btn-purple, .nav-links a.btn-ink, .nav-right .btn-ink { background: #8b5cf6; color: #fff; }
.btn-ink:hover, .btn-purple:hover, .nav-right .btn-ink:hover { background: #a78bfa; color: #fff; }
.btn-soft, .btn-white { background: rgba(255,255,255,.04); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn-soft:hover, .btn-white:hover { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.link-arrow { color: #c4b5fd; } .link-arrow:hover { color: #fff; }

.panel, .dark .panel, .card, .ch-card, .gal-item, .table-wrap, .cite-box { background: #1c1435 !important; color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.6) !important; }
a.card:hover, button.card:hover, .ch-card:hover, .gal-item:hover { box-shadow: 0 0 0 1px rgba(167,139,250,.35), 0 40px 80px -30px rgba(0,0,0,.7) !important; }
.panel.soft { background: rgba(255,255,255,.03) !important; }
.panel p, .card-copy p, .ch-body p { color: var(--slate); }
.card-ui::before { background: radial-gradient(120% 80% at 70% 110%, rgba(139,92,246,.18) 0%, rgba(139,92,246,0) 60%); }
.gal-img { background: #f6f2ea; border-bottom-color: rgba(255,255,255,.06); }
.ch-thumb { box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); }

.input, .textarea, .select { background: #120b24; border-color: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.input:hover, .textarea:hover, .select:hover { background: #120b24; border-color: rgba(255,255,255,.26); }
.input:focus, .textarea:focus, .select:focus { background: #120b24; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.2); }
.select option { background: #1c1435; color: #fff; }
.chip, .subnav a { background: transparent; color: #e7e2f5; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.chip:hover, .subnav a:hover { background: rgba(255,255,255,.05); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.chip[aria-pressed="true"] { background: #fff; color: #120b24; }
table.data th { background: #1c1435; color: var(--muted); border-bottom-color: rgba(255,255,255,.08); }
table.data td { color: var(--ink-2); border-top-color: rgba(255,255,255,.06); }
table.data td b { color: #fff; }
table.data tr:hover td { background: rgba(255,255,255,.02); }
.key { background: #241b42; color: #f4f1fb; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.key.black { background: #120b24; }
.key:hover { box-shadow: inset 0 0 0 1px #a78bfa; }
.key.used { background: #8b5cf6; color: #fff; }
.pc { background: #241b42; color: #f4f1fb; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.pc.on { background: #8b5cf6; } .pc.t1 { box-shadow: inset 0 0 0 1.5px #a78bfa; }
.matrix td { background: #241b42; color: var(--ink-2); }
.qa summary { color: #fff; } .qa .ans { color: var(--slate); }
.chapter h3, .era h3 { color: #fff; }
.work .links a { background: transparent; color: #c4b5fd; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.work .links a:hover { background: #fff; color: #120b24; }
.msg.user .bubble { background: #241b42; color: #fff; }
.composer { background: linear-gradient(to top, #120b24 70%, rgba(18,11,36,0)); }
.composer form { background: #1c1435; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 50px -20px rgba(0,0,0,.8); }
.composer textarea { color: #fff; }
.end { background: #0c0719; border-top-color: rgba(255,255,255,.06); }
.end h4, .end .brand { color: #fff; } .end a { color: var(--slate); } .end a:hover { color: #fff; }
.end .legal { border-top-color: rgba(255,255,255,.06); }
.page-hero { border-bottom-color: rgba(255,255,255,.06) !important; }
.guides div { border-color: rgba(255,255,255,.05); background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.035) calc(33.33% - .5px), rgba(255,255,255,.035) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.035) calc(66.66% - .5px), rgba(255,255,255,.035) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.stat .big, .big-stats b { color: #fff; }
.chat-ui .u { background: #8b5cf6; color: #fff; } .chat-ui .a { background: #241b42; color: var(--ink-2); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.chat-ui em { color: #c4b5fd; }
.staff-meta b, .w-figs b { color: #fff; }
.qcard blockquote { color: #fff; }
.q-nav button { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.quote-sec { background: rgba(255,255,255,.025); }
.lightbox { background: #1c1435; } .lightbox img { background: #f6f2ea; } .lb-foot p { color: var(--slate); } .lb-x { background: #241b42; color: #fff; }
.ch-label, .chapter .n, .era .yr { color: #c4b5fd; }
.part-title { color: #fff !important; }
.tier-1 { color: #c4b5fd; } .tier-2 { color: #a78bfa; } .tier-3 { color: #8f7cc7; } .tier-4, .tier-5 { color: #7a729c; }

/* hero: animated cover art on dark */
.hx-art { width: 100%; max-width: 360px; justify-self: end; overflow: visible; }
.hx-art .grow { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: grow 1s cubic-bezier(.2,.8,.2,1) forwards; }
.hx-art .grow:nth-of-type(2) { animation-delay: 1.6s; } .hx-art .grow:nth-of-type(3) { animation-delay: 2s; }
.hx-art .note { transform-box: fill-box; transform-origin: center; opacity: 0; transform: translateY(-40px) scale(.6); animation: drop .55s cubic-bezier(.3,1.5,.5,1) forwards; }
.hx-art .note.lit { filter: brightness(1.5) drop-shadow(0 0 0 transparent); }
@keyframes grow { to { transform: scaleY(1); } }
@keyframes drop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hx-art .grow, .hx-art .note { animation: none; opacity: 1; transform: none; } }
