/* The GroundUp gear picture on /groundup/: the styles that go with machine.js in this folder.
   Both files are copies of the shared gear set kept with the GroundUp plan (docs/groundup/machine on the GroundUp
   working branch); change the gear set there first, then copy it here, so the page, the film and the plan stay one picture. */
.gm{position:relative;display:block}
.gm>svg{display:block;width:100%;height:auto}
.gm .gm-name{font:500 50px/1 Fraunces,Georgia,serif;fill:#FAF7F2}
.gm .gm-ringwords{font:500 30px/1 'JetBrains Mono',ui-monospace,Menlo,monospace;fill:#FAF7F2;fill-opacity:.96}
.gm .gm-port{font:500 27px/1 'JetBrains Mono',ui-monospace,Menlo,monospace;letter-spacing:.2em;text-transform:uppercase;fill:#FAF7F2}
.gm .gm-arrow{fill:none;stroke:#FAF7F2;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
/* the dark plate the gears sit on */
.gm-panel{background:radial-gradient(circle at 50% 50%,#2A1F17 0,#1A130E 55%,#100C09 100%);border-radius:2px;color:#FAF7F2}

/* a part is bright while it is lit */
.gm .gm-z{opacity:.3}
.gm .gm-z.on{opacity:1}
.gm .gm-glow{opacity:0}
.gm .gm-z.on .gm-glow{opacity:1}

/* the small picture in the simulator: flat colour, hairlines that keep their weight, a bright hub on a lit gear */
.gm-mini .gm-fill{fill:var(--tooth);stroke-width:1.1px;vector-effect:non-scaling-stroke}
.gm-mini .gm-disc{fill:var(--deep);stroke-width:1.1px;vector-effect:non-scaling-stroke}
.gm-mini .gm-z.on .gm-disc{fill:var(--l)}
.gm-mini .gm-people.on .gm-fill{fill:var(--l);fill-opacity:.72}
.gm-mini .gm-arrow{stroke-width:3px;vector-effect:non-scaling-stroke}
.gm-mini .gm-z{opacity:.4}

/* turning: one tooth every 1.25 seconds on every gear, so they stay in mesh */
.gm .gm-turn,.gm .gm-beat{transform-origin:0 0}
@keyframes gm-cw{to{transform:rotate(360deg)}}
@keyframes gm-ccw{to{transform:rotate(-360deg)}}
@keyframes gm-beat{0%,100%{opacity:.55;transform:scale(.94)}50%{opacity:1;transform:scale(1.06)}}
.gm-pause{position:absolute;right:10px;bottom:10px;font:700 12px/1 Lato,sans-serif;color:#FAF7F2;background:rgba(20,16,12,.72);border:1px solid rgba(250,247,242,.42);border-radius:2px;padding:7px 9px;cursor:pointer}
.gm-pause:hover{border-color:#FAF7F2}
@media (prefers-reduced-motion:no-preference){
  .gm-turning .gm-s{animation:gm-cw 15s linear infinite}
  .gm-turning .gm-p{animation:gm-ccw 45s linear infinite}
  .gm-turning .gm-r{animation:gm-ccw 105s linear infinite}
  .gm-turning .gm-beat{animation:gm-beat 3.75s ease-in-out infinite}
  .gm-paused .gm-turn,.gm-paused .gm-beat{animation-play-state:paused}
  .gm .gm-z,.gm .gm-glow,.gm .gm-disc,.gm .gm-fill{transition:opacity .3s,fill .3s,fill-opacity .3s}
}
@media (prefers-reduced-motion:reduce){.gm-pause{display:none}}

/* the small gear beside a name */
.gm-glyph{display:inline-block;vertical-align:-.2em;flex:0 0 auto}
