/* Rajasthani artwork for the page (drawn by art.js): the royal scroll
   board, marigolds, the camel and the fort. Motion is transform and opacity only, and stops for reduced motion. */

/* ------------------------------------------------------------ scroll board --- */

/* The board from the couple's reference: red velvet between two gold finial rods, maroon tassels
   from the top rod, a gold filigree crest and lace hem. --rb-w sets its width; everything else
   scales with it. */
.rb {
  --rb-w: 300px;
  position: relative;
  width: var(--rb-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: calc(var(--rb-w) / 300 * 16px);
  filter: drop-shadow(0 calc(var(--rb-w) * .05) calc(var(--rb-w) * .06) rgba(60, 10, 10, .32));
}
.rb__rod { position: relative; z-index: 2; display: block; width: 144%; height: auto; overflow: visible; }
.rb__rod--top { margin-bottom: -3.6%; }
.rb__rod--bottom { margin-top: -3.6%; }
.rb__cord {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2%);
  width: 1.5px;
  height: var(--rb-cord, 0px);
  margin-left: -.75px;
  background: linear-gradient(#C9963F, #E9C26A);
}
.rb__tassel { position: absolute; z-index: 3; top: 4.6%; width: 8.6%; height: auto; transform-origin: 50% 0; }
.rb__tassel--l { left: -15.4%; }
.rb__tassel--r { right: -15.4%; }
.rb__cloth {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 34%, rgba(255, 120, 110, .2), rgba(255, 120, 110, 0) 70%),
    linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, .28)),
    linear-gradient(#A5162A, #861020 60%, #6E0B19);
  box-shadow: inset 0 0 0 1px rgba(233, 194, 106, .35);
}
/* The double gold border inside the cloth. */
.rb__cloth::before, .rb__cloth::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(233, 194, 106, .85);
}
.rb__cloth::before { inset: 3.4% 4.6%; }
.rb__cloth::after { inset: 4.8% 6.2%; border-width: .5px; border-color: rgba(233, 194, 106, .5); }
.rb__crest { display: block; width: 100%; height: auto; aspect-ratio: 200 / 40; margin-top: 6%; }
.rb__lace { display: block; width: 88%; height: auto; aspect-ratio: 200 / 22; margin: 0 auto 7%; }
.rb__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3em;
  padding: .4em 1.4em 1.2em;
  text-align: center;
  color: #F7E3B6;
}
.rb__icon {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  border: 1px solid rgba(233, 194, 106, .7);
  font: 1.05em/1 Georgia, "Segoe UI Symbol", serif;
  color: #F2D27A;
}
.rb__title {
  margin-top: .2em;
  font: 400 2.05em/1.05 "Italiana", Georgia, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #F2D27A;
  background: linear-gradient(180deg, #FFF0BF 0%, #F2D27A 45%, #D4A24A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rb__rule { display: flex; align-items: center; gap: .6em; font-size: .5em; color: #E9C26A; margin: .5em 0 .3em; }
.rb__rule i { display: block; width: 3.2em; height: 1px; background: linear-gradient(90deg, rgba(233, 194, 106, 0), #E9C26A); }
.rb__rule i:last-child { transform: scaleX(-1); }
.rb__names { font: 400 1.5em/1.2 "Italiana", Georgia, serif; color: #FFF3D6; }
.rb__names em { font: 400 1.25em/1 "Mrs Saint Delafield", cursive; font-style: normal; color: #F2D27A; padding: 0 .1em; }
.rb__line { font: 400 .78em/1.55 "Archivo", system-ui, sans-serif; letter-spacing: .1em; color: #F7E3B6; }
.rb__line b {
  display: block;
  font-weight: 500;
  font-size: .78em;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #E9C26A;
}
.rb__line + .rb__line { margin-top: .35em; }

/* -------------------------------------------------------------- marigolds --- */

.mg-garland { display: block; width: 100%; height: auto; overflow: visible; }
.mg-garland__sway { transform-box: fill-box; transform-origin: 50% 0; }
.is-alive .mg-garland__sway { animation: mg-swag 5s ease-in-out infinite alternate; }
@keyframes mg-swag { from { transform: rotate(-.6deg) translateY(-1px); } to { transform: rotate(.6deg) translateY(1px); } }

/* ------------------------------------------------------------ camel, fort --- */

.camel { display: block; overflow: visible; }
.camel__body { fill: currentColor; }
.camel__tail, .camel__legs { stroke: currentColor; }
.camel__cloth { fill: var(--camel-cloth, currentColor); }
.camel__leg { transform-box: fill-box; transform-origin: 50% 0; }
.is-alive .camel__leg--a { animation: camel-step 1.3s ease-in-out infinite alternate; }
.is-alive .camel__leg--b { animation: camel-step 1.3s ease-in-out -.65s infinite alternate; }
.is-alive .camel__body, .is-alive .camel__cloth { animation: camel-bob .65s ease-in-out infinite alternate; }
@keyframes camel-step { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes camel-bob { from { transform: translateY(0); } to { transform: translateY(1.4px); } }

.fort { display: block; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .mg-garland__sway,
  .camel__leg, .camel__body, .camel__cloth { animation: none !important; }
}
