/* History Bard — a federal broadside. Deep navy, parchment, brass,
   slab serifs, star rules. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --parch: #f3ecd8;
  --parch2: #faf5e7;
  --navy: #1c2a48;
  --navy2: #24365c;
  --brass: #ad8c46;
  --sigred: #8e2f2b;
  --ink: #29251c;
  --soft: #7d7562;
  --gray: #a19b8d;
}
body {
  background: var(--parch);
  color: var(--ink);
  font-family: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
}
a { color: var(--sigred); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- masthead ---------- */
.mast {
  background: var(--navy);
  border-bottom: 4px solid var(--brass);
  position: sticky; top: 0; z-index: 50;
}
.mast-inner {
  max-width: 1100px; 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(--brass); font-size: 20px; }
.brand-name {
  font-size: 23px; letter-spacing: .04em; 
  color: var(--parch); font-weight: bold;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a {
  font-size: 12.5px; letter-spacing: .04em; 
  color: #bfc6d6; padding-bottom: 3px;
}
.nav a.on, .nav a:hover {
  color: var(--parch); border-bottom: 2px solid var(--brass);
  text-decoration: none;
}

/* ---------- hero ---------- */
.hero {
  background: var(--navy);
  color: var(--parch);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 60px 24px 56px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px;
  align-items: center;
}
.tagline {
  color: var(--brass); font-size: 16px; font-style: italic;
  margin: 16px 0 24px; padding-top: 12px; position: relative;
}
.tagline::before {
  content: "★ ★ ★"; position: absolute; top: -8px; left: 0;
  color: var(--sigred); font-size: 11px; letter-spacing: .6em;
}
.mission { margin: 14px 0; max-width: 58ch; color: #dcd6c4; }
.hero-stats {
  margin-top: 24px; display: inline-block;
  border: 1px solid var(--brass); padding: 8px 18px;
  font-size: 13.5px; letter-spacing: .04em; 
  color: var(--brass);
}
.hero-art { position: relative; min-height: 400px; }
.hero-art .ha {
  position: absolute; width: 54%;
  box-shadow: 0 10px 28px rgba(0,0,0,.5); border-radius: 2px;
}
.ha1 { top: 0; left: 4%; transform: rotate(-4deg); z-index: 2; }
.ha2 { top: 10%; right: 0; transform: rotate(3deg); z-index: 3; }
.ha3 { bottom: 0; left: 0; transform: rotate(2deg); z-index: 1; }
.ha4 { bottom: 6%; right: 10%; transform: rotate(-2deg); z-index: 0; opacity: .9; }

/* ---------- did you know ---------- */
.didyou {
  background: var(--parch2);
  border-bottom: 1px solid #ded4b8;
}
.didyou-inner {
  max-width: 880px; margin: 0 auto; padding: 34px 24px 24px;
  text-align: center;
}
.didyou-label {
  display: inline-block; background: var(--sigred); color: var(--parch2);
  font-size: 11px; letter-spacing: .04em; 
  padding: 4px 16px;
}
.facts { min-height: 96px; margin-top: 14px; }
.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: 21px; line-height: 1.45; color: var(--navy); }
.fact-src { margin-top: 8px; font-size: 13px; color: var(--soft); }
.fact-src a { color: var(--sigred); }
.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: 1px solid var(--navy); color: var(--navy);
  width: 28px; height: 28px; cursor: pointer; font-size: 16px;
}
.ddot {
  width: 10px; height: 10px; border: 1px solid var(--navy);
  transform: rotate(45deg); background: none; margin: 0 5px;
  cursor: pointer; padding: 0;
}
.ddot.on { background: var(--sigred); border-color: var(--sigred); }

/* ---------- books ---------- */
.books { max-width: 1100px; margin: 0 auto; padding: 44px 24px 60px; }
.sect {
  font-size: 26px; letter-spacing: .04em; 
  color: var(--navy); margin: 46px 0 26px;
  display: flex; align-items: center; gap: 16px;
}
.sect::before { content: "★"; color: var(--sigred); font-size: 18px; }
.sect::after { content: ""; flex: 1; border-top: 3px double var(--brass); }
.rows { display: flex; flex-direction: column; gap: 24px; }
.book {
  display: grid; grid-template-columns: 185px 1fr; gap: 28px;
  align-items: start; background: var(--parch2);
  border: 1px solid #ded4b8; border-top: 3px solid var(--navy);
  padding: 22px;
}
.book .plate { position: relative; display: block; overflow: hidden; }
.book .plate img { width: 100%; }
.book h3 { font-size: 24px; color: var(--navy); }
.book h3 a { color: var(--navy); }
.book h3 a:hover { color: var(--sigred); }
.year { color: var(--sigred); font-size: 16px; margin-left: 8px; }
.blurb { margin-top: 8px; max-width: 68ch; }
.meta { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.vols { font-size: 13px; color: var(--soft); font-style: italic; }
.chip {
  display: inline-block; font-size: 12px; letter-spacing: .04em;
   padding: 6px 16px;
}
.chip.go { background: var(--navy); color: var(--parch2); }
a.chip.go:hover { background: var(--sigred); text-decoration: none; }
.chip.soonchip {
  border: 1px dashed var(--gray); color: var(--gray); font-size: 11px;
  vertical-align: middle; margin-left: 8px;
}

.book.soon { border-top-color: var(--gray); }
.book.soon .plate img { filter: grayscale(1) opacity(.7); }
.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(--sigred); color: var(--parch2);
  font-size: 13px; letter-spacing: .04em; 
  padding: 4px 0; line-height: 1.25; box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.ribbon span { display: block; }

.soon-sect { color: var(--soft); }
.vault-note {
  font-style: italic; color: var(--soft); max-width: 64ch; margin: -8px 0 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;
  border: 1px solid #d8cdb0; background: var(--parch2); padding: 8px;
}
.vplate img {
  width: 100%; height: 150px; object-fit: cover; object-position: top;
  filter: grayscale(1) opacity(.6);
}
.vcard .ribbon { font-size: 12px; }
.vtitle {
  display: block; margin-top: 8px; font-size: 13px; line-height: 1.35;
  color: var(--gray);
}
.vyear { display: block; font-size: 11px; color: #b3ac9b; font-style: italic; }

/* ---------- secondary pages ---------- */
.pagemain { max-width: 880px; margin: 0 auto; padding: 48px 24px 60px; }
.pagetitle {
  font-size: 40px; letter-spacing: .04em; 
  color: var(--navy); text-align: center;
}
.pagelede {
  text-align: center; max-width: 60ch; margin: 16px auto 40px;
  color: var(--soft); font-size: 18px; font-style: italic;
}
.cards { display: flex; flex-direction: column; gap: 22px; }
.card {
  background: var(--parch2); border: 1px solid #ded4b8;
  border-left: 4px solid var(--sigred); padding: 22px 26px;
}
.card h3 { font-size: 20px; color: var(--navy); }
.card p { margin-top: 10px; }
.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(--parch2); border: 1px solid #ded4b8; padding: 18px 24px;
}
.test h3 { font-size: 20px; color: var(--navy); }
.test h3 a { color: var(--navy); }
.test .blurb { font-size: 15px; }
.tsrc { font-size: 13px; color: var(--soft); margin-top: 6px; }
.test.soon h3, .test.soon .blurb, .test.soon .tsrc { color: var(--gray); }
.taction { flex-shrink: 0; }

.aboutslug {
  background: var(--parch2); border: 1px solid var(--brass);
  outline: 4px solid var(--navy); outline-offset: 4px;
  padding: 40px; text-align: center; font-size: 18px; margin-top: 8px;
}
.aboutslug p + p { margin-top: 12px; }

/* ---------- footer ---------- */
.foot {
  background: var(--navy); color: #bfc6d6; margin-top: 40px;
  padding: 30px 24px; text-align: center; font-size: 14px;
  border-top: 4px solid var(--brass);
}
.foot a { color: var(--brass); }
.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; letter-spacing: .01em; color: var(--parch); }

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


/* weird-page chip (Curiosities feature) */
.chip.feat { background: transparent; color: var(--ink); border: 1px solid currentColor; opacity: .8; }
a.chip.feat { color: var(--ink); }
a.chip.feat:hover { background: var(--ink); color: var(--paper2, #fff); opacity: 1; text-decoration: none; border-color: var(--ink); }
