/* V3.8 Blighted.World: preserve owner's wordmark, flowing field, glass,
   archive hierarchy and independent per-product colors.
   This stylesheet intentionally overrides base V3 without affecting product pages. */
:root{--bg:#03050a;--surface:#0b1020;--raised:#111a2c;--line:#334361;--ink:#f5f7ff;--accent:#9cdfff;--accent-violet:#b69aff;--muted:#adbcd2}
html,body{background:#03050a!important;min-height:100%}
body{overflow-x:clip}
body::before,body::after{display:none!important}
.space-plate{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 50% 87%,#2c195127,transparent 55%),radial-gradient(ellipse at 66% 105%,#113d5830,transparent 63%),linear-gradient(#010308,#030510)}
.space-plate canvas{display:block;width:100%;height:100%;opacity:.93}
.topbar,main,.footer{position:relative;z-index:1}
.topbar{background:#060915ae;backdrop-filter:blur(18px) saturate(1.2);border-bottom-color:#728bad45}
.hero{min-height:unset;background:transparent!important;overflow:visible;border-color:#8396bb33}
.hero::before,.hero::after{display:none}
.hero-layout{min-height:690px;display:flex;align-items:center;justify-content:flex-start;padding-top:45px;padding-bottom:30px}
.hero-copy.glass-panel{width:min(650px,100%);max-width:100%;padding:43px 46px;isolation:isolate}
.hero h1{font-size:clamp(3.75rem,6.6vw,6rem)}
.hero-tagline{font-size:1.45rem;line-height:1.5;color:#f4f5fe}
.hero-description{color:#c6d1e7;max-width:580px}
.hero-footnote{max-width:540px;color:#95abc8;font-size:.89rem;margin:-9px 0 28px}
.hero-categories{margin-top:33px}
.hero-meta{bottom:18px}
.glass-panel,.project,.vault-list,.archive-tree,.archive-stat,.signal-card{
 border-radius:18px;border:1px solid transparent!important;
 background:linear-gradient(150deg,#0b1122bd,#070b18a1) padding-box,linear-gradient(115deg,#99ceff63,#7868c540,#c0a5ff45) border-box!important;
 backdrop-filter:blur(14px) saturate(1.12);-webkit-backdrop-filter:blur(14px) saturate(1.12);
 box-shadow:0 22px 70px #0007,inset 0 1px 0 #d8ebff13;
}
.glass-panel,.project,.signal-card,.archive-tree,.archive-stat{position:relative;isolation:isolate}
.glass-panel::before,.project::after,.signal-card::after{content:'';position:absolute;inset:0;padding:1px;border-radius:inherit;background:conic-gradient(from var(--field-angle,0deg),transparent 0 24%,#86dfff80 31%,#b89bff75 36%,transparent 46% 78%,#8ce8ff68 85%,transparent 92%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;pointer-events:none;opacity:.7;animation:field-frame 16s linear infinite}
@property --field-angle{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes field-frame{to{--field-angle:360deg}}
.project{overflow:hidden;min-height:275px;background:linear-gradient(150deg,#0c1324c7,#080b18ab) padding-box,linear-gradient(115deg,#90b4e050,#8b70bd35,#a7bdff42) border-box!important}
.project:hover,.project:focus-within{background:linear-gradient(140deg,#1a2340dc,#0c1225c2) padding-box,linear-gradient(110deg,#8fdafa88,#a98ceea5,#9bdffb80) border-box!important}
.project .project-glyph{background:#15283b95}
.project .project-glyph-disspace{background:#141729;border-color:#b5b5e077}
.project .project-glyph-disspace img{width:36px;height:36px;object-fit:contain;filter:none}
.project .project-glyph-bippy{background:#172a22;border-color:#9ee9545a;color:#bcf75b}
.project .project-glyph-bippy svg{width:29px;height:30px;stroke:none}
.project:nth-child(3) .project-glyph{color:#aaa7cf;background:#171429;border-color:#80729d88}
.project:nth-child(4) .project-glyph{color:#cbbcff;background:#211739;border-color:#9b80d080}
.project:nth-child(5) .project-glyph{color:#96aeca}
.project:nth-child(6) .project-glyph{color:#b9b7ef}
.section-head p{color:#aebfd7}
.section-head h2{font-size:clamp(2.3rem,4.6vw,4.2rem)}
.vault-wrap{background:linear-gradient(180deg,#090d18a3,#080c18a9);backdrop-filter:blur(2px);border-color:#8ca6ce27}
.archive-statbar{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin:0 0 23px}
.archive-stat{padding:16px 19px;border-radius:13px!important;display:flex;flex-direction:column;gap:3px}
.archive-stat strong{font:750 1.75rem var(--sans);letter-spacing:-.04em}
.archive-stat span{font:600 .61rem var(--mono);color:#a4b9d5;letter-spacing:.095em;text-transform:uppercase}
.archive-toolbar{display:flex;flex-direction:column;gap:13px}
.archive-search{display:flex;gap:13px;align-items:center;padding:0 17px;background:#131b30bc;border:1px solid #657b9b63;border-radius:11px;max-width:610px;color:#9bcfff}
.archive-search:focus-within{outline:2px solid #c0d7ff;outline-offset:2px}
.archive-search span{font-size:1.5rem}
.archive-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#edf4ff;padding:13px 0;font-size:.92rem}
.archive-search input::placeholder{color:#96a9c3}
.archive-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.archive-filters label{display:flex;flex-direction:column;gap:6px;color:#96b1d5;font:600 .63rem var(--mono);letter-spacing:.1em}
.archive-filters select{width:100%;min-width:0;appearance:none;color:#e3eaf9;border:1px solid #627b9a77;background:#101a2ebd;border-radius:10px;padding:11px 13px;min-height:43px;font:550 .81rem var(--sans)}
.archive-toolbar-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0 13px}
.archive-result-count{margin:0;font:600 .65rem var(--mono);color:#a8c1df;letter-spacing:.075em;text-transform:uppercase}
.archive-controls{display:flex;gap:8px}.archive-controls button{border:1px solid #7287ab78;border-radius:8px;background:#111a30b9;padding:7px 11px;color:#c3d3eb;font:600 .72rem var(--sans)}
.archive-controls button:hover{background:#293752}
.archive-tree{padding:13px;border-radius:16px!important}
.archive-tree details{border:1px solid #667da044;border-radius:11px;background:#0e1528ae;overflow:hidden}
.archive-tree summary{cursor:pointer;display:flex;gap:11px;align-items:center;padding:12px 15px;list-style:none}
.archive-tree summary::-webkit-details-marker{display:none}
.archive-tree summary:hover{background:#739bc313}
.archive-node-name{flex:1;color:#eaf0fc;font-weight:600;line-height:1.45}
.archive-node-meta{font:.65rem var(--mono);text-transform:uppercase;color:#99b2d1;white-space:nowrap}
.archive-node-caret{color:#b7d7fa;transform:rotate(-90deg);transition:transform .2s}
.archive-tree details[open]>summary>.archive-node-caret{transform:rotate(0)}
.archive-author{margin:0 0 10px}.archive-author>summary{background:#151d37dd}
.archive-author>summary>.archive-node-name{font-size:1.12rem}
.archive-universe{margin:8px 10px 12px}.archive-universe>summary{background:#121b32aa}
.archive-world{margin:8px 10px 11px}.archive-world>summary{border-bottom:1px solid #7084ab24}
.archive-world>summary>.archive-node-name{color:#c5d9f8}
.archive-book{border-radius:0!important;margin:0 8px;background:#090f20ba!important;border-width:0 0 1px!important;border-color:#7184a13b!important}
.archive-book>summary{padding:12px 14px}
.archive-book>.archive-node-name{font-size:.9rem}
.archive-book-body{padding:8px 15px 20px;background:#0d1427a1}
.archive-book-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.archive-book-chip{display:flex;flex-direction:column;gap:5px;background:#151e36ad;border:1px solid #7283a03e;border-radius:8px;padding:8px 11px;color:#d8e5f7;font-size:.82rem}
.archive-book-chip b{font:.62rem var(--mono);letter-spacing:.07em;color:#90b2db;text-transform:uppercase}
.archive-book-note,.archive-footnote{font-size:.8rem;line-height:1.65;color:#a8b9d2}
.archive-book-note{margin:12px 0 0}
.archive-footnote{margin:15px 2px 0}
.archive-quote{padding:8px 14px;border-left:2px solid #ba9df8;margin:12px 0 0;color:#dae7fa;line-height:1.65;font-size:.86rem}
.archive-quotes-label{font:600 .67rem var(--mono);letter-spacing:.09em;color:#b3a2fb;margin:17px 0 5px;text-transform:uppercase}
.archive-empty{padding:20px;color:#adbed9}
.signal{background:#0508141a}
.signal-card{background:linear-gradient(155deg,#131b30b9,#090e1db9) padding-box,linear-gradient(110deg,#708fbc55,#978bcc50) border-box!important}
.end .button{margin-top:17px}
@media(max-width:850px){.archive-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-layout{min-height:600px}}
@media(max-width:700px){.hero-layout{padding:85px 0 70px;min-height:unset}.hero-copy.glass-panel{padding:25px 22px}.hero h1{font-size:clamp(3rem,12vw,5rem)}.hero-meta{position:relative;left:auto;transform:none;bottom:auto}.archive-statbar{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-tree{padding:8px}.archive-universe,.archive-world{margin:7px 4px}.archive-book{margin:0 4px}}
@media(max-width:460px){.archive-book-chips{grid-template-columns:1fr}.archive-tree summary{padding:10px 9px;gap:5px}.archive-node-meta{font-size:.55rem}.archive-author>summary>.archive-node-name{font-size:.95rem}.archive-stat{padding:12px}.hero-copy.glass-panel{padding:20px 17px}}
@media(prefers-reduced-motion:reduce){.glass-panel::before,.project::after,.signal-card::after{animation:none}}


/* V3.9 — Author → Universe → ordered series books. No separate planet or co-author sections. */
.archive-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
.archive-series-header{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:19px 12px 12px;margin:3px 7px 0;border-bottom:1px solid #758db256}
.archive-series-header .series-label{flex-basis:100%;font:600 .59rem var(--mono);letter-spacing:.12em;color:#91aacf}
.archive-series-header h3{flex:1;margin:0;font:700 1.05rem var(--sans);letter-spacing:-.025em;color:#e1eafb}
.archive-series-header .series-count{font:600 .65rem var(--mono);color:#a6bcdb}
.archive-series-books{margin:0 7px 16px;background:#070d1b8e;border-radius:0 0 10px 10px;overflow:hidden}
.archive-series-books>.archive-book{margin:0;border:0;border-bottom:1px solid #657a9b43;background:#0e17277c}
.archive-series-books>.archive-book:last-child{border-bottom:0}
.archive-series-books>.archive-book>summary{padding:15px 14px}
.archive-series-books>.archive-book .archive-node-name{font-size:.93rem}
.archive-series-books>.archive-book .archive-book-body{padding:5px 15px 20px}
.archive-book-chips{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){.archive-series-header{padding:15px 8px 10px}.archive-series-books{margin:0 4px 13px}.archive-series-books>.archive-book>summary{padding:11px 9px}.archive-book-chips{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.archive-filters{grid-template-columns:1fr}.archive-book-chips{grid-template-columns:1fr}.archive-series-books>.archive-book .archive-book-body{padding:4px 10px 14px}}

/* Reuse UFO Bot’s existing prism-saucer artwork in the homepage project grid. */
.project:nth-child(4) .project-glyph-ufobot{width:62px;height:54px;flex:0 0 62px;background:#131724;border-color:#9481cc82}
.project .project-glyph-ufobot img{width:58px;height:46px;object-fit:contain;display:block;filter:drop-shadow(0 2px 6px #a99bec3b)}

/* Blighted Hub: reuse the shipped app's purple orbital icon, not a placeholder. */
.project:nth-child(5) .project-glyph-hub{background:#100d26;border-color:#9d80ef92}
.project .project-glyph-hub img{width:46px;height:46px;display:block;object-fit:contain;border-radius:11px}

/* Reading states: gentle, accessible color cues without overwhelming dark cards. */
.archive-series-books>.archive-book.is-read>summary{background:#8bbf9e10}
.archive-series-books>.archive-book.is-unread>summary{background:#dc929a0e}
.archive-book.is-read>summary>.archive-node-meta{color:#b4e9c0}
.archive-book.is-unread>summary>.archive-node-meta{color:#f0aeb5}
.archive-book.is-read>summary>.archive-node-name{color:#e6f8ed}
.archive-book.is-unread>summary>.archive-node-name{color:#ffe6e8}
.archive-book.is-read>summary:hover{background:#82caa02a}
.archive-book.is-unread>summary:hover{background:#db89942b}
.archive-book.is-read>summary:focus-visible{outline:2px solid #a8e5b9;outline-offset:-3px}
.archive-book.is-unread>summary:focus-visible{outline:2px solid #f0aeb5;outline-offset:-3px}


/* Archive is a deliberately closed destination until the visitor opens it.
   Native <details> gives functional keyboard and touch behavior without JS. */
.archive-access{margin-top:4px}
.archive-access-toggle{display:flex;justify-content:space-between;align-items:center;gap:20px;list-style:none;cursor:pointer;padding:23px 25px;border:1px solid #7895ba66;border-radius:14px;background:linear-gradient(120deg,#14243bdf,#111b2ed9);transition:background-color .18s,border-color .18s}
.archive-access-toggle::-webkit-details-marker{display:none}
.archive-access-toggle:hover{border-color:#a3c6e4a6;background:#1b2d47ed}
.archive-access-toggle:focus-visible{outline:2px solid #b7d8ff;outline-offset:4px}
.archive-access-heading{display:flex;flex-direction:column;gap:6px}
.archive-access-heading strong{font:650 clamp(1rem,2.1vw,1.35rem) var(--sans);color:#edf5ff;letter-spacing:-.02em}
.archive-access-heading small{font:.82rem/1.5 var(--sans);color:#a8bed9}
.archive-access-action{display:flex;align-items:center;gap:14px;flex-shrink:0;color:#bbd9f4;font:650 .7rem var(--mono);text-transform:uppercase;letter-spacing:.075em}
.archive-access-opened{display:none}
.archive-access[open] .archive-access-closed{display:none}
.archive-access[open] .archive-access-opened{display:inline}
.archive-access-chevron{font-size:1.4rem;line-height:1;transition:transform .2s}
.archive-access[open] .archive-access-chevron{transform:rotate(180deg)}
.archive-access[open] .archive-access-toggle{border-color:#759bbf8c;border-radius:14px 14px 0 0;background:#14253c}
.archive-access-body{padding:22px 3px 5px;border:1px solid #7895ba3c;border-top:0;border-radius:0 0 14px 14px}
@media(max-width:700px){.archive-access-toggle{padding:18px 14px;gap:10px}.archive-access-action{font-size:.64rem;gap:7px}.archive-access-heading small{font-size:.73rem}.archive-access-body{padding:16px 3px 3px}}
@media(prefers-reduced-motion:reduce){.archive-access-toggle,.archive-access-chevron{transition:none}}

/* Current reads — warm yellow is deliberately reserved for the in-progress title. */
@media(min-width:851px){.archive-statbar{grid-template-columns:repeat(5,minmax(0,1fr))}}
.archive-book.is-reading>summary>.archive-node-meta{color:#ffdb74}
.archive-book.is-reading>summary>.archive-node-name{color:#ffeaa6}
.archive-series-books>.archive-book.is-reading>summary{background:linear-gradient(90deg,#e9bf3c1e,#e9bf3c06)}
.archive-book.is-reading>summary:hover{background:#e9bf3c2a}
.archive-book.is-reading>summary:focus-visible{outline:2px solid #ffe08b;outline-offset:-3px}
.archive-book.is-reading{border-left:2px solid #e4ba49!important}
.archive-stat:nth-child(3) strong{color:#ffe08b}

/* Legible golden in-progress status: reserved for the one currently reading book. */
.archive-series-books>.archive-book.is-reading>summary{
  background:linear-gradient(90deg,rgba(230,174,43,.17),rgba(241,187,56,.055))!important;
  box-shadow:inset 3px 0 0 #e7b943;
}
.archive-series-books>.archive-book.is-reading>summary>.archive-node-meta{
  display:inline-flex;align-items:center;
  padding:5px 9px;border:1px solid rgba(248,207,109,.58);
  border-radius:99px;background:rgba(173,122,30,.21);
  color:#ffdb74;
  font-weight:750;letter-spacing:.02em;
}
.archive-series-books>.archive-book.is-reading>summary>.archive-node-meta::before{
  content:"●";font-size:.65em;margin-right:6px;color:#ffe18a;
}
.archive-series-books>.archive-book.is-reading>summary>.archive-node-name{
  color:#fff0ba;
}

/* Archive gateway on the main-page project grid. */
.project.project-archive{border-color:#a38f735e}
.project.project-archive::before{background:linear-gradient(90deg,#dfc491b8,#86a6ca76,transparent)}
.project.project-archive:hover,.project.project-archive:focus-within{box-shadow:0 21px 55px #0009,0 0 28px #d6b58125}
.project .project-glyph-archive{width:60px;height:60px;flex:0 0 60px;border-radius:14px;background:radial-gradient(circle at 40% 25%,#504b47,#111728 70%);border-color:#bda77cba;box-shadow:0 0 20px #c9ab7932}
.project .project-glyph-archive img{display:block;width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 2px 8px #d9bd8e3a)}
.project-archive .project-top{color:#d2c4aa}
.project-archive .status{color:#f2d9a4}
