/* Public character pages, in the app's "Green room" look: clean white, bottle green actions,
   brass kept for small highlights, Instrument Serif headings and Atkinson Hyperlegible body. */
:root {
  --bg: #ffffff;
  --surface: #f1f4f1;
  --surface-alt: #e6ece7;
  --ink: #16201c;
  --ink-soft: #4f5d57;
  --line: #dfe6e1;
  --primary: #12513d;
  --brass: #e0a43a;
  --direction: #4e6a5e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 'Atkinson Hyperlegible', system-ui, sans-serif;
}
a { color: var(--primary); }
img { max-width: 100%; }
h1, h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.02; }
h2 { font-size: 1.9rem; line-height: 1.1; margin-bottom: 14px; }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 10px; }
.bar nav { display: flex; align-items: center; gap: 18px; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }

.cta {
  display: inline-block; background: var(--primary); color: #fff !important; text-decoration: none;
  font-weight: 700; border-radius: 999px; padding: 9px 18px;
}
.cta:hover { opacity: 0.92; }
.cta.big { font-size: 18px; padding: 14px 26px; margin-top: 22px; }
.note { color: var(--ink-soft); font-size: 14px; margin: 8px 0 0; }

main { max-width: 1080px; margin: 0 auto; padding: 8px 16px 40px; }
main > section { margin-top: 40px; }

.intro { max-width: 680px; }
.intro p { color: var(--ink-soft); font-size: 19px; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px;
  border: 1px solid var(--line); border-radius: 24px; color: var(--ink); text-decoration: none; background: var(--bg);
}
.grid a:hover { border-color: var(--primary); }
.grid .face { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; object-fit: cover; }
.grid strong { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.1; margin-top: 4px; }
.grid span { color: var(--ink-soft); font-size: 15px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.grid.small strong { font-size: 1.2rem; }

.face.blank {
  display: flex; align-items: center; justify-content: center; color: #fff;
  font: 400 4rem 'Instrument Serif', Georgia, serif;
}

.crumbs { font-size: 15px; color: var(--ink-soft); }
.crumbs a { font-weight: 700; text-decoration: none; }

/* The two-tone "split stage": the character's own colour behind the portrait. */
.stage {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  margin-top: 16px !important; padding: 28px; border-radius: 28px;
  background: linear-gradient(90deg, var(--tone) 0 140px, var(--surface) 140px);
}
.stage .face { width: 224px; height: 224px; border-radius: 24px; object-fit: cover; box-shadow: 0 10px 30px rgba(14, 26, 21, 0.18); }
.tagline { font-size: 20px; color: var(--ink-soft); margin: 12px 0 0; max-width: 560px; }

.bubble {
  margin: 0; max-width: 640px; padding: 16px 20px; background: var(--surface);
  border-radius: 6px 20px 20px 20px; font-size: 18px;
}
.bubble em { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.12em; color: var(--direction); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border-radius: 999px; padding: 5px 14px; font-size: 15px; }
.chips li.cat { background: var(--primary); color: #fff; font-weight: 700; }

footer { border-top: 1px solid var(--line); padding: 24px 16px 40px; text-align: center; color: var(--ink-soft); font-size: 14px; }
footer p { margin: 4px 0; }

@media (max-width: 640px) {
  .bar nav a:not(.cta) { display: none; }
  .stage { grid-template-columns: 1fr; text-align: center; padding: 22px 16px; background: linear-gradient(180deg, var(--tone) 0 120px, var(--surface) 120px); }
  .stage .face { width: 180px; height: 180px; margin: 0 auto; }
  .tagline { margin-left: auto; margin-right: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid a { padding: 10px; border-radius: 18px; }
  .grid span { display: none; }
}
