:root {
  --paper: #f7f1e4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--paper);
}

body {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* warm ivory paper: a soft vignette, fine grain and a slow mottling of the sheet */
#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  outline: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 100% at 50% 42%, rgba(255, 252, 244, 0.85) 0%, rgba(255, 252, 244, 0) 58%, rgba(196, 168, 120, 0.2) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .5 0 0 0 0 .3 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 260px 260px, 700px 700px;
}

/* a hidden signature: a faint pencil mark in the corner, there only for eyes that go looking */
.signature {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(120, 98, 68, 0.2);
  pointer-events: none;
}

/* one arrangement = one layer stack; old arrangements fade out as whole layers */
.scene {
  position: absolute;
  inset: 0;
  will-change: opacity;
  pointer-events: none;
}

.scene svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wash {
  opacity: 0;
}

/* fine botanical linework keeps a constant hairline weight however a petal is turned */
.ln,
.vn,
.fr {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ln {
  stroke-width: 0.85px;
}

.vn {
  stroke-width: 0.5px;
}

.fr {
  stroke-width: 1px;
}

/* small shapes drawn as a single filled and inked path */
.sf {
  vector-effect: non-scaling-stroke;
  stroke-width: 0.75px;
  stroke-linejoin: round;
}

.stem {
  fill: none;
  stroke-linecap: round;
}

/* the pale chevron on each clover leaflet */
.chev {
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
}
