/* animisha.dev/vegan — mystical animated papyrus atmosphere */
.vegan-page {
  --papyrus-base: #f3e6c8;
  --papyrus-mid: #e8d4ad;
  --papyrus-edge: #c9a66b;
  --papyrus-ink: #3d2914;
  --papyrus-muted: #6b4f2e;
  --papyrus-shadow: rgba(61, 41, 20, 0.22);
  --papyrus-glow: rgba(201, 166, 107, 0.35);
  --vegan-bg: #2a1f12;
  position: relative;
  color: var(--papyrus-ink);
  min-height: 100vh;
  background: var(--vegan-bg);
  overflow-x: hidden;
}

.vegan-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.vegan-papyrus-bg {
  position: absolute;
  inset: -6%;
  background:
    url("../assets/vegan-papyrus-bg.png?v=20260908d") center center / cover no-repeat;
  transform-origin: center center;
  animation: vegan-papyrus-drift 48s ease-in-out infinite alternate;
  will-change: transform;
}

.vegan-glow-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 12%, rgba(255, 244, 220, 0.42), transparent 58%),
    radial-gradient(ellipse 60% 40% at 82% 70%, rgba(255, 210, 120, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(42, 31, 18, 0.08) 0%, rgba(42, 31, 18, 0.38) 100%);
  animation: vegan-glow-breathe 14s ease-in-out infinite;
}

.vegan-shimmer {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 248, 230, 0.07) 48%,
    rgba(255, 220, 160, 0.14) 50%,
    rgba(255, 248, 230, 0.07) 52%,
    transparent 62%
  );
  animation: vegan-shimmer-pass 22s linear infinite;
  mix-blend-mode: soft-light;
}

.vegan-dust {
  position: absolute;
  inset: 0;
}

.vegan-dust-mote {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, var(--alpha)), rgba(255, 220, 150, 0));
  box-shadow: 0 0 8px rgba(255, 230, 180, calc(var(--alpha) * 0.6));
  animation: vegan-dust-float var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes vegan-papyrus-drift {
  0% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.1) translate3d(-1.2%, 1.4%, 0);
  }
}

@keyframes vegan-glow-breathe {
  0%, 100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

@keyframes vegan-shimmer-pass {
  0% {
    transform: translate3d(-18%, -8%, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(18%, 8%, 0) rotate(0deg);
  }
}

@keyframes vegan-dust-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(var(--drift), -28px, 0) scale(1.25);
    opacity: 1;
  }
}

.vegan-page #page-root {
  position: relative;
  z-index: 1;
}

.vegan-page .radio-bar {
  position: relative;
  z-index: 1;
}

.vegan-page .vapor-scene,
.vegan-page .scanlines,
.vegan-page .glow {
  display: none;
}

/* Fixed papyrus topbar */
.vegan-page .site-topbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background:
    linear-gradient(180deg, rgba(255, 248, 235, 0.93) 0%, rgba(235, 215, 175, 0.88) 100%),
    url("../assets/vegan-papyrus-bg.png?v=20260908d") center top / cover no-repeat;
  border-bottom: 1px solid rgba(201, 166, 107, 0.65);
  box-shadow:
    0 4px 22px rgba(61, 41, 20, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px) saturate(1.1);
}

.vegan-page .site-topbar a,
.vegan-page .logo,
.vegan-page .logo-sub {
  color: var(--papyrus-ink) !important;
}

.vegan-page .logo span {
  color: #b8862b !important;
  text-shadow:
    0 0 10px rgba(255, 180, 60, 0.45),
    0 0 18px rgba(255, 140, 30, 0.25) !important;
}

.vegan-page .site-topbar nav a:hover,
.vegan-page .site-topbar nav a.is-active {
  color: #b45309 !important;
  text-shadow: 0 0 12px rgba(255, 160, 50, 0.55) !important;
}

/* Golden hour — V-Quantum & Foundation dropdowns */
.vegan-page .nav-dropdown--vquantum summary,
.vegan-page .nav-dropdown--foundation summary {
  color: #8b5a14;
}

.vegan-page .nav-dropdown--vquantum[open] summary,
.vegan-page .nav-dropdown--vquantum summary:hover,
.vegan-page .nav-dropdown--vquantum summary.is-active,
.vegan-page .nav-dropdown--foundation[open] summary,
.vegan-page .nav-dropdown--foundation summary:hover,
.vegan-page .nav-dropdown--foundation summary.is-active {
  color: #e8870a !important;
  text-shadow:
    0 0 10px rgba(255, 180, 60, 0.65),
    0 0 22px rgba(255, 140, 30, 0.35) !important;
}

.vegan-page .nav-dropdown--vquantum .nav-dropdown-panel,
.vegan-page .nav-dropdown--foundation .nav-dropdown-panel {
  background: linear-gradient(
    180deg,
    rgba(255, 248, 230, 0.96) 0%,
    rgba(240, 220, 180, 0.94) 100%
  );
  border: 1px solid rgba(232, 160, 60, 0.45);
  box-shadow:
    0 10px 36px rgba(61, 41, 20, 0.28),
    0 0 24px rgba(255, 170, 50, 0.18);
}

.vegan-page .nav-dropdown--vquantum .nav-dropdown-panel a:hover,
.vegan-page .nav-dropdown--vquantum .nav-dropdown-panel a.is-active,
.vegan-page .nav-dropdown--foundation .nav-dropdown-panel a:hover,
.vegan-page .nav-dropdown--foundation .nav-dropdown-panel a.is-active {
  color: #c2410c !important;
  background: rgba(255, 190, 80, 0.14) !important;
  text-shadow: 0 0 10px rgba(255, 160, 50, 0.45) !important;
}

.vegan-page .site-topbar a:hover {
  color: var(--papyrus-muted) !important;
}

.vegan-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
  text-align: center;
}

.vegan-hero h1 {
  font-family: "EB Garamond", "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--papyrus-ink);
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 24px rgba(255, 248, 230, 0.35);
}

.vegan-hero .vegan-sub {
  font-family: "Crimson Pro", "Palatino Linotype", serif;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-style: italic;
  color: var(--papyrus-muted);
  margin-bottom: 0.5rem;
}

.vegan-hero .vegan-sanskrit {
  font-family: "Noto Sans Devanagari", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3d1205;
  text-shadow:
    0 0 2px #ffb000,
    0 0 8px #ff8c00,
    0 0 18px #ff6a00,
    0 0 32px rgba(255, 100, 0, 0.75),
    0 1px 0 rgba(80, 20, 0, 0.9);
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.5));
  animation: vegan-sanskrit-fire 2.8s ease-in-out infinite alternate;
}

@keyframes vegan-sanskrit-fire {
  0% {
    text-shadow:
      0 0 2px #ffb000,
      0 0 10px #ff8c00,
      0 0 20px #ff5500,
      0 0 36px rgba(255, 90, 0, 0.7);
    filter: drop-shadow(0 0 4px rgba(255, 120, 0, 0.45));
  }
  100% {
    text-shadow:
      0 0 4px #ffd060,
      0 0 14px #ff9500,
      0 0 28px #ff6600,
      0 0 48px rgba(255, 120, 0, 0.9);
    filter: drop-shadow(0 0 10px rgba(255, 160, 40, 0.7));
  }
}

.vegan-scroll {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

/* Clear glass feature panels — frost only on raised quotes */
.vegan-glass {
  background:
    linear-gradient(
      145deg,
      rgba(255, 252, 244, 0.14) 0%,
      rgba(255, 248, 235, 0.08) 45%,
      rgba(232, 212, 173, 0.05) 100%
    );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 8px 32px rgba(61, 41, 20, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(201, 166, 107, 0.18);
}

.vegan-filigree-box {
  position: relative;
  border-radius: 8px;
  overflow: visible;
}

.vegan-filigree-box::before,
.vegan-filigree-box::after {
  display: none;
}

.vegan-filigree-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.vegan-filigree-corners span {
  position: absolute;
  width: 48px;
  height: 48px;
  background: url("../assets/vegan-filigree-corner.svg") center / contain no-repeat;
  opacity: 0.78;
}

.vegan-filigree-corners span:nth-child(1) {
  top: 4px;
  left: 4px;
}

.vegan-filigree-corners span:nth-child(2) {
  top: 4px;
  right: 4px;
  transform: scaleX(-1);
}

.vegan-filigree-corners span:nth-child(3) {
  bottom: 4px;
  left: 4px;
  transform: scaleY(-1);
}

.vegan-filigree-corners span:nth-child(4) {
  bottom: 4px;
  right: 4px;
  transform: scale(-1, -1);
}

.vegan-filigree-corners--ornate span {
  width: 76px;
  height: 76px;
  opacity: 0.92;
  filter: drop-shadow(0 0 8px rgba(255, 170, 50, 0.4));
}

/* Ahimsa box — lotus-leaf filigree, warm gold */
.vegan-filigree-corners--ahimsa span {
  width: 72px;
  height: 72px;
  background-image: url("../assets/vegan-filigree-ahimsa.svg");
  opacity: 0.94;
  filter: drop-shadow(0 0 10px rgba(255, 180, 60, 0.45));
}

.vegan-filigree-corners--sage span {
  width: 72px;
  height: 72px;
  background-image: url("../assets/vegan-filigree-sage.svg");
  opacity: 0.94;
  filter: drop-shadow(0 0 10px rgba(201, 166, 107, 0.5));
}

.vegan-filigree-corners--ahimsa span:nth-child(1),
.vegan-filigree-corners--ahimsa span:nth-child(2),
.vegan-filigree-corners--ahimsa span:nth-child(3),
.vegan-filigree-corners--ahimsa span:nth-child(4),
.vegan-filigree-corners--sage span:nth-child(1),
.vegan-filigree-corners--sage span:nth-child(2),
.vegan-filigree-corners--sage span:nth-child(3),
.vegan-filigree-corners--sage span:nth-child(4) {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.vegan-filigree-corners--ahimsa span:nth-child(1) { top: 2px; left: 2px; }
.vegan-filigree-corners--ahimsa span:nth-child(2) { top: 2px; right: 2px; transform: scaleX(-1); }
.vegan-filigree-corners--ahimsa span:nth-child(3) { bottom: 2px; left: 2px; transform: scaleY(-1); }
.vegan-filigree-corners--ahimsa span:nth-child(4) { bottom: 2px; right: 2px; transform: scale(-1, -1); }

.vegan-filigree-corners--sage span:nth-child(1) { top: 2px; left: 2px; }
.vegan-filigree-corners--sage span:nth-child(2) { top: 2px; right: 2px; transform: scaleX(-1); }
.vegan-filigree-corners--sage span:nth-child(3) { bottom: 2px; left: 2px; transform: scaleY(-1); }
.vegan-filigree-corners--sage span:nth-child(4) { bottom: 2px; right: 2px; transform: scale(-1, -1); }

.vegan-filigree-corners--ornate span:nth-child(1),
.vegan-filigree-corners--ornate span:nth-child(2),
.vegan-filigree-corners--ornate span:nth-child(3),
.vegan-filigree-corners--ornate span:nth-child(4) {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.vegan-filigree-corners--ornate span:nth-child(1) { top: 2px; left: 2px; }
.vegan-filigree-corners--ornate span:nth-child(2) { top: 2px; right: 2px; transform: scaleX(-1); }
.vegan-filigree-corners--ornate span:nth-child(3) { bottom: 2px; left: 2px; transform: scaleY(-1); }
.vegan-filigree-corners--ornate span:nth-child(4) { bottom: 2px; right: 2px; transform: scale(-1, -1); }

.vegan-filigree-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 8px;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, rgba(255, 220, 140, 0.55), rgba(201, 166, 107, 0.25)) border-box;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  z-index: 3;
}

.vegan-filigree-box--ornate {
  padding: 1.1rem;
  border: 1px solid rgba(232, 180, 90, 0.55);
  box-shadow:
    0 12px 40px rgba(61, 41, 20, 0.22),
    0 0 0 1px rgba(255, 220, 150, 0.25) inset,
    0 0 28px rgba(255, 170, 50, 0.12);
}

.vegan-filigree-box--ahimsa {
  padding: 1.05rem;
  border: 1px solid rgba(232, 175, 80, 0.5);
  box-shadow:
    0 12px 38px rgba(61, 41, 20, 0.2),
    0 0 0 1px rgba(255, 210, 130, 0.22) inset,
    0 0 24px rgba(255, 160, 50, 0.1);
}

.vegan-filigree-box--sage {
  padding: 1.05rem;
  border: 1px solid rgba(201, 166, 107, 0.58);
  box-shadow:
    0 12px 38px rgba(61, 41, 20, 0.2),
    0 0 0 1px rgba(232, 200, 140, 0.24) inset,
    0 0 22px rgba(184, 134, 43, 0.12);
}

.vegan-filigree-box--ornate .vegan-filigree-ring {
  inset: 8px;
  border-width: 3px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(201, 166, 107, 0.7) 0 6px,
      transparent 6px 12px
    ) border-box;
}

.vegan-filigree-ring--ahimsa {
  inset: 7px;
  border-width: 2px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(232, 180, 80, 0.65) 0 4px,
      transparent 4px 10px
    ) border-box;
}

.vegan-filigree-ring--sage {
  inset: 7px;
  border-width: 2px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(184, 134, 43, 0.55) 0 3px,
      rgba(201, 166, 107, 0.25) 3px 6px,
      transparent 6px 14px
    ) border-box;
}

.vegan-section {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.85rem 2rem;
  border-radius: 8px;
}

.vegan-section > * {
  position: relative;
  z-index: 1;
}

.vegan-section h2 {
  font-family: "EB Garamond", serif;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  color: var(--papyrus-ink);
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

.vegan-section p,
.vegan-section li {
  font-family: "Crimson Pro", "Palatino Linotype", serif;
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--papyrus-ink);
  margin-bottom: 0.85rem;
}

.vegan-section ul {
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
}

.vegan-pull {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--papyrus-edge);
  background: rgba(255, 252, 244, 0.42);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 16px rgba(61, 41, 20, 0.08);
  font-style: italic;
  color: var(--papyrus-muted);
  border-radius: 0 6px 6px 0;
}

.vegan-pdf-frame-wrap {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 920px;
}

.vegan-pdf-frame-wrap::before {
  content: "Modern Awareness of Diet Sutra";
  display: block;
  position: relative;
  z-index: 4;
  text-align: center;
  font-family: "EB Garamond", serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c3a12;
  padding: 0.15rem 0 0.65rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.vegan-pdf-frame {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: min(78vh, 920px);
  border: none;
  background: #f3e6c8;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(201, 166, 107, 0.45);
}

.vegan-pdf-fallback {
  display: none;
  text-align: center;
  padding: 1.5rem;
  font-family: "Crimson Pro", serif;
}

.vegan-pdf-fallback a {
  color: var(--papyrus-muted);
  text-decoration: underline;
}

.vegan-sage-seal {
  text-align: center;
  margin-top: 1.25rem;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--papyrus-edge);
}

.vegan-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.vegan-links-row a {
  font-family: "Crimson Pro", serif;
  color: var(--papyrus-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 79, 46, 0.35);
}

.vegan-links-row a:hover {
  color: var(--papyrus-ink);
}

.vegan-page footer {
  padding: 2rem 1.5rem 6.5rem;
  text-align: center;
  border-top: none !important;
}

.vegan-page .site-credits,
.vegan-page .site-credits a {
  color: var(--papyrus-muted) !important;
  font-family: "Crimson Pro", serif;
}

.vegan-page .radio-bar {
  background: rgba(61, 41, 20, 0.92);
  border-top: 1px solid var(--papyrus-edge);
}

@media (prefers-reduced-motion: reduce) {
  .vegan-papyrus-bg,
  .vegan-glow-veil,
  .vegan-shimmer,
  .vegan-dust-mote,
  .vegan-sanskrit {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .vegan-section {
    padding: 1.25rem 1.15rem;
  }

  .vegan-pdf-frame {
    min-height: 65vh;
  }

  .vegan-papyrus-bg {
    inset: -10%;
  }
}
