/* ============================================
   KRUISWEG WIJK BIJ DUURSTEDE
   Gedeelde stijl — alle pagina's
   ============================================ */

:root {
  --ink: #1a1410;
  --ink-soft: #3a2e24;
  --ink-faint: #6b5a48;
  --parchment: #f3ead8;
  --parchment-deep: #e8dcc4;
  --parchment-light: #faf3e3;
  --gold: #a07a2c;
  --gold-soft: #c4a05a;
  --gold-pale: #d9bd80;
  --crimson: #6b1f1a;
  --crimson-soft: #8a3530;
  --shadow: rgba(26, 20, 16, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at top, #f7efdc 0%, var(--parchment) 40%, var(--parchment-deep) 100%);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
  mix-blend-mode: multiply;
}

.page {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 50px 40px 80px;
}

.page--wide {
  max-width: 1080px;
}

/* ——— Top navigation ——— */
.topnav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 40px 0;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

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

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

.topnav .home-link::before {
  content: "✠ ";
  color: var(--gold);
  margin-right: 6px;
}

.topnav .station-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.topnav .station-nav a.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ——— Language selector ——— */
.lang-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 50px;
  padding: 8px;
  background: rgba(26, 20, 16, 0.04);
  border: 1px solid rgba(26, 20, 16, 0.12);
  border-radius: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  padding: 10px 18px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 2px;
}

.lang-btn:hover {
  color: var(--crimson);
  background: rgba(160, 122, 44, 0.08);
}

.lang-btn.active {
  background: var(--ink);
  color: var(--parchment);
}

.lang-btn[data-lang="ar"] {
  font-family: 'Amiri', serif;
  font-size: 16px;
  letter-spacing: 0;
}

/* ——— Headers & ornaments ——— */
.ornament {
  text-align: center;
  margin-bottom: 30px;
  color: var(--gold);
  font-size: 24px;
  letter-spacing: 1em;
  user-select: none;
}

.station-number {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.station-number::before,
.station-number::after {
  content: "·";
  margin: 0 14px;
  color: var(--gold-soft);
}

h1.title {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* Big Roman numeral for station pages (replaces title) */
.station-roman {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: clamp(70px, 13vw, 120px);
  color: var(--ink);
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 10px 0 18px;
}

.station-roman::before,
.station-roman::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 30px;
  opacity: 0.5;
}

.subtitle {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  margin-bottom: 50px;
  opacity: 0.85;
}

/* ——— Image frame ——— */
.frame {
  position: relative;
  margin: 0 auto 50px;
  padding: 14px;
  background: linear-gradient(135deg, #2a1f15 0%, #4a3520 50%, #2a1f15 100%);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    0 20px 50px -10px rgba(26, 20, 16, 0.4),
    inset 0 0 0 1px rgba(196, 160, 90, 0.3);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  opacity: 0.5;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.05) brightness(0.98);
}

.frame--placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a1f15 0%, #4a3520 50%, #2a1f15 100%);
}

.frame--placeholder .placeholder-text {
  color: var(--gold-soft);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-align: center;
  opacity: 0.6;
  padding: 20px;
}

.caption {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 18px;
  opacity: 0.7;
}

/* ——— Audio control ——— */
.audio-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 40px;
  width: fit-content;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--parchment);
  border: none;
  padding: 14px 28px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(26, 20, 16, 0.2);
}

.play-btn:hover {
  background: var(--crimson);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107, 31, 26, 0.3);
}

.play-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.play-btn .icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.play-btn.playing { background: var(--crimson); }

/* Section play button — smaller, centered, more discreet than the station one */
.play-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.play-btn--section {
  padding: 10px 22px;
  font-size: 10px;
  letter-spacing: 0.25em;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--gold-soft);
  box-shadow: none;
  border-radius: 2px;
}

.play-btn--section .icon {
  width: 12px;
  height: 12px;
}

.play-btn--section:hover {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
  transform: none;
  box-shadow: 0 2px 6px rgba(26, 20, 16, 0.15);
}

.play-btn--section.playing {
  background: var(--crimson);
  color: var(--parchment);
  border-color: var(--crimson);
}

/* ——— Content / narrative ——— */
.content { position: relative; animation: fadeIn 0.6s ease; }
.content[hidden] { display: none; }

.content[dir="rtl"] {
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  font-size: 21px;
  line-height: 2;
  text-align: right;
}

.narrative {
  font-size: 19px;
  line-height: 1.85;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}

.narrative p {
  margin-bottom: 1.2em;
  text-indent: 0;
}

.narrative p:first-child::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em -0.05em 0;
  color: var(--crimson);
  font-weight: 500;
}

.content[dir="rtl"] .narrative p:first-child::first-letter {
  float: right;
  margin: 0.05em 0 -0.05em 0.12em;
  font-family: 'Amiri', serif;
  font-size: 3.2em;
}

/* ——— Prayer box ——— */
.prayer {
  margin-top: 50px;
  padding: 36px 40px;
  background:
    linear-gradient(180deg, rgba(160, 122, 44, 0.06) 0%, transparent 100%),
    rgba(243, 234, 216, 0.4);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  text-align: center;
  font-style: italic;
  font-size: 19px;
  line-height: 1.9;
  color: var(--ink-soft);
  position: relative;
}

.prayer::before {
  content: "✣";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--parchment);
  padding: 0 14px;
  color: var(--gold);
  font-size: 18px;
}

.prayer p { margin: 0; }

.prayer .invocation {
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.content[dir="rtl"] .prayer {
  text-align: center;
  font-style: normal;
}

/* ——— Footer ornament & bottom navigation ——— */
.footer-ornament {
  text-align: center;
  margin-top: 60px;
  color: var(--gold-soft);
  font-size: 18px;
  letter-spacing: 0.8em;
  opacity: 0.6;
}

.bottom-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(160, 122, 44, 0.3);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bottom-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  white-space: nowrap;
}

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

.bottom-nav .sep {
  color: var(--gold-soft);
  user-select: none;
  opacity: 0.6;
}

.bottom-nav a.disabled {
  opacity: 0.25;
  pointer-events: none;
}

.bottom-nav .home-link::before { content: "✠"; color: var(--gold); margin-right: 4px; }
.bottom-nav .external-link::after { content: " ↗"; color: var(--gold); opacity: 0.7; }

@media (max-width: 700px) {
  .bottom-nav { font-size: 10px; letter-spacing: 0.12em; }
  .bottom-nav a { padding: 6px 10px; }
  .bottom-nav .sep { display: none; }
}

/* ============================================
   HOMEPAGE-SPECIFIC
   ============================================ */

.hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 30px 0 50px;
  border-bottom: 1px solid rgba(160, 122, 44, 0.3);
}

.hero .eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(34px, 6vw, 56px);
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.hero .lede {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 21px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-nav {
  margin-top: 28px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

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

.hero-nav .sep {
  color: var(--gold);
  margin: 0 6px;
  user-select: none;
}

section.essay {
  margin-bottom: 70px;
}

section.essay h2 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-align: center;
}

section.essay h2 + .section-divider {
  text-align: center;
  color: var(--gold-soft);
  margin: 12px 0 30px;
  font-size: 14px;
  letter-spacing: 0.6em;
}

section.essay p {
  margin-bottom: 1.2em;
  text-align: justify;
  hyphens: auto;
}

section.essay > p:first-of-type::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 3.6em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em -0.05em 0;
  color: var(--crimson);
  font-weight: 500;
}

.pull-quote {
  margin: 40px auto;
  padding: 24px 30px;
  border-left: 3px solid var(--gold);
  background: rgba(160, 122, 44, 0.05);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 90%;
}

.fact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 40px 0;
  border: 1px solid rgba(160, 122, 44, 0.4);
  background: rgba(243, 234, 216, 0.3);
}

.fact-card .fact {
  padding: 20px 26px;
  border-right: 1px solid rgba(160, 122, 44, 0.25);
  border-bottom: 1px solid rgba(160, 122, 44, 0.25);
}

.fact-card .fact:nth-child(2n) { border-right: none; }
.fact-card .fact:nth-last-child(-n+2) { border-bottom: none; }

.fact-card .label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fact-card .value {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.4;
}

/* ——— Stations grid ——— */
.stations-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(160, 122, 44, 0.3);
}

.stations-section h2 {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.stations-section .section-intro {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.station-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--parchment-light);
  border: 1px solid rgba(160, 122, 44, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.station-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 24px -8px rgba(26, 20, 16, 0.25);
}

.station-card .card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2a1f15 0%, #4a3520 50%, #2a1f15 100%);
  position: relative;
  overflow: hidden;
}

.station-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(0.95);
  transition: transform 0.5s ease;
}

.station-card:hover .card-image img { transform: scale(1.04); }

.station-card .card-image .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.5;
  text-align: center;
  padding: 0 20px;
}

.station-card .card-roman {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-pale);
  background: rgba(26, 20, 16, 0.7);
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}

.station-card .card-body {
  padding: 18px 20px 20px;
}

.station-card .card-number {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.station-card .card-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ——— Loader ——— */
.loader {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.6;
}

.error {
  text-align: center;
  padding: 60px 20px;
  color: var(--crimson);
  font-style: italic;
}

/* ——— Animations ——— */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Mobile ——— */
@media (max-width: 600px) {
  .page { padding: 30px 20px 60px; }
  .topnav { padding: 18px 20px 0; font-size: 10px; letter-spacing: 0.15em; }
  .topnav .station-nav { gap: 10px; }
  .lang-bar { gap: 4px; padding: 6px; }
  .lang-btn { padding: 8px 12px; font-size: 11px; letter-spacing: 0.12em; }
  .narrative { font-size: 17px; }
  .prayer { padding: 28px 22px; font-size: 17px; }
  .frame { padding: 8px; }
  .frame::before { inset: 4px; }
  .stations-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .station-card .card-body { padding: 14px 14px 16px; }
  .station-card .card-title { font-size: 13px; }
  .fact-card { grid-template-columns: 1fr; }
  .fact-card .fact { border-right: none; }
  .fact-card .fact:nth-last-child(2) { border-bottom: 1px solid rgba(160, 122, 44, 0.25); }
  .pull-quote { font-size: 19px; margin: 30px 0; padding: 18px 20px; }
}
