
:root {
  --bg: #f5f1e8;
  --paper: #fffdf8;
  --ink: #24231f;
  --muted: #6f6a5f;
  --line: #d8d0c2;
  --accent: #4d654f;
  --accent-dark: #344735;
  --link: #315f7a;
  --shadow: 0 8px 24px rgba(48, 42, 30, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}
a { color: var(--link); }
.site-header {
  background: var(--accent-dark);
  color: white;
  border-bottom: 4px solid #c7b98c;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
}
.site-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: .02em;
}
.site-subtitle {
  margin: 6px 0 0;
  color: #e6e0d1;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}
.paper {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
}
.breadcrumbs {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 18px;
}
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 2.3rem; margin: 0 0 8px; }
h2 {
  font-size: 1.25rem;
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.lede { color: var(--muted); margin-top: 0; }
.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.meta-card {
  border: 1px solid var(--line);
  background: #faf7ef;
  padding: 14px;
}
.meta-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .09em;
  margin-bottom: 3px;
}
.character-image {
  max-width: 100%;
  max-height: 420px;
  display: block;
  margin: 18px 0;
  border: 1px solid var(--line);
}
.note {
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: #f4f1e8;
}
.directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.card-name { font-weight: bold; color: var(--link); }
.card-meta { color: var(--muted); font-size: .9rem; margin-top: 4px; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 32px;
  color: var(--muted);
  font-size: .9rem;
}
@media (max-width: 650px) {
  .container { padding: 16px 12px 40px; }
  .paper { padding: 20px; }
  table { display: block; overflow-x: auto; }
}

.image-wrap {
  text-align: center;
  margin: 0 auto 24px;
}
.page-image {
  display: block;
  max-width: min(100%, 520px);
  max-height: 420px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  object-fit: contain;
}
.card-image-wrap {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -16px -16px 14px;
  background: #f4f1e8;
  border-bottom: 1px solid var(--line);
}
.card-image {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.no-image {
  color: var(--muted);
  font-style: italic;
  text-align: center;
}
#player-card {
 border: 2mm ridge green; 
}
