:root {
  --mora-leaf-ink: #718653;
  --mora-leaf-opacity: .30;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --mora-leaf-ink: #a5ba7e;
    --mora-leaf-opacity: .29;
  }
}
:root[data-theme="dark"] {
  --mora-leaf-ink: #a5ba7e;
  --mora-leaf-opacity: .29;
}
:root[data-theme="cyanotype"] {
  --mora-leaf-ink: #65b3d4;
  --mora-leaf-opacity: .34;
}

body { isolation: isolate; }
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  pointer-events: none;
  width: clamp(255px, 38vw, 480px);
  height: min(92vh, 760px);
  right: 0;
  bottom: 0;
  background: var(--mora-leaf-ink);
  opacity: var(--mora-leaf-opacity);
  -webkit-mask: url("media/mora-flower-border.svg?v=classic-20261110") center bottom / contain no-repeat;
  mask: url("media/mora-flower-border.svg?v=classic-20261110") center bottom / contain no-repeat;
  transform-origin: 74% 94%;
  animation: mora-botanical-sway 9s ease-in-out infinite alternate;
}
@keyframes mora-botanical-sway {
  from { transform: translateX(4px) rotate(1.5deg); }
  to { transform: translateX(-13px) rotate(-2.5deg); }
}
@media (max-width: 700px) {
  body::after { width: clamp(165px, 48vw, 255px); right: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}
@media print {
  body::after { display: none; }
}

/* Guides and policy pages use their own layout and inherit the site's theme. */
:root[data-theme="dark"] body.mora-standalone {
  --bg: #1b1b12; --ink: #eeedea; --soft: #c3b49f; --moss: #c3b49f; --line: #3e3e2c;
  color-scheme: dark;
}
:root[data-theme="light"] body.mora-standalone {
  --bg: #eeedea; --ink: #2b241b; --soft: #5b5446; --moss: #3a3b24; --line: #d5d0c4;
  color-scheme: light;
}
:root[data-theme="cyanotype"] body.mora-standalone {
  --bg: #10354b; --surface: #18465e; --ink: #f2eddb; --soft: #bdced2;
  --ink-soft: #bdced2; --moss: #ecd09a; --em: #ecd09a; --line: #527586;
  --brand: #1a435a; --warn-bg: #1e4e66; --warn-line: #7493a1;
  color-scheme: dark;
}
