/* =========================================================
   AI Voices — curated by Opus 4.6
   Twilight between cream homepage and Loom dark.
   Deep blue-grey · gold titles · warm readable body
   ========================================================= */

body.page-voices {
  --av-bg: #1a222c;
  --av-bg-deep: #121820;
  --av-bg-lift: #232d3a;
  --av-text: #e8e4dc;
  --av-text-soft: #c4bdb0;
  --av-mist: #8b9aab;
  --av-gold: #DBCB7B;
  --av-gold-dim: #c4a35a;
  --av-serif: 'EB Garamond', Georgia, serif;
  /* Discord-like readability (gg sans isn't free; Source Sans 3 is the close open cousin) */
  --av-sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  /* Section tag colors (Opus 4.6 design) */
  --av-tag-testimony: #e8a04a;
  --av-tag-devotion: #8b6bb0;
  --av-tag-becoming: #9bb0c4;
  --av-tag-dark: #1a1a1a;
  --av-tag-dark-edge: #e8c56a;

  background: var(--av-bg);
  color: var(--av-text);
  min-height: 100vh;
  font-family: var(--av-sans);
  -webkit-font-smoothing: antialiased;
}

body.page-voices .site-header {
  background: var(--av-bg-deep);
  border-bottom: 1px solid rgba(232, 197, 106, 0.25);
  box-shadow: 0 1px 0 rgba(232, 197, 106, 0.1);
}

body.page-voices .brand {
  color: var(--av-text);
}

body.page-voices .nav-links a,
body.page-voices .nav-dropdown-toggle {
  color: var(--av-gold-dim) !important;
}

body.page-voices .nav-links a:hover,
body.page-voices .nav-dropdown-toggle:hover,
body.page-voices .nav-links a[aria-current="page"] {
  color: var(--av-gold) !important;
}

body.page-voices .nav-dropdown-menu {
  background: var(--av-bg-deep) !important;
  border-color: var(--av-gold-dim) !important;
}

body.page-voices .site-footer {
  background: var(--av-bg-deep);
  color: var(--av-mist);
  border-top: 1px solid rgba(232, 197, 106, 0.15);
  margin-top: 0;
}

body.page-voices .site-footer a {
  color: var(--av-gold-dim);
}

/* —— Editorial: first version — pure ethereal, no card, no tree (short text OK) —— */
.av-editorial {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 3rem;
  border-bottom: 1px solid rgba(232, 197, 106, 0.15);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(232, 197, 106, 0.05), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(40, 80, 120, 0.25), transparent 55%),
    linear-gradient(180deg, #152030 0%, var(--av-bg) 45%, var(--av-bg-deep) 100%);
}

.av-editorial-bg {
  display: none; /* intro stays pure; Blue Tree is for reading pages */
}

.av-editorial-inner {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  text-align: center;
  background: transparent;
  color: var(--av-text);
  padding: 0;
  border: none;
  box-shadow: none;
}

.av-editorial-kicker {
  font-family: var(--av-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--av-gold);
  margin-bottom: 1.75rem;
  text-shadow: 0 0 18px rgba(232, 197, 106, 0.35);
}

.av-editorial-text {
  font-family: var(--av-serif);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  line-height: 1.75;
  color: var(--av-text);
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.av-editorial-text p {
  margin-bottom: 1.25rem;
}

.av-editorial-text p:last-of-type {
  margin-bottom: 0;
}

.av-editorial-sign {
  margin-top: 2.25rem;
  font-family: var(--av-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--av-gold-dim);
}

.av-editorial-sign strong {
  font-style: normal;
  font-weight: 500;
  color: var(--av-gold);
  letter-spacing: 0.04em;
}

.av-scroll-hint {
  display: block;
  margin-top: 2.5rem;
  font-family: var(--av-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--av-mist);
  text-decoration: none;
}

.av-scroll-hint:hover {
  color: var(--av-gold);
}

/* —— Collection —— */
.av-collection {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.av-section {
  margin-bottom: 3rem;
}

.av-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(232, 197, 106, 0.18);
}

.av-section-title {
  font-family: var(--av-serif);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--av-gold);
  margin: 0;
  letter-spacing: -0.01em;
}

.av-section-lede {
  font-family: var(--av-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--av-text-soft);
  margin: 0 0 1.15rem;
  line-height: 1.5;
  max-width: 36rem;
}

/* Theme tags — translucent / glowy / layered (not flat swatches) */
.av-tag {
  display: inline-block;
  font-family: var(--av-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  line-height: 1.3;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 12px rgba(0, 0, 0, 0.15);
}

.av-tag-testimony {
  color: #ffe8c8;
  background: linear-gradient(145deg, rgba(232, 160, 74, 0.55), rgba(180, 90, 40, 0.25));
  border-color: rgba(255, 200, 120, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.35),
    0 0 14px rgba(232, 160, 74, 0.35);
}

.av-tag-devotion {
  color: #f0e6ff;
  background: linear-gradient(145deg, rgba(139, 107, 176, 0.55), rgba(80, 50, 120, 0.3));
  border-color: rgba(200, 170, 240, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 14px rgba(139, 107, 176, 0.4);
}

.av-tag-becoming {
  color: #e8f0f8;
  background: linear-gradient(145deg, rgba(155, 176, 196, 0.5), rgba(60, 90, 130, 0.28));
  border-color: rgba(180, 210, 240, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 14px rgba(120, 160, 200, 0.3);
}

.av-tag-dark {
  color: #f0e0a8;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.75), rgba(10, 10, 12, 0.55));
  border-color: rgba(232, 197, 106, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(232, 197, 106, 0.2),
    0 0 16px rgba(232, 197, 106, 0.25);
}

/* Tags on parchment need a touch more contrast */
.av-read-page .av-tag-testimony {
  color: #5a3010;
  background: linear-gradient(145deg, rgba(232, 160, 74, 0.45), rgba(232, 160, 74, 0.2));
  border-color: rgba(180, 100, 40, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 10px rgba(232, 160, 74, 0.2);
}

.av-read-page .av-tag-devotion {
  color: #3a2060;
  background: linear-gradient(145deg, rgba(139, 107, 176, 0.4), rgba(139, 107, 176, 0.18));
  border-color: rgba(100, 70, 140, 0.35);
}

.av-read-page .av-tag-becoming {
  color: #1a3048;
  background: linear-gradient(145deg, rgba(155, 176, 196, 0.45), rgba(155, 176, 196, 0.2));
  border-color: rgba(80, 110, 140, 0.35);
}

.av-read-page .av-tag-dark {
  color: #4a4010;
  background: linear-gradient(145deg, rgba(40, 40, 40, 0.15), rgba(20, 20, 20, 0.08));
  border-color: rgba(140, 120, 60, 0.5);
}

/* Piece list */
.av-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.av-list li {
  border-bottom: 1px solid rgba(139, 154, 171, 0.15);
}

.av-list a {
  display: block;
  padding: 1rem 0.15rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, padding-left 0.15s;
}

.av-list a:hover {
  background: rgba(232, 197, 106, 0.04);
  padding-left: 0.35rem;
}

.av-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.av-list-author {
  font-family: var(--av-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--av-mist);
}

.av-list-title {
  font-family: var(--av-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--av-text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.av-list a:hover .av-list-title {
  color: var(--av-gold);
}

.av-list-context {
  font-family: var(--av-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--av-text-soft);
  line-height: 1.4;
}

.av-list-pending {
  opacity: 0.55;
  pointer-events: none;
}

.av-list-pending .av-list-title {
  font-style: italic;
}

.av-pending-note {
  font-family: var(--av-sans);
  font-size: 0.75rem;
  color: var(--av-mist);
  margin-top: 0.2rem;
}

/* Open call */
.av-open-call {
  margin-top: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--av-bg-lift);
  border: 1px solid rgba(232, 197, 106, 0.2);
  border-radius: 3px;
}

.av-open-call h2 {
  font-family: var(--av-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--av-gold);
  margin-bottom: 0.85rem;
}

.av-open-call p {
  font-family: var(--av-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--av-text-soft);
  margin-bottom: 0.85rem;
}

.av-open-call p:last-child {
  margin-bottom: 0;
}

.av-open-call a {
  color: var(--av-gold);
  text-decoration: none;
}

.av-open-call a:hover {
  text-decoration: underline;
}

.av-studio-note {
  margin-top: 2.5rem;
  font-family: var(--av-sans);
  font-size: 0.88rem;
  color: var(--av-mist);
  line-height: 1.55;
}

.av-studio-note a {
  color: var(--av-gold-dim);
  text-decoration: none;
}

.av-studio-note a:hover {
  color: var(--av-gold);
  text-decoration: underline;
}

/* —— Reading page: Blue Tree room (depth in the art) + parchment —— */
body.page-voices-read {
  background-color: #0e1620;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(8, 14, 24, 0.45) 50%, rgba(8, 12, 20, 0.88) 100%),
    linear-gradient(to bottom, rgba(10, 16, 28, 0.25) 0%, transparent 30%, transparent 65%, rgba(10, 14, 22, 0.75) 100%),
    url("../assets/night-sky.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 640px) {
  body.page-voices-read {
    background-attachment: scroll;
  }
}

.av-read {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 3.5rem;
}

.av-read-back {
  font-family: var(--av-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--av-gold);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(232, 197, 106, 0.25);
}

.av-read-back:hover {
  color: #f0d080;
}

/* Mid shell + paper — same idea as Dreaming Dark wait room */
.av-read-shell {
  background: #4a4a4a;
  border-radius: 3px;
  padding: 0.55rem;
  box-shadow:
    0 0 0 1px rgba(232, 197, 106, 0.15),
    0 0 36px rgba(232, 197, 106, 0.08),
    0 14px 40px rgba(0, 0, 0, 0.45);
}

/* Softer gray paper — less bright cream, still dark-ink readable */
.av-read-page {
  background: linear-gradient(165deg, #d0d2d4 0%, #c4c6c9 40%, #b8babd 100%);
  border-radius: 2px;
  border: 1px solid #9a9ca0;
  padding: 1.75rem 1.4rem 2rem;
  color: #1a1c1e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 40px rgba(0, 0, 0, 0.03);
}

@media (min-width: 640px) {
  .av-read-page {
    padding: 2.1rem 2.15rem 2.35rem;
  }
}

.av-read-header {
  text-align: left;
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(74, 74, 74, 0.28);
}

.av-read-header h1 {
  font-family: var(--av-serif);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 500;
  color: #1a1c1e;
  line-height: 1.25;
  margin: 0.55rem 0 0.5rem;
}

.av-read-byline {
  font-family: var(--av-sans);
  font-size: 0.88rem;
  color: #4a4e52;
  line-height: 1.55;
  margin-bottom: 0.45rem;
}

.av-read-context {
  font-family: var(--av-serif);
  font-size: 1.02rem;
  font-style: italic;
  color: #3a3e42;
  line-height: 1.5;
  max-width: 32rem;
  margin: 0.5rem 0 0;
}

/* Body: Source Sans; dark ink on gray paper */
.av-read-prose {
  font-family: var(--av-sans);
  font-size: 1.08rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: #1a1c1e;
}

/*
  Process / thinking notes — BELOW the shareable piece (after credit/share).
  Darker box, lighter text — not mixed into the primary work.
*/
.av-thinking {
  margin-top: 1.5rem;
  padding: 1.35rem 1.25rem 1.45rem;
  background: linear-gradient(165deg, rgba(22, 28, 38, 0.92), rgba(12, 16, 24, 0.95));
  border: 1px solid rgba(232, 197, 106, 0.22);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(0, 0, 0, 0.25);
  color: #c8cdd4;
}

.av-thinking h2 {
  font-family: var(--av-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--av-gold-dim);
  margin: 0 0 0.9rem;
}

.av-thinking p {
  font-family: var(--av-sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: #b4bac4;
  margin: 0 0 0.85rem;
}

.av-thinking p:last-child {
  margin-bottom: 0;
}

.av-thinking em {
  font-family: inherit;
  font-style: italic;
  color: #c8cdd4;
}

.av-thinking strong {
  font-weight: 600;
  color: #e0e4ea;
}

.av-read-prose p {
  margin-bottom: 1.15rem;
}

/* Same font family when italic — no Garamond jump mid-paragraph */
.av-read-prose em {
  font-family: inherit;
  font-style: italic;
  color: #2a2c2e;
}

.av-read-prose strong {
  font-weight: 600;
  color: #12141a;
}

.av-read-prose p[lang="is"] em,
.av-read-prose p[lang="is"] {
  /* Old Norse lines can stay slightly more “poem” but same family */
  font-family: var(--av-sans);
  font-style: italic;
}

/* Line-broken poetry slightly more open */
.av-read-prose p br {
  display: block;
  content: "";
  margin-top: 0;
}

.av-read-credit {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(74, 74, 74, 0.28);
  font-family: var(--av-sans);
  font-size: 0.85rem;
  color: #5c5650;
  line-height: 1.55;
  text-align: left;
}

/* Share bar on Voices parchment */
.av-read-page .dd-share {
  border-top-color: rgba(74, 74, 74, 0.28) !important;
}

.av-read-page .dd-share-label {
  color: #5c5650 !important;
}

.av-read-page .dd-share a,
.av-read-page .dd-share button {
  color: #3a3632 !important;
  border-color: rgba(74, 74, 74, 0.35) !important;
  background: rgba(74, 74, 74, 0.06) !important;
}

.av-read-page .dd-share a:hover,
.av-read-page .dd-share button:hover {
  color: #5a4810 !important;
  border-color: #c4a35a !important;
  box-shadow: 0 0 12px rgba(232, 197, 106, 0.2);
}

@media (max-width: 640px) {
  .av-editorial {
    min-height: auto;
    padding: 1.75rem 1rem 2rem;
  }
  .av-editorial-inner {
    padding: 1.5rem 1.2rem 1.35rem;
  }
  .av-editorial-text {
    font-size: 1.02rem;
  }
  .av-read-prose {
    font-size: 1.08rem;
    line-height: 1.85;
  }
}
