/* =====================================================
   Character Base Layout
   ===================================================== */

/* Root tokens (character-scoped) */
:root {
  --char-radius: 3px;

  /* Character surface defaults */
  --char-surface: var(--lw-surface);
  --char-border: rgba(255, 255, 255, 0.08);
  --char-shadow: var(--lw-shadow-subtle);

  /* Text defaults */
  --char-text-primary: var(--lw-text-primary);
  --char-text-muted: var(--lw-text-muted);
  --char-accent: var(--lw-accent-primary);
}

/* =====================================================
   Character Shell
   Inherits site width – no max-width here
   ===================================================== */

.char-shell {
  width: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Collapse to single column on small screens */
@media (max-width: 860px) {
  .char-shell {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Aside (Portrait + Identity)
   ===================================================== */

.char-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Portrait container */
.char-portrait {
  width: 100%;
  border-radius: var(--char-radius);
  overflow: hidden;
  border: 1px solid var(--char-border);
  box-shadow: var(--char-shadow);
  background: var(--char-surface);
}

.char-portrait img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Name + subtitle */
.char-header {
  padding: 1rem;
  border-radius: var(--char-radius);
  border: 1px solid var(--char-border);
  background: var(--char-surface);
  box-shadow: var(--char-shadow);
}

.char-name {
  margin: 0;
  font-family: var(--lw-font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.char-kicker {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--char-text-muted);
}

/* Meta list */
.char-meta {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.char-meta li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.char-meta .k {
  opacity: 0.7;
}

.char-meta .v {
  font-weight: 600;
}

/* =====================================================
   Main Content Column
   ===================================================== */

.char-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Reusable character sections */
.char-section {
  padding: 1.25rem 1.5rem;
  border-radius: var(--char-radius);
  border: 1px solid var(--char-border);
  background: var(--char-surface);
  box-shadow: var(--char-shadow);
}

.char-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--lw-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Body copy */
.char-section p {
  margin: 0.5rem 0 0;
  line-height: 1.55;
  color: var(--char-text-primary);
}

/* Quotes */
.char-quote {
  font-style: italic;
  opacity: 0.85;
  border-left: 3px solid var(--char-accent);
  padding-left: 0.75rem;
}
