/* ============================================
   Girl profile pages + /girls/ index (loaded via styles: [characters])
   ============================================ */

.character-page { color: var(--text); }

.char-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.char-hero {
  position: relative;
  min-height: 82vh;
  background-color: #0d0b0b;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.char-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--char-focus, 50% 28%);
  z-index: 0;
}
.char-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.26) 0%, rgba(0,0,0,0.08) 35%, transparent 68%),
    linear-gradient(to bottom, rgba(0,0,0,0.1), transparent 14%);
  z-index: 1;
}
.char-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0.62) 28%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}
/* Same left edge as the content column below, so the page reads as one column. */
.char-hero-inner {
  position: relative;
  z-index: 4;
  width: var(--char-w);
  margin: 0 auto;
  padding: 0 0 6vh;
}
.char-hero-inner > * { max-width: 820px; }
.char-breadcrumb {
  font-family: 'Geologica', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.char-breadcrumb a { color: var(--warm); text-decoration: none; }
.char-breadcrumb a:hover { color: #fff; }
.char-breadcrumb span { margin: 0 0.4rem; color: #cbbfb4; }
.char-breadcrumb span[aria-current] { margin: 0; color: var(--text); }
.char-title { margin: 0; font-weight: normal; line-height: 1; }
.char-name {
  display: block;
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.char-epithet {
  display: block;
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--warm);
  margin-top: 0.3rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9);
}
.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}
.char-traits li {
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: #efe6de;
  border: 1px solid rgba(214,182,160,0.3);
  background: rgba(0,0,0,0.45);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* ---------- Bio + quick profile ---------- */
.character-page { --char-w: min(1140px, calc(100% - 2 * max(16px, 5vw))); }
.char-body {
  width: var(--char-w);
  margin-left: auto;
  margin-right: auto;
  padding-top: 2.6rem;
  padding-bottom: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: flex-start;
}
.char-bio { min-width: 0; }
.char-bio p {
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
  line-height: 1.8;
  margin-bottom: 1.1rem;
  color: #ddd5cc;
}
.char-bio strong { color: #f3ece4; }
.char-bio a {
  color: #e0a064;
  text-decoration: underline;
  text-decoration-color: rgba(224,160,100,0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  border-bottom: 0;
}
.char-bio a:visited { color: #d58f55; }
.char-bio a:hover {
  color: #ffc085;
  text-decoration-color: #ffc085;
}

.char-meta {
  position: sticky;
  top: 1.25rem;
  font-family: 'Geologica', sans-serif;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012) 62%),
    #100e0d;
  padding: 1.25rem 1.25rem 0.6rem;
}
.char-meta-portrait {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 1rem;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(214,182,160,0.5);
}
.char-meta-quote {
  margin: 0 0 1rem;
  padding: 0.1rem 0 0.1rem 0.85rem;
  border-left: 2px solid var(--warm);
  font-family: 'Geologica', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: #f0e6dc;
}
.char-meta-facts { margin: 0; }
.char-meta-facts > div {
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.char-meta-facts dt,
.char-row dt {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b6aa;
}
.char-meta-facts dd {
  margin: 0.12rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #efe7df;
}

/* ---------- Sections: one heading style, one rhythm ---------- */
.char-gallery,
.char-profile,
.vl-girls--profile {
  width: var(--char-w);
  margin-left: auto;
  margin-right: auto;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.char-gallery { margin-top: 1rem; padding-bottom: 2.2rem; }
.char-profile { padding-bottom: 2.6rem; }
/* The shared girls strip (main.css .vl-girls) at the bottom of a profile: same frame as the other
   sections (width + top rule), a little more air before the footer. */
.vl-girls--profile { padding-top: 3rem; padding-bottom: 5rem; }
.char-section-title {
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  color: #f3ece4;
  text-align: left;
  margin: 0 0 1.1rem;
}

/* ---------- Gallery ---------- */
.char-gallery-grid { column-count: 3; column-gap: 0.8rem; }
.char-gallery-cols-2 { column-count: 2; }
.char-gallery-cols-1 { column-count: 1; max-width: 900px; }
.char-gallery-item {
  display: block;
  margin: 0 0 0.8rem;
  break-inside: avoid;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.char-gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.char-gallery-item:hover,
.char-gallery-item:focus-visible { border-color: var(--warm); }
.char-gallery-item:hover img { transform: scale(1.03); }

/* ---------- Profile: a plain two-column fact sheet (label | value rows) ---------- */
.char-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--char-accent, var(--warm)) 12%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01) 62%),
    #100e0d;
  padding: clamp(1.1rem, 2.4vw, 1.7rem) clamp(1.1rem, 2.8vw, 2rem) clamp(0.7rem, 1.6vw, 1.1rem);
  font-family: 'Geologica', sans-serif;
}
.char-sheet-col { min-width: 0; }
.char-sheet-title {
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--warm);
  margin: 0 0 0.45rem;
}
.char-rows { margin: 0; }
.char-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.char-row dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #efe7df;
  overflow-wrap: anywhere;
}

/* ---------- /girls/ index ---------- */
.char-index { max-width: 1240px; margin: 0 auto; padding: 6.5rem max(16px, 5%) 4rem; }
.char-index-head { text-align: center; margin-bottom: 2.4rem; }
.char-index-head h1 {
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: #fff;
}
.char-index-head p {
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  color: #cfc5bb;
  max-width: 640px;
  margin: 0.6rem auto 0;
}
.char-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.char-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015) 60%),
    #120f0e;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.char-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.char-card-name {
  display: block;
  padding: 0.9rem 1rem 0;
  font-family: 'Cormorant', serif;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.1;
  color: #f3ece4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.char-card-epithet {
  display: block;
  padding: 0.25rem 1rem 1rem;
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.5vw, 1.35rem);
  line-height: 1.25;
  color: var(--warm);
}
.char-card:hover,
.char-card:focus-visible { border-color: rgba(212,169,138,0.6); transform: translateY(-3px); }
.char-card:hover img { transform: scale(1.03); }

/* ---------- Responsive ---------- */
@media screen and (max-width: 980px) {
  .char-body { grid-template-columns: 1fr; gap: 1.6rem; padding-bottom: 1rem; }
  .char-meta {
    position: static;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 0 1.3rem;
    align-items: start;
  }
  .char-meta-portrait { grid-row: 1 / span 2; margin: 0 0 0.6rem; }
  .char-row { grid-template-columns: 7.6rem minmax(0, 1fr); gap: 0.8rem; }
}
@media screen and (max-width: 760px) {
  .char-sheet { grid-template-columns: 1fr; }
}
@media screen and (max-width: 820px) {
  .char-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media screen and (max-width: 700px) {
  .char-hero { min-height: 66vh; }
  .char-hero-inner { padding-bottom: 4vh; }
  .char-gallery-grid,
  .char-gallery-cols-3 { column-count: 2; }
  .char-gallery-cols-1 { column-count: 1; }
}
@media screen and (max-width: 560px) {
  .char-meta { display: block; padding: 1.1rem 1.1rem 0.5rem; }
  .char-meta-portrait { width: 88px; height: 88px; margin: 0 auto 0.9rem; }
}
@media screen and (max-width: 520px) {
  .char-gallery-grid,
  .char-gallery-cols-2,
  .char-gallery-cols-3 { column-count: 1; }
  .char-index-grid { gap: 0.75rem; }
  .char-card-name { padding: 0.7rem 0.75rem 0; font-size: 1.45rem; }
  .char-card-epithet { padding: 0.2rem 0.75rem 0.8rem; font-size: 1.25rem; }
  .vl-girls--profile { padding-top: 2.4rem; padding-bottom: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .char-card,
  .char-card img,
  .char-gallery-item img { transition: none; }
  .char-card:hover,
  .char-card:hover img,
  .char-gallery-item:hover img { transform: none; }
}
