/* Shared look for Step Dungeon's static pages (guide, about, privacy) and
   the landing content under the game on the front page. The game's own UI
   is styled by src/style.css; this file deliberately scopes everything
   under .static-page / .site-* / .prose so the two sheets can coexist on
   index.html without fighting. Palette matches the game: forest-night
   greens, lantern gold, parchment text. */

body.static-page {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #24322a 0%, #151d18 60%) fixed, #151d18;
  color: #e0e6da;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

/* --- Header nav (static pages) --- */

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px 0;
  box-sizing: border-box;
}
.site-nav .nav-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffd45e;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 201, 64, 0.25);
  margin-right: auto;
}
.site-nav a.nav-link {
  color: #9fd07a;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #3d4a3d;
  border-radius: 8px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.18);
}
.site-nav a.nav-link:hover { border-color: #ffd45e; color: #ffd45e; }
.site-nav a.nav-link.nav-current { border-color: #6a7a58; color: #d8e2c8; }

/* --- Body copy --- */

.prose {
  font-family: Georgia, "Times New Roman", serif;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  box-sizing: border-box;
}
.prose h1 {
  color: #ffd45e;
  font-size: 30px;
  line-height: 1.2;
  margin: 8px 0 4px;
  text-shadow: 0 0 16px rgba(255, 201, 64, 0.2);
}
.prose h2 {
  color: #ffd45e;
  font-size: 20px;
  margin: 36px 0 8px;
  border-bottom: 1px solid #33402f;
  padding-bottom: 6px;
}
.prose h3 { color: #cfe0a8; font-size: 16px; margin: 24px 0 6px; }
.prose p, .prose li { color: #d7ddce; }
.prose a { color: #9fd07a; }
.prose a:hover { color: #ffd45e; }
.prose .lede { font-size: 17px; color: #e8e0cf; font-style: italic; }
.prose .muted { color: #9aa79a; font-size: 14px; }
.prose ul { padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose strong { color: #f0e6c8; }
.prose kbd {
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
  background: #0f1512;
  border: 1px solid #3d4a3d;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: #cfe0a8;
}

/* Callout parchment box — matches the in-game hint dialogs in spirit. */
.prose .callout {
  background: rgba(255, 212, 94, 0.06);
  border: 1px solid #4a4a2e;
  border-left: 3px solid #ffd45e;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
}
.prose .callout p { margin: 4px 0; }

/* --- "Not an RPG" tagline (guide hero) --- */

.not-rpg {
  text-align: center;
  margin: 26px 0 30px;
}
.not-rpg .line-a {
  display: block;
  font-size: 19px;
  font-style: italic;
  color: #9aa79a;
}
.not-rpg .line-b {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: bold;
  color: #ffd45e;
  text-shadow: 0 0 18px rgba(255, 201, 64, 0.28);
}

/* --- Field-guide tables (guide page): real game art beside each rule --- */

.gtable {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 4px;
}
.gtable td {
  border-top: 1px solid #33402f;
  padding: 12px 10px 12px 0;
  vertical-align: middle;
}
.gtable tr:first-child td { border-top: none; }
.gtable .g-ico {
  width: 64px;
  padding-right: 12px;
}
.icon-tile {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  background: linear-gradient(#79b74e, #6fae45);
  border: 2px solid #4a3119;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-tile.tile-dark { background: linear-gradient(#3a4148, #2c3238); }
.icon-tile.tile-ice { background: linear-gradient(135deg, #cfeafd, #9ed2ef 55%, #bfe3f7); }
.gicon { width: 42px; height: 42px; display: block; }
.icon-duo { display: flex; gap: 6px; }
.icon-duo .icon-tile { width: 44px; height: 44px; }
.icon-duo .gicon { width: 34px; height: 34px; }
.g-name {
  display: block;
  color: #cfe0a8;
  font-weight: bold;
  margin-bottom: 2px;
}
.g-desc { color: #d7ddce; font-size: 15px; }
.g-desc p { margin: 0; }

/* Bestiary gallery: a strip of creature portraits. */
.bestiary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.bestiary li { width: 74px; text-align: center; }
.bestiary .icon-tile { margin: 0 auto 5px; }
.bestiary .bname {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: #b7c2b0;
}

@media (max-width: 480px) {
  .gtable .g-ico { width: 52px; padding-right: 8px; }
  .icon-tile { width: 46px; height: 46px; }
  .gicon { width: 36px; height: 36px; }
  .not-rpg .line-b { font-size: 21px; }
}

/* --- Feature cards (landing) --- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.card-grid li {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid #33402f;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
}
.card-grid .card-head {
  display: block;
  color: #cfe0a8;
  font-weight: bold;
  margin-bottom: 4px;
}

/* --- FAQ --- */

.faq details {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid #33402f;
  border-radius: 10px;
  padding: 10px 16px;
  margin: 8px 0;
}
.faq summary {
  cursor: pointer;
  color: #cfe0a8;
  font-weight: bold;
}
.faq summary:hover { color: #ffd45e; }
.faq details p { margin: 8px 0 4px; }

/* --- Footer (shared by static pages and the game's landing section) --- */

.site-footer {
  font-family: Georgia, "Times New Roman", serif;
  border-top: 1px solid #33402f;
  margin-top: 24px;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
}
.site-footer .foot-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
}
.site-footer a { color: #9fd07a; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #ffd45e; }
.site-footer .foot-note {
  flex-basis: 100%;
  color: #8a978a;
  font-size: 13px;
  margin-top: 6px;
}
