/* /founder/codex_ordomotus/assets/codex.css
   Codex_OrdoMotus — archival reading skin (intentionally distinct from main project UI)
*/

:root{
  --bg: #0f1114;

  --ink: rgba(255,255,255,.88);
  --muted: rgba(255,255,255,.70);
  --faint: rgba(255,255,255,.50);

  --line: rgba(255,255,255,.12);

  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.04);

  --shadow: 0 18px 60px rgba(0,0,0,.45);

  --r: 18px;
  --pad: 18px;

  --max: 980px;   /* index default */
  --max-narrow: 860px; /* entry pages */

  --serif: "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
html{ background: var(--bg); }

body{
  margin:0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  background: var(--bg);
  position: relative;
  isolation: isolate; /* helps keep backdrop stable under mixed includes */
}

/* Full-viewport unified backdrop (resists header/footer “background interference”) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(255,255,255,.04), transparent 60%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* Layout wrappers */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px 18px 60px;
  position: relative;
  z-index: 1;
}

.wrap.narrow{
  max-width: var(--max-narrow);
  padding: 36px 18px 64px;
}

/* Header */
.top{
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.top.split{
  display:flex;
  gap:16px;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom: 24px;
}

.kicker{
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

h1{
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: .01em;
}

.sub{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 72ch;
}

/* Badges / pills */
.badge, .pill{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}

/* Cards */
.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: calc(var(--pad) + 2px);
}

.card h2{
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing:.01em;
}

/* Index grid */
.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  margin-top: 22px;
}
@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
}

/* Preamble body */
.preamble{
  font-family: var(--serif);
  font-size: 18px;
  color: rgba(255,255,255,.86);
}
.preamble p{ margin: 0 0 14px; }
.quiet-echo{
  margin-top: 16px;
  color: rgba(255,255,255,.66);
  font-style: italic;
}

/* Utility header row */
.minihead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

/* Details accordion list */
.arch-list{ display:flex; flex-direction:column; gap: 10px; }

details{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  overflow:hidden;
}

summary{
  cursor:pointer;
  list-style:none;
  padding: 12px 14px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
}
summary::-webkit-details-marker{ display:none; }

.sum-title{
  font-family: var(--serif);
  font-size: 18px;
  color: rgba(255,255,255,.90);
}
.sum-desc{
  font-size: 13px;
  color: rgba(255,255,255,.62);
  margin-top: 2px;
  max-width: 58ch;
}
.sum-right{
  color: rgba(255,255,255,.50);
  font-size: 12px;
  letter-spacing:.12em;
  text-transform: uppercase;
}

.panel{
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.items{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.80);
}
.items li{ margin: 8px 0; }

.placeholder{ color: rgba(255,255,255,.70); }
.live a{ font-weight: 600; }

/* Entry page nav */
.nav{
  margin-top: 14px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.70);
  font-size: 14px;
}
.nav a{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 8px 12px;
  border-radius: 999px;
}

/* Scroll text */
.scroll{
  font-family: var(--serif);
  font-size: 19px;
  color: rgba(255,255,255,.86);
  line-height: 1.62;
}
.scroll p{ margin: 0 0 16px; }
.scroll ul{ margin: 10px 0 16px 20px; color: rgba(255,255,255,.82); }
.scroll li{ margin: 8px 0; }

/* Rule / note box */
.rule, .aside{
  margin: 14px 0 18px;
  padding: 12px 12px 10px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.80);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
.rule strong, .aside strong{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  letter-spacing:.10em;
  text-transform:uppercase;
  color: rgba(255,255,255,.66);
}

/* Footer echo line */
.echo{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:rgba(255,255,255,.62);
  font-style:italic;
  font-size:15px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.crumbs{
  color: rgba(255,255,255,.55);
  font-style: normal;
  font-size: 13px;
}

/* Index “foot” row */
.foot{
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,.55);
  font-size: 13px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Codex seal — provenance mark (not branding) */
.codex-seal{
  margin-top: 18px;
  width: 100%;                 /* key line */
  display: flex;
  justify-content: center;     /* centres the seal */
  opacity: 0.45;               /* quiet authority */
}


.codex-seal img{
  width: 64px;              /* small by design */
  height: auto;
  filter: grayscale(100%);
}
/* Meta row: taxonomy pills */
.meta-row{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.scroll h2{
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: 20px;
}
.scroll h3{
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  color: rgba(255,255,255,.86);
}
.scroll ul{
  margin: 8px 0 16px 20px;
  padding: 0;
}
.scroll li{
  margin: 8px 0;
}

/* ───────────────────────────────────────────────
   FOOTER (ORB VERSION)
   ─────────────────────────────────────────────── */
.footer-core { text-align: center; margin: 2rem 0 1.2rem; }
.footer-orb {
  display:inline-block;
  background-color: rgba(255,255,255,.06);
  border-radius: 999px;
  padding:.5rem 1rem;
  margin:.3rem;
  font-size:.9rem;
  color:#ccc;
  transition: background-color .3s ease;
}
.footer-orb:hover { background-color: rgba(255,255,255,.15); color:#fff; }
@media (max-width: 768px) {
  .footer-orb { font-size:.85rem; padding:.4rem .8rem; }
}

