:root{
  --bg:#1e1e1e;
  --ink:#e6e6e6;
  --muted:#a8a8a8;
  --line:#2e2e2e;
  --accent:#ff2496;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

header {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

header img {
  max-width: min(800px, 92vw);
  height: auto;
}

.subheader {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  user-select: none;
}

.backLink {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}
.backLink:hover { text-decoration: underline; }

#charactersWrapper {
  width: min(900px, 94vw);
  margin: 2rem auto;
  padding-bottom: 2rem;
}
#charactersWrapper h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}

.character {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.charImg {
  width: 140px;
  height: 140px;
  background-color: #2b2b2b;
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
}

.charInfo h2 {
  color: var(--accent);
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.charInfo p {
  margin: 0.4rem 0;
  color: var(--ink);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1rem 0.75rem 2rem;
  font-size: 13px;
}

@media (max-width: 600px) {
  .character {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .charImg {
    width: 120px;
    height: 120px;
  }
}
