/* History Canvass — Medieval Manuscript Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #5c3d2e;
  --primary-dark: #3e2a1e;
  --primary-light: #8b6f5e;
  --gold: #c5a55a;
  --gold-light: #e8d5a3;
  --cream: #f5f0e8;
  --cream-dark: #e8dfd0;
  --text: #2c1810;
  --text-light: #6b5b4f;
  --border: #d4c5b0;
  --bg-white: #faf8f4;
}

body.style-medieval-manuscript {
  font-family: 'Open Sans', Georgia, serif;
  color: var(--text);
  background-color: var(--bg-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.style-medieval-manuscript h1,
body.style-medieval-manuscript h2,
body.style-medieval-manuscript h3,
body.style-medieval-manuscript h4 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary);
  line-height: 1.35;
}

/* Ornamental divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--gold);
}
.ornament-divider span {
  color: var(--gold);
  font-size: 1.25rem;
}

/* Article content typography */
.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-light);
}
.article-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--cream);
  font-style: italic;
  color: var(--text-light);
}

/* Image caption */
.image-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Nav active */
.nav-link-active {
  color: var(--gold) !important;
  border-bottom: 2px solid var(--gold);
}

/* FAQ accordion */
.faq-question {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.faq-question:hover {
  background-color: var(--cream);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
}

/* Card hover */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(92,61,46,0.12);
}

/* Gold border accent */
.gold-border-top {
  border-top: 3px solid var(--gold);
}

/* Mobile nav */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 500px;
}

/* Cookie consent */
#cookie-consent {
  transition: transform 0.3s ease;
}

/* Reading progress bar */
#reading-progress {
  height: 3px;
  background: var(--gold);
  width: 0%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

/* Gallery */
.gallery-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* Article hero */
.article-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

/* Internal links box */
.internal-links-box {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
