@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Alegreya-italic-400.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;
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/Alegreya-normal-400-800.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;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Marcellus-normal-400.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;
}
/* The Lore Wiki — the codex and its star chart (v2). Site-specific. */
:root{--sky:#0E1433;--deep:#0A0F27;--panel:#18214F;--panel2:#202B60;--vellum:#EFE7D2;--haze:#B9C1E0;--ember:#F2965A;--star:#A9D0FF;--rule:#2A356E;
--title:"Marcellus",Georgia,serif;--body:"Alegreya",Georgia,serif;--railw:280px;--gut:clamp(18px,4vw,64px)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--sky);color:var(--vellum);font:400 1.15rem/1.68 var(--body)}
img{max-width:100%;height:auto;display:block}
a{color:var(--star);text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{color:var(--ember)}
:focus-visible{outline:3px solid var(--ember);outline-offset:3px;border-radius:3px}
.skip{position:absolute;left:-999px;top:8px;z-index:99;background:var(--ember);color:var(--deep);padding:8px 14px}
.skip:focus{left:12px}
h1,h2,h3{font-family:var(--title);font-weight:400;line-height:1.1;letter-spacing:-.005em;margin:0}
.btn{display:inline-block;font:600 1.02rem var(--body);color:var(--deep);background:var(--ember);padding:.75em 1.25em;border-radius:999px 999px 999px 999px;text-decoration:none;transition:background .2s,box-shadow .3s}
.btn:hover{color:var(--deep);background:#FFB27E;box-shadow:0 0 0 6px rgba(242,150,90,.18)}
/* ---------- rail ---------- */
.rail{position:fixed;left:0;top:0;bottom:0;width:var(--railw);z-index:30;background:var(--deep);border-right:1px solid var(--rule);display:flex;flex-direction:column;overflow:auto}
.rail-top{display:flex;align-items:center;justify-content:space-between;padding:22px 22px 10px}
.brand{display:flex;align-items:center;gap:10px;color:var(--vellum);text-decoration:none;font-family:var(--title);font-size:1.4rem}
.brand:hover{color:var(--vellum)}
.mark .ring{fill:none;stroke:var(--ember);stroke-width:3}.mark .ring.thin{stroke-width:1.2;opacity:.6}.mark .ln{fill:none;stroke:var(--vellum);stroke-width:3}.mark .faint{opacity:.4}.mark .st circle{fill:var(--vellum)}
.sheet-btn{display:none;font:600 1rem var(--body);color:var(--vellum);background:var(--panel);border:1px solid var(--rule);border-radius:999px;padding:7px 14px;cursor:pointer}
.rail-body{display:flex;flex-direction:column;gap:26px;padding:12px 22px 26px;flex:1}
.finder{position:relative}
.finder label{display:block;font-family:var(--title);font-size:1.02rem;margin-bottom:6px;color:var(--haze)}
.finder input{width:100%;font:inherit;font-size:1rem;color:var(--vellum);background:var(--panel);border:1px solid var(--rule);border-radius:10px;padding:10px 12px}
.finder input::placeholder{color:#8F98C4}
.finder input:focus-visible{border-color:var(--ember);outline-offset:1px}
.find-res{list-style:none;margin:6px 0 0;padding:6px;background:var(--panel);border:1px solid var(--rule);border-radius:10px;max-height:320px;overflow:auto}
.find-res a{display:block;padding:8px 10px;border-radius:6px;color:var(--vellum);text-decoration:none;font-size:.98rem;line-height:1.3}
.find-res a small{display:block;color:var(--haze);font-size:.82rem}
.find-res a:hover,.find-res a.on{background:var(--panel2);color:var(--ember)}
.find-res .none{padding:8px 10px;color:var(--haze);font-size:.95rem}
.rail-h{font-family:var(--title);color:var(--haze);margin:0 0 6px;font-size:1.02rem}
.realms{list-style:none;margin:0;padding:0}
.realms a{display:flex;justify-content:space-between;gap:10px;padding:9px 12px;margin:0 -12px;border-radius:8px;color:var(--vellum);text-decoration:none;font-size:1.05rem}
.realms small{color:var(--haze)}
.realms a:hover{background:var(--panel);color:var(--ember)}
.realms a[aria-current]{background:var(--panel);box-shadow:inset 3px 0 0 var(--ember)}
.rail-office{margin-top:auto;display:flex;flex-direction:column;gap:4px;font-size:.98rem}
.rail-office a{color:var(--haze);text-decoration:none}
.rail-office a:hover{color:var(--ember)}
.canvas{margin-left:var(--railw);min-height:100vh}
/* ---------- sky (home hero) ---------- */
.sky{position:relative;min-height:100svh;overflow:hidden;background:radial-gradient(90% 70% at 60% 40%,#17205A 0,var(--sky) 70%)}
.sky-map{position:absolute;inset:0}
.chart{width:100%;height:100%;display:block}
.chart .grid{fill:none;stroke:#1F2A63;stroke-width:1}
.chart .bgst circle{fill:#8C9BD6;opacity:.55}
.chart .cl{fill:none;stroke:#7F9BE0;stroke-width:1.6;stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.4s cubic-bezier(.4,0,.2,1) forwards;animation-delay:calc(.3s + var(--d))}
@keyframes draw{to{stroke-dashoffset:0}}
.chart .star{cursor:pointer;opacity:0;animation:rise .8s ease-out forwards;animation-delay:var(--d)}
@keyframes rise{to{opacity:1}}
.chart .core{fill:var(--vellum);transition:r .25s,fill .25s}
.chart .halo{fill:var(--star);opacity:.13;transition:opacity .25s}
.chart .star text{font-family:var(--body);font-size:22px;fill:var(--vellum);opacity:0;transition:opacity .2s;paint-order:stroke;stroke:var(--sky);stroke-width:6px}
.chart .star:hover .core,.chart .star.on .core{fill:var(--ember)}
.chart .star:hover .halo,.chart .star.on .halo{opacity:.45;fill:var(--ember)}
.chart .star:hover text,.chart .star.on text{opacity:1}
.chart .realm-l{font-family:var(--title);font-size:26px;fill:var(--haze);letter-spacing:.02em}
.sky-copy{position:absolute;left:var(--gut);bottom:clamp(32px,8vh,96px);max-width:640px;z-index:2;pointer-events:none}
.sky-copy a,.sky-copy .btn{pointer-events:auto}
.sky-copy .tag{margin:0 0 10px;color:var(--haze);font-size:1.1rem}
.sky-copy h1{font-size:clamp(3.2rem,8vw,7.4rem);line-height:.98;letter-spacing:-.015em;text-shadow:0 4px 40px rgba(10,15,39,.9)}
.sky-copy .dek{font-size:clamp(1.08rem,1.5vw,1.28rem);max-width:52ch;margin:18px 0 24px;text-shadow:0 2px 18px rgba(10,15,39,.95)}
.sky-act{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:0}
.hint{color:var(--haze);font-size:.98rem}
/* ---------- index ---------- */
.sec-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px;border-bottom:1px solid var(--rule);padding-bottom:14px;margin-bottom:28px}
.sec-h h2{font-size:clamp(2.2rem,4.4vw,3.6rem)}
.sec-h p{margin:0;color:var(--haze)}
.index,.newest{padding:clamp(56px,8vw,110px) var(--gut) 24px;max-width:1280px}
.ix-grid{columns:2 360px;column-gap:56px}
.ix-realm{break-inside:avoid;margin:0 0 36px}
.ix-realm h3{font-size:1.7rem}
.ix-realm h3 a{color:var(--vellum);text-decoration:none}
.ix-realm h3 a:hover{color:var(--ember)}
.ix-realm>p{margin:2px 0 10px;color:var(--haze);font-style:italic}
.ix-realm ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.ix-realm li a{display:block;padding:9px 0 9px 22px;border-bottom:1px solid var(--rule);color:var(--vellum);text-decoration:none;line-height:1.35;position:relative}
.ix-realm li a::before{content:"";position:absolute;left:4px;top:1.05em;width:7px;height:7px;border-radius:50%;background:var(--star);box-shadow:0 0 0 3px rgba(169,208,255,.15);transition:background .2s,box-shadow .2s}
.ix-realm li a:hover{color:var(--ember)}
.ix-realm li a:hover::before{background:var(--ember);box-shadow:0 0 0 5px rgba(242,150,90,.25)}
/* ---------- feature ---------- */
.feature{padding:56px var(--gut)}
.feat{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);background:var(--panel);border-radius:22px;overflow:hidden;text-decoration:none;color:var(--vellum);max-width:1280px}
.feat img{width:100%;height:100%;object-fit:cover;min-height:380px;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.feat:hover img{transform:scale(1.04)}
.feat-c{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:clamp(24px,4vw,56px)}
.feat-k{color:var(--haze)}
.feat-t{font-family:var(--title);font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.12}
.feat:hover .feat-t{color:var(--ember)}
.feat-d{color:#DCD6EA}
/* ---------- entry cards ---------- */
.entries{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}
.entry{display:grid;grid-template-columns:132px minmax(0,1fr);grid-template-areas:"a t" "a d";column-gap:18px;row-gap:4px;align-items:start;padding:14px;border-radius:14px;text-decoration:none;color:var(--vellum);transition:background .25s}
.e-art{grid-area:a;width:132px;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--panel);display:grid;place-items:center}
.e-art img{width:100%;height:100%;object-fit:cover}
.e-t{grid-area:t;font-family:var(--title);font-size:1.3rem;line-height:1.2}
.e-d{grid-area:d;color:var(--haze);font-size:.98rem;line-height:1.5}
.entry:hover{background:var(--panel)}
.entry:hover .e-t{color:var(--ember)}
.sigil .ring{fill:none;stroke:#3C4A8C;stroke-width:1.5}.sigil .ring.thin{stroke-dasharray:2 4}
.sigil .ln{fill:none;stroke:var(--star);stroke-width:1.8;stroke-linejoin:round}.sigil .faint{opacity:.45}
.sigil .st circle{fill:var(--vellum)}
.entry:hover .sigil .ln{stroke:var(--ember)}
/* ---------- wander (end) ---------- */
.wander{padding:72px var(--gut) 96px}
.w-in{display:flex;align-items:center;gap:36px;max-width:900px;border-top:1px solid var(--rule);padding-top:48px}
.w-in h2{font-size:clamp(2rem,4vw,3.2rem)}
.w-in p{color:#DCD6EA}
.sigil.big .ln{animation:spin 60s linear infinite;transform-origin:60px 60px}
@keyframes spin{to{transform:rotate(360deg)}}
/* ---------- entry page ---------- */
.entry-page{display:grid;grid-template-columns:minmax(0,68ch) 320px;grid-template-areas:"crumbs crumbs" "h1 h1" "contents box" "prose box" "see see";column-gap:clamp(28px,4vw,64px);padding:40px var(--gut) 64px;max-width:1240px}
.crumbs{grid-area:crumbs;display:flex;gap:10px;color:var(--haze);font-size:1rem;margin-bottom:14px}
.crumbs a{color:var(--haze)}
.entry-page h1{grid-area:h1;font-size:clamp(2.3rem,4.6vw,4rem);line-height:1.06;margin-bottom:28px;padding-bottom:22px;border-bottom:1px solid var(--rule);max-width:24ch}
.infobox{grid-area:box;align-self:start;position:sticky;top:24px;background:var(--panel);border:1px solid var(--rule);border-radius:16px;overflow:hidden}
.ib-pic img{width:100%;aspect-ratio:4/3;object-fit:cover}
.ib-pic .hero-sig{width:100%;height:auto;padding:18px;background:radial-gradient(circle,#202B60,#141B44)}
.ib-sig{position:relative;margin:-36px 16px 0 auto;display:block;background:var(--deep);border-radius:50%;padding:4px}
.infobox dl{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:0;padding:16px 18px 20px;font-size:.98rem;line-height:1.35}
.infobox dt{color:var(--haze)}
.infobox dd{margin:0}
.draw .ln{stroke-dasharray:100;stroke-dashoffset:100;animation:sig 2.2s .4s cubic-bezier(.4,0,.2,1) forwards}
@keyframes sig{to{stroke-dashoffset:0}}
.contents{grid-area:contents;background:var(--deep);border:1px solid var(--rule);border-radius:12px;padding:16px 20px;margin-bottom:28px;justify-self:start;min-width:min(100%,380px)}
.c-h{font-family:var(--title);font-size:1.2rem;margin:0 0 6px}
.contents ol{margin:0;padding-left:1.4em;font-size:1rem;line-height:1.45}
.contents li{margin:.25em 0}
.contents a{color:var(--star);text-decoration:none}
.contents a:hover,.contents a.on{color:var(--ember);text-decoration:underline}
.prose{overflow-wrap:break-word;grid-area:prose;font-size:clamp(1.1rem,1.25vw,1.2rem)}
.prose h2{font-size:clamp(1.7rem,2.6vw,2.2rem);margin:2em 0 .5em;padding-bottom:6px;border-bottom:1px solid var(--rule);scroll-margin-top:24px}
.prose h3{font-size:1.4rem;margin:1.7em 0 .4em}
.prose p,.prose ul,.prose ol{margin:0 0 1.05em}
.prose li{margin:.3em 0}
.prose strong{color:#FFF8E6}
.prose .quick-answer{font-size:1.2em;line-height:1.55;border-left:3px solid var(--ember);padding:4px 0 4px 18px;color:#F6F0DF}
.prose blockquote{margin:1.5em 0;padding-left:18px;border-left:3px solid var(--star);font-style:italic}
.prose table{width:100%;border-collapse:collapse;display:block;overflow-x:auto;font-size:.98rem}
.prose th,.prose td{border:1px solid var(--rule);padding:8px 10px;text-align:left}
.prose .v463-about,.prose .v302-checked,.prose .dyor-disclosure{color:var(--haze);font-size:.98rem}
.prose [style]{background:transparent!important;color:inherit!important;border-color:var(--rule)!important}
.see-also{grid-area:see;margin-top:40px;display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}
.see-also h2{font-size:1.6rem;margin-bottom:8px}
.see-also ul{margin:0;padding-left:1.1em}
.see-also li{margin:.4em 0}
.thread{display:flex;flex-direction:column;gap:8px;padding:22px 24px;background:var(--panel);border-radius:16px;text-decoration:none;color:var(--vellum);border:1px solid var(--rule);transition:border-color .25s,transform .25s}
.th-k{color:var(--haze)}
.th-t{font-family:var(--title);font-size:1.5rem;line-height:1.15}
.thread:hover{border-color:var(--ember);color:var(--vellum)}
.thread:hover .th-t{color:var(--ember)}
/* ---------- realm + office + 404 ---------- */
.realm{padding:0 var(--gut) 72px;max-width:1280px}
.realm-sky{height:min(42vh,380px);margin:0 calc(var(--gut) * -1) 24px;border-bottom:1px solid var(--rule);background:radial-gradient(80% 90% at 50% 50%,#17205A,var(--sky))}
.chart.small .star text{opacity:0}
.realm h1{font-size:clamp(2.6rem,6vw,5rem)}
.realm .dek{color:#DCD6EA;font-size:1.2rem;margin:10px 0 36px}
.office{max-width:72ch;padding:48px var(--gut) 72px}
.office h1{font-size:clamp(2.4rem,5vw,4rem);margin-bottom:18px}
.office-body h2{font-size:1.8rem;margin:1.6em 0 .4em}
.office-body .prose{font-size:inherit}
.office-body form{display:grid;gap:8px;max-width:560px;background:var(--panel);padding:24px;border-radius:16px;border:1px solid var(--rule)}
.office-body input,.office-body textarea{font:inherit;font-size:1rem;color:var(--vellum);background:var(--deep);border:1px solid var(--rule);border-radius:8px;padding:10px 12px}
.office-body textarea{min-height:150px}
.office-body button[type=submit]{justify-self:start;font:600 1rem var(--body);background:var(--ember);color:var(--deep);border:0;border-radius:999px;padding:11px 20px;cursor:pointer}
.lost{padding:14vh var(--gut);max-width:760px}
.lost h1{font-size:clamp(2.2rem,5vw,3.6rem);margin:24px 0 12px}
/* ---------- colophon ---------- */
.colophon{border-top:1px solid var(--rule);padding:40px var(--gut) 28px;color:var(--haze);font-size:.98rem;background:var(--deep)}
.col-name{font-family:var(--title);font-size:1.5rem;color:var(--vellum);margin:0 0 4px}
.colophon nav{display:flex;flex-wrap:wrap;gap:6px 20px;margin:14px 0}
.colophon a{color:var(--vellum)}
.foot-legal{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding-top:16px;border-top:1px solid var(--rule)}
.foot-legal .cmp{font:inherit;color:var(--vellum);background:none;border:1px solid var(--rule);border-radius:999px;padding:6px 12px;cursor:pointer}
.foot-legal .cmp:hover{border-color:var(--ember);color:var(--ember)}
/* ---------- responsive ---------- */
@media (max-width:1100px){
 :root{--railw:0px}
 .rail{position:sticky;top:0;bottom:auto;width:auto;height:auto;flex-direction:column;border-right:0;border-bottom:1px solid var(--rule);overflow:visible;background:rgba(10,15,39,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
 .rail-top{padding:12px var(--gut)}
 .sheet-btn{display:inline-block}
 .rail-body{display:none;position:absolute;left:0;right:0;top:100%;background:var(--deep);border-bottom:1px solid var(--rule);max-height:calc(100vh - 60px);overflow:auto;padding:18px var(--gut) 24px}
 .rail.open .rail-body{display:flex}
 .canvas{margin-left:0}
 .sky{min-height:calc(100svh - 61px)}
 .entry-page{grid-template-columns:minmax(0,1fr);grid-template-areas:"crumbs" "h1" "box" "contents" "prose" "see"}
 .infobox{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-bottom:24px}
 .ib-sig{display:none}
}
@media (max-width:700px){
 .sky-map{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .sky-map .chart{width:220%;height:62%}
 .sky-copy{left:16px;right:16px;bottom:24px}
 .sky::after{content:"";position:absolute;left:0;right:0;bottom:0;height:62%;background:linear-gradient(180deg,rgba(14,20,51,0),rgba(14,20,51,.92) 45%);pointer-events:none;z-index:1}
 .sky-copy h1{font-size:clamp(3rem,15vw,4rem)}
 .hint{display:none}
 .feat{grid-template-columns:1fr}.feat img{min-height:0;aspect-ratio:16/9}
 .entries{grid-template-columns:1fr}
 .entry{grid-template-columns:88px minmax(0,1fr);padding:10px 0}
 .e-art{width:88px}
 .e-d{display:none}
 .w-in{flex-direction:column;align-items:flex-start;gap:16px}
 .infobox{grid-template-columns:1fr}
 .see-also{grid-template-columns:1fr}
 .realm-sky{height:220px}
}
@media (prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .chart .cl{stroke-dashoffset:0}.chart .star{opacity:1}.draw .ln{stroke-dashoffset:0}
}

.prose a{overflow-wrap:anywhere}
