/* 0.42.0: the introduction pages (species, world). Made by tools/build-intro-pages.mjs; this sheet is written by hand. */
:root {
  --bg: #f6f1e4;
  --paper: #fffaf0;
  --ink: #23302c;
  --muted: #5d6a64;
  --line: #d9cfb8;
  --accent: #203b35;
  --accent-ink: #fffaf0;
  --link: #2c6a58;
  --soft: #ece4cf;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141c1a;
    --paper: #1c2623;
    --ink: #ebe5d6;
    --muted: #a8b3ad;
    --line: #34433e;
    --accent: #8cc7b0;
    --accent-ink: #13201c;
    --link: #8cc7b0;
    --soft: #24302c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141c1a;
  --paper: #1c2623;
  --ink: #ebe5d6;
  --muted: #a8b3ad;
  --line: #34433e;
  --accent: #8cc7b0;
  --accent-ink: #13201c;
  --link: #8cc7b0;
  --soft: #24302c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  line-height: 1.85;
  font-size: 16px;
}
a { color: var(--link); }
img { image-rendering: pixelated; }
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #203b35;
  color: #fffaf0;
}
.top a { color: #fffaf0; text-decoration: none; }
.brand { font-weight: 700; letter-spacing: .02em; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.top nav a:hover { text-decoration: underline; }
.top .play { background: #fffaf0; color: #203b35; padding: 2px 12px; border-radius: 999px; font-weight: 700; }
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
h1 { font-size: 30px; line-height: 1.35; margin: 4px 0 8px; }
h2 { font-size: 21px; margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
h3 { font-size: 18px; margin: 0 0 4px; }
p { margin: 8px 0; }
.lead { font-size: 17px; }
.hero { display: flex; gap: 20px; align-items: center; }
.hero img {
  flex: none;
  width: 160px;
  height: 160px;
  background: var(--soft);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.kind { margin: 0; font-size: 14px; color: var(--muted); }
.opening { margin: 24px 0 8px; padding: 14px 18px; background: var(--paper); border-left: 4px solid var(--accent); border-radius: 6px; }
.opening blockquote { margin: 0; }
.opening p { margin: 0; font-size: 17px; }
.opening figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.facts { margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.facts div { display: grid; grid-template-columns: 11em 1fr; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { padding: 8px 12px; background: var(--soft); font-weight: 700; font-size: 14px; }
.facts dd { margin: 0; padding: 8px 12px; overflow-wrap: anywhere; }
.note { font-size: 13px; color: var(--muted); }
.places { padding-left: 1.2em; }
.places li { margin: 6px 0; }
.places span { color: var(--muted); }
.terrain { margin-left: 8px; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--soft); }
.born { font-size: 14px; }
.born a { margin-right: 2px; }
.others, .grid { list-style: none; padding: 0; display: grid; gap: 8px; }
.others { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.others a { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); height: 100%; }
.grid a:hover, .others a:hover { border-color: var(--link); }
.grid strong { font-size: 16px; }
.grid span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.region { margin: 20px 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 12px; }
.cta { margin-top: 40px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.button { display: inline-block; margin-top: 8px; padding: 10px 24px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-weight: 700; text-decoration: none; }
footer { padding: 20px 16px 32px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero img { width: 128px; height: 128px; }
  .facts div { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 2px; }
}
