/* Forgotten Trivia — a Victorian carnival broadside after dark.
   Near-black boards, aged poster mustard, sealing-wax red, ticket stubs. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --board: #211a13;
  --board2: #2c231a;
  --poster: #efe4c8;
  --poster2: #f7efdb;
  --mustard: #d9a531;
  --wax: #a03026;
  --ink: #2a2117;
  --dim: #b3a488;
  --gray: #8f8677;
}
body {
  background: var(--board);
  color: var(--poster);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--mustard); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- masthead ---------- */
.mast {
  background: var(--board);
  border-bottom: 3px double var(--mustard);
  position: sticky; top: 0; z-index: 50;
}
.mast-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-orn {
  color: var(--poster); background: var(--wax); width: 30px; height: 30px;
  border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 19px; font-weight: bold;
}
.brand-name {
  font-size: 23px; letter-spacing: .04em; 
  color: var(--mustard); font-weight: bold;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a {
  font-size: 12.5px; letter-spacing: .04em; 
  color: var(--dim); padding-bottom: 3px;
}
.nav a.on, .nav a:hover {
  color: var(--poster); border-bottom: 2px solid var(--wax);
  text-decoration: none;
}

/* ---------- hero ---------- */
.hero { background: var(--board); }
.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 60px 24px 54px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px;
  align-items: center;
}
.tagline {
  display: inline-block; margin: 18px 0 22px; padding: 7px 18px;
  border: 2px solid var(--wax); color: var(--poster);
  font-size: 15px; font-style: italic; transform: rotate(-1deg);
  background: rgba(160,48,38,.12);
}
.mission { margin: 14px 0; max-width: 58ch; color: var(--dim); }
.hero-stats {
  margin-top: 22px; font-size: 13px; letter-spacing: .04em;
   color: var(--mustard);
  border-top: 1px dashed var(--mustard);
  border-bottom: 1px dashed var(--mustard); padding: 8px 0;
  display: inline-block;
}
.hero-art { position: relative; min-height: 400px; }
.hero-art .ha {
  position: absolute; width: 54%;
  box-shadow: 0 12px 30px rgba(0,0,0,.7); border-radius: 2px;
}
.ha1 { top: 0; left: 2%; transform: rotate(-5deg); z-index: 2; }
.ha2 { top: 10%; right: 0; transform: rotate(4deg); z-index: 3; }
.ha3 { bottom: 0; left: 0; transform: rotate(2.5deg); z-index: 1; }
.ha4 { bottom: 5%; right: 10%; transform: rotate(-2deg); z-index: 0; opacity: .9; }

/* ---------- did you know ---------- */
.didyou {
  background: var(--poster);
  color: var(--ink);
  border-top: 6px solid var(--wax);
  border-bottom: 6px solid var(--wax);
}
.didyou-inner {
  max-width: 880px; margin: 0 auto; padding: 32px 24px 24px;
  text-align: center;
}
.didyou-label {
  font-size: 13px; letter-spacing: .04em; 
  color: var(--wax); font-weight: bold;
}
.didyou-label::before { content: "★ "; color: var(--mustard); }
.didyou-label::after { content: " ★"; color: var(--mustard); }
.facts { min-height: 96px; margin-top: 12px; }
.fact { display: none; }
.fact.on { display: block; animation: fadein .6s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.fact p:first-child {
  font-size: 22px; line-height: 1.4; color: var(--ink); font-style: italic;
}
.fact-src { margin-top: 8px; font-size: 13px; color: #7d7258; }
.fact-src a { color: var(--wax); }
.soontag { color: var(--gray); font-style: italic; }
.didyou-nav { margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.dprev, .dnext {
  background: none; border: 2px solid var(--ink); color: var(--ink);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 16px; font-weight: bold;
}
.ddot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink);
  background: none; margin: 0 4px; cursor: pointer; padding: 0;
}
.ddot.on { background: var(--wax); border-color: var(--wax); }

/* ---------- books ---------- */
.books { max-width: 1080px; margin: 0 auto; padding: 42px 24px 60px; }
.sect {
  text-align: center; font-size: 28px; letter-spacing: .04em;
   color: var(--mustard); margin: 46px 0 26px;
}
.sect::after {
  content: "❋ ❋ ❋"; display: block; font-size: 12px; color: var(--wax);
  letter-spacing: .8em; margin-top: 8px;
}
.rows { display: flex; flex-direction: column; gap: 26px; }
.book {
  display: grid; grid-template-columns: 185px 1fr; gap: 28px;
  align-items: start; background: var(--poster); color: var(--ink);
  padding: 22px; border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.book .plate { position: relative; display: block; overflow: hidden; }
.book .plate img { width: 100%; }
.book h3 { font-size: 24px; letter-spacing: .02em; }
.book h3 a { color: var(--ink); }
.book h3 a:hover { color: var(--wax); }
.year { color: var(--wax); font-size: 16px; margin-left: 8px; }
.blurb { margin-top: 8px; max-width: 68ch; color: #4a3f2e; }
.meta { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.vols { font-size: 13px; color: #7d7258; font-style: italic; }
.chip {
  display: inline-block; font-size: 12px; letter-spacing: .04em;
   padding: 6px 16px; border-radius: 2px;
}
.chip.go { background: var(--wax); color: var(--poster2); font-weight: bold; }
a.chip.go:hover { background: var(--ink); text-decoration: none; }
.chip.soonchip {
  border: 1px dashed var(--gray); color: var(--gray); font-size: 11px;
  vertical-align: middle; margin-left: 8px;
}

.book.soon { background: #e4dbc2; }
.book.soon .plate img { filter: grayscale(1) opacity(.65); }
.book.soon h3, .book.soon .blurb, .book.soon .vols { color: var(--gray); }
.ribbon {
  position: absolute; top: 50%; left: 50%; z-index: 5;
  transform: translate(-50%, -50%) rotate(-22deg); width: 160%; text-align: center;
  background: var(--wax); color: var(--poster2);
  font-size: 13px; letter-spacing: .04em; 
  padding: 4px 0; line-height: 1.25; box-shadow: 0 2px 6px rgba(0,0,0,.4);
  font-weight: bold;
}
.ribbon span { display: block; }

.soon-sect { color: var(--dim); }
.vault-note {
  text-align: center; font-style: italic; color: var(--dim);
  max-width: 62ch; margin: -10px auto 26px;
}
.vault {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.vcard { text-align: center; }
.vplate {
  position: relative; display: block; overflow: hidden;
  background: #e4dbc2; padding: 8px; border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.vplate img {
  width: 100%; height: 150px; object-fit: cover; object-position: top;
  filter: grayscale(1) opacity(.55);
}
.vcard .ribbon { font-size: 12px; }
.vtitle {
  display: block; margin-top: 8px; font-size: 13px; line-height: 1.35;
  color: var(--dim);
}
.vyear { display: block; font-size: 11px; color: var(--gray); font-style: italic; }

/* ---------- secondary pages ---------- */
.pagemain { max-width: 880px; margin: 0 auto; padding: 48px 24px 60px; }
.pagetitle {
  font-size: 42px; letter-spacing: .04em; 
  color: var(--mustard); text-align: center;
  text-shadow: 2px 2px 0 var(--wax);
}
.pagelede {
  text-align: center; max-width: 60ch; margin: 16px auto 40px;
  color: var(--dim); font-size: 18px; font-style: italic;
}
.cards { display: flex; flex-direction: column; gap: 22px; }
.card {
  background: var(--poster); color: var(--ink); padding: 22px 26px;
  border-radius: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.5);
  border-left: 5px solid var(--wax);
}
.card h3 { font-size: 21px; color: var(--wax); }
.card p { margin-top: 10px; color: #4a3f2e; }
.cardsrc { font-size: 14px; }

.tests { display: flex; flex-direction: column; gap: 18px; }
.test {
  display: flex; justify-content: space-between; gap: 22px; align-items: center;
  background: var(--poster); color: var(--ink); padding: 18px 24px;
  border-radius: 2px; box-shadow: 0 5px 14px rgba(0,0,0,.45);
}
.test h3 { font-size: 20px; }
.test h3 a { color: var(--ink); }
.test .blurb { font-size: 15px; color: #4a3f2e; }
.tsrc { font-size: 13px; color: #7d7258; margin-top: 6px; }
.test.soon { background: #e4dbc2; }
.test.soon h3, .test.soon .blurb, .test.soon .tsrc { color: var(--gray); }
.taction { flex-shrink: 0; }

.aboutslug {
  background: var(--poster); color: var(--ink);
  border: 3px double var(--wax);
  padding: 40px; text-align: center; font-size: 18px;
}
.aboutslug p + p { margin-top: 12px; }

/* ---------- footer ---------- */
.foot {
  background: #191410; color: var(--dim); margin-top: 40px;
  padding: 30px 24px; text-align: center; font-size: 14px;
  border-top: 3px double var(--mustard);
}
.foot a { color: var(--mustard); }
.foot-label {
  letter-spacing: .04em;  font-size: 11px;
  margin-right: 10px;
}
.colophon { margin-top: 10px; font-style: italic; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { position: static; min-height: 0; display: flex; flex-wrap: wrap;
              justify-content: center; gap: 14px; margin-top: 10px; }
  .hero-art .ha { position: static; width: 42%; max-width: 200px; transform: none;
                  box-shadow: 0 8px 18px rgba(0,0,0,.5); }
  .book { grid-template-columns: 120px 1fr; gap: 16px; }
  }
@media (max-width: 560px) {
    .book { grid-template-columns: 1fr; }
  .book .plate { max-width: 220px; }
  .test { flex-direction: column; align-items: flex-start; }
}

.empty-note {
  text-align: center; font-style: italic; color: var(--soft, #888);
  border: 1px dashed #aaa; padding: 32px; font-size: 17px;
}


/* --- 2026-07-22 revisions: mixed case, mission page, clickable facts --- */
.fact { color: inherit; }
a.fact { text-decoration: none; display: none; }
a.fact.on { display: block; }
a.fact:hover p:first-child { text-decoration: underline; }
.missionblock { font-size: 19px; max-width: 62ch; margin: 0 auto; }
.missionblock p + p { margin-top: 16px; }
.contact { text-align: center; margin-top: 44px; }
.contact h2 { font-weight: normal; font-size: 24px; margin-bottom: 8px; }
h1.tagline { font-size: 40px; font-weight: normal; font-style: normal; letter-spacing: .01em; color: var(--mustard); }

.eic { margin-top: 18px; }
.addr { margin-top: 14px; line-height: 1.55; }

