/* Guru Rinpoche: The Mural Path — shared styles */
:root {
  --primary: #6b0d0a;
  --primary-accent: #8b261e;
  --secondary: #7b5800;
  --gold: #b88a2a;
  --on-bg: #1b1c19;
  --on-muted: #57423f;
  --outline: #d8c8b8;
  --outline-strong: #8b716e;
  --bg: #ffffff;
  --bg-soft: #fbfaf7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--on-bg);
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--outline);
  background: #fff;
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  font-family: "Newsreader", "Noto Serif", serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-accent);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.site-nav a {
  font-family: "Newsreader", "Noto Serif", serif;
  font-style: italic;
  font-size: 17px;
  color: #6f6862;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.site-nav a:hover { color: var(--primary-accent); }
.site-nav a.active {
  color: var(--primary-accent);
  border-bottom-color: var(--primary-accent);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--primary-accent);
  cursor: pointer;
}
@media (max-width: 820px) {
  .site-header .inner { padding: 18px 20px; }
  .brand { font-size: 14px; letter-spacing: 0.18em; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--outline);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    z-index: 40;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--outline);
    width: 100%;
    border-bottom-color: var(--outline);
  }
  .site-nav a.active { background: #faf6f1; }
}

/* ---------- Layout ---------- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px 140px;
}
@media (max-width: 720px) {
  .page { padding: 36px 20px 120px; }
}

.panel-eyebrow {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 18px;
}
.panel-title {
  font-family: "Newsreader", serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--on-bg);
  text-align: center;
  margin: 0 0 28px;
}
.divider {
  width: 56px;
  height: 1px;
  background: var(--outline-strong);
  margin: 28px auto 56px;
  opacity: 0.5;
}

/* ---------- Mural image ---------- */
.mural-figure {
  margin: 0 0 56px;
}
.mural-frame {
  position: relative;
  background: #fff;
  border: 1px solid var(--outline);
  padding: 14px;
  cursor: zoom-in;
  overflow: hidden;
  transition: box-shadow .3s;
}
.mural-frame:hover {
  box-shadow: 0 4px 32px rgba(107,13,10,0.08);
}
.mural-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.mural-frame::after {
  content: "⤢ click to zoom";
  position: absolute;
  bottom: 18px; right: 20px;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-accent);
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border: 1px solid var(--outline);
  pointer-events: none;
}
.mural-caption {
  margin: 16px 4px 0;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-muted);
  opacity: 0.75;
  text-align: center;
}

/* ---------- Body text ---------- */
.body-text {
  max-width: 760px;
  margin: 0 auto;
}
.body-text p {
  font-size: 18px;
  line-height: 1.85;
  margin: 0 0 1.4em;
  color: var(--on-bg);
}
.body-text p:first-of-type::first-letter {
  font-family: "Newsreader", serif;
  font-size: 3.2em;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--primary);
  font-weight: 300;
}
.pullquote {
  margin: 56px auto;
  max-width: 700px;
  padding: 36px 28px;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  text-align: center;
}
.pullquote blockquote {
  margin: 0 0 12px;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  color: var(--primary);
}
.pullquote cite {
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-muted);
}
.pullquote.inline {
  margin: 36px auto;
  max-width: 680px;
  padding: 24px 24px;
}
.pullquote.inline blockquote { font-size: clamp(18px, 2vw, 22px); }
.section-heading {
  margin: 48px auto 16px;
  max-width: 720px;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
}
.section-heading::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto 0;
}
.tibetan-line {
  font-family: "Kailasa", "Noto Serif Tibetan", serif;
  font-size: 24px;
  text-align: center;
  color: var(--primary);
  margin: 24px 0 6px;
  line-height: 1.6;
}
.translit {
  text-align: center;
  font-style: italic;
  color: var(--on-muted);
  margin: 0 0 8px;
  font-size: 16px;
}
.aspiration-stanza p { margin: 4px 0; }
.aspiration-stanza .english {
  text-align: center;
  font-family: "Newsreader", serif;
  font-size: 19px;
  color: var(--on-bg);
}
.aspiration-block { margin: 24px auto 0; max-width: 720px; }
.aspiration-block .author {
  text-align: center;
  margin-top: 24px;
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-muted);
}
.intro-source {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: left;
  color: var(--on-muted);
  font-size: 16px;
  line-height: 1.8;
}
.intro-source p { margin: 0 0 14px; }
.intro-source .small-note {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 24px;
}
/* ---------- Section tabs (panel 9) ---------- */
.section-tabs {
  display: flex;
  gap: 0;
  max-width: 880px;
  margin: 32px auto 0;
  border-bottom: 1px solid var(--outline);
  position: relative;
}
.section-tab {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 18px 16px 16px;
  cursor: pointer;
  text-align: center;
  font-family: "Noto Serif", Georgia, serif;
  color: var(--on-muted);
  transition: color .2s, border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: -1px;
}
.section-tab .tab-letter {
  font-family: "Newsreader", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--gold);
  transition: color .2s;
}
.section-tab .tab-label {
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-muted);
  transition: color .2s;
}
.section-tab .tab-label em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
}
.section-tab:hover {
  background: var(--bg-soft);
}
.section-tab:hover .tab-letter,
.section-tab:hover .tab-label {
  color: var(--primary);
}
.section-tab.active {
  border-bottom-color: var(--primary);
}
.section-tab.active .tab-letter {
  color: var(--primary);
  font-weight: 700;
}
.section-tab.active .tab-label {
  color: var(--on-bg);
}
.section-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}
.tab-pane { animation: tab-fade .35s ease; }
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tab-pane > .section-heading:first-child { margin-top: 32px; }
@media (max-width: 600px) {
  .section-tab { padding: 14px 8px 12px; }
  .section-tab .tab-letter { font-size: 22px; }
  .section-tab .tab-label { font-size: 9px; letter-spacing: 0.16em; }
}
/* No drop cap for paragraphs that follow a quote/heading */
.body-text .no-dropcap::first-letter,
.body-text > .pullquote + p::first-letter,
.body-text > .section-heading + p::first-letter { all: unset; }

/* ---------- Footer Nav ---------- */
.footer-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: 68px;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  z-index: 30;
}
.footer-nav a, .footer-nav span.disabled {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8b88a;
  transition: color .25s, background .25s;
  max-width: 50%;
}
.footer-nav a:hover { color: #fff3c0; background: #222; }
.footer-nav span.disabled { color: #555; cursor: default; }
.footer-nav .arrow { font-size: 18px; line-height: 1; }
.footer-nav .center-marker {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: #6b6660;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
@media (max-width: 540px) {
  .footer-nav .center-marker { display: none; }
  .footer-nav a, .footer-nav span.disabled { font-size: 10px; letter-spacing: 0.15em; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,12,10,0.96);
  display: none;
  z-index: 100;
  cursor: grab;
  overflow: hidden;
}
.lightbox.open { display: block; }
.lightbox.dragging { cursor: grabbing; }
.lightbox img {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.05s linear;
}
.lightbox-close, .lightbox-zoom-in, .lightbox-zoom-out, .lightbox-reset {
  position: absolute;
  top: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px; height: 44px;
  cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Work Sans", sans-serif;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-zoom-in:hover, .lightbox-zoom-out:hover, .lightbox-reset:hover {
  background: rgba(255,255,255,0.18);
}
.lightbox-close { right: 24px; }
.lightbox-zoom-in { right: 80px; }
.lightbox-zoom-out { right: 132px; }
.lightbox-reset { right: 184px; font-size: 14px; letter-spacing: 0.1em; }
.lightbox-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- Introduction page ---------- */
.intro-hero {
  min-height: calc(100vh - 80px - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 100px;
  max-width: 820px;
  margin: 0 auto;
}
.intro-emblem {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto 36px;
  box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--outline);
}
.journey-buddha .intro-emblem {
  background: var(--secondary);
  box-shadow: 0 0 0 8px #fff, 0 0 0 9px rgba(123, 88, 0, 0.25);
}
.intro-hero h1 {
  font-family: "Newsreader", serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--primary);
  margin: 0 0 20px;
}
.intro-hero .subtitle {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 56px;
}
.invocation {
  position: relative;
  padding: 40px 24px;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  margin-bottom: 56px;
}
.invocation p {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.7;
  color: var(--on-bg);
  margin: 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--primary);
  color: #fff;
  padding: 18px 42px;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.cta:hover { background: var(--primary-accent); }
.cta:active { transform: scale(0.97); }
.cta .arrow { font-size: 18px; }
.intro-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
  width: 100%;
  text-align: left;
}
.intro-meta > div { border-top: 1px solid var(--outline); padding-top: 18px; }
.intro-meta dt {
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8a09a;
  margin-bottom: 6px;
}
.intro-meta dd {
  font-family: "Noto Serif", serif;
  font-style: italic;
  color: var(--on-muted);
  margin: 0;
  font-size: 15px;
}
@media (max-width: 640px) {
  .intro-meta { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Placeholder for missing image ---------- */
.mural-placeholder {
  border: 1px dashed var(--outline-strong);
  background: #faf6f1;
  padding: 80px 32px;
  text-align: center;
  font-family: "Newsreader", serif;
  font-style: italic;
  color: var(--on-muted);
  margin-bottom: 56px;
}
.mural-placeholder .small {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 14px;
  color: #a8a09a;
}
