/* ============================================================
   THE THREE MUSKETEERS — site stylesheet
   Palette: ink navy, parchment, brass/gold, oxblood accent
   Type: Playfair Display (display) + Lora (body) + Source Sans (UI)
   ============================================================ */

:root {
  --ink:        #1a2332;
  --ink-deep:   #10151f;
  --parchment:  #ece3d0;
  --parchment-dim: #ddd2b8;
  --brass:      #a87d2e;
  --brass-light:#c9a25c;
  --oxblood:    #7a2e2e;
  --oxblood-light: #9c4040;
  --steel:      #8a93a3;
  --white-ish:  #f7f3e8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;

  --max-width: 760px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover, a:focus {
  border-bottom-color: currentColor;
}
a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

img { max-width: 100%; }

/* ---------- Texture backdrop ---------- */
body {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(168,125,46,0.05), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(122,46,46,0.04), transparent 50%);
  background-attachment: fixed;
}

/* ---------- Site header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--parchment);
  padding: 1.1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--parchment);
}

.brand .crest {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--brass-light);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 1.05rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-nav a {
  color: var(--parchment-dim);
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--brass-light);
}
.site-nav a.active {
  border-bottom-color: var(--brass-light);
}

.nav-toggle {
  display: none;
}

@media (max-width: 640px) {
  .brand small { display: none; }
}

/* ---------- Layout shell ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.6rem 1.5rem 4rem;
}

.wide {
  max-width: 1000px;
}

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: 2.6rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.7rem; margin: 2.2rem 0 0.9rem; }
h3 { font-size: 1.25rem; margin: 1.6rem 0 0.6rem; }

.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--oxblood);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: #3a4357;
  font-style: italic;
  max-width: 60ch;
}

/* ---------- Divider / ornament ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 2.4rem 0;
  color: var(--brass);
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.6;
}
.ornament svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Hero (index page) ---------- */
.hero {
  position: relative;
  padding: 3.4rem 0 2.6rem;
  text-align: center;
}

.hero-crest {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.4rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.01em;
}

.hero .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--oxblood);
  margin-top: 0.3rem;
}

.hero .byline {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: #5a6275;
  margin-top: 0.9rem;
}

.hero .blurb {
  max-width: 58ch;
  margin: 1.6rem auto 0;
  font-size: 1.08rem;
  color: #2c3447;
}

.hero-cta {
  margin-top: 1.8rem;
  display: inline-flex;
  gap: 0.9rem;
}

.btn {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  display: inline-block;
}

.btn-primary {
  background: var(--ink);
  color: var(--parchment);
}
.btn-primary:hover {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--ink-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(26,35,50,0.06);
  border-bottom-color: var(--ink);
}

/* ---------- Chapter ledger / table ---------- */
.ledger {
  margin-top: 2.6rem;
  border-top: 2px solid var(--ink);
}

.ledger-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid rgba(26,35,50,0.16);
  font-family: var(--font-body);
}

.ledger-row:hover {
  background: rgba(168,125,46,0.07);
}

.ledger-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  font-size: 1rem;
  text-align: right;
}

.ledger-title a {
  color: var(--ink);
  font-size: 1.05rem;
}
.ledger-title a:hover {
  color: var(--oxblood);
}

.ledger-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--steel);
  white-space: nowrap;
}

/* ---------- Chapter reading page ---------- */
.chapter-head {
  text-align: center;
  margin-bottom: 2.2rem;
}

.chapter-num {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--oxblood);
  margin-bottom: 0.5rem;
}

.chapter-head h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.3rem);
}

.chapter-body p {
  margin: 0 0 1.3em;
  text-align: justify;
  hyphens: auto;
}

.chapter-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  float: left;
  line-height: 0.8;
  padding: 0.05em 0.12em 0 0;
  color: var(--oxblood);
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(26,35,50,0.18);
  font-family: var(--font-ui);
}

.chapter-nav a {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  max-width: 40%;
}

.chapter-nav .dir {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--steel);
}

.chapter-nav .next { text-align: right; }

.chapter-nav .toc-link {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--brass);
  flex-shrink: 0;
}

/* ---------- About pages ---------- */
.trivia-grid {
  display: grid;
  gap: 1.1rem;
  margin: 1.8rem 0 2.4rem;
}

.trivia-card {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.12);
  border-left: 4px solid var(--brass);
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
}

.trivia-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--oxblood);
}

.trivia-card p {
  margin: 0;
  font-size: 0.98rem;
  color: #2c3447;
}

.timeline {
  border-left: 2px solid var(--brass);
  margin: 2rem 0 2rem 0.4rem;
  padding-left: 1.6rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.94rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  background: var(--oxblood);
  border-radius: 50%;
  border: 2px solid var(--parchment);
}

.timeline-year {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-size: 0.95rem;
}

.timeline-item p {
  margin: 0.25rem 0 0;
  font-size: 0.98rem;
}

.portrait-frame {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1.6rem;
  border: 6px solid var(--white-ish);
  outline: 1px solid rgba(26,35,50,0.18);
  box-shadow: 0 8px 22px rgba(16,21,31,0.18);
  display: block;
}

/* ---------- Ad slot wrapper ---------- */
.ad-slot {
  margin: 2.4rem 0;
  text-align: center;
}

.ad-slot-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-bottom: 0.4rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink-deep);
  color: var(--parchment-dim);
  text-align: center;
  padding: 2.4rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

footer .crest-small {
  width: 30px;
  height: 30px;
  margin: 0 auto 0.8rem;
  opacity: 0.8;
}

footer a {
  color: var(--brass-light);
}

footer p {
  margin: 0.3rem 0;
  color: #9aa3b8;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  h1 { font-size: 2rem; }
  .ledger-row { grid-template-columns: 2.4rem 1fr; }
  .ledger-meta { display: none; }
  main { padding: 2rem 1.1rem 3rem; }
}

/* === Series badge (Marie Antoinette Romances and future series) === */
.series-badge {
  margin: 1.4rem 0 0.4rem;
  padding: 1rem 1.3rem;
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.14);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
}
.series-badge-label {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.series-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}
.series-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.series-links a:hover {
  color: var(--oxblood);
}
.series-links a.active {
  color: var(--oxblood);
  border-bottom-color: var(--oxblood);
  font-weight: 600;
}
.series-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white-ish);
  font-size: 0.68rem;
  font-weight: 700;
}
.series-links a.active .series-num {
  background: var(--oxblood);
}
@media (max-width: 640px) {
  .series-links { gap: 0.5rem 0.7rem; }
  .series-links a { font-size: 0.78rem; }
}

/* === Series pill for works.html cards === */
.series-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* === Site search (client-side, no database) === */
.site-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 2.2rem;
}
.site-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.18);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  box-shadow: 0 2px 8px rgba(16,21,31,0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.site-search-box:focus-within {
  border-color: var(--brass);
  box-shadow: 0 2px 10px rgba(168,125,46,0.18);
}
.site-search-icon {
  width: 18px;
  height: 18px;
  color: var(--steel);
  flex-shrink: 0;
  margin-right: 0.6rem;
}
.site-search-input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
}
.site-search-input::placeholder {
  color: var(--steel);
}
.site-search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.16);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(16,21,31,0.16);
  max-height: 420px;
  overflow-y: auto;
  z-index: 40;
}
.site-search-result {
  display: block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(26,35,50,0.1);
  transition: background 0.12s ease;
}
.site-search-result:last-child { border-bottom: none; }
.site-search-result:hover,
.site-search-result:focus {
  background: rgba(168,125,46,0.08);
}
.site-search-result-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.site-search-result-meta {
  display: block;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.66rem;
  color: var(--oxblood);
  margin-bottom: 0.25rem;
}
.site-search-result-excerpt {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.83rem;
  color: #2c3447;
  line-height: 1.4;
}
.site-search-empty {
  padding: 1rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--steel);
  text-align: center;
}

/* === In Movies page === */
.quick-nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.6rem 0 2.6rem;
}
.quick-nav a {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.18);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.quick-nav a:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--white-ish);
}
.film-group {
  margin-top: 2.6rem;
}
.film-group-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}
.film-entry {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.12);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}
.film-entry-body { flex: 1 1 320px; }
.film-entry-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 0.2rem;
}
.film-entry-meta {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--oxblood);
  margin-bottom: 0.5rem;
}
.film-entry-desc {
  font-size: 0.94rem;
  color: #2c3447;
  line-height: 1.5;
}
.film-entry-imdb {
  flex-shrink: 0;
  align-self: center;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white-ish);
  background: #f5c518;
  color: #000;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}
.film-entry-imdb:hover { opacity: 0.85; }
.section-divider-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--steel);
  text-align: center;
  margin: 1rem 0 0;
}

/* === Reading Guides page === */
.guide-category {
  margin-top: 2.8rem;
}
.guide-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 1.4rem;
}
.guide-card {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.12);
  border-left: 4px solid var(--oxblood);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.3rem;
}
.guide-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.guide-card-intro {
  font-size: 0.95rem;
  color: #2c3447;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: guide-counter;
}
.guide-list li {
  counter-increment: guide-counter;
  position: relative;
  padding: 0.4rem 0 0.4rem 2.1rem;
  border-top: 1px solid rgba(26,35,50,0.08);
  font-size: 0.92rem;
  line-height: 1.4;
}
.guide-list li:first-child { border-top: none; }
.guide-list li::before {
  content: counter(guide-counter);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white-ish);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-list li a {
  font-family: var(--font-display);
  color: var(--oxblood);
  text-decoration: none;
  font-weight: 600;
}
.guide-list li a:hover { text-decoration: underline; }
.guide-list .guide-reason {
  color: var(--steel);
  display: block;
  font-size: 0.86rem;
  margin-top: 0.1rem;
}

/* === Mobile navigation (CSS-only toggle, no JS required) === */
.nav-toggle-checkbox {
  display: none;
}
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-label span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white-ish);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 860px) {
  .site-header-inner {
    position: relative;
    flex-wrap: nowrap;
  }
  .nav-toggle-label {
    display: flex;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-deep);
    padding: 1.2rem 1.5rem 1.4rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    z-index: 50;
  }
  .nav-toggle-checkbox:checked ~ .site-nav {
    display: flex;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .site-nav a {
    width: 100%;
    padding: 0.4rem 0;
    font-size: 0.95rem;
  }
}

/* === Character Guides page === */
.character-category {
  margin-top: 2.8rem;
}
.character-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 1.4rem;
}
.character-card {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.4rem;
}
.character-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.character-meta {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--oxblood);
  margin-bottom: 0.8rem;
}
.character-meta a { color: var(--oxblood); }
.character-bio {
  font-size: 0.95rem;
  color: #2c3447;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.historical-note {
  background: rgba(168,125,46,0.08);
  border-left: 3px solid var(--brass);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  font-size: 0.87rem;
  color: #3a3020;
  line-height: 1.5;
}
.historical-note strong {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.3rem;
}
.historical-note.fictional {
  background: rgba(89,101,120,0.08);
  border-left-color: var(--steel);
}
.historical-note.fictional strong {
  color: var(--steel);
}

/* === Historical Figures page === */
.figure-category {
  margin-top: 2.8rem;
}
.figure-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 1.4rem;
}
.figure-card {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.4rem;
}
.figure-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.figure-meta {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--oxblood);
  margin-bottom: 1rem;
}
.figure-meta a { color: var(--oxblood); }
.figure-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 640px) {
  .figure-compare { grid-template-columns: 1fr; }
}
.figure-col {
  padding: 0.9rem 1.05rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.figure-col-history {
  background: rgba(89,101,120,0.07);
  border-left: 3px solid var(--steel);
}
.figure-col-dumas {
  background: rgba(122,29,29,0.06);
  border-left: 3px solid var(--oxblood);
}
.figure-col strong {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 0.35rem;
}
.figure-col-history strong { color: var(--steel); }
.figure-col-dumas strong { color: var(--oxblood); }

/* === Locations page (Dumas's Paris & France) === */
.location-category {
  margin-top: 2.8rem;
}
.location-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 1.4rem;
}
.location-card {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.6rem;
}
.location-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.location-meta {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--oxblood);
  margin-bottom: 1rem;
}
.location-meta a { color: var(--oxblood); }
.location-images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.location-images figure {
  flex: 1 1 220px;
  max-width: 320px;
  margin: 0;
}
.location-images img {
  width: 100%;
  display: block;
  border: 4px solid var(--parchment);
  outline: 1px solid rgba(26,35,50,0.15);
  box-shadow: 0 6px 16px rgba(16,21,31,0.14);
}
.location-images figcaption {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
  color: var(--steel);
  margin-top: 0.4rem;
  text-align: center;
}
.location-bio {
  font-size: 0.95rem;
  color: #2c3447;
  line-height: 1.55;
}
.location-bio p { margin: 0 0 0.8rem; }
.location-bio p:last-child { margin-bottom: 0; }

/* === Chapter page editorial annotation === */
.chapter-annotation {
  background: rgba(168,125,46,0.07);
  border-left: 3px solid var(--brass);
  border-radius: 4px;
  padding: 0.7rem 1rem;
  margin: 0 0 1.3rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #4a4230;
  line-height: 1.5;
}
.chapter-annotation a {
  color: var(--oxblood);
  font-weight: 600;
}

/* === Work page "Related Reading" box === */
.related-reading {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.14);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
}
.related-reading-title {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--brass);
  margin: 0 0 0.6rem;
}
.related-reading ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}
.related-reading li {
  font-size: 0.9rem;
}
.related-reading a {
  color: var(--oxblood);
  font-weight: 600;
  text-decoration: none;
}
.related-reading a:hover { text-decoration: underline; }

/* === "About This Site" callout for legal pages === */
.about-this-site {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.14);
  border-left: 5px solid var(--oxblood);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 0 0 2rem;
}
.about-this-site h2 {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--oxblood);
  margin: 0 0 0.7rem;
  border: none;
  padding: 0;
}
.about-this-site p {
  font-size: 0.96rem;
  color: #2c3447;
  line-height: 1.6;
  margin: 0 0 0.8rem;
}
.about-this-site p:last-child { margin-bottom: 0; }
.about-this-site a { color: var(--oxblood); font-weight: 600; }

/* === Quotes page === */
.quote-card {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.12);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
}
.quote-num {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--brass);
  font-weight: 700;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 2rem 0.7rem 0;
  border: none;
  padding: 0;
}
.quote-source {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  color: var(--oxblood);
  margin-bottom: 0.5rem;
}
.quote-source a { color: var(--oxblood); font-weight: 700; }
.quote-context {
  font-size: 0.88rem;
  color: var(--steel);
  line-height: 1.5;
  margin: 0;
}

/* === Nav dropdown (CSS-only, hover on desktop) === */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  cursor: pointer;
  display: inline-block;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  flex-direction: column;
  background: var(--ink-deep);
  padding: 0.6rem 0;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  z-index: 70;
  border-radius: 0 0 6px 6px;
}
.nav-dropdown-menu a {
  padding: 0.5rem 1.2rem;
  white-space: nowrap;
  border-bottom: none !important;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

@media (max-width: 860px) {
  .nav-dropdown-trigger {
    font-weight: 700;
    opacity: 0.75;
    pointer-events: none;
  }
  .nav-dropdown-menu {
    display: flex;
    position: static;
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0.3rem 0 0 0.9rem;
  }
}

/* === Study Guides page === */
.study-category {
  margin-top: 2.8rem;
}
.study-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 1.4rem;
}
.study-card {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.14);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin-bottom: 1.8rem;
}
.study-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 0.2rem;
}
.study-card-title a { color: inherit; text-decoration: none; }
.study-card-title a:hover { color: var(--oxblood); }
.study-sub {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--oxblood);
  margin: 1.1rem 0 0.5rem;
  font-weight: 700;
}
.study-sub:first-of-type { margin-top: 0.9rem; }
.study-card p {
  font-size: 0.94rem;
  color: #2c3447;
  line-height: 1.6;
  margin: 0 0 0.6rem;
}
.study-char-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.study-char-list li {
  font-size: 0.92rem;
  color: #2c3447;
  line-height: 1.5;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(26,35,50,0.08);
}
.study-char-list li:first-child { border-top: none; }
.study-char-list strong {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
}
.study-questions {
  margin: 0;
  padding-left: 1.3rem;
}
.study-questions li {
  font-size: 0.92rem;
  color: #2c3447;
  line-height: 1.55;
  margin-bottom: 0.55rem;
}

/* === Legacy page === */
.legacy-portrait-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 1.6rem 0 2rem;
}
.legacy-portrait-row figure {
  flex: 0 0 240px;
  max-width: 320px;
  margin: 0;
}
.legacy-portrait-row img {
  width: 100%;
  display: block;
  border: 6px solid var(--white-ish);
  outline: 1px solid rgba(26,35,50,0.18);
  box-shadow: 0 8px 22px rgba(16,21,31,0.18);
}
.legacy-portrait-row figcaption {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--steel);
  margin-top: 0.5rem;
  text-align: center;
}
.legacy-timeline {
  border-left: 3px solid var(--brass);
  margin: 1.6rem 0 2rem;
  padding-left: 1.4rem;
}
.legacy-timeline-item {
  position: relative;
  margin-bottom: 1.3rem;
}
.legacy-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.86rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--oxblood);
}
.legacy-timeline-year {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--oxblood);
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}
.legacy-timeline-item p {
  margin: 0;
  font-size: 0.94rem;
  color: #2c3447;
  line-height: 1.5;
}

/* Links inside trivia-card headings (used on the home page overview grid) */
.trivia-card h3 a {
  color: inherit;
  text-decoration: none;
}
.trivia-card h3 a:hover {
  text-decoration: underline;
}

/* === Contact page === */
.contact-reasons {
  margin: 1.6rem 0 2.2rem;
}
.contact-form {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.14);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  max-width: 640px;
  margin: 0 0 2rem;
}
.contact-form label {
  display: block;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  color: var(--steel);
  margin: 1rem 0 0.35rem;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(26,35,50,0.25);
  border-radius: 6px;
  background: var(--parchment);
  color: var(--ink);
  box-sizing: border-box;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--oxblood);
  outline-offset: 1px;
}
.contact-form .form-note {
  font-size: 0.82rem;
  color: var(--steel);
  margin-top: 0.4rem;
}
.contact-form .btn {
  margin-top: 1.4rem;
}
.contact-direct-email {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  margin: 0.5rem 0 2rem;
}
.contact-direct-email a {
  color: var(--oxblood);
  font-weight: 700;
}

/* === Glossary page === */
.glossary-category {
  margin-top: 2.6rem;
}
.glossary-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}
.glossary-entry {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.12);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-bottom: 0.9rem;
}
.glossary-term {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--oxblood);
  margin: 0 0 0.35rem;
  display: inline-block;
}
.glossary-entry p {
  margin: 0 0 0.4rem;
  font-size: 0.93rem;
  color: #2c3447;
  line-height: 1.5;
}
.glossary-seealso {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--steel);
  margin: 0;
}
.glossary-seealso a { color: var(--oxblood); font-weight: 600; }

/* === Quiz page === */
.quiz-score-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink-deep);
  color: var(--parchment);
  text-align: center;
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-radius: 0 0 8px 8px;
  margin-bottom: 1.6rem;
}
.quiz-score-bar strong { color: var(--brass-light); }
.quiz-category {
  margin-top: 2.6rem;
}
.quiz-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 1.3rem;
}
.quiz-question {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.14);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.q-num {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--brass);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.3rem;
}
.q-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.8rem;
  line-height: 1.4;
}
/* Multiple choice */
.q-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.q-option {
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  background: var(--parchment);
  border: 1px solid rgba(26,35,50,0.2);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.q-option:hover:not(:disabled) {
  border-color: var(--oxblood);
}
.q-option:disabled {
  cursor: default;
}
.q-option.correct {
  background: rgba(60,120,70,0.18);
  border-color: #3c7846;
  font-weight: 700;
}
.q-option.incorrect {
  background: rgba(122,29,29,0.14);
  border-color: var(--oxblood);
}
.q-explanation {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(26,35,50,0.1);
  font-size: 0.9rem;
  color: #2c3447;
  line-height: 1.5;
}
/* Open-ended */
.q-reveal-btn {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white-ish);
  background: var(--oxblood);
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
}
.q-reveal-btn:hover { opacity: 0.88; }
.q-answer {
  margin-top: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(168,125,46,0.09);
  border-left: 3px solid var(--brass);
  border-radius: 4px;
  font-size: 0.92rem;
  color: #3a3020;
  line-height: 1.5;
}
.q-answer.hidden { display: none; }

/* === FAQ page === */
.faq-category { margin-top: 2.6rem; }
.faq-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}
.faq-book-group {
  margin-bottom: 2rem;
}
.faq-book-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--oxblood);
  margin: 0 0 0.8rem;
}
.faq-book-title a { color: inherit; text-decoration: none; }
.faq-book-title a:hover { text-decoration: underline; }
.faq-item {
  border-bottom: 1px solid rgba(26,35,50,0.12);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.8rem 0.2rem;
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:hover { color: var(--oxblood); }
.faq-q .faq-icon {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brass);
  transition: transform 0.15s ease;
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 0.2rem 0.9rem;
  font-size: 0.92rem;
  color: #2c3447;
  line-height: 1.55;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* === Blog === */
.blog-post-card {
  background: var(--white-ish);
  border: 1px solid rgba(26,35,50,0.14);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.4rem;
}
.blog-post-date {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--brass);
  margin-bottom: 0.4rem;
}
.blog-post-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}
.blog-post-title a { color: var(--ink); text-decoration: none; }
.blog-post-title a:hover { color: var(--oxblood); }
.blog-post-excerpt {
  font-size: 0.95rem;
  color: #2c3447;
  line-height: 1.55;
  margin: 0 0 0.8rem;
}
.blog-read-more {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--oxblood);
}
/* Article page */
.blog-article-meta {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.blog-article-body {
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #232b3a;
}
.blog-article-body p { margin: 0 0 1.2rem; }
.blog-article-body h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
}
.blog-article-body blockquote {
  border-left: 3px solid var(--brass);
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  font-style: italic;
  color: var(--steel);
}
