/* ============================================
   HISTORIE & RONDLEIDING — extra stijl
   bovenop de gemeenschappelijke style.css
   ============================================ */

/* ——— Top nav ——— */
.historie-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(160, 122, 44, 0.25);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.historie-topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

.historie-topnav a:hover { color: var(--crimson); }

/* ——— Intro essay ——— */
.essay--intro {
  max-width: 720px;
  margin: 30px auto 50px;
}

.essay--intro p {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 1em;
}

/* Disable inherited drop-cap inside intro - we handle our own */
.essay--intro p:first-of-type::first-letter {
  font-size: inherit;
  float: none;
  margin: 0;
  color: inherit;
  font-weight: inherit;
  font-family: inherit;
}

/* Re-enable a single drop cap on the FIRST opening paragraph */
.essay--intro .opening-paragraph::first-letter {
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em 0 0;
  color: var(--crimson);
  font-weight: 500;
}

/* For the rest of the historie page sections, we don't want drop caps —
   the period-labels (h3) make many short blocks where drop caps look messy */
.essay#geschiedenis > p:first-of-type::first-letter,
.essay#rondleiding > p:first-of-type::first-letter,
.essay#ramen > p:first-of-type::first-letter,
.essay#kunstschatten > p:first-of-type::first-letter,
.essay#klokken > p:first-of-type::first-letter,
.essay#colofon > p:first-of-type::first-letter {
  font-size: inherit;
  float: none;
  margin: 0;
  color: inherit;
  font-weight: inherit;
  font-family: inherit;
}

/* Disable drop cap inside any nested call-out blocks within an essay */
.essay .aside p::first-letter,
.essay .curiosity p::first-letter,
.essay .saint p::first-letter,
.essay .object p::first-letter,
.essay .bell p::first-letter,
.essay blockquote p::first-letter,
.essay .ramen-lijst li::first-letter {
  font-size: inherit;
  float: none;
  margin: 0;
  color: inherit;
  font-weight: inherit;
  font-family: inherit;
}

/* ——— Table of contents ——— */
.toc {
  max-width: 540px;
  margin: 0 auto 50px;
  padding: 30px 36px;
  background: rgba(243, 234, 216, 0.4);
  border-top: 1px solid rgba(160, 122, 44, 0.3);
  border-bottom: 1px solid rgba(160, 122, 44, 0.3);
}

.toc-label {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.toc-list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}

.toc-list li {
  counter-increment: toc;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(160, 122, 44, 0.25);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.toc-list li:last-child { border-bottom: none; }

.toc-list li::before {
  content: counter(toc, upper-roman) ".";
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  min-width: 30px;
  text-align: right;
  letter-spacing: 0.05em;
}

.toc-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  flex: 1;
  transition: color 0.3s ease;
}

.toc-list a:hover { color: var(--crimson); }

/* ——— Sub-headers (period labels) ——— */
.period-label {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  margin: 50px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(160, 122, 44, 0.4);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.period-label .num {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.15em;
  background: rgba(160, 122, 44, 0.08);
  padding: 4px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

/* First period-label after section header gets less top margin */
.section-divider + .period-label,
.section-intro + .period-label {
  margin-top: 30px;
}

/* ——— Body paragraphs in essay ——— */
section.essay p {
  margin-bottom: 1em;
}

section.essay p + p {
  text-indent: 0;
}

.section-intro {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ——— Aside / sidebar callout ——— */
.aside {
  background: rgba(243, 234, 216, 0.5);
  border-left: 3px solid var(--gold-soft);
  padding: 18px 24px;
  margin: 24px 0;
  font-size: 17px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.65;
}

.aside p { margin-bottom: 0.8em; }
.aside p:last-child { margin-bottom: 0; }

.aside-link {
  font-style: normal;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 10px !important;
}

.aside-link a {
  color: var(--crimson);
  text-decoration: none;
}

.aside-link a:hover { text-decoration: underline; }

/* ——— Curiosity callout (special styling for "did you know") ——— */
.curiosity {
  background: linear-gradient(180deg, rgba(160, 122, 44, 0.06), rgba(160, 122, 44, 0.02));
  border: 1px solid rgba(160, 122, 44, 0.3);
  border-radius: 2px;
  padding: 22px 28px;
  margin: 30px 0;
  position: relative;
}

.curiosity::before {
  content: "✣";
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--parchment);
  color: var(--gold);
  padding: 0 10px;
  font-size: 18px;
}

.curiosity-label {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.curiosity p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ——— Latin quotes ——— */
blockquote.latin {
  background: rgba(243, 234, 216, 0.45);
  border-left: 2px solid var(--gold);
  padding: 16px 24px;
  margin: 24px auto;
  max-width: 600px;
  text-align: center;
}

blockquote.latin p[lang="la"] {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

blockquote.latin .translation {
  font-size: 15px;
  color: var(--ink-faint);
  font-style: italic;
}

/* ——— Saints list ——— */
.saint-list {
  margin: 24px 0;
  display: grid;
  gap: 24px;
}

.saint {
  padding: 20px 24px;
  background: rgba(243, 234, 216, 0.35);
  border-left: 2px solid var(--gold-soft);
}

.saint h4 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.saint .years {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.saint p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 0.6em;
}

.saint p:last-child { margin-bottom: 0; }

.saint-local {
  font-style: italic;
  color: var(--crimson);
  font-size: 15px !important;
}

/* ——— Object list ——— */
.object {
  padding: 18px 0 18px 24px;
  border-left: 2px solid rgba(160, 122, 44, 0.25);
  margin: 20px 0;
}

.object h4 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.object .years {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  font-weight: 400;
}

.object p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 0.6em;
}

.object p:last-child { margin-bottom: 0; }

/* ——— Lists for stained-glass windows ——— */
.ramen-lijst {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.ramen-lijst li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px dotted rgba(160, 122, 44, 0.25);
  font-size: 17px;
  line-height: 1.6;
  position: relative;
}

.ramen-lijst li::before {
  content: "❖";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--gold);
  font-size: 12px;
}

.ramen-lijst li:last-child { border-bottom: none; }

/* ——— Bells ——— */
.bell-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

@media (max-width: 720px) {
  .bell-list { grid-template-columns: 1fr; gap: 14px; }
}

.bell {
  text-align: center;
  padding: 24px 18px;
  background: rgba(243, 234, 216, 0.5);
  border-top: 2px solid var(--gold-soft);
  border-bottom: 2px solid var(--gold-soft);
  position: relative;
}

.bell-tone {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.bell h4 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.bell-stats {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.bell blockquote.latin {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.bell blockquote.latin p[lang="la"] {
  font-size: 16px;
}

.bell blockquote.latin .translation {
  font-size: 13px;
}

/* ——— Pull quote in essay ——— */
.essay blockquote.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
  margin: 30px auto;
  padding: 0 30px;
  max-width: 640px;
  position: relative;
  border: none;
}

.essay blockquote.pull-quote::before,
.essay blockquote.pull-quote::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 14px auto;
  opacity: 0.5;
}

/* ——— Colofon ——— */
.essay--colophon {
  max-width: 640px;
  margin: 60px auto 40px;
}

.colophon-intro {
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.credits {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 30px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(160, 122, 44, 0.25);
}

.credits dt {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 4px;
}

.credits dd {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .credits { grid-template-columns: 1fr; gap: 4px 0; }
  .credits dd { margin-bottom: 14px; }
}

/* ——— Bottom navigation ——— */
.bottom-nav-historie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(160, 122, 44, 0.3);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bottom-nav-historie a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  transition: color 0.3s ease;
}

.bottom-nav-historie a:hover { color: var(--crimson); }

@media (max-width: 600px) {
  .bottom-nav-historie {
    flex-direction: column;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 0.15em;
  }
}

/* ——— Mobile ——— */
@media (max-width: 700px) {
  .period-label {
    font-size: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .period-label .num {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .toc { padding: 24px 24px; }
  .toc-list a { font-size: 16px; }
  .opening-paragraph::first-letter {
    font-size: 2.6em;
  }
}

/* ——— Historic photographs / figures ——— */
.historie-figure {
  margin: 30px auto;
  max-width: 480px;
  text-align: center;
}

.historie-figure--wide {
  max-width: 760px;
}

.historie-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 2px 14px rgba(26, 20, 16, 0.18);
  /* Subtle warm tone matching the parchment palette */
  filter: sepia(0.12) contrast(1.02);
}

.historie-figure figcaption {
  margin-top: 14px;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .historie-figure { margin: 20px auto; }
  .historie-figure figcaption { font-size: 14px; }
}

/* ——— Paired figures: two photos side by side ——— */
.historie-figure-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin: 30px auto;
  max-width: 760px;
}

.historie-figure-pair .historie-figure--paired {
  flex: 1 1 320px;
  max-width: 360px;
  margin: 0;
}

.historie-figure-pair .historie-figure--paired img {
  width: 100%;
  height: auto;
  /* Equalise visual weight: pair items get a slightly stronger frame */
  box-shadow: 0 2px 12px rgba(26, 20, 16, 0.16);
}

.historie-figure-pair .historie-figure--paired figcaption {
  margin-top: 12px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .historie-figure-pair { gap: 16px; margin: 20px auto; }
  .historie-figure-pair .historie-figure--paired { flex: 1 1 100%; max-width: 100%; }
}
