/* =========================
   Intro header (title + blurb)
   ========================= */

.page--glyph-codex .codex-intro {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 4.5rem 0 1.5rem;
  text-align: center;
}

.page--glyph-codex .codex-intro h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.08em;
}

.page--glyph-codex .codex-intro p {
  margin: 0 auto;
  max-width: 62ch;
  opacity: 0.85;
  line-height: 1.7;
}





/* =========================
   GLYPH CODEX (glyphs.html)
   Matches: <main class="page page--glyph-codex"> ... </main>
   ========================= */

.page--glyph-codex {
  padding-top: 3.5rem;              /* breathing room under sticky nav */
  font-size: 1.15rem;
}

/* Center the codex content area */
.page--glyph-codex .codex-books,
.page--glyph-codex .codex-footer {
  width: min(980px, 92vw);
  margin: 0 auto;
}

/* Spacing for the book grid + footer */
.page--glyph-codex .codex-books {
  padding: 6rem 0 2.5rem;
}

.page--glyph-codex .codex-footer {
  padding: 2.5rem 0 5rem;
  text-align: left;
}

/* Make links match your brand (avoid default purple/blue) */
.page--glyph-codex a {
  color: rgba(230,230,230,0.88);
  text-decoration: none;
}

.page--glyph-codex a:hover {
  color: rgba(255,255,255,0.98);
}

.page--glyph-codex a:visited {
  color: rgba(230,230,230,0.88);
}

/* =========================
   Book cards grid
   ========================= */

.page--glyph-codex .codex-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.page--glyph-codex .codex-book {
  background: rgba(0,0,0,0.42);
  border: 2px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  backdrop-filter: blur(6px);

  padding: 1.4rem 1.4rem 1.5rem;
  text-align: left;

  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.page--glyph-codex .codex-book:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.52);
  transform: translateY(-2px);
}

.page--glyph-codex .codex-book-title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.page--glyph-codex .codex-book-meta {
  margin: 0 0 0.9rem;
  opacity: 0.75;
  font-size: 0.95rem;
}

.page--glyph-codex .codex-book-desc {
  margin: 0 0 1.2rem;
  opacity: 0.86;
  line-height: 1.65;
}

/* Link style (View Book I Glyphs →) */
.page--glyph-codex .codex-book-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.page--glyph-codex .codex-book-link:hover {
  border-bottom-color: rgba(255,255,255,0.55);
}

/* =========================
   Disabled books (matches your HTML)
   <article class="codex-book codex-book--disabled">
   <span class="codex-book-link codex-book-link--disabled">
   ========================= */

.page--glyph-codex .codex-book--disabled {
  opacity: 0.62;
}

.page--glyph-codex .codex-book--disabled:hover {
  transform: none;
  background: rgba(0,0,0,0.42);
  border-color: rgba(255,255,255,0.16);
}

.page--glyph-codex .codex-book-link--disabled {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  opacity: 0.8;
}

/* Footer back link */
.page--glyph-codex .codex-backhome {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  opacity: 0.8;
}

.page--glyph-codex .codex-backhome:hover {
  opacity: 1;
  border-bottom-color: rgba(255,255,255,0.45);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1000px) {
  .page--glyph-codex .codex-books {
    grid-template-columns: 1fr;
    padding: 4rem 0 2rem;
  }

  .page--glyph-codex {
    padding-top: 2.5rem;
  }
}



/* Make card links behave like cards */
.codex-book--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Hover / focus feedback */
.codex-book--link:hover,
.codex-book--link:focus-visible {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.02);
}




.page--glyph-codex .archive-breadcrumb {
  display: block;
  padding-top: 18px !important;
}

