.characters-page {
  min-height: 100vh;
  color: #fff4d6;
  background:
    linear-gradient(rgba(7, 25, 18, .78), rgba(7, 25, 18, .92)),
    url("assets/optimized/forest-hero-v1.webp") center / cover fixed;
}

.characters-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 124px 0 54px;
}

.characters-intro {
  width: min(780px, 100%);
  margin: 0 auto 28px;
  text-align: center;
  text-shadow: 0 3px 12px rgba(4, 17, 11, .86);
}

.characters-intro h1 {
  margin: 6px 0 12px;
  color: #fff3c8;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  line-height: 1;
  text-transform: uppercase;
}

.characters-intro > p:last-child {
  max-width: 690px;
  margin: 0 auto;
  color: rgba(255, 247, 220, .82);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.character-card {
  min-width: 0;
  min-height: 590px;
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
  align-items: center;
  padding: clamp(48px, 6vw, 76px) clamp(42px, 6vw, 74px) clamp(58px, 7vw, 88px);
  color: #472b18;
  background: url("assets/paper/parchment-v1.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 20px 24px rgba(2, 11, 7, .38));
}

.hero-card {
  grid-column: 1 / -1;
  min-height: 720px;
  grid-template-columns: minmax(340px, .95fr) minmax(380px, 1.05fr);
  grid-template-rows: 1fr;
  gap: clamp(16px, 4vw, 54px);
  padding-inline: clamp(68px, 8vw, 112px);
}

.portrait {
  min-width: 0;
  height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 13px rgba(59, 35, 17, .23));
}

.hero-card .portrait { height: 570px; }
.hero-card .portrait img { width: 120%; max-width: 120%; }

.card-copy {
  position: relative;
  z-index: 1;
  padding: 0 6px;
}

.card-role {
  color: #94582b;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-copy h2 {
  margin: 7px 0 12px;
  color: #472718;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.card-copy .hero-name-heading {
  width: min(100%, 430px);
  min-height: 62px;
  display: flex;
  align-items: center;
  margin: 7px 0 14px;
}

.card-copy .hero-name-heading img {
  width: auto;
  max-width: 100%;
  max-height: 106px;
  object-fit: contain;
  object-position: left center;
}

.hero-card .hero-name-heading img { max-height: 126px; }

.card-copy p {
  margin: 0;
  color: #563925;
  font-size: 1rem;
  line-height: 1.55;
}

.character-hook {
  margin-bottom: 16px !important;
  color: #7a3e1e !important;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem) !important;
  font-weight: 600;
  line-height: 1.35 !important;
}

.character-lore { max-width: 62ch; }

.character-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 24px 0 0;
}

.character-facts div {
  min-width: 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(112, 64, 30, .28);
}

.character-facts dt {
  color: #9b5a2a;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.character-facts dd {
  margin: 4px 0 0;
  color: #442b1c;
  font-size: .88rem;
  font-weight: 550;
  line-height: 1.35;
}

.characters-version {
  margin: 34px 0 0;
  color: rgba(255, 241, 190, .75);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}

@media (max-width: 900px) {
  .characters-page { background-attachment: scroll; }
  .character-grid { grid-template-columns: 1fr; width: min(650px, 100%); margin: 0 auto; }
  .hero-card { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .hero-card .portrait { height: 470px; }
}

@media (max-width: 680px) {
  .characters-shell { width: min(100% - 12px, 1180px); padding-top: 94px; }
  .characters-intro { width: calc(100% - 22px); margin-bottom: 16px; }
  .characters-intro h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .character-card,
  .hero-card {
    min-height: 0;
    padding: 48px 34px 58px;
  }
  .portrait,
  .hero-card .portrait { height: 330px; }
  .hero-card .portrait img { width: 118%; max-width: 118%; }
  .card-copy h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .card-copy .hero-name-heading { min-height: 52px; margin-block: 5px 10px; }
  .card-copy .hero-name-heading img,
  .hero-card .hero-name-heading img { max-height: 92px; }
  .character-facts { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 390px) {
  .character-card,
  .hero-card { padding-inline: 26px; }
  .portrait,
  .hero-card .portrait { height: 285px; }
  .card-copy p { font-size: .92rem; }
}
